:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --paper: #ffffff;
  --paper-2: #eef2ed;
  --ink: #101614;
  --graphite: #151b19;
  --graphite-2: #202a26;
  --muted: #66716c;
  --line: #d7ddd6;
  --zec: #f3b72c;
  --zec-soft: #fff4d4;
  --verified: #18a363;
  --teal: #18736d;
  --error: #d95c43;
  --shadow: 0 16px 44px rgba(17, 24, 23, 0.08);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f9faf7 0, var(--bg) 520px),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
a,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(244, 183, 40, 0.58);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 23, 0.94);
  color: #f8faf4;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--zec);
  color: #1e1603;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: rgba(248, 250, 244, 0.68);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(248, 250, 244, 0.76);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav__active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #fff;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  background: var(--zec);
  color: #201604;
  box-shadow: 0 14px 32px rgba(244, 183, 40, 0.22);
}

.button--primary:hover {
  background: #ffd36b;
}

.button--secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.button--secondary:hover {
  border-color: rgba(30, 127, 120, 0.46);
  background: #f7fbf8;
}

.button--ghost {
  border-color: rgba(17, 24, 23, 0.14);
  background: transparent;
  color: var(--ink);
}

.button--ghost:hover {
  border-color: rgba(244, 183, 40, 0.64);
  background: rgba(244, 183, 40, 0.1);
}

.button--nav {
  min-height: 38px;
  margin-left: 4px;
  background: var(--zec);
  color: #201604 !important;
}

.button--nav:hover,
.button--nav-active {
  background: #ffd36b !important;
  color: #201604 !important;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.85fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  width: min(var(--max), calc(100vw - 40px));
  min-height: min(690px, calc(100vh - 66px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0 clamp(34px, 5vw, 58px);
}

.landing-hero__copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2.85rem, 5.4vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-hero__copy > p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: #34443d;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.55;
}

.landing-hero .action-row {
  margin-top: 24px;
}

.quorum-visual {
  position: relative;
  display: grid;
  min-height: 500px;
  align-content: center;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 23, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    radial-gradient(circle at 34% 22%, rgba(244, 183, 40, 0.14), transparent 31%),
    linear-gradient(145deg, #121816, #202a26);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.quorum-visual::before,
.quorum-visual::after {
  position: absolute;
  content: "";
}

.quorum-visual::before {
  inset: 24px;
  border: 1px solid rgba(244, 183, 40, 0.12);
  border-radius: 8px;
  transform: rotate(-8deg);
}

.quorum-visual::after {
  right: -90px;
  bottom: -120px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(32, 178, 107, 0.24);
  border-radius: 50%;
}

.vault-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(220px, 70vw);
  height: min(220px, 70vw);
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.vault-core {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 1px solid rgba(244, 183, 40, 0.45);
  border-radius: 8px;
  background: rgba(244, 183, 40, 0.12);
  box-shadow: inset 0 0 44px rgba(244, 183, 40, 0.1);
}

.vault-core span,
.vault-core strong {
  display: block;
}

.vault-core span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
}

.vault-core strong {
  color: var(--zec);
  font-size: 2.55rem;
  line-height: 1;
}

.quorum-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.quorum-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.42;
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    border-color 260ms ease;
}

.quorum-node--on {
  opacity: 1;
  transform: none;
}

.quorum-node strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.96rem;
}

.quorum-node span {
  color: var(--verified);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quorum-node--offline span {
  color: #ff8268;
}

.quorum-visual > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.problem-band,
.security-band,
.demo-teaser,
.section-shell,
.page-hero,
.mechanism-grid,
.failure-path,
.security-grid,
.docs-grid,
.command-panel,
.proof-page {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.problem-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
}

.problem-band h2,
.section-heading h2,
.section-shell h2,
.demo-teaser h2,
.security-band h2,
.mechanism-card h2,
.failure-path h2,
.security-grid h2,
.command-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.problem-band p,
.section-copy,
.demo-teaser p,
.security-band p,
.mechanism-card p,
.failure-path p,
.security-grid p,
.command-panel p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.section-shell {
  padding: 56px 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--zec-soft);
  color: #75540b;
  font-size: 0.85rem;
  font-weight: 850;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pillar-grid article,
.mechanism-card,
.security-grid article,
.docs-grid a {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.pillar-grid article {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 20px;
}

.pillar-grid span,
.mechanism-card span,
.process-line span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pillar-grid h3 {
  margin: auto 0 0;
  font-size: 1.25rem;
}

.pillar-grid p,
.process-line p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.process-preview {
  display: grid;
  gap: 24px;
  padding-top: 22px;
}

.process-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-line li {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.process-line strong {
  margin-top: auto;
  font-size: 1.05rem;
}

.evidence-section {
  padding-top: 34px;
}

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.evidence-strip span {
  display: inline-flex;
  min-height: 48px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--graphite);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.evidence-strip span::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--zec);
  box-shadow: 0 0 0 4px rgba(244, 183, 40, 0.14);
  content: "";
}

.demo-teaser,
.security-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  padding: 28px;
  border-radius: 8px;
}

.demo-teaser {
  border: 1px solid rgba(30, 127, 120, 0.24);
  background: #eaf4ef;
}

.security-band {
  grid-template-columns: minmax(0, 1fr) max-content;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--graphite);
  color: #ffffff;
  overflow: hidden;
}

.security-band__copy {
  display: grid;
  max-width: 760px;
  gap: 12px;
  min-width: 0;
}

.security-band h2,
.security-band .eyebrow {
  color: #ffffff;
}

.security-band .eyebrow {
  margin-bottom: 0;
}

.security-band p {
  max-width: 72ch;
  color: rgba(255, 255, 255, 0.75);
}

.security-band__action {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
}

.security-band .text-link {
  color: var(--zec);
  white-space: nowrap;
}

.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.page-hero {
  padding: clamp(44px, 6vw, 76px) 0 32px;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.35rem, 4.6vw, 4.05rem);
  line-height: 1;
}

.page-hero--proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 28px;
  align-items: end;
}

.proof-page {
  display: grid;
  gap: 14px;
  padding-bottom: 44px;
}

.proof-receipt,
.proof-card,
.proof-stepper,
.notice,
.proof-note,
.command-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgba(17, 24, 23, 0.055);
}

.proof-receipt {
  padding: 16px;
}

dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

dt {
  color: #81908a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-weight: 850;
}

.proof-stepper {
  position: sticky;
  top: 66px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.proof-stepper a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.proof-stepper a:hover,
.proof-stepper__active {
  background: var(--graphite);
  color: #ffffff !important;
}

.proof-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  scroll-margin-top: 140px;
}

.proof-card .section-heading h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.12;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.fact-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-grid div {
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper-2);
}

.required-sentence {
  margin: 0;
  color: var(--ink);
  font-weight: 820;
  line-height: 1.5;
}

.required-sentence--complete {
  color: var(--muted);
  font-weight: 720;
}

.demo-mode-toggle {
  display: inline-flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f4;
}

.demo-mode-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.demo-mode-toggle__active {
  background: var(--graphite) !important;
  color: #ffffff !important;
}

.safety-test-label {
  width: fit-content;
  padding: 8px 11px;
  border-radius: 8px;
  background: #8c2d1d;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.safety-test-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 92, 67, 0.42);
  border-radius: 8px;
  background: rgba(217, 92, 67, 0.1);
  color: #8c2d1d;
}

.safety-test-summary span {
  font-size: 0.88rem;
  font-weight: 760;
  text-align: right;
}

.binding-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.binding-check-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.binding-check-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  text-overflow: ellipsis;
}

.binding-check-list span {
  flex: 0 0 auto;
  color: var(--verified);
  font-size: 0.76rem;
  font-weight: 900;
}

.binding-check--fail span {
  color: var(--error);
}

.participant-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.participant-pill {
  display: grid;
  min-height: 66px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f4;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.participant-pill--available {
  border-color: rgba(32, 178, 107, 0.42);
  background: rgba(32, 178, 107, 0.1);
}

.participant-pill--unavailable {
  border-color: rgba(217, 92, 67, 0.48);
  background: rgba(217, 92, 67, 0.12);
  color: #8c2d1d;
}

.demo-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-flow li {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
}

.demo-flow li > span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbd5d0;
}

.demo-flow__step--complete > span {
  background: var(--verified);
  box-shadow: 0 0 0 5px rgba(32, 178, 107, 0.14);
}

.demo-flow__step--pending {
  opacity: 0.35;
}

.demo-flow strong,
.demo-flow p {
  margin: 0;
}

.demo-flow p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.proof-note {
  padding: 14px;
  background: #fff9e8;
}

.proof-note summary {
  cursor: pointer;
  font-weight: 900;
}

.proof-note p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-color: #f0dfaa;
  background: #fff9e8;
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.notice--error {
  border-color: rgba(217, 92, 67, 0.36);
  background: #fff0ec;
}

.tamper-lab {
  margin-top: 12px;
}

.tamper-lab__actions {
  flex-wrap: wrap;
}

.tamper-lab__preset--active {
  border-color: var(--error);
  color: var(--error);
}

.tamper-lab__editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 14px;
  resize: vertical;
}

.tamper-lab__verdict {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tamper-lab__verdict strong {
  font-size: 0.96rem;
}

.tamper-lab__verdict span {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.tamper-lab__verdict--pass {
  border-color: var(--verified);
  background: rgba(32, 178, 107, 0.08);
}

.tamper-lab__verdict--fail {
  border-color: var(--error);
  background: rgba(217, 92, 67, 0.08);
}

.txid-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.txid-fact__value {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
  text-align: left;
}

.txid-fact__copy {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--teal);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 3px 8px;
  text-decoration: none;
}

.mechanism-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 34px;
}

.mechanism-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 22px;
}

.mechanism-card--featured {
  background: var(--graphite);
  color: #ffffff;
}

.mechanism-card--featured h2,
.mechanism-card--featured p {
  color: #ffffff;
}

.mechanism-card h2 {
  margin-top: auto;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
}

.failure-path {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 38px;
  border: 1px solid rgba(217, 92, 67, 0.28);
  border-radius: 8px;
  background: #fff6f2;
}

.failure-path .button {
  margin-top: 20px;
}

.failure-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.failure-steps li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgba(217, 92, 67, 0.22);
  border-radius: 8px;
  background: #ffffff;
}

.failure-steps span {
  color: #8c2d1d;
  font-weight: 850;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 26px;
}

.security-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
}

.security-grid h2 {
  font-size: 1.25rem;
  line-height: 1.12;
}

.security-band--page {
  margin-bottom: 40px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 24px;
}

.docs-grid a {
  display: grid;
  gap: 10px;
  min-height: 145px;
  padding: 18px;
  text-decoration: none;
}

.docs-grid a:hover {
  border-color: rgba(30, 127, 120, 0.46);
  box-shadow: 0 14px 42px rgba(30, 127, 120, 0.1);
}

.docs-grid span {
  font-size: 1.2rem;
  font-weight: 900;
}

.docs-grid p {
  margin: auto 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.command-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  margin-bottom: 40px;
}

.command-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  border-radius: 8px;
  background: var(--graphite);
  color: #f8faf4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
}

.site-footer p {
  max-width: 860px;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.footer-links a {
  color: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes verdict-settle {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fail-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 92, 67, 0.4);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(217, 92, 67, 0);
  }
}

@keyframes hash-fill-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.lab-verdict-in {
  animation: verdict-settle 0.3s ease-out;
}

.lab-gate-in {
  animation: rise-in 0.3s ease-out both;
}

.lab-gate-fail-pulse {
  animation: rise-in 0.3s ease-out both, fail-pulse 0.6s ease-out 0.45s 1;
}

.hash-fill {
  display: inline-block;
  animation: hash-fill-in 0.6s steps(12) 0.15s both;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }
.stagger-9 { animation-delay: 0.45s; }
.stagger-10 { animation-delay: 0.5s; }
.stagger-11 { animation-delay: 0.55s; }
.stagger-12 { animation-delay: 0.6s; }
.stagger-13 { animation-delay: 0.65s; }
.stagger-14 { animation-delay: 0.7s; }

@media (max-width: 980px) {
  .landing-hero,
  .page-hero--proof,
  .problem-band,
  .demo-teaser,
  .security-band,
  .failure-path,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
  }

  .quorum-visual {
    min-height: 460px;
  }

  .pillar-grid,
  .process-line,
  .evidence-strip,
  .demo-flow,
  .fact-grid,
  .fact-grid--wide,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teaser-actions,
  .security-band__action,
  .footer-links {
    justify-content: flex-start;
  }

  .security-band__action {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    flex: 1 1 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav--open {
    display: grid;
  }

  .site-nav a,
  .button--nav {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .landing-hero,
  .problem-band,
  .security-band,
  .demo-teaser,
  .section-shell,
  .page-hero,
  .mechanism-grid,
  .failure-path,
  .security-grid,
  .docs-grid,
  .command-panel,
  .proof-page,
  .site-footer {
    width: min(calc(100vw - 28px), var(--max));
  }

  .landing-hero__copy h1,
  .page-hero h1 {
    font-size: clamp(2.65rem, 13.5vw, 4.15rem);
    line-height: 0.98;
  }

  .landing-hero__copy > p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .quorum-visual {
    min-height: 400px;
    padding: 16px;
  }

  .vault-orbit {
    width: 168px;
    height: 168px;
  }

  .vault-core {
    width: 104px;
    height: 104px;
  }

  .vault-core strong {
    font-size: 2.1rem;
  }

  .section-heading,
  .safety-test-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .pillar-grid,
  .process-line,
  .evidence-strip,
  .demo-flow,
  .fact-grid,
  .fact-grid--wide,
  .binding-check-list,
  .participant-row,
  .mechanism-grid,
  .security-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .problem-band h2,
  .section-heading h2,
  .section-shell h2,
  .demo-teaser h2,
  .security-band h2,
  .failure-path h2,
  .command-panel h2 {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .proof-stepper {
    top: 112px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-card {
    padding: 18px;
    scroll-margin-top: 180px;
  }

  .button,
  .action-row .text-link,
  .security-band .text-link {
    width: 100%;
  }

  .action-row .text-link,
  .security-band .text-link {
    justify-content: center;
    min-height: 42px;
  }

  .safety-test-summary span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .quorum-node,
  .demo-flow__step--pending {
    opacity: 1 !important;
    transform: none !important;
  }
}
