:root {
  --cream: #f0e4d2;
  --paper: #f8efe3;
  --ink: #151515;
  --muted: #6a6761;
  --line: rgba(21, 21, 21, 0.18);
  --orange: #ff5a2a;
  --green: #67d6a0;
  --dark-line: rgba(255, 255, 255, 0.17);
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--orange);
  color: #fff;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.shell { width: min(1220px, calc(100% - 64px)); margin-inline: auto; }
.site-header {
  min-height: 84px;
  padding: 0 max(32px, calc((100vw - 1220px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 239, 227, .92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { text-decoration: none; font-weight: 800; letter-spacing: -.05em; font-size: 1.1rem; }
.brand span { color: var(--orange); }
.site-header > p { margin: 0; font: 500 .76rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.return-link { justify-self: end; text-decoration: none; font-size: .92rem; font-weight: 600; }
.arrow { font-family: Arial, Helvetica, sans-serif; font-variant-emoji: text; }
.hero { min-height: 690px; padding-block: 116px 88px; display: grid; align-content: space-between; }
.eyebrow, .mono-label { margin: 0; font: 500 .74rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--orange); }
.hero h1 { margin: 32px 0 70px; max-width: 1000px; font-size: clamp(4.2rem, 9vw, 8.9rem); line-height: .9; letter-spacing: -.075em; font-weight: 600; }
.hero-copy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.hero-copy p { margin: 0; max-width: 690px; font-size: clamp(1.25rem, 2.1vw, 2rem); line-height: 1.35; letter-spacing: -.025em; }
.primary-link { justify-self: end; text-decoration: none; padding-bottom: 8px; border-bottom: 2px solid var(--orange); font-weight: 700; }
.proof-rail { background: var(--ink); color: #fff; display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: max(32px, calc((100vw - 1220px) / 2)); }
.proof-rail div { min-height: 150px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--dark-line); padding: 28px; }
.proof-rail div:first-child { border-left: 1px solid var(--dark-line); }
.proof-rail strong { font: 500 1.55rem var(--mono); color: var(--orange); }
.proof-rail span { margin-top: 12px; color: #bbb; font-size: .9rem; }
.demo-section { padding-block: 130px; border-bottom: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; margin-bottom: 64px; align-items: end; }
.section-intro h2, .data-note h2 { margin: 18px 0 0; max-width: 800px; font-size: clamp(2.8rem, 5.5vw, 5.8rem); line-height: .98; letter-spacing: -.06em; font-weight: 600; }
.section-intro > p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 1.02rem; }
.system-panel { border: 1px solid var(--line); background: rgba(255,255,255,.28); padding: 40px; }
.flow-grid { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr; align-items: center; }
.flow-node { min-height: 180px; padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; transition: .35s ease; }
.flow-node > span, .return-steps > li > span { font: 500 .72rem var(--mono); color: var(--orange); }
.flow-node h3 { margin: auto 0 6px; font-size: 1.35rem; }
.flow-node p { margin: 0; color: var(--muted); font-size: .85rem; }
.flow-node.is-active { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-8px); }
.flow-node.is-active > span, .flow-node.is-active p { color: #fff; }
.flow-node.is-complete { border-color: var(--green); box-shadow: inset 0 -4px 0 var(--green); }
.flow-connector { height: 1px; background: var(--line); position: relative; }
.flow-connector::after { content: ">"; position: absolute; right: -3px; top: -8px; color: var(--muted); font: .75rem var(--mono); }
.control-row { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.action-button { border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 15px 22px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.action-button:hover, .action-button:focus-visible { background: var(--orange); outline: none; }
.action-button:disabled { opacity: .45; cursor: wait; }
.action-button.light { background: #fff; color: var(--ink); }
.action-button.light:hover, .action-button.light:focus-visible { background: var(--orange); color: #fff; }
.text-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.system-status { margin: 0; color: var(--muted); font: .78rem/1.5 var(--mono); }
.event-log { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.event-log li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.event-log time { color: var(--orange); font-family: var(--mono); }
.technical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.code-window { min-width: 0; border: 1px solid #303633; background: #0b100e; color: #dfe8e2; box-shadow: 0 18px 42px rgba(21,21,21,.12); }
.code-window header { min-height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid #29312d; color: #9ba8a1; font: 500 .66rem/1.35 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.code-window header span { min-width: 0; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.code-window header i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(103,214,160,.08); }
.code-window header b { flex: 0 0 auto; color: var(--orange); font-weight: 500; }
.code-window pre { margin: 0; min-height: 226px; padding: 22px; overflow: auto; tab-size: 2; }
.code-window code { font: 400 .76rem/1.75 var(--mono); white-space: pre; }
.code-key { color: #83d4ff; }
.code-string { color: #d8b47b; }
.code-number { color: #78dea9; }
.code-boolean { color: #ff7c56; }
.code-null { color: #8d9791; }
.wide-code { grid-column: 1 / -1; }
.wide-code pre, .standalone-code pre, .return-code pre { min-height: 0; }
.standalone-code { margin-top: 22px; }
.return-code { margin-top: 34px; }
.split-demo { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.order-heading, .return-summary, .pulse-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.order-heading h3, .return-summary h3 { margin: 8px 0 0; font-size: 2rem; }
.order-heading strong { font: 500 2.2rem var(--mono); color: var(--orange); }
.scan-list { margin: 32px 0 0; padding: 0; list-style: none; }
.scan-list li { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.scan-list li:last-child { border-bottom: 1px solid var(--line); }
.scan-list b { color: var(--muted); font: 500 .72rem var(--mono); }
.scan-list li.is-scanned b { color: #168457; }
.evidence-card { padding: 40px; background: var(--ink); color: #fff; display: flex; flex-direction: column; min-height: 420px; }
.evidence-card h3 { margin: auto 0 14px; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.evidence-card > p:not(.mono-label) { color: #aaa; line-height: 1.55; }
.evidence-stamp { margin-top: 26px; border-top: 1px solid var(--dark-line); padding-top: 20px; color: var(--orange); font: 500 .76rem/1.5 var(--mono); }
.pulse-screen { background: #0c1210; color: #fff; padding: 48px; border: 16px solid #242b29; box-shadow: 0 28px 70px rgba(21,21,21,.18); }
.pulse-heading { padding-bottom: 32px; border-bottom: 1px solid var(--dark-line); }
.pulse-heading h3 { margin: 10px 0 0; font-size: 1.65rem; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 10px rgba(103,214,160,.1); }
.pulse-table { margin-top: 26px; }
.pulse-row { display: grid; grid-template-columns: 1fr .6fr .6fr; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--dark-line); }
.pulse-row strong, .pulse-row span:nth-child(n+2) { text-align: right; }
.pulse-row strong { font: 500 1.25rem var(--mono); }
.pulse-labels { color: #8c9994; font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pulse-screen .control-row { justify-content: space-between; }
.pulse-screen .control-row p { color: #8c9994; font: .76rem var(--mono); }
.return-summary { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.return-summary > span { font: 500 .75rem var(--mono); color: var(--muted); }
.return-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.return-steps li { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); opacity: .38; transition: .25s ease; }
.return-steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.return-steps li.is-active { opacity: 1; box-shadow: inset 0 -4px 0 var(--orange); }
.return-steps li.is-complete { opacity: 1; box-shadow: inset 0 -4px 0 var(--green); }
.return-steps b, .return-steps small { display: block; }
.return-steps b { margin-top: 44px; line-height: 1.3; }
.return-steps small { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.data-note { padding-block: 140px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; align-items: end; }
.data-note > .eyebrow { grid-column: 1 / -1; }
.data-note h2 { margin: 0; }
.data-note > div p { color: var(--muted); line-height: 1.65; margin: 0 0 30px; }
.data-note a { font-weight: 700; text-underline-offset: 6px; }
.site-footer { min-height: 220px; background: var(--ink); color: #fff; padding: 52px max(32px, calc((100vw - 1220px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 32px; }
.brand.inverse { color: #fff; }
.site-footer p { margin: 0; }
.footer-note { justify-self: end; color: #888; font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
  .shell { width: min(100% - 40px, 720px); }
  .site-header { padding-inline: 20px; grid-template-columns: 1fr 1fr; }
  .site-header > p { display: none; }
  .hero { min-height: 620px; padding-block: 90px 68px; }
  .hero h1 { font-size: clamp(4rem, 13vw, 7rem); }
  .hero-copy, .section-intro, .data-note { grid-template-columns: 1fr; gap: 34px; }
  .primary-link { justify-self: start; }
  .proof-rail { grid-template-columns: repeat(2, 1fr); padding-inline: 20px; }
  .proof-rail div { border-bottom: 1px solid var(--dark-line); }
  .demo-section { padding-block: 96px; }
  .flow-grid { grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; }
  .flow-node { scroll-snap-align: start; }
  .flow-connector { display: none; }
  .technical-grid { grid-template-columns: 1fr; }
  .split-demo { grid-template-columns: 1fr; }
  .return-steps { grid-template-columns: 1fr; }
  .return-steps li, .return-steps li + li { padding: 22px 0; border-left: 0; }
  .return-steps b { margin-top: 12px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-note { justify-self: start; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 28px); }
  .site-header { min-height: 70px; padding-inline: 14px; }
  .return-link { font-size: .82rem; }
  .hero { min-height: 570px; padding-block: 72px 52px; }
  .hero h1 { margin-block: 26px 48px; font-size: clamp(3.3rem, 17vw, 5rem); }
  .hero-copy p { font-size: 1.16rem; }
  .proof-rail { padding-inline: 0; }
  .proof-rail div { min-height: 125px; padding: 20px; }
  .proof-rail div:first-child { border-left: 0; }
  .proof-rail div:nth-child(2n) { border-right: 0; }
  .section-intro h2, .data-note h2 { font-size: 2.8rem; }
  .system-panel, .evidence-card { padding: 24px; }
  .pulse-screen { padding: 24px; border-width: 8px; }
  .pulse-row { grid-template-columns: .8fr .7fr .7fr; gap: 12px; }
  .pulse-row strong { font-size: .96rem; }
  .pulse-screen .control-row { align-items: flex-start; }
  .data-note { padding-block: 100px; }
  .site-footer { padding: 38px 20px; min-height: 240px; }
}

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