:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0a0a0a;
  --text: #f0f0ec;
  --soft: #aeaea8;
  --muted: #999995;
  --line: rgba(240, 240, 236, 0.14);
  --strong: rgba(240, 240, 236, 0.3);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; color: var(--bg); background: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 72px; padding-inline: max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: rgba(5,5,5,.94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; }
.brand svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.brand svg circle { fill: currentColor; stroke: none; }
nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font: 14px var(--mono); }
nav a:hover { color: var(--text); }
.source-link { padding: 8px 13px; border: 1px solid var(--strong); color: var(--text); }
.menu-toggle { display: none; border: 0; color: var(--text); background: none; font: 600 14px var(--sans); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 660px; gap: clamp(40px,6vw,80px); padding-block: 96px; }
.kicker { margin: 0 0 24px; color: var(--muted); font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--sans); font-weight: 650; letter-spacing: -.065em; }
h1 { margin-bottom: 28px; font-size: clamp(54px,6.3vw,88px); line-height: 1; }
h2 { max-width: 1000px; margin-bottom: 36px; font-size: clamp(38px,4.4vw,60px); line-height: 1.06; }
.thesis { max-width: 650px; margin-bottom: 8px; font-size: clamp(20px,2vw,27px); letter-spacing: -.025em; }
.lede { margin-bottom: 30px; color: var(--soft); font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 21px; border: 1px solid var(--strong); font-size: 14px; font-weight: 680; transition: background 150ms ease, transform 150ms ease; }
.button:hover { transform: translateY(-2px); background: rgba(255,255,255,.05); }
.button.primary { color: var(--bg); border-color: var(--text); background: var(--text); }
.fineprint, .plain-note { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 14px; }

.installer { min-width: 0; border: 1px solid var(--strong); background: var(--surface); }
.install-tabs { display: flex; border-bottom: 1px solid var(--line); }
.install-tabs button { flex: 1; min-height: 50px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: transparent; font: 500 14px var(--mono); cursor: pointer; }
.install-tabs button:last-child { border-right: 0; }
.install-tabs button[aria-selected="true"] { color: var(--text); background: rgba(255,255,255,.04); }
.install-panel { min-height: 170px; padding: clamp(22px,2.6vw,32px); }
.install-panel > p { color: var(--muted); font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.install-panel > small { display: block; max-width: 440px; color: var(--muted); }
.install-command { position: relative; margin: 20px 0 30px; padding-right: 76px; }
.install-command pre { overflow-x: auto; margin: 0; color: var(--text); font: 15px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.install-command button, .run-command button, .audit-prompt button { min-width: 60px; min-height: 44px; padding: 7px 11px; border: 1px solid var(--strong); color: var(--text); background: transparent; font: 500 14px var(--mono); text-transform: uppercase; cursor: pointer; }
.install-command button { position: absolute; top: -9px; right: 0; }

.metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); width: 100%; margin-top: 24px; border-block: 1px solid var(--line); }
.metrics div { display: flex; align-items: center; gap: 22px; min-height: 122px; padding: 24px 34px; border-right: 1px solid var(--line); }
.metrics div:first-child { padding-left: 0; }
.metrics div:last-child { border-right: 0; }
.metrics strong { font: 400 clamp(32px,3vw,46px)/1 var(--serif); letter-spacing: -.04em; }
.metrics span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.section { padding-block: 88px; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.section-copy { max-width: 700px; margin: 0; color: var(--soft); font-size: 18px; line-height: 1.65; }
.two-lines { display: grid; grid-template-columns: 1fr 1fr; width: 75%; margin: 72px 0 0 auto; border-block: 1px solid var(--line); }
.two-lines p { display: flex; flex-direction: column; min-height: 180px; justify-content: space-between; margin: 0; padding: 28px 34px; border-right: 1px solid var(--line); }
.two-lines p:last-child { border: 0; }
.two-lines strong { font: 400 36px var(--serif); }
.two-lines span { color: var(--muted); }
.choice-list { margin-top: 74px; border-top: 1px solid var(--line); }
.choice-list article { display: grid; grid-template-columns: 70px 1fr 1fr 1.3fr; align-items: baseline; gap: 24px; padding: 31px 0; border-bottom: 1px solid var(--line); }
.choice-list .featured { background: linear-gradient(90deg,rgba(255,255,255,.035),transparent 85%); }
.choice-list article > span { color: var(--muted); font: 10px var(--mono); }
.choice-list h3 { margin: 0; font-size: 20px; }
.choice-list strong { font-size: 16px; font-weight: 620; }
.choice-list p { margin: 0; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3,1fr); margin: 40px 0 0; padding: 0; list-style: none; }
.steps li { min-height: 180px; padding: 20px 32px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border: 0; }
.steps li > span { display: block; margin-bottom: 24px; color: var(--muted); font: 12px var(--mono); }
.steps h3 { margin-bottom: 14px; font-size: 21px; }
.steps p { color: var(--muted); font-size: 16px; }
.protocol-note { max-width: 760px; margin: 32px 0 0 auto; color: var(--soft); }
.quiet-details { margin-top: 24px; border-top: 1px solid var(--line); }
.quiet-details summary, .audit-box > summary { padding: 24px 0; color: var(--soft); font-weight: 620; cursor: pointer; }
.quiet-details dl { margin: 0; border-bottom: 1px solid var(--line); }
.quiet-details dl div { display: grid; grid-template-columns: 180px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.quiet-details dt { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.quiet-details dd { margin: 0; }

.demo-frame { overflow: hidden; border: 1px solid var(--strong); background: #000; }
.demo-frame video { display: block; width: 100%; height: auto; }
.speed-block { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; padding: 70px 0 14px; }
.speed-block > strong { font-size: clamp(58px,9vw,120px); line-height: .8; letter-spacing: -.075em; white-space: nowrap; }
.speed-block p { display: grid; gap: 12px; margin: 0; }
.speed-block p b { font-size: 20px; }
.speed-block p span { color: var(--muted); }

.run-command { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 30px; border-block: 1px solid var(--strong); }
.run-command code { font: clamp(21px,3vw,36px) var(--mono); letter-spacing: -.04em; }
.run-notes { display: grid; grid-template-columns: 1fr 1fr; margin: 45px 0; }
.run-notes p { display: grid; gap: 12px; margin: 0; padding-right: 60px; }
.run-notes p + p { padding-left: 60px; border-left: 1px solid var(--line); }
.run-notes span { color: var(--muted); }
.text-link { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid var(--strong); font-weight: 620; }

.audit-box { margin-top: 64px; border-block: 1px solid var(--strong); }
.audit-body { padding: 18px 0 48px; }
.audit-body > p { max-width: 720px; color: var(--muted); }
.audit-body pre { overflow-x: auto; margin: 0; padding: 28px; border: 1px solid var(--line); color: var(--soft); background: var(--surface); font: 12px/1.7 var(--mono); white-space: pre-wrap; }
.audit-prompt { margin-top: 44px; padding-top: 38px; border-top: 1px solid var(--line); }
.audit-prompt > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.audit-prompt h3 { margin: 0; font-size: 24px; }
.audit-prompt p { color: var(--muted); }
.audit-prompt pre { max-height: 250px; font-size: 11px; }

.safety { margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.safety li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.safety li > span { color: var(--muted); font: 10px var(--mono); }
.safety li p { margin: 0; color: var(--muted); }
.safety li strong { color: var(--text); }
footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 50px; padding-block: 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p { margin: 0; text-align: center; }
footer div { display: flex; gap: 18px; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 90px; }
  .installer { max-width: 650px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { min-height: 95px; padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border: 0; }
  .two-lines { width: 100%; }
  .choice-list article { grid-template-columns: 48px 1fr 1fr; }
  .choice-list p { grid-column: 2 / -1; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border: 0; }
  .steps li > span { margin-bottom: 32px; }
  .speed-block { grid-template-columns: 1fr; gap: 34px; }
  footer { grid-template-columns: 1fr; gap: 18px; }
  footer p { text-align: left; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px,var(--max)); }
  .topbar { height: 64px; padding-inline: 16px; }
  .menu-toggle { display: block; min-width: 44px; min-height: 44px; }
  nav { position: absolute; top: 64px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg); }
  nav.open { display: flex; }
  nav a { padding: 13px 0; }
  .source-link { border: 0; }
  .hero { padding-block: 70px; }
  h1 { font-size: clamp(44px,12vw,76px); }
  h2 { margin-bottom: 36px; font-size: clamp(42px,13vw,62px); }
  .section { padding-block: 88px; scroll-margin-top: 64px; }
  .install-panel { min-height: 170px; }
  .install-command { padding-right: 0; }
  .install-command button { position: static; margin-top: 20px; }
  .metrics { width: calc(100% - 32px); }
  .two-lines { grid-template-columns: 1fr; }
  .two-lines p { min-height: 135px; padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .two-lines p:last-child { border-bottom: 0; }
  .run-notes { grid-template-columns: 1fr; gap: 20px; }
  .choice-list article { grid-template-columns: 36px 1fr; gap: 14px; }
  .choice-list strong, .choice-list p { grid-column: 2; }
  .section-copy { margin-left: 0; }
  .quiet-details dl div { grid-template-columns: 1fr; gap: 8px; }
  .run-command { padding-inline: 0; }
  .run-command code { font-size: 18px; }
  .run-notes p { padding: 0; }
  .run-notes p + p { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .audit-prompt > div { align-items: flex-start; flex-direction: column; }
  .safety li { grid-template-columns: 34px 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { .topbar, .actions, button, video { display: none !important; } body { color: #111; background: #fff; } .section, .metrics, footer { border-color: #bbb; } }

.variant-switch { display: flex; gap: 4px; margin-inline: 18px auto; }
.variant-switch button { width: 44px; min-height: 44px; border: 0; color: var(--muted); background: none; font: 14px var(--mono); cursor: pointer; }
.variant-switch button[aria-pressed="true"] { color: var(--bg); background: var(--text); }
[data-copy-key] { white-space: pre-line; }
body[data-variant="b"] h1, body[data-variant="b"] h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
body[data-variant="c"] h1 { font-family: var(--mono); font-size: clamp(40px,5vw,70px); letter-spacing: -.065em; }
@media (max-width: 420px) { .variant-switch { gap: 0; margin-inline: 8px auto; } .variant-switch button { width: 36px; } .brand { gap: 6px; font-size: 14px; } }
