:root {
  --ink: #111411;
  --paper: #f3f5ef;
  --white: #fbfcf8;
  --muted: #646b64;
  --line: #cfd4ca;
  --signal: #b8f343;
  --danger: #e34e3b;
  --header-height: 72px;
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
::selection { background: var(--signal); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { color: inherit; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.2);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(17,20,17,.94); border-color: rgba(255,255,255,.1); backdrop-filter: blur(14px); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; font-family: Georgia, serif; font-size: 18px; }
nav { display: flex; gap: 32px; font-size: 13px; }
nav a, .header-action { transition: opacity .2s ease; }
nav a:hover, .header-action:hover { opacity: .65; }
.header-action { padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 13px; }
.header-end { display: flex; align-items: center; gap: 28px; }
.network-status { display: inline-flex; align-items: center; gap: 8px; color: #aeb5ab; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.network-status i { display: block; width: 7px; height: 7px; border-radius: 50%; background: #8b9189; }
.network-status.online i { background: var(--signal); box-shadow: 0 0 10px rgba(184,243,67,.6); }
.network-status.offline i { background: var(--danger); }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: #151915;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 7.14vw 7.14vw;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-copy { position: absolute; z-index: 2; left: 7vw; top: 22%; width: min(620px, 47vw); animation: hero-in .9s cubic-bezier(.2,.75,.25,1) both; }
.eyebrow { margin: 0 0 22px; text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 132px; line-height: .82; font-weight: 400; letter-spacing: 0; }
.hero-lede { max-width: 470px; margin: 38px 0 0; font-size: 27px; line-height: 1.22; color: #d6dbd2; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.primary-action, .secondary-action, .text-action { border: 0; cursor: pointer; }
.primary-action { display: inline-flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 28px; padding: 0 20px; background: var(--signal); color: var(--ink); font-size: 13px; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.primary-action:hover { transform: translateY(-2px); background: #c8ff5a; }
.primary-action:disabled { opacity: .55; cursor: wait; transform: none; }
.text-action { display: inline-flex; align-items: center; gap: 18px; padding: 8px 0; color: inherit; background: transparent; border-bottom: 1px solid currentColor; font-size: 13px; }

.evidence-plane { position: absolute; z-index: 1; top: 16%; right: 4vw; width: 43vw; height: 66%; animation: plane-in 1.1s .15s cubic-bezier(.2,.75,.25,1) both; }
.trace-line { position: absolute; top: 50%; left: 3%; width: 89%; height: 1px; background: rgba(255,255,255,.34); transform: rotate(-13deg); transform-origin: left; }
.trace-pulse { position: absolute; z-index: 4; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 24px var(--signal); offset-path: path("M 20 350 L 610 215"); animation: trace 4s ease-in-out infinite; }
.evidence-node { position: absolute; display: flex; width: 150px; min-height: 90px; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid rgba(255,255,255,.45); background: rgba(21,25,21,.78); backdrop-filter: blur(8px); }
.evidence-node strong { font-size: 12px; }
.evidence-node small, .node-index { color: #aab1a8; font-size: 10px; }
.node-a { left: 0; bottom: 5%; }
.node-offer { left: 25%; top: 39%; }
.node-b { right: 24%; top: 19%; }
.node-receipt { right: 0; top: 0; border-color: var(--signal); background: var(--signal); color: var(--ink); }
.node-receipt small { color: #4e611e; }
.receipt-sigil { font-size: 25px; }
.plane-caption { position: absolute; right: 0; bottom: 1%; width: 170px; color: #8f988e; font-family: Georgia, serif; font-size: 15px; line-height: 1.35; }
.scroll-cue { position: absolute; z-index: 2; left: 7vw; bottom: 35px; display: flex; gap: 18px; color: #9fa79d; font-size: 12px; }

.proof-rail { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 112px; padding: 0 7vw; background: var(--signal); }
.proof-rail p { display: flex; flex-direction: column; justify-content: center; gap: 8px; margin: 0; padding: 18px 28px 18px 0; }
.proof-rail p + p { padding-left: 28px; border-left: 1px solid rgba(17,20,17,.24); }
.proof-rail span { font-size: 9px; text-transform: uppercase; letter-spacing: .13em; }
.proof-rail strong { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; font-weight: 600; }

.protocol-section, .verifier-section, .integration-section { padding: 128px 7vw; }
.protocol-section { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 5vw; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 64px; }
.section-heading .eyebrow { align-self: start; }
h2 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 400; font-size: 82px; line-height: .98; letter-spacing: 0; }
.section-heading > p:last-child, .verifier-heading > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.protocol-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.protocol-flow li { min-height: 290px; padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.protocol-flow li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.protocol-flow span { display: block; margin-bottom: 88px; color: var(--muted); font-size: 11px; }
.protocol-flow strong { display: block; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 28px; font-weight: 400; }
.protocol-flow p { max-width: 210px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.verifier-section { background: var(--white); }
.verifier-heading { display: grid; grid-template-columns: 2fr 1fr; gap: 10vw; align-items: end; }
.verifier-heading h2 { font-size: 76px; }
.verifier-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 64px; min-height: 54px; border-bottom: 1px solid var(--line); }
.mode-tabs { align-self: stretch; display: flex; }
.tab { min-width: 90px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; cursor: pointer; }
.tab.active { border-color: var(--ink); font-weight: 750; }
.tab:disabled { color: #a8ada6; cursor: not-allowed; }
.secondary-action { padding: 10px 0; background: transparent; border-bottom: 1px solid var(--ink); font-size: 12px; }
.receipt-lookup { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 64px; border-bottom: 1px solid var(--line); }
.receipt-lookup label { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.receipt-lookup input { width: 100%; border: 0; outline: 0; padding: 10px 0; background: transparent; font-family: monospace; font-size: 12px; }
.receipt-lookup input:focus { box-shadow: 0 1px 0 var(--ink); }
.verifier-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); min-height: 660px; border-bottom: 1px solid var(--line); }
.editor-pane { display: flex; flex-direction: column; padding: 30px 36px 30px 0; border-right: 1px solid var(--line); }
.editor-pane label { margin-bottom: 15px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
textarea { width: 100%; flex: 1; resize: none; border: 0; outline: none; padding: 24px; background: #161a17; color: #e5e9e1; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.65; tab-size: 2; }
textarea:focus { box-shadow: inset 0 0 0 2px var(--signal); }
textarea.drop-target { box-shadow: inset 0 0 0 3px var(--signal); }
.editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; }
#editor-status { color: var(--muted); font-size: 12px; }
.result-pane { min-width: 0; height: 720px; padding: 40px 10px 40px 40px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #9da499 transparent; scrollbar-width: thin; }
.result-idle { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--muted); }
.result-glyph { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 24px; border: 1px solid var(--line); font-family: Georgia, serif; font-size: 38px; }
.result-idle h3, .result-content h3 { margin: 0; color: var(--ink); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 30px; font-weight: 400; }
.result-idle p { max-width: 270px; font-size: 13px; line-height: 1.5; }
.result-content { animation: result-in .45s ease both; }
.result-summary { display: flex; gap: 18px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.result-icon { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; background: var(--signal); font-size: 20px; }
.result-icon.invalid { background: var(--danger); color: white; }
.result-summary p { margin: 0 0 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.receipt-meta { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.receipt-meta div { display: grid; grid-template-columns: 130px minmax(0, 1fr); padding: 8px 0; font-size: 11px; }
.receipt-meta dt { color: var(--muted); }
.receipt-meta dd { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; font-family: monospace; white-space: nowrap; }
.receipt-meta .signature-valid { color: #467100; }
.receipt-meta .signature-invalid { color: var(--danger); }
.checks-heading { display: flex; justify-content: space-between; margin-top: 28px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.checks-list { margin: 16px 0 24px; padding: 0; list-style: none; }
.checks-list li { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #e4e7e0; font-family: monospace; font-size: 11px; }
.check-state { color: #467100; }
.check-state.failed { color: var(--danger); }
.copy-action { color: var(--muted); }
.receipt-actions { display: flex; gap: 28px; align-items: center; }

.integration-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; background: var(--paper); }
.integration-section h2 { max-width: 630px; font-size: 60px; line-height: 1.02; }
.integration-list { border-top: 1px solid var(--ink); }
.integration-list > * { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; min-height: 100px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.integration-list > a:hover { padding: 0 12px; background: var(--signal); }
.integration-list span, .integration-list b { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.integration-list strong { font-family: monospace; font-size: 13px; }
.integration-list b { font-weight: 500; }
.final-section { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 7vw; text-align: center; background: var(--ink); color: var(--white); }
.final-section h2 { margin-bottom: 44px; }
.final-actions { display: flex; align-items: center; gap: 28px; }
.primary-action.inverse { background: var(--white); }
footer { display: flex; justify-content: space-between; align-items: center; min-height: 100px; padding: 0 4vw; border-top: 1px solid #343934; background: var(--ink); color: #aab0a7; font-size: 11px; }
footer .brand { color: var(--white); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { padding-bottom: 4px; border-bottom: 1px solid #5b6259; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes plane-in { from { opacity: 0; transform: translateX(35px); } }
@keyframes result-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes trace { 0%, 10% { offset-distance: 0; opacity: 0; } 18% { opacity: 1; } 85% { opacity: 1; } 95%, 100% { offset-distance: 100%; opacity: 0; } }

@media (max-width: 900px) {
  :root { --header-height: 62px; }
  .site-header { padding: 0 20px; }
  nav { display: none; }
  .header-action { font-size: 11px; }
  .network-status { display: none; }
  .hero { min-height: 720px; }
  .hero-copy { left: 24px; top: 16%; width: calc(100% - 48px); }
  h1 { font-size: 88px; }
  .hero-lede { max-width: 340px; font-size: 19px; }
  .evidence-plane { top: 53%; right: 20px; width: calc(100% - 40px); height: 32%; }
  .trace-line { top: 55%; }
  .trace-pulse { display: none; }
  .evidence-node { width: 105px; min-height: 75px; padding: 11px; }
  .node-offer { left: 29%; }
  .node-b { right: 20%; }
  .plane-caption { display: none; }
  .scroll-cue { left: 24px; bottom: 20px; }
  .protocol-section, .verifier-section, .integration-section { padding: 88px 24px; }
  .proof-rail { grid-template-columns: 1fr 1fr; padding: 0 24px; }
  .proof-rail p { min-height: 84px; }
  .proof-rail p:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(17,20,17,.24); }
  .proof-rail p:nth-child(4) { border-top: 1px solid rgba(17,20,17,.24); }
  .section-heading, .verifier-heading, .integration-section { grid-template-columns: 1fr; }
  .section-heading { gap: 30px; }
  .protocol-flow { grid-template-columns: 1fr 1fr; }
  .protocol-flow li:nth-child(3) { border-left: 0; }
  .protocol-flow span { margin-bottom: 50px; }
  .verifier-heading { gap: 28px; }
  .verifier-workspace { grid-template-columns: 1fr; }
  .editor-pane { min-height: 580px; padding-right: 0; border-right: 0; }
  .result-pane { height: auto; min-height: 520px; padding-left: 0; overflow-y: visible; }
  .integration-section { gap: 64px; }
  h2, .verifier-heading h2, .integration-section h2 { font-size: 56px; }
  .receipt-lookup { grid-template-columns: 1fr auto; padding: 16px 0; }
  .receipt-lookup label { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand { font-size: 10px; }
  .header-action { display: none; }
  h1 { font-size: 64px; }
  h2, .verifier-heading h2, .integration-section h2 { font-size: 44px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .final-actions { flex-direction: column; }
  .evidence-node { width: 90px; }
  .node-offer { left: 23%; }
  .node-b { right: 17%; }
  .protocol-flow { grid-template-columns: 1fr; }
  .protocol-flow li + li { padding-left: 0; border-left: 0; }
  .editor-footer { align-items: stretch; flex-direction: column; }
  .editor-footer .primary-action { width: 100%; }
  .integration-list > * { grid-template-columns: 76px 1fr; }
  .receipt-lookup { grid-template-columns: 1fr; }
  .receipt-lookup .text-action { justify-self: start; }
  .receipt-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .integration-list b { display: none; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 18px; }
  .footer-links { flex-wrap: wrap; }
}

.activity-page { background: var(--paper); }
.activity-content { padding: 170px 7vw 120px; }
.activity-heading { display: grid; grid-template-columns: 2fr 1fr; gap: 10vw; align-items: end; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.activity-heading h1 { font-size: 92px; }
.activity-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.activity-totals { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.activity-totals div { display: flex; min-height: 200px; flex-direction: column; justify-content: space-between; padding: 28px 28px 28px 0; }
.activity-totals div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.activity-totals span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.activity-totals strong { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 68px; font-weight: 400; }
.activity-funnel { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding: 100px 0; border-bottom: 1px solid var(--line); }
.activity-funnel h2 { max-width: 550px; font-size: 64px; }
.activity-funnel dl { margin: 0; border-top: 1px solid var(--ink); }
.activity-funnel dl div { display: flex; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--line); }
.activity-funnel dt { color: var(--muted); font-size: 12px; }
.activity-funnel dd { margin: 0; font-family: monospace; font-size: 13px; }
.activity-history { padding-top: 100px; }
.activity-section-title { display: flex; justify-content: space-between; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.activity-section-title h2 { font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.activity-section-title span { color: var(--muted); font-size: 11px; }
.activity-chart { min-height: 160px; padding: 18px 0; color: var(--muted); font-size: 13px; }
.activity-chart > div { display: grid; grid-template-columns: 90px 1fr 50px; align-items: center; gap: 20px; min-height: 42px; }
.activity-chart time, .activity-chart strong { font-family: monospace; font-size: 11px; font-weight: 500; }
.activity-chart > div > span { height: 8px; background: #dfe3da; }
.activity-chart i { display: block; height: 100%; background: var(--signal); }
.activity-chart strong { text-align: right; color: var(--ink); }

@media (max-width: 900px) {
  .activity-content { padding: 130px 24px 80px; }
  .activity-heading, .activity-funnel { grid-template-columns: 1fr; gap: 48px; }
  .activity-heading h1 { font-size: 64px; }
  .activity-totals { grid-template-columns: 1fr 1fr; }
  .activity-totals div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .activity-totals div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .activity-heading h1 { font-size: 52px; }
  .activity-totals strong { font-size: 52px; }
  .activity-funnel h2 { font-size: 44px; }
  .activity-chart > div { grid-template-columns: 70px 1fr 36px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.legal-page { background: var(--paper); }
.legal-content { max-width: 900px; margin: 0 auto; padding: 170px 32px 120px; }
.legal-content h1 { max-width: 760px; font-size: 92px; }
.legal-lede { max-width: 680px; margin: 48px 0 80px; color: var(--muted); font-size: 22px; line-height: 1.5; }
.legal-content h2 { margin-top: 54px; font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.legal-content p:not(.eyebrow):not(.legal-lede) { max-width: 680px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.legal-content a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.legal-updated { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .legal-content { padding: 130px 24px 80px; }
  .legal-content h1 { font-size: 56px; }
  .legal-lede { margin: 32px 0 60px; font-size: 18px; }
}
