/* Sudo-Terminal website
   Every colour derives from the eight theme tokens below, so the theme lab
   can repaint the whole page with any of the app's 28 real palettes.
   The default is the Sudo Gate brand palette, sampled from logo.png:
   amber #c98534 and slate #474952. */

:root {
  --bg: #0d0e11;
  --panel: #15161b;
  --raised: #1d1f25;
  --accent: #d08b3b;
  --text: #f3f1ec;
  --muted: #9a9ba3;
  --term-bg: #0a0b0d;
  --prompt: #3fb950;
  --on-accent: #17130d;

  --body: color-mix(in srgb, var(--text) 82%, var(--muted));
  --line: color-mix(in srgb, var(--text) 9%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 16%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);

  --r-read: #3fb950;
  --r-low: #388bfd;
  --r-med: #d29922;
  --r-high: #f0883e;
  --r-crit: #f85149;

  --f-sans: 'Archivo', 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;

  --wrap: 1180px;
  --radius: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
:root[data-light] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 16.5px/1.6 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* blueprint grid + grain */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%);
  opacity: .55;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong, b { color: var(--text); font-weight: 650; }
code, kbd {
  font-family: var(--f-mono);
  font-size: .84em;
}
code {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  border: 1px solid var(--line);
  padding: .08em .4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: .02em .42em;
  line-height: 1.5;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--text); margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  font-stretch: 78%;
  font-weight: 760;
  letter-spacing: -.015em;
}
h3 { font-size: 1.06rem; line-height: 1.3; font-weight: 650; }
.kicker, .eyebrow, .mini-h {
  font: 500 .74rem/1.4 var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.kicker::before { content: "// "; color: var(--accent); }
.mini-h { margin-bottom: 16px; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-lede { font-size: 1.12rem; margin: 18px 0 0; color: var(--body); }
.fine { font-size: .88rem; color: var(--muted); margin: 28px 0 0; font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 18px;
  font: 600 .95rem/1 var(--f-sans);
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .88rem; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1rem; }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #000) inset, 0 8px 28px -10px var(--accent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand .mark { --h: 26px; transition: transform .4s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.brand-sep { width: 1px; height: 20px; background: var(--line-strong); }
.brand-name { font-weight: 700; font-size: 1.04rem; letter-spacing: -.01em; }
.brand-by { font: 400 .72rem/1 var(--f-mono); color: var(--muted); }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; padding: 7px 12px; border-radius: 7px; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav-cta { margin-left: auto; }
.nav-toggle {
  display: grid; place-content: center; gap: 5px;
  width: 40px; height: 40px; margin-right: -8px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { display: grid; padding: 8px 16px 18px; border-top: 1px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { color: var(--text); padding: 11px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 8px; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
@media (max-width: 420px) { .brand-by { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 600px; left: 50%; top: 220px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(30px);
}
.hero-wrap { position: relative; }
.hero-mark {
  display: none;
  position: absolute; z-index: -1; right: 32px; top: 40px;
  width: min(36vw, 460px);
}
.hero-mark .mark { --h: auto; width: 100%; height: auto; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 30%, transparent)); }
.hero-mark::before {
  content: ""; position: absolute; inset: -20% -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  filter: blur(20px);
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
@media (min-width: 980px) { .hero-mark { display: block; } }
.eyebrow .mark { --h: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 99px; padding: 6px 14px; letter-spacing: .08em; text-transform: none; font-size: .78rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--r-read); box-shadow: 0 0 0 0 var(--r-read); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 7.4vw, 6rem);
  line-height: .95;
  font-weight: 800;
  font-stretch: 72%;
  letter-spacing: -.02em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--muted); font-weight: 700; }
.hero-row { display: grid; gap: 28px; margin-top: 30px; align-items: end; }
.hero-lede { font-size: 1.18rem; max-width: 56ch; margin: 0; }
.hero-meta { margin: 14px 0 0; font: .8rem/1.5 var(--f-mono); color: var(--muted); }
@media (min-width: 980px) {
  .hero { padding-top: 96px; }
  .hero-row { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .hero-actions { justify-self: end; }
}

.hero-stage { position: relative; margin-top: 56px; }
.window {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.4);
}
.window-chrome {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
  font: .72rem var(--f-mono); color: var(--muted);
}
.window-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-chrome span { margin-left: 10px; }
.hero-stage .window { transform: perspective(1800px) rotateX(5deg); transform-origin: 50% 0; transition: transform .8s var(--ease); }
.hero-stage:hover .window { transform: perspective(1800px) rotateX(0); }

.gate-log {
  margin-top: 18px;
  background: color-mix(in srgb, var(--term-bg) 92%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: .78rem/1.5 var(--f-mono);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.gate-log-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.gate-log-head .muted { margin-left: auto; font-size: .7rem; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--r-read); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.gate-log-list { list-style: none; margin: 0; padding: 6px 0; height: 222px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.gate-log-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  padding: 5px 14px;
  animation: logIn .45s var(--ease) both;
}
.gate-log-list .gl-cmd { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate-log-list .out { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
@keyframes logIn { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 1100px) {
  .gate-log { position: absolute; right: -8px; bottom: -36px; width: 360px; margin: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 .66rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 5px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  white-space: nowrap;
}
.c-read { --c: var(--r-read); } .c-low { --c: var(--r-low); } .c-med { --c: var(--r-med); }
.c-high { --c: var(--r-high); } .c-crit { --c: var(--r-crit); }
code.c-crit { color: var(--r-crit); border-color: color-mix(in srgb, var(--r-crit) 40%, transparent); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin: 90px 0 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stats > div { padding: 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font-size: 2.8rem; line-height: 1; font-weight: 800; font-stretch: 70%; color: var(--text); }
.stats dd { margin: 8px 0 0; font-size: .92rem; color: var(--text); line-height: 1.35; }
.stats dd span { color: var(--muted); font-size: .82rem; }
.stats > div:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(5, 1fr); }
  .stats > div:last-child { grid-column: auto; }
}

/* ---------- problem ---------- */
.problem { padding: 90px 0 40px; }
.problem-inner { max-width: 980px; }
.problem-text {
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  line-height: 1.38;
  font-weight: 450;
  color: var(--body);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: color-mix(in srgb, var(--panel) 55%, transparent); border-block: 1px solid var(--line); }

/* gate */
.flow { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.flow li {
  position: relative;
  display: grid; gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.flow li:nth-child(2) { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.flow strong { font-size: 1.1rem; }
.flow span:last-child { color: var(--muted); font-size: .92rem; }
.flow-n { font: 500 .7rem var(--f-mono); color: var(--accent); letter-spacing: .1em; }
@media (min-width: 820px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 34px; }
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; right: -28px; top: 50%; width: 22px; height: 1px;
    background: var(--muted);
    mask: linear-gradient(90deg, #000 60%, transparent);
  }
  .flow li:not(:last-child)::before {
    content: "›"; position: absolute; right: -24px; top: 50%; transform: translateY(-54%);
    color: var(--muted); font: 700 1rem var(--f-mono);
  }
}
.gate-grid { display: grid; gap: 24px; }
@media (min-width: 920px) { .gate-grid { grid-template-columns: 1.15fr 1fr; gap: 40px; } }
.tiers ul, .modes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tier {
  --c: var(--muted);
  display: grid; gap: 4px;
  padding: 12px 16px 12px 18px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  border-left: 3px solid var(--c);
  border-radius: 9px;
}
.tier b { color: var(--c); font-size: 1rem; }
.tier code { background: none; border: 0; padding: 0; color: var(--muted); font-size: .78rem; }
.t-read { --c: var(--r-read); } .t-low { --c: var(--r-low); } .t-med { --c: var(--r-med); }
.t-high { --c: var(--r-high); } .t-crit { --c: var(--r-crit); }
.modes li { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 9px; display: grid; gap: 3px; }
.modes li span { color: var(--muted); font-size: .92rem; }
.modes .is-default { border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.modes .is-default b { color: var(--text); }
.modes em { font: 500 .66rem var(--f-mono); font-style: normal; text-transform: uppercase; letter-spacing: .1em; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--accent-soft); }

/* simulator */
.sim {
  margin-top: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 40%),
    var(--term-bg);
  padding: 22px;
  box-shadow: 0 40px 90px -50px var(--accent);
}
@media (min-width: 720px) { .sim { padding: 32px; } }
.sim-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.sim-head h3 { font-size: 1.5rem; font-stretch: 80%; font-weight: 750; }
.sim-head p { margin: 4px 0 0; color: var(--muted); }
.sim-note { font: .74rem/1.5 var(--f-mono); color: var(--muted); max-width: 38ch; }
.sim-note code { font-size: .95em; }
.sim-input {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 10px;
  padding: 0 16px;
  transition: border-color .2s, box-shadow .2s;
}
.sim-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sim-prompt { font: 500 .78rem var(--f-mono); color: var(--prompt); white-space: nowrap; }
.sim-input input {
  flex: 1; min-width: 0;
  height: 56px;
  background: transparent; border: 0; outline: 0;
  color: var(--text);
  font: 500 1.05rem var(--f-mono);
  caret-color: var(--accent);
}
@media (max-width: 520px) { .sim-prompt { display: none; } }
.sim-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.sim-chips button {
  font: .78rem var(--f-mono); color: var(--muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 6px 12px; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.sim-chips button:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.sim-out { display: grid; gap: 18px; }
@media (min-width: 920px) { .sim-out { grid-template-columns: 300px 1fr; align-items: start; } }
.sim-tier { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.sim-label { font: .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.sim-tier .badge { font-size: 1.05rem; padding: 9px 14px; letter-spacing: .14em; animation: stamp .35s var(--ease); }
@keyframes stamp { from { transform: scale(1.25) rotate(-3deg); opacity: 0; } }
.sim-why { font-size: .9rem; color: var(--muted); }
.sim-modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 600px) { .sim-modes { grid-template-columns: 1fr 1fr; } }
.sim-modes li {
  --c: var(--muted);
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
  padding: 13px 16px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line);
}
.sim-modes li.sel { border-color: var(--accent-line); }
.sim-modes .ico { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-content: center; font: 700 .9rem var(--f-mono); color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.sim-modes .m { font-size: .8rem; color: var(--muted); font-family: var(--f-mono); }
.sim-modes .v { color: var(--c); font-weight: 650; font-size: .96rem; }
.o-run { --c: var(--r-read) !important; } .o-wait { --c: var(--r-med) !important; } .o-stop { --c: var(--r-crit) !important; }

.guarantees { display: grid; gap: 14px; margin-top: 56px; }
@media (min-width: 720px) { .guarantees { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .guarantees { grid-template-columns: repeat(4, 1fr); } }
.guarantees article, .feat-grid article {
  padding: 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.guarantees article:hover, .feat-grid article:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.guarantees p, .feat-grid p { margin: 8px 0 0; font-size: .94rem; color: var(--muted); }
.guarantees p strong { color: var(--text); }

/* split (monitoring) */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1.25fr; gap: 56px; } }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; font-size: .98rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 6px;
  border-left: 2px solid var(--r-read); border-bottom: 2px solid var(--r-read);
  transform: rotate(-45deg);
}
@media (min-width: 1000px) { .split-media { margin-right: -60px; } }

/* connections */
.proto-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 820px) { .proto-grid { grid-template-columns: 1fr 1fr; } }
.proto { background: var(--bg); padding: 30px; position: relative; }
.proto h3 { font-size: 1.3rem; font-stretch: 85%; margin-top: 14px; }
.proto p { margin: 10px 0 0; color: var(--muted); font-size: .96rem; }
.proto-tag { font: 700 .72rem var(--f-mono); letter-spacing: .12em; color: var(--accent); padding: 4px 9px; border: 1px solid var(--accent-line); border-radius: 5px; }

/* terminal features */
.feat-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.keys { margin-top: 48px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--term-bg); }
.keys dl { margin: 0; display: grid; gap: 12px 28px; }
@media (min-width: 640px) { .keys dl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .keys dl { grid-template-columns: repeat(3, 1fr); } }
.keys dl > div { display: flex; align-items: center; gap: 12px; }
.keys dt { display: flex; gap: 4px; min-width: 118px; }
.keys dd { margin: 0; font-size: .92rem; color: var(--muted); }

/* themes */
.theme-lab { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .theme-lab { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.theme-preview {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  font-size: .86rem;
}
.tp-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.tp-glyph { color: var(--accent); font: 700 1rem var(--f-mono); }
.tp-title { color: var(--text); font-weight: 650; }
.tp-pill { margin-left: auto; font-size: .76rem; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 6px; }
.tp-body { display: grid; grid-template-columns: 1fr; min-height: 230px; }
@media (min-width: 560px) { .tp-body { grid-template-columns: 1.6fr 1fr; } }
.tp-term { background: var(--term-bg); padding: 16px; font: .8rem/1.75 var(--f-mono); color: var(--text); overflow: hidden; }
.tp-term p { margin: 0; white-space: nowrap; }
.tp-p { color: var(--prompt); }
.tp-dim { color: var(--muted); }
.tp-ok { color: var(--prompt); }
.tp-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.tp-side { background: var(--panel); border-left: 1px solid var(--line); padding: 16px; display: grid; align-content: start; gap: 10px; }
.tp-side p { margin: 0; }
.tp-k { color: var(--text); font-weight: 700; }
.tp-step { font: .76rem var(--f-mono); color: var(--text); padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); }
.tp-btn { justify-self: start; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: .8rem; padding: 7px 14px; border-radius: 7px; }
@media (max-width: 559px) { .tp-side { display: none; } }

.theme-now { margin: 0 0 18px; color: var(--muted); font-size: .94rem; }
.theme-now b { color: var(--text); }
.theme-now span { display: block; font-size: .86rem; }
.theme-group + .theme-group { margin-top: 18px; }
.theme-group h4 { margin: 0 0 10px; font: 500 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.swatch {
  position: relative; aspect-ratio: 1; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(127,127,127,.35);
  background: var(--sw-bg);
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s;
  padding: 0;
}
.swatch::before { content: ""; position: absolute; inset: 50% 0 0 0; background: var(--sw-panel); }
.swatch::after { content: ""; position: absolute; width: 38%; height: 38%; right: 14%; bottom: 14%; border-radius: 50%; background: var(--sw-accent); }
.swatch:hover { transform: translateY(-2px) scale(1.05); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
#theme-reset { margin-top: 22px; }
.also { margin-top: 48px; display: grid; gap: 14px; max-width: 900px; }
.also p { margin: 0; color: var(--muted); }

/* providers */
.providers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 640px) { .providers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .providers { grid-template-columns: repeat(3, 1fr); } }
.providers li { background: var(--bg); padding: 22px 24px; display: grid; gap: 6px; }
.providers b { font-size: 1.2rem; font-stretch: 85%; font-weight: 700; }
.providers span { font: .76rem/1.5 var(--f-mono); color: var(--muted); }
.providers .is-offline b::after { content: "OFFLINE"; margin-left: 10px; vertical-align: 3px; font: 700 .6rem var(--f-mono); letter-spacing: .12em; color: var(--r-read); border: 1px solid color-mix(in srgb, var(--r-read) 45%, transparent); border-radius: 4px; padding: 2px 6px; }
.providers .is-custom { background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }

/* download */
.download { overflow: hidden; }
.download::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.dl-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .dl-grid { grid-template-columns: 1.15fr 1fr 1fr; } }
.dl-card { display: flex; flex-direction: column; padding: 26px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-strong); transition: border-color .3s, box-shadow .3s; }
.dl-card.is-you { border-color: var(--accent); box-shadow: 0 30px 70px -40px var(--accent); }
.dl-card.is-you .dl-top h3::after { content: "Your system"; margin-left: 10px; vertical-align: 4px; font: 600 .62rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 4px; }
.dl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dl-top h3 { font-size: 1.6rem; font-stretch: 78%; font-weight: 760; }
.dl-size { font: .78rem var(--f-mono); color: var(--muted); }
.dl-sub { margin: 4px 0 16px; color: var(--muted); font-size: .92rem; }
.dl-card ul { margin: 0 0 22px; padding-left: 18px; font-size: .92rem; display: grid; gap: 6px; flex: 1; align-content: start; }
.dl-card li code { white-space: nowrap; overflow-wrap: normal; }
.dl-card ul li::marker { color: var(--accent); }
.dl-card .btn { width: 100%; }
.dl-file { margin: 12px 0 0; text-align: center; }
.dl-file code { font-size: .72rem; background: none; border: 0; color: var(--muted); }
.dl-hash {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 10px;
  margin-top: 14px; padding: 10px 10px 10px 12px;
  border-radius: 8px; background: var(--term-bg); border: 1px dashed var(--line-strong);
}
.dl-hash-k { font: 700 .62rem var(--f-mono); letter-spacing: .12em; color: var(--muted); }
.dl-hash code { background: none; border: 0; padding: 0; font-size: .66rem; line-height: 1.45; color: var(--muted); word-break: break-all; }
.dl-card .btn .i { margin-left: -4px; }
.verify { padding: 0 18px 18px; display: grid; gap: 6px; }
.verify .verify-k { padding: 0; margin: 8px 0 0; font: 500 .72rem var(--f-mono); letter-spacing: .06em; color: var(--muted); }
.verify .cmd { margin: 0; }
.cmd { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 8px 8px 12px; border-radius: 8px; background: var(--term-bg); border: 1px solid var(--line); }
.cmd code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: .74rem; }
.copy { flex: none; font: 600 .72rem var(--f-mono); color: var(--text); background: var(--raised); border: 1px solid var(--line-strong); border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.copy:hover { border-color: var(--accent-line); }
.dl-notes { margin: 32px auto 0; max-width: 820px; display: grid; gap: 10px; }

details {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  transition: border-color .2s;
}
details[open] { border-color: var(--line-strong); }
summary {
  list-style: none; cursor: pointer;
  padding: 16px 48px 16px 18px; position: relative;
  color: var(--text); font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 400 1.3rem var(--f-mono); color: var(--muted); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .96rem; }

/* faq */
.faq-wrap { display: grid; gap: 24px; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; } .faq-wrap .sec-head { position: sticky; top: 100px; } }
.faq { display: grid; gap: 10px; }

/* cta */
.cta { padding: 130px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1;
  background: radial-gradient(ellipse 50% 70% at 50% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
}
.cta-cmd { font: .9rem var(--f-mono); color: var(--muted); margin: 0 0 18px; }
.cta-mark { --h: 84px; margin-bottom: 26px; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-stretch: 70%; font-weight: 800; line-height: .95; margin-bottom: 38px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: .9rem; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer p { margin: 14px 0 0; color: var(--muted); max-width: 52ch; }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none !important; }
.footer-brand .mark { --h: 40px; }
.footer-brand .wordmark { --h: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer-fine { margin-top: 30px; font: .74rem var(--f-mono); color: var(--muted); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-delay: calc(var(--d, 0) * 90ms); }

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

/* risk colours stay legible on the light palettes */
:root[data-light] {
  --r-read: #1a7f37; --r-low: #0969da; --r-med: #9a6700; --r-high: #bc4c00; --r-crit: #cf222e;
}
:root[data-light] .window, :root[data-light] .theme-preview { box-shadow: 0 40px 90px -45px rgba(0,0,0,.35); }
