:root {
  --ink: #ffffff;
  --muted: #c4d2dc;
  --bg: #0d1b2a;
  --panel: #15293b;
  --line: #2c465c;
  --cyan: #55c9ef;
  --mint: #74dfbd;
  --coral: #ff766f;
  --paper: #f1f4ef;
  --paper-ink: #101d26;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #0d1b2a 0%, #0b1826 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
button, code { font: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 10px; font: 700 17px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.04em; }
.mark { width: 19px; height: 19px; display: inline-block; border: 2px solid var(--cyan); border-radius: 5px; box-shadow: inset 6px 0 0 transparent, inset 9px 0 0 var(--coral); }
.nav nav { display: flex; gap: 30px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover, footer a:hover { color: var(--ink); }
.hero { padding: 82px 0 96px; position: relative; }
.hero::after { content: ""; position: absolute; width: 490px; height: 490px; border-radius: 50%; right: -130px; top: 36px; background: radial-gradient(circle, rgba(85,201,239,.1), transparent 67%); pointer-events: none; }
.eyebrow { color: #91e8cb; text-transform: uppercase; letter-spacing: .12em; font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; display: flex; gap: 9px; align-items: center; }
.eyebrow span { width: 18px; height: 1px; background: currentColor; }
h1 { font-size: clamp(54px, 7.2vw, 94px); line-height: .94; letter-spacing: -.07em; margin: 25px 0 28px; max-width: 980px; }
h1 em { color: var(--cyan); font-style: normal; }
.lede { max-width: 700px; color: #e0e9ef; font-size: 20px; font-weight: 500; line-height: 1.6; }
.lede strong { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.proof-card { position: relative; z-index: 1; max-width: 820px; margin-top: 38px; border: 1px solid #38566e; border-radius: 10px; background: #091725; box-shadow: 0 26px 70px rgba(0,0,0,.2); overflow: hidden; }
.proof-title { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #12273a; }
.proof-title div { min-width: 0; }
.proof-title span { display: block; margin-bottom: 5px; color: #93a8b7; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .11em; }
.proof-title strong { display: block; overflow: hidden; color: #ecf5fa; font: 650 12px/1.3 ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.proof-row { display: grid; grid-template-columns: 1fr 100px 70px; gap: 18px; align-items: center; padding: 15px 22px; border-bottom: 1px solid #20384c; font: 650 13px/1.2 ui-monospace, monospace; }
.proof-row span { color: #d9e5ec; }
.proof-row code { color: #d9e5ec; }
.proof-row strong { color: var(--coral); font-size: 11px; letter-spacing: .1em; }
.proof-row strong.pass { color: var(--mint); }
.proof-row.failed { background: rgba(255,118,111,.07); }
.proof-row.failed code { color: var(--coral); font-size: 17px; }
.proof-card > p { margin: 0; padding: 14px 22px; color: #aebfcb; font: 600 11px/1.3 ui-monospace, monospace; }
.definition { max-width: 800px; margin: 28px 0 0; color: #d7e3ea; font-size: 17px; line-height: 1.6; }
.definition strong { color: var(--cyan); }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.install-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 100%; min-width: 0; }
.install { display: flex; align-items: center; gap: 18px; max-width: 100%; border: 1px solid #38566e; padding: 7px 8px 7px 18px; border-radius: 8px; background: rgba(22,43,61,.9); }
.install code { min-width: 0; overflow-x: auto; color: #edf5fa; font-size: 14px; white-space: nowrap; }
.copy { flex: 0 0 auto; border: 0; background: #23425b; color: #83dcfa; padding: 9px 13px; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; }
.copy:hover { background: #2e526d; }
.text-link { color: #d8e4eb; font-size: 15px; font-weight: 600; }
.text-link span { color: var(--cyan); }
.lab-wrap { background: var(--paper); color: var(--paper-ink); padding: 110px 0; }
.lab-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.section-copy h2, .mask-copy h2, .compact h2, .cli-grid h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.055em; margin: 22px 0; }
.section-copy p, .mask-copy p { color: #52616a; line-height: 1.65; font-size: 17px; }
.runtime-toggle, .length-toggle { display: inline-flex; border: 1px solid #bdc7c8; border-radius: 7px; padding: 4px; margin-top: 20px; }
.runtime-toggle button, .length-toggle button { border: 0; background: transparent; padding: 10px 14px; border-radius: 4px; cursor: pointer; color: #637077; font-size: 13px; font-weight: 700; }
.runtime-toggle button.active, .length-toggle button.active { background: var(--paper-ink); color: white; }
.runtime-card { background: #102235; color: var(--ink); border-radius: 14px; padding: 12px; box-shadow: 0 30px 70px rgba(5,18,26,.2); }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #14283a; border-radius: 8px; padding: 4px; }
.mode-tabs button { border: 0; background: transparent; color: #bfd0dc; padding: 12px 8px; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 700; }
.mode-tabs button[aria-selected="true"] { background: #254159; color: #87defb; }
.request-viz { min-height: 285px; margin: 8px 0; padding: 34px 25px 20px; position: relative; display: grid; grid-template-columns: 1fr 70px; align-items: center; gap: 16px; overflow: hidden; }
.request-viz::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(87,130,161,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(87,130,161,.07) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent); }
.request-label { position: absolute; top: 18px; left: 25px; color: #c0d0dc; text-transform: uppercase; letter-spacing: .1em; font: 700 10px/1 ui-monospace, monospace; }
.lanes { display: grid; gap: 18px; position: relative; z-index: 1; }
.lane { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; }
.lane i, .lane b { height: 2px; display: block; background: var(--cyan); position: relative; }
.lane i::before { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); left: 0; top: -2px; box-shadow: 20px 0 var(--cyan), 40px 0 var(--cyan), 60px 0 var(--cyan); animation: flow 1.6s linear infinite; }
.lane span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #3d7594; border-radius: 50%; color: var(--cyan); font: 700 10px/1 ui-monospace, monospace; justify-self: center; background: var(--bg); }
.runtime-node { height: 148px; border: 2px solid var(--cyan); border-radius: 13px; display: grid; place-items: center; position: relative; z-index: 1; color: var(--cyan); font: 700 12px/1 ui-monospace, monospace; }
.runtime-card.corrupt .lane:nth-child(even) b { background: var(--coral); transform: rotate(7deg); transform-origin: left; }
.runtime-card.corrupt .lane:nth-child(even) span { border-color: var(--coral); color: var(--coral); }
.runtime-card.isolated .lane:not(:first-child) { opacity: .12; }
.runtime-card.list .lanes { gap: 5px; padding: 14px 0; border: 1px solid #20384c; }
@keyframes flow { from { transform: translateX(0); opacity: .15; } 50% { opacity: 1; } to { transform: translateX(80px); opacity: .15; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; } }
.metric-row { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.metric-row div { padding: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.metric-row div:first-child { border-right: 1px solid var(--line); }
.metric-row span { color: #cad7e0; font-size: 12px; font-weight: 600; }
.metric-row strong { font: 700 21px/1 ui-monospace, monospace; }
.result-pass { color: var(--mint); }
.result-fail { color: var(--coral); }
.result-note { min-height: 50px; margin: 0; padding: 14px 22px 8px; color: #d3dfe7; font-size: 13px; font-weight: 500; line-height: 1.55; }
.mask-section { padding: 120px 0; }
.mask-card { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mask-copy p { color: #c9d7e1; font-weight: 500; }
.length-toggle { border-color: var(--line); }
.length-toggle button { color: var(--muted); }
.length-toggle button.active { background: var(--cyan); color: var(--bg); }
.token-demo { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--panel); }
.token-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 10px; }
.token-row span { min-width: 0; text-align: center; padding: 12px 5px; border: 1px solid #3d5b73; border-radius: 5px; color: #e0e9ef; font: 600 11px/1 ui-monospace, monospace; overflow: hidden; }
.token-row span.pad { color: #5c6b77; border-style: dashed; }
.mask-status { margin-top: 26px; border-top: 1px solid var(--line); }
.mask-status div { display: flex; justify-content: space-between; padding: 17px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mask-status span { color: #d1dde5; font-weight: 600; }
.mask-status strong { color: var(--mint); }
.mask-status strong.danger { color: var(--coral); }
.evidence { padding: 105px 0 120px; }
.compact { max-width: 760px; }
.compact p { max-width: 660px; }
.evidence-table { margin-top: 52px; border-top: 1px solid var(--line); }
.table-row { display: grid; grid-template-columns: 1.4fr .8fr .8fr; border-bottom: 1px solid var(--line); }
.table-row > * { padding: 23px 18px; border-right: 1px solid var(--line); }
.table-row > *:last-child { border: 0; }
.table-row span { color: #d4e0e8; font-size: 15px; font-weight: 550; }
.table-row strong { font: 700 15px/1 ui-monospace, monospace; color: var(--mint); }
.table-head span { color: #b9cbd8; font: 700 11px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .08em; }
.table-row.critical { background: rgba(255,118,111,.045); }
.table-row.critical strong:nth-child(2) { color: var(--coral); }
.evidence-links { display: flex; gap: 28px; margin-top: 26px; color: #82ddfb; font-size: 14px; font-weight: 650; }
.cli-section { background: #112438; border-block: 1px solid var(--line); padding: 100px 0; }
.cli-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: center; }
.terminal { background: #0a1723; border: 1px solid #395369; border-radius: 10px; overflow: hidden; box-shadow: 0 25px 60px rgba(0,0,0,.2); }
.terminal-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 13px; background: #15283a; border-bottom: 1px solid #30495e; }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #34495b; }
.terminal-bar span { margin-left: auto; margin-right: auto; color: #536779; font: 500 9px/1 ui-monospace, monospace; }
.terminal pre { margin: 0; padding: 26px; overflow-x: auto; color: #e6eef3; font: 600 13px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal .prompt { color: var(--cyan); }
.terminal mark { color: var(--coral); background: transparent; }
.workload-section { padding: 110px 0 125px; }
.workload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.workload-grid article { min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.workload-grid article > span { color: #c0d0da; font-size: 14px; font-weight: 650; }
.workload-grid article > strong { display: block; margin: 18px 0 12px; color: var(--mint); font: 750 48px/1 ui-monospace, monospace; }
.workload-grid article p { max-width: 420px; color: #cad7e0; line-height: 1.6; }
.workload-grid article.changed { background: rgba(255,118,111,.055); }
.workload-grid article.changed > strong { color: var(--coral); }
.workload-command { grid-column: 1 / -1; padding: 20px 24px; border: 1px solid #38566e; border-radius: 8px; background: #091725; overflow-x: auto; }
.workload-command code { color: #dce9f0; font: 600 13px/1.6 ui-monospace, monospace; white-space: nowrap; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; color: #c6d4de; font-size: 13px; font-weight: 550; }
footer > div:last-child { display: flex; gap: 22px; }

@media (max-width: 850px) {
  .nav nav a:not(:last-child) { display: none; }
  .hero { padding-top: 75px; }
  .lab-grid, .mask-card, .cli-grid { grid-template-columns: 1fr; gap: 50px; }
  .evidence-links { flex-direction: column; gap: 13px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1160px); }
  h1 { font-size: 54px; }
  .lede { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .install-options { width: 100%; }
  .install { gap: 10px; padding-left: 12px; }
  .proof-title { grid-template-columns: 1fr; gap: 13px; }
  .proof-row { grid-template-columns: 1fr 76px 44px; gap: 8px; padding-inline: 14px; font-size: 11px; }
  .proof-card > p { padding-inline: 14px; }
  .runtime-card { margin-inline: -4px; }
  .request-viz { min-height: 240px; padding-inline: 12px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-row div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .token-demo { padding: 16px; }
  .token-row { grid-template-columns: repeat(2, 1fr); }
  .table-row { grid-template-columns: 1.2fr .9fr .9fr; }
  .table-row > * { padding: 16px 8px; font-size: 10px; }
  .workload-grid { grid-template-columns: 1fr; }
  .workload-command { grid-column: auto; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 15px; }
}
