/* ==========================================================
   VYRON — landing page
   ========================================================== */

/* Self-hosted variable fonts (latin subset, SIL OFL 1.1 — see fonts/README.md) */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0b09;
  --bg-2: #10120e;
  --bg-3: #171a14;
  --line: rgba(237, 239, 232, 0.08);
  --line-2: rgba(237, 239, 232, 0.14);
  --text: #edefe8;
  --muted: #8d9387;
  --dim: #5f6559;
  --accent: #c8f54a;
  --accent-2: #9ee03a;
  --accent-ink: #0a0b09;
  --amber: #ffb547;
  --violet: #a48bff;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
code, pre { font-family: var(--f-mono); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(200,245,74,.0); }
.btn--accent:hover { box-shadow: 0 8px 32px -6px rgba(200,245,74,.45); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(237,239,232,.32); background: rgba(255,255,255,.05); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(10,11,9,.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-display); letter-spacing: .06em; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: var(--accent); }
.brand__mark path { fill: var(--accent-ink); }
.brand--sm { font-size: 15px; }
.brand--sm .brand__mark { width: 26px; height: 26px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 140px 0 72px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 78% 30%, rgba(200,245,74,.13), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(164,139,255,.08), transparent 70%),
    radial-gradient(rgba(237,239,232,.09) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 13px/1 var(--f-mono); color: var(--muted); background: rgba(255,255,255,.02);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,245,74,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(200,245,74,0); } 100% { box-shadow: 0 0 0 0 rgba(200,245,74,0); } }
.hero__title {
  margin: 0; font: 700 clamp(44px, 7.4vw, 92px)/.98 var(--f-display);
  letter-spacing: -.035em; text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede { max-width: 520px; margin: 28px 0 36px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.token {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; padding: 8px 8px 8px 14px; max-width: 100%;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  font: 400 13px/1.4 var(--f-mono);
}
.token__ticker { color: var(--accent); font-weight: 500; }
.token__label { color: var(--dim); }
.token__addr { color: var(--muted); word-break: break-all; }
.token__copy { padding: 5px 12px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-2); font-size: 12px; transition: background .2s; }
.token__copy:hover { background: #22261d; }

/* terminal */
.term {
  border-radius: var(--r-lg); background: linear-gradient(180deg, #12150f, #0d0f0b);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(200,245,74,.04), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden; transform: rotate(.6deg);
}
.term__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e25; }
.term__title { font: 400 12px var(--f-mono); color: var(--dim); }
.term__badge { margin-left: auto; font: 500 11px var(--f-mono); color: var(--accent); padding: 3px 9px; border: 1px solid rgba(200,245,74,.3); border-radius: 999px; }
.term__body {
  margin: 0; padding: 22px 22px 26px; min-height: 340px;
  font-size: 13.5px; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.term__body .p { color: var(--accent); }
.term__body .c { color: var(--dim); }
.term__body .k { color: var(--violet); }
.term__body .s { color: var(--amber); }
.term__body .ok { color: var(--accent-2); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* stats */
.stats {
  list-style: none; margin: 72px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats li { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font: 700 30px/1.1 var(--f-display); letter-spacing: -.02em; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.kicker { margin: 0 0 16px; font: 500 13px/1 var(--f-mono); color: var(--accent); letter-spacing: .02em; }
.kicker--dim { color: var(--dim); }
.section h2 { margin: 0; font: 700 clamp(30px, 4.2vw, 50px)/1.08 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.section__sub { margin: 20px 0 0; font-size: 17px; color: var(--muted); max-width: 580px; text-wrap: pretty; }

/* ---------- playground ---------- */
.pg {
  display: grid; grid-template-columns: 300px 1fr;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-2);
}
.pg__list { display: flex; flex-direction: column; padding: 12px; gap: 4px; border-right: 1px solid var(--line); background: #0d0f0b; }
.pg__tab {
  text-align: left; padding: 12px 14px; border-radius: 10px;
  display: grid; gap: 2px; transition: background .2s;
}
.pg__tab small { font: 500 11px var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.pg__tab span { font-size: 14px; color: var(--muted); }
.pg__tab:hover { background: rgba(255,255,255,.04); }
.pg__tab[aria-selected="true"] { background: var(--bg-3); box-shadow: inset 2px 0 0 var(--accent); }
.pg__tab[aria-selected="true"] span { color: var(--text); }
.pg__tab[aria-selected="true"] small { color: var(--accent); }
.pg__chat { padding: 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pg__msg { display: grid; gap: 10px; }
.pg__who { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--f-mono); color: var(--dim); }
.pg__who svg { width: 14px; height: 14px; fill: var(--accent); }
.pg__msg--user p {
  margin: 0; justify-self: start; padding: 12px 16px; border-radius: 14px 14px 14px 4px;
  background: var(--bg-3); border: 1px solid var(--line); font-size: 15px;
}
.pg__note { margin: 0; color: var(--muted); font-size: 15px; min-height: 1.6em; }
.pg__meta { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); font: 400 12px var(--f-mono); color: var(--dim); }
.pg__live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: ping 2s infinite; }
.pg__hint { margin-left: auto; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; font: 500 11px var(--f-mono); color: var(--muted); }
.pg__replay { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12px var(--f-body); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.pg__replay:hover { color: var(--text); border-color: rgba(237,239,232,.3); }
.pg__replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.pg__replay:hover svg { transform: rotate(-200deg); }
.pg__chat:focus-visible { outline-offset: -4px; }

.code { border: 1px solid var(--line); border-radius: var(--r); background: #0b0d09; overflow: hidden; }
.code__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--f-mono); color: var(--dim); }
.code__copy, .cmd__copy { padding: 4px 10px; border-radius: 7px; font: 500 12px var(--f-body); color: var(--muted); border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s; }
.code__copy:hover, .cmd__copy:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.04); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; min-height: 120px; }
.code--sm pre { min-height: 0; font-size: 12.5px; }
.tok-k { color: var(--violet); }
.tok-s { color: var(--amber); }
.tok-c { color: var(--dim); font-style: italic; }
.tok-n { color: var(--accent); }
.tok-f { color: #7fd4ff; }

/* ---------- install ---------- */
.install { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.step__num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 700 17px var(--f-display); color: var(--accent-ink); background: var(--accent);
}
.step__body { min-width: 0; }
.step h3 { margin: 6px 0 6px; font-size: 18px; font-weight: 600; }
.step p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.os { display: inline-flex; gap: 4px; padding: 4px; margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.os button { padding: 6px 12px; border-radius: 7px; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.os button[aria-selected="true"] { background: var(--bg-3); color: var(--text); }
.cmd {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #0b0d09; min-width: 0;
}
.cmd__p { color: var(--accent); font-family: var(--f-mono); font-size: 13px; }
.cmd code { flex: 1; min-width: 0; font-size: 13px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd__copy { flex: none; }

.api { position: sticky; top: 96px; padding: 28px; border-radius: var(--r-lg); border: 1px solid rgba(200,245,74,.22); background: linear-gradient(160deg, rgba(200,245,74,.07), transparent 55%), var(--bg); }
.api h3 { margin: 0 0 10px; font: 700 20px/1.25 var(--f-display); letter-spacing: -.02em; }
.api p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.api p code { font-size: 13px; color: var(--text); background: var(--bg-3); padding: 2px 6px; border-radius: 6px; }

/* ---------- hardware ---------- */
.hw { display: grid; grid-template-columns: 380px 1fr; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.hw__controls { padding: 32px; border-right: 1px solid var(--line); background: var(--bg-2); }
.hw__label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.hw__label output { font: 700 22px var(--f-display); color: var(--text); }
.hw__controls .hw__label:not(:first-child) { margin-top: 36px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--fill, 25%), var(--bg-3) var(--fill, 25%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--accent) var(--fill, 25%), var(--bg-3) var(--fill, 25%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.hw__ticks { display: flex; justify-content: space-between; margin: 6px -8px 0; }
.hw__ticks button { padding: 4px 8px; border-radius: 6px; font: 400 12px var(--f-mono); color: var(--dim); transition: color .2s, background .2s; }
.hw__ticks button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.hw__ticks button.is-on { color: var(--accent); }
.seg { display: grid; gap: 6px; }
.seg button {
  text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 14px; color: var(--muted); transition: border-color .2s, color .2s, background .2s;
  display: flex; align-items: center; gap: 10px;
}
.seg button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--dim); transition: border .2s, background .2s; flex: none; }
.seg button[aria-checked="true"] { border-color: rgba(200,245,74,.4); color: var(--text); background: rgba(200,245,74,.05); }
.seg button[aria-checked="true"]::before { border: 4px solid var(--accent); }

.hw__result { padding: 36px; display: flex; flex-direction: column; gap: 32px; justify-content: center; }
.verdict { display: flex; gap: 18px; align-items: flex-start; }
.verdict__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(200,245,74,.12); color: var(--accent); font: 700 22px var(--f-display); }
.verdict__icon::after { content: "✓"; }
.verdict[data-level="tight"] .verdict__icon { background: rgba(255,181,71,.12); color: var(--amber); }
.verdict[data-level="tight"] .verdict__icon::after { content: "!"; }
.verdict[data-level="no"] .verdict__icon { background: rgba(255,107,107,.12); color: #ff6b6b; }
.verdict[data-level="no"] .verdict__icon::after { content: "✕"; font-size: 18px; }
.inline-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(200,245,74,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.inline-link:hover { text-decoration-color: var(--accent); }
.verdict__title { margin: 0 0 6px; font: 700 26px/1.2 var(--f-display); letter-spacing: -.02em; }
.verdict__text { margin: 0; color: var(--muted); max-width: 480px; }
.bar { display: flex; height: 56px; border-radius: 12px; overflow: hidden; gap: 3px; }
.bar__seg { height: 100%; transition: flex-grow .6s var(--ease); flex-basis: 0; min-width: 4px; border-radius: 6px; }
.bar__seg--model { background: var(--accent); }
.bar__seg--apps { background: repeating-linear-gradient(-45deg, #2b3024 0 6px, #232720 6px 12px); }
.bar__seg--free { background: var(--bg-3); border: 1px dashed var(--line-2); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { color: var(--text); font: 500 13px var(--f-mono); }
.lg { width: 12px; height: 12px; border-radius: 4px; }
.lg--model { background: var(--accent); }
.lg--apps { background: #2b3024; }
.lg--free { border: 1px dashed var(--line-2); }

/* ---------- roadmap ---------- */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.road::before { content: ""; position: absolute; left: 24px; right: 24px; top: 13px; height: 1px; background: linear-gradient(to right, var(--accent), var(--line-2) 30%, var(--line-2)); }
.road__item {
  position: relative; margin-top: 48px; padding: 24px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--bg);
  transition: transform .35s var(--ease), border-color .3s;
}
.road__item:hover { transform: translateY(-4px); border-color: var(--line-2); }
.road__item--live { border-color: rgba(200,245,74,.28); }
.road__item::before { content: ""; position: absolute; top: -41px; left: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--dim); }
.road__item::after { content: ""; position: absolute; top: -27px; left: 30px; width: 1px; height: 27px; background: var(--line-2); }
.road__item--live::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(200,245,74,.15); }
.road__status { display: inline-block; margin-bottom: 14px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.road__item--live .road__status { color: var(--accent); }
.road__item h3 { margin: 0 0 10px; font: 700 26px/1.1 var(--f-display); letter-spacing: -.02em; }
.road__item p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.road__item code { font-size: 12px; color: var(--dim); }

/* ---------- specs + faq split ---------- */
.specs, .faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.section__head--side { position: sticky; top: 110px; margin: 0; }
.spec { margin: 0; border-top: 1px solid var(--line-2); }
.spec div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 13px/1.6 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.spec dd { margin: 0; font-size: 16px; }

.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px; font-weight: 500; transition: color .2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 10px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.acc details[open] summary::after { transform: rotate(45deg); background-color: var(--bg-3); }
.acc summary:hover { color: var(--accent); }
.acc details p { margin: 0; padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- cta + footer ---------- */
.cta { padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: auto 0 -60% 0; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(200,245,74,.14), transparent 70%); z-index: -1; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin: 0; font: 700 clamp(36px, 6vw, 76px)/1.02 var(--f-display); letter-spacing: -.035em; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { margin: 22px 0 34px; color: var(--muted); font-size: 18px; }
.cta .hero__actions { justify-content: center; }

.foot { border-top: 1px solid var(--line); padding: 64px 0 28px; overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__brand p { margin: 16px 0 0; max-width: 300px; font-size: 14px; color: var(--muted); }
.foot__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot__col p { margin: 0 0 6px; font: 500 12px var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.foot__col a { color: var(--muted); width: fit-content; transition: color .2s; }
.foot__col a:hover { color: var(--accent); }
.foot__word {
  margin: 56px 0 0; font: 700 clamp(72px, 19vw, 260px)/.8 var(--f-display); letter-spacing: -.05em; text-align: center;
  background: linear-gradient(to bottom, rgba(237,239,232,.09), rgba(237,239,232,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 64px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.foot__bottom p { margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--accent-ink); font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.term.reveal.is-in { transform: rotate(.6deg); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .term, .term.reveal.is-in { transform: none; }
  .install { grid-template-columns: minmax(0, 1fr); }
  .install > *, .step { min-width: 0; }
  .api { position: static; }
  .hw { grid-template-columns: minmax(0, 1fr); }
  .hw__controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .road { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .road::before { display: none; }
  .specs, .faq { grid-template-columns: 1fr; gap: 36px; }
  .section__head--side { position: static; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 16px 20px; background: var(--bg); box-shadow: 0 24px 40px -12px rgba(0,0,0,.7);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links a { padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .pg { grid-template-columns: minmax(0, 1fr); }
  .pg__list { flex-direction: row; overflow-x: auto; min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .pg__list::-webkit-scrollbar { display: none; }
  .pg__tab { flex: none; width: 200px; }
  .pg__tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pg__tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
}
@media (max-width: 640px) {
  .hero { padding: 112px 0 56px; }
  .hero__lede { font-size: 16.5px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .term__body { min-height: 300px; font-size: 12.5px; padding: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats li { padding: 20px 16px; }
  .stats strong { font-size: 24px; }
  .section { padding: 84px 0; }
  .section__head { margin-bottom: 40px; }
  .pg__chat { padding: 20px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .hw__controls, .hw__result { padding: 24px; }
  .verdict__title { font-size: 21px; }
  .road { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .acc summary { font-size: 16px; }
  .acc details p { padding-right: 0; }
  .cta { padding: 100px 0; }
  .foot__note { margin-left: 0; width: 100%; }
}

/* ==========================================================
   Polish layer
   ========================================================== */

/* scroll progress */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(to right, var(--accent-2), var(--accent)); }

/* active nav link */
.nav__links a { position: relative; }
.nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.05); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }

/* "runs with" row */
.runs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding: 0; }
.runs li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font: 400 12px var(--f-mono); color: var(--muted); }
.runs li:first-child { border: 0; padding-left: 0; color: var(--dim); }
.token { margin-top: 20px; }

/* terminal footer */
.term__foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font: 400 11px var(--f-mono); color: var(--dim); }
.term__pips { display: flex; gap: 6px; }
.term__pips i { width: 18px; height: 3px; border-radius: 3px; background: var(--bg-3); overflow: hidden; position: relative; }
.term__pips i.is-done { background: rgba(200,245,74,.5); }
.term__pips i.is-on { background: var(--accent); }
.term__body { transition: opacity .3s; }
.term__body.is-fading { opacity: 0; }

/* pointer spotlight on cards */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(200,245,74,.07), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.spot:hover::after { opacity: 1; }

.pg__tab span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* playground tab hover lift */
.pg__tab { transition: background .2s, transform .2s var(--ease); }
.pg__tab:active { transform: scale(.98); }

/* copy buttons: success state */
.is-copied { color: var(--accent-ink) !important; background: var(--accent) !important; border-color: var(--accent) !important; }

/* install progress + done steps */
.install__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font: 400 13px var(--f-mono); color: var(--muted); }
.install__track { flex: 0 0 120px; height: 4px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }
.install__track span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.step { transition: border-color .3s; }
.step__num { position: relative; transition: background .3s, color .3s; }
.step.is-done { border-color: rgba(200,245,74,.25); }
.step.is-done .step__num { color: transparent; background: rgba(200,245,74,.14); }
.step.is-done .step__num::after {
  content: ""; position: absolute; width: 16px; height: 9px; border: solid var(--accent); border-width: 0 0 2.5px 2.5px;
  transform: translate(0, -2px) rotate(-45deg); animation: pop .35s var(--ease);
}
@keyframes pop { from { transform: translate(0,-2px) rotate(-45deg) scale(.3); opacity: 0; } }

/* spec rows */
.spec div { transition: background .2s, padding .3s var(--ease); }
.spec div:hover { background: linear-gradient(to right, rgba(200,245,74,.05), transparent 70%); padding-left: 12px; }

/* FAQ animated body */
.acc details > div { overflow: hidden; }

/* back to top */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease), background .2s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--accent); color: var(--accent-ink); }
.totop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- live demo (only when served by the local backend) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pg__answer { display: none; }
.pg__chat.is-live-answer .pg__msg--bot > .code,
.pg__chat.is-live-answer .pg__note { display: none; }
.pg__chat.is-live-answer .pg__answer { display: grid; gap: 14px; }
.pg__md { display: grid; gap: 12px; min-width: 0; }
.pg__md p { margin: 0; color: var(--muted); font-size: 15px; }
.pg__md p code, .pg__md li code { font-size: 13px; color: var(--text); background: var(--bg-3); padding: 1px 6px; border-radius: 5px; }
.pg__md strong { color: var(--text); font-weight: 600; }
.pg__md .code pre { min-height: 0; }
.pg__status { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 12px var(--f-mono); color: var(--dim); }
.pg__status.is-busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.pg__status.is-error { color: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }

.pg__composer {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
  padding: 10px; border: 1px solid var(--line-2); border-radius: 16px; background: #0b0d09;
  transition: border-color .2s, box-shadow .2s;
}
.pg__composer:focus-within { border-color: rgba(200,245,74,.45); box-shadow: 0 0 0 4px rgba(200,245,74,.08); }
.pg__composer textarea {
  resize: none; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 400 15px/1.5 var(--f-body); padding: 8px 6px; max-height: 180px; min-height: 40px;
}
.pg__composer textarea::placeholder { color: var(--dim); }
.pg__composer textarea:disabled { cursor: progress; }
.pg__send {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); transition: transform .15s, opacity .2s, background .2s;
}
.pg__send:hover:not(:disabled) { transform: translateY(-1px); }
.pg__send:disabled { opacity: .35; cursor: not-allowed; }
.pg__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg__send .i-stop { display: none; fill: currentColor; stroke: none; }
.pg__send.is-stop { background: var(--text); }
.pg__send.is-stop .i-send { display: none; }
.pg__send.is-stop .i-stop { display: block; }
.pg__disclaim { grid-column: 1 / -1; margin: 0; padding: 0 6px 2px; font-size: 12px; color: var(--dim); }
.pg__live.is-live { color: var(--accent); }
.pg__live.is-loading::before { background: var(--amber); }

@media (max-width: 1000px) {
  .road__item { margin-top: 0; }
  .road__item::before, .road__item::after { display: none; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .pg__tab span { display: block; -webkit-line-clamp: unset; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  .pg__hint { display: none; }
  .pg__replay { margin-left: auto; }
  .runs li:first-child { width: 100%; }
  .install__progress { font-size: 12px; }
  .install__track { flex-basis: 64px; }
  .totop { right: 16px; bottom: 16px; }
  .spec div:hover { padding-left: 0; background: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
