/* ============================================================
   Fake Fullscreen — landing
   Swiss / tech-poster system: paper, ink, one acid accent.
   ============================================================ */
:root {
  --paper: #ffffff;
  --paper-2: #efefec;
  --paper-3: #e3e3df;
  --ink: #0c0c0e;
  --ink-2: #3a3a40;
  --ink-3: #75757d;
  --acid: #c8ec2c;
  --acid-deep: #a9cc12;
  --line: #d9d9d4;
  --on-acid: #0c0c0e;
  --inv-bg: #0c0c0e;
  --inv-bg-2: #1b1b20;
  --inv-fg: #ffffff;
  --inv-mute: #9a9aa3;
  --inv-soft: #cfcfd6;
  --inv-line: #2b2b31;
  --header-bg: rgba(255,255,255,.92);
  --code-bg: rgba(12,12,14,.07);
  color-scheme: light;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --rail: 210px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; }
code { font-family: var(--mono); font-size: .86em; background: var(--code-bg); padding: .05em .35em; }
kbd {
  font-family: var(--mono); font-size: .78em; font-weight: 500;
  display: inline-block; padding: .1em .45em; line-height: 1.3;
  border: 1.5px solid currentColor; border-bottom-width: 3px;
  vertical-align: .08em;
}
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--acid); color: var(--on-acid); }

/* ---------- patterns ---------- */
.checker-col, .shot-checker {
  --c: var(--acid-deep);
  background:
    conic-gradient(var(--c) 25%, transparent 0 50%, var(--c) 0 75%, transparent 0)
    0 0 / 16px 16px;
}
.stripes {
  height: 46px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, transparent 12px 24px);
}
.dots {
  height: 70px;
  background: radial-gradient(circle, var(--ink) 2.4px, transparent 2.8px) 0 0 / 26px 26px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  padding: 14px 20px; border: 2px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn-acid { background: var(--acid); color: var(--on-acid); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 3px 3px 0 var(--acid-deep); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 10px 14px; font-size: 12px; }

/* ============ HEADER ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; background: var(--acid);
  position: relative; flex: none;
}
.brand-mark span {
  position: absolute; width: 15px; height: 15px; background: var(--on-acid);
}
.brand-mark span:first-child { left: 7px; top: 7px; border-radius: 15px 0 0 0; }
.brand-mark span:last-child { right: 7px; bottom: 7px; border-radius: 0 0 15px 0; }
.brand-name {
  font-weight: 800; font-size: 17px; line-height: .92;
  font-variation-settings: "wdth" 88; letter-spacing: -.02em;
}
.top-nav { display: flex; gap: 22px; margin-left: auto; font-size: 12px; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ============ HERO ============ */
.hero {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1.25fr);
  grid-template-rows: auto auto;
  column-gap: 0;
  padding: 0 var(--gutter) 64px 0;
  position: relative;
}
.hero-rail {
  grid-column: 1; grid-row: 1 / 3;
  position: relative; overflow: hidden;
  padding: 40px 0 0 var(--gutter);
  min-height: 100%;
}
.rail-meta { font-size: 12px; display: grid; gap: 14px; color: var(--ink-2); }
.rail-words {
  position: absolute; left: var(--gutter); bottom: 0; top: 150px;
  display: flex; gap: 0;
}
.rail-words span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 900; font-size: 132px; line-height: .78;
  font-variation-settings: "wdth" 112; letter-spacing: -.03em;
  white-space: nowrap;
}
.rail-ink { color: var(--ink); }
.rail-acid { color: var(--acid); }

.hero-main {
  grid-column: 2 / 4; grid-row: 1;
  padding: 56px 0 56px 32px;
}
.kicker { font-size: 12px; color: var(--ink-2); margin-bottom: 18px; }
.hero-title-wrap { position: relative; display: inline-block; }
.hero-title {
  font-weight: 900;
  font-size: clamp(60px, 10.4vw, 182px);
  line-height: .8;
  letter-spacing: -.045em;
  font-variation-settings: "wdth" 96;
}
.glyph-cut { color: var(--acid); -webkit-text-stroke: 3px var(--on-acid); paint-order: stroke fill; }
.quarter-mark {
  position: absolute; right: -14%; top: -4px;
  width: clamp(60px, 8vw, 130px); aspect-ratio: 1;
}
.quarter-mark i { position: absolute; width: 50%; height: 50%; background: var(--ink); }
.quarter-mark i:first-child { left: 0; top: 0; border-radius: 100% 0 0 0; }
.quarter-mark i:last-child { right: 0; bottom: 0; border-radius: 0 0 100% 0; }
.hero-sub {
  margin-top: 28px;
  font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; line-height: 1.02;
  letter-spacing: -.01em; font-variation-settings: "wdth" 92;
}
.hero-body { margin-top: 18px; max-width: 440px; font-size: 16px; color: var(--ink-2); }
.hero-body b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.spec-card {
  grid-column: 2; grid-row: 2;
  position: relative;
  background: var(--acid);
  padding: 44px 32px 32px;
  margin-right: -60px;
  z-index: 1;
  min-height: 560px;
  display: flex; flex-direction: column;
}
.checker-col { position: absolute; top: 0; right: -16px; width: 16px; height: 300px; --c: var(--acid); }
.spec-id {
  font-weight: 900; font-size: clamp(54px, 6vw, 96px);
  line-height: .85; letter-spacing: -.05em; font-variation-settings: "wdth" 92;
}
.spec-name { margin-top: 10px; font-weight: 800; font-size: 22px; text-align: right; padding-right: 64px; }
.spec-ico { width: 78px; margin: 34px 0 28px; fill: none; stroke: var(--on-acid); stroke-width: 2.4; }
.spec-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.35; display: grid; gap: 10px; max-width: 280px; }
.barcode { margin-top: auto; height: 52px; width: 200px; display: flex; align-items: stretch; gap: 0; padding-top: 28px; box-sizing: content-box; }
.barcode i { background: var(--on-acid); display: block; }
.barcode-label { display: flex; justify-content: space-between; width: 200px; font-size: 11px; margin-top: 4px; }

.hero-shot {
  grid-column: 3; grid-row: 2;
  margin: 120px 0 0;
  position: relative; z-index: 2;
  background: var(--paper-2);
  padding: 14px;
  align-self: start;
}
.hero-shot img { box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.shot-checker { position: absolute; top: -40px; right: 40px; width: 112px; height: 80px; --c: var(--acid); opacity: .9; }
.hero-shot figcaption { padding: 18px 6px 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.hero-shot figcaption span { font-size: 11px; font-weight: 400; letter-spacing: .02em; }

/* ============ MARQUEE ============ */
.marquee { background: var(--inv-bg); color: var(--inv-fg); overflow: hidden; border-block: 2px solid var(--inv-bg); }
.marquee-track {
  display: flex; gap: 28px; align-items: center; width: max-content;
  padding: 16px 0; font-size: 14px; font-weight: 700;
  animation: scroll 36s linear infinite;
}
.marquee-track i { font-style: normal; color: var(--acid); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ SECTION HEADS ============ */
section { scroll-margin-top: 80px; }
.sec-head { padding: 96px var(--gutter) 40px; max-width: 1100px; }
.sec-head-split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; }
.sec-num { font-size: 12px; color: var(--ink-2); margin-bottom: 14px; }
.sec-title {
  font-weight: 900; font-size: clamp(46px, 7.4vw, 124px);
  line-height: .84; letter-spacing: -.045em; font-variation-settings: "wdth" 96;
}
.kbd-big {
  font-size: .8em; font-weight: 700; padding: 0 .18em; line-height: 1;
  border-width: 6px; border-bottom-width: 16px; background: var(--acid);
  vertical-align: .02em; letter-spacing: 0;
}
.sec-lede { margin-top: 22px; max-width: 560px; font-size: 17px; color: var(--ink-2); }
.sec-lede b { color: var(--ink); }
.sec-head-split .sec-lede { margin-top: 0; }

/* ============ DEMO ============ */
.demo-sec { background: var(--paper); }
.demo-frame { margin: 0 var(--gutter); border: 2px solid var(--ink); background: var(--paper-2); }
.demo-status {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; font-size: 11.5px; border-bottom: 2px solid var(--ink); background: var(--paper);
}
.demo-status .dot { width: 9px; height: 9px; background: var(--ink-3); transition: background .2s; }
.demo-frame.is-theater .demo-status .dot { background: var(--acid-deep); box-shadow: 0 0 0 3px var(--ink); }
.demo-status-r { margin-left: auto; color: var(--ink-3); }

.demo-window {
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px;
  padding: 6px; height: clamp(380px, 46vw, 560px);
  background: #1d1d22;
}
.pane { display: flex; flex-direction: column; min-width: 0; border-radius: 6px; overflow: hidden; background: #2a2a31; }
.pane-url { font-size: 11px; color: #b9b9c4; padding: 7px 10px; }
.pane-url::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #55555f; margin-right: 8px; vertical-align: 1px; }
.pane-body { flex: 1; position: relative; overflow: hidden; background: #fafaf7; padding: 22px 20px; font-family: system-ui, sans-serif; font-size: 13px; color: #222; }
.ph { height: 8px; background: #dcdcd6; margin: 8px 0; border-radius: 2px; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w90 { width: 90%; }
.ph-code { height: 70px; background: #ecebe5; margin-top: 18px; border-radius: 4px; }
.page-doc h4 { font-size: 20px; margin-bottom: 2px; }
.page-doc h5 { font-size: 14px; margin: 20px 0 6px; }
.page-doc .muted { font-size: 12px; margin-bottom: 14px; }
.page-chat { background: #f2f3f7; }
.chat-h { font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid #dcdde5; margin-bottom: 14px; }
.bubble { background: #fff; padding: 9px 12px; border-radius: 12px; margin: 8px 0; max-width: 85%; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bubble.me { margin-left: auto; background: #111114; color: #fff; }

.page-watch { padding: 0; background: #f6f6f3; }
.site-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e4e4de; }
.site-logo { font-weight: 800; font-size: 15px; letter-spacing: -.02em; }
.site-search { flex: 1; height: 22px; background: #efefea; border-radius: 11px; }
.site-av { width: 22px; height: 22px; border-radius: 50%; background: #d1d1ca; }
.player {
  position: relative; margin: 14px; aspect-ratio: 16 / 9;
  background: #000; overflow: hidden; border-radius: 4px; outline: none;
  cursor: pointer;
}
.player:focus-visible { box-shadow: 0 0 0 3px var(--acid); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.page-watch.theater .player { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; z-index: 5; }
.page-watch.theater .scene { inset: 0; height: 100%; }
.sun { transition: transform 1s linear; }
.player.playing .sun { animation: sunset 40s linear infinite; }
@keyframes sunset { 0% { transform: translateY(0); } 50% { transform: translateY(8px); } 100% { transform: translateY(0); } }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 12px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  opacity: 0; transition: opacity .2s;
}
.player:hover .controls, .player:focus-within .controls, .player:not(.playing) .controls { opacity: 1; }
.seek { height: 4px; background: rgba(255,255,255,.3); position: relative; cursor: pointer; }
.seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--acid); }
.seek-fill::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; background: var(--acid); border-radius: 50%; }
.ctrl-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ctrl-row button { background: none; border: 0; color: #fff; font-size: 14px; cursor: pointer; padding: 2px 4px; }
.time { font-size: 11px; }
.fs-btn { margin-left: auto; }
.fs-btn svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 1.8; display: block; }

.float-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--acid); color: var(--on-acid); border: 2px solid var(--on-acid);
  font-size: 11px; font-weight: 700; padding: 6px 10px; cursor: pointer;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
.player:hover .float-btn, .player:focus-within .float-btn { opacity: 1; transform: none; }
.page-watch.theater .float-btn { display: none; }
.exit-btn {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 12px;
  cursor: pointer; display: none;
}
.page-watch.theater .exit-btn { display: block; opacity: 0; transition: opacity .2s; }
.page-watch.theater .player:hover .exit-btn { opacity: 1; }

.watch-meta { padding: 0 14px; }
.watch-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comments { margin-top: 18px; display: grid; gap: 10px; }
.cm { display: flex; gap: 10px; align-items: center; }
.cm span { width: 24px; height: 24px; border-radius: 50%; background: #dcdcd6; flex: none; }
.cm .ph { flex: 1; margin: 0; }

.demo-foot {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding: 12px 14px; font-size: 11.5px; border-top: 2px solid var(--ink); background: var(--paper);
}
.demo-keys kbd { margin: 0 4px 0 10px; }

/* ============ FEATURES ============ */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0 var(--gutter); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink);
}
.feat {
  padding: 26px 26px 34px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  position: relative; min-height: 300px; display: flex; flex-direction: column;
  transition: background .2s;
}
.feat:hover { background: var(--paper-2); }
.feat-id { font-size: 11px; color: var(--ink-3); }
.feat-ico { width: 56px; height: 56px; margin: 30px 0 auto; fill: none; stroke: currentColor; stroke-width: 2.4; }
.feat-ico .fill { fill: currentColor; stroke: none; }
.feat h3 { margin-top: 34px; font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.025em; font-variation-settings: "wdth" 92; }
.feat p:last-child { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.feat-acid { background: var(--acid); }
.feat-acid:hover { background: var(--acid-deep); }
.feat-acid, .feat-acid .feat-id, .feat-acid p:last-child { color: var(--on-acid); }
.feat-ink { background: var(--inv-bg); color: var(--inv-fg); }
.feat-ink:hover { background: var(--inv-bg-2); }
.feat-ink .feat-id { color: var(--inv-mute); }
.feat-ink p:last-child { color: var(--inv-soft); }
.feat-ink .feat-ico { stroke: var(--acid); }
.feat-ink .feat-ico .fill { fill: var(--acid); }

/* ============ NULL BLOCK ============ */
.null-sec {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: end;
  padding: 110px var(--gutter) 90px;
}
.null-left { display: grid; gap: 22px; }
.null-left .stripes { max-width: 300px; }
.null-num { text-align: right; }
.big-num {
  font-weight: 900; font-size: clamp(110px, 17vw, 280px); line-height: .78;
  letter-spacing: -.06em; font-variation-settings: "wdth" 110;
}
.big-cap { font-size: clamp(30px, 4vw, 64px); font-weight: 500; letter-spacing: -.03em; line-height: 1; margin-top: 10px; font-variation-settings: "wdth" 90; }
.null-right { display: grid; gap: 28px; font-size: 15px; color: var(--ink-2); max-width: 320px; }

/* ============ USAGE ============ */
.usage-sec { background: var(--paper-2); padding: 96px var(--gutter); position: relative; }
.usage-sec::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: conic-gradient(var(--acid) 25%, transparent 0 50%, var(--acid) 0 75%, transparent 0) 0 0 / 14px 14px;
}
.usage-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.panel-shot { margin: 40px 0 0; border: 2px solid var(--ink); background: var(--ink); }
.panel-shot figcaption { color: var(--paper); font-size: 11px; padding: 10px 12px; }
.usage-table { border-top: 2px solid var(--ink); }
.u-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--ink-3); }
.u-key { font-size: 13px; font-weight: 700; padding-top: 3px; }
.u-val { display: grid; gap: 8px; font-size: 17px; }
.u-val kbd { background: var(--paper); }

/* ============ INSTALL / RADIAL ============ */
.install-sec {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center;
  padding: 100px var(--gutter); overflow: hidden;
}
.install-cards { display: grid; gap: 12px; margin-top: 34px; max-width: 560px; }
.i-card {
  position: relative; display: grid; gap: 2px; text-decoration: none;
  padding: 20px 64px 20px 22px; border: 2px solid var(--ink); background: var(--paper);
  transition: transform .15s, box-shadow .15s;
}
.i-card:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--ink); }
.i-card .mono { font-size: 11px; color: var(--ink-3); }
.i-card b { font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-variation-settings: "wdth" 92; }
.i-sub { font-size: 14px; color: var(--ink-2); }
.i-arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; }
.i-acid { background: var(--acid); }
.i-acid, .i-acid .mono, .i-acid .i-sub { color: var(--on-acid); }
.i-ink { background: var(--inv-bg); color: var(--inv-fg); }
.i-ink .mono { color: var(--inv-mute); }
.i-ink .i-sub { color: var(--inv-soft); }
.i-ink:hover { box-shadow: 4px 4px 0 var(--acid-deep); }

.radial { position: relative; }
.radial svg { width: 100%; height: auto; display: block; overflow: visible; }
.radial .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radial .hatch { fill: url(#hatch); }
.radial .spoke { stroke: var(--acid-deep); stroke-width: 2; }
.radial .node { fill: var(--acid); stroke: var(--ink); stroke-width: 0; }
.radial .lbl { font-family: var(--mono); font-size: 12.5px; fill: var(--ink); }
.radial .lbl-sub { fill: var(--ink-3); font-size: 11px; }
.radial .core { fill: var(--inv-bg); stroke: var(--ink); stroke-width: 2; }
.radial .hatch-line { stroke: var(--line); }
.radial .core-t { font-family: var(--display); font-weight: 900; font-size: 18px; fill: var(--acid); letter-spacing: -.5px; }

/* ============ FOOTER ============ */
.foot { background: var(--inv-bg); color: var(--inv-fg); overflow: hidden; }
.foot-giant {
  font-weight: 900; font-size: 12vw; line-height: .8; letter-spacing: -.055em;
  font-variation-settings: "wdth" 80; color: var(--acid);
  padding: 50px 0 0 calc(var(--gutter) - .04em); white-space: nowrap;
}
.foot-row {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between;
  padding: 36px var(--gutter); font-size: 12px; color: var(--inv-soft);
}
.foot-row a { color: var(--inv-fg); text-decoration: none; }
.foot-row a:hover { color: var(--acid); }
.foot-ticker { display: flex; justify-content: space-between; gap: 40px; padding: 14px var(--gutter); border-top: 1px solid var(--inv-line); font-size: 12px; color: var(--inv-mute); white-space: nowrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  :root { --rail: 150px; }
  .rail-words span { font-size: 86px; }
  .hero { grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 0 var(--gutter) 56px; }
  .hero-rail { grid-column: 1; grid-row: auto; padding: 24px 0 0; min-height: 0; }
  .rail-meta { display: flex; gap: 28px; }
  .rail-meta br { display: none; }
  .rail-words { display: none; }
  .hero-main { grid-column: 1; grid-row: auto; padding: 28px 0 40px; }
  .quarter-mark { right: -18%; }
  .spec-card { grid-column: 1; grid-row: auto; margin-right: 0; min-height: 0; }
  .spec-name { padding-right: 0; }
  .hero-shot { grid-column: 1; grid-row: auto; margin: 56px 0 0; }
  .sec-head-split, .usage-grid, .install-sec { grid-template-columns: 1fr; }
  .install-sec { padding-right: var(--gutter); }
  .radial { margin: 0 auto; max-width: 560px; width: 100%; }
  .null-sec { grid-template-columns: 1fr; }
  .null-num { text-align: left; }
  .demo-window { grid-template-columns: 0.8fr 1.2fr; }
  .demo-window .pane:first-child { display: none; }
}
@media (max-width: 640px) {
  .brand-name { font-size: 15px; }
  .hero-title { font-size: 13.4vw; }
  .kicker { font-size: 11px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .quarter-mark { display: none; }
  .glyph-cut { -webkit-text-stroke-width: 2px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .feat-ico { margin-bottom: 0; }
  .demo-window { grid-template-columns: 1fr; height: 420px; }
  .demo-window .pane:nth-child(2) { display: none; }
  .demo-status-r { display: none; }
  .u-row { grid-template-columns: 1fr; gap: 8px; }
  .u-val { font-size: 16px; }
  .i-card b { font-size: 22px; }
  .sec-head { padding-top: 72px; }
  .kbd-big { border-width: 4px; border-bottom-width: 10px; }
}

/* ============ ACID SURFACES: always dark text ============ */
.spec-card, .kbd-big { color: var(--on-acid); }

/* ============ DARK THEME — follows the system setting ============ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0d0d10;
    --paper-2: #16161a;
    --paper-3: #202025;
    --ink: #f0f0ea;
    --ink-2: #b9b9c0;
    --ink-3: #85858e;
    --line: #2a2a31;
    --acid: #c8ec2c;
    --acid-deep: #a9cc12;
    --inv-bg: #18181d;
    --inv-bg-2: #212127;
    --inv-line: #2c2c33;
    --header-bg: rgba(13,13,16,.88);
    --code-bg: rgba(240,240,234,.1);
  }
  .top { border-bottom-color: var(--line); }
  .foot { border-top: 2px solid var(--line); }
  .marquee { border-block-color: var(--line); }
  .feat-ink { box-shadow: inset 0 0 0 1px var(--inv-line); }
  .hero-shot img { box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
  .glyph-cut { -webkit-text-stroke-color: transparent; }

  /* mock pages inside the demo go dark too */
  .demo-window { background: #050507; }
  .pane { background: #1c1c21; }
  .pane-body { background: #141418; color: #e4e4e0; }
  .ph { background: #2a2a31; }
  .ph-code { background: #1e1e23; }
  .page-chat { background: #121216; }
  .chat-h { border-bottom-color: #2a2a31; }
  .bubble { background: #212127; box-shadow: none; }
  .bubble.me { background: var(--acid); color: var(--on-acid); }
  .page-watch { background: #111115; }
  .site-bar { background: #18181d; border-bottom-color: #26262c; }
  .site-search { background: #25252b; }
  .site-av, .cm span { background: #303037; }
}
