*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0b0b0e;
  --bg-raised:    #131317;
  --bg-card:      #18181d;
  --hairline:     #25252c;
  --hairline-hi:  #36363f;
  --text:         #ebebef;
  --text-mid:     #a8a8b2;
  --text-mute:    #6a6a76;
  --text-faint:   #4a4a54;
  --accent:       #ff6b35;
  --accent-2:     #ff9966;
  --accent-dim:   #c95629;
  --term-green:   #79e07a;
  --warn:         #ffd166;
  --crit:         #ff5555;

  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Monaco, monospace;
  --term: 'VT323', 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;

  --max:  1100px;
  --pad:  32px;
  --gut:  72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01','ss02','cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 90% -8%, rgba(255,107,53,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at -10% 70%, rgba(255,107,53,0.05) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #08080a 100%);
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─────────── layout ─────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
}
@media (max-width: 720px) {
  .row { grid-template-columns: 36px 1fr; gap: 18px; }
  :root { --pad: 20px; --gut: 48px; }
}

/* ─────────── nav ─────────── */
nav {
  position: sticky; top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
  gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 14px; height: 14px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in oklab, var(--accent) 60%, transparent);
  border-radius: 2px;
  animation: blink 2.4s steps(1) infinite;
}
@keyframes blink {
  0%, 60% { opacity: 1; }
  62%, 70% { opacity: 0.3; }
  72%, 100% { opacity: 1; }
}
.brand-meta {
  color: var(--text-mute);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: lowercase;
}
@media (max-width: 600px) { .brand-meta { display: none; } }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  cursor: not-allowed;
}
.nav-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ─────────── hero ─────────── */
header {
  padding-top: 80px;
  padding-bottom: 100px;
  position: relative;
}
header.compact {
  padding-top: 64px;
  padding-bottom: 48px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -3px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title.small {
  font-size: clamp(34px, 5.5vw, 60px);
  letter-spacing: -2px;
}
.hero-title .accent { color: var(--accent); }
.hero-title .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  color: var(--text-mute);
}
.hero-sub {
  max-width: 56ch;
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 48px;
}
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.5px;
}
.hero-meta b { color: var(--accent-2); font-weight: 600; }

/* ─────────── terminal block ─────────── */
.term {
  max-width: 720px;
  background: linear-gradient(180deg, #0e0e12 0%, #08080b 100%);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(255,107,53,0.04) inset,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 80px -20px rgba(255,107,53,0.15);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #0a0a0d;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}
.term-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hairline-hi);
}
.term-dot.live { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.term-bar .path { margin-left: auto; }
.term-body {
  padding: 22px 24px 26px;
  font-family: var(--term);
  font-size: 22px;
  line-height: 1.35;
  color: var(--term-green);
}
.term-line {
  display: block;
  opacity: 0;
  transform: translateY(2px);
  animation: termIn 320ms ease forwards;
}
.term-line.cmd { color: var(--text); }
.term-line.cmd::before { content: '$ '; color: var(--accent); }
.term-line.out { color: var(--term-green); }
.term-line.out::before { content: '> '; color: var(--text-faint); }
.term-line.hint { color: var(--text-mid); }
.term-line.hint::before { content: '# '; color: var(--text-faint); }
.term-line .label  { display: inline-block; min-width: 12ch; }
.term-line .dots   { color: var(--text-faint); }
.term-line .val    { color: var(--accent-2); }
.term-line .ready  { color: var(--accent); font-weight: 700; }
.term-cursor {
  display: inline-block;
  width: 0.6ch; height: 0.95em;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes termIn { to { opacity: 1; transform: translateY(0); } }
.term-line:nth-child(1)  { animation-delay: 80ms; }
.term-line:nth-child(2)  { animation-delay: 380ms; }
.term-line:nth-child(3)  { animation-delay: 580ms; }
.term-line:nth-child(4)  { animation-delay: 780ms; }
.term-line:nth-child(5)  { animation-delay: 980ms; }
.term-line:nth-child(6)  { animation-delay: 1180ms; }
.term-line:nth-child(7)  { animation-delay: 1380ms; }
.term-line:nth-child(8)  { animation-delay: 1580ms; }
.term-line:nth-child(9)  { animation-delay: 1780ms; }

/* ─────────── section frame ─────────── */
section {
  border-top: 1px solid var(--hairline);
  padding-top: var(--gut);
  padding-bottom: var(--gut);
  position: relative;
}
.sec-index {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  padding-top: 6px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
@media (max-width: 720px) {
  .sec-index { writing-mode: horizontal-tb; padding-top: 0; }
}
.sec-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.sec-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.sec-h {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 22ch;
}
.sec-h .accent { color: var(--accent); }
.sec-body {
  max-width: 60ch;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 34px;
}
.sec-body b { color: var(--text); font-weight: 600; }
.sec-body code { font-family: var(--mono); font-size: 0.92em; color: var(--accent-2); }

/* prose blocks (FAQ/Privacy/ToS) */
.prose {
  max-width: 70ch;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.7;
}
.prose p { margin-bottom: 18px; }
.prose b, .prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.92em; color: var(--accent-2); }
.prose ul { padding-left: 22px; margin-bottom: 18px; }
.prose ul li { margin-bottom: 8px; }
.prose ul li::marker { color: var(--accent); }
.prose h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 32px 0 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline-hi);
}
.prose h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.prose .stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.prose .stamp b { color: var(--accent); font-weight: 700; }

/* card grid for feature lists */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.card {
  background: var(--bg-card);
  padding: 22px 22px 24px;
  transition: background 160ms ease;
}
.card:hover { background: var(--bg-raised); }
.card-head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 10px;
}
.card-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 1px;
  font-weight: 700;
}
.card-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.card-desc {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* spec list */
.spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 32px;
  row-gap: 6px;
  font-family: var(--mono);
  font-size: 13px;
  max-width: 720px;
  margin-top: 12px;
}
.spec dt {
  color: var(--text-mute);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
  padding-top: 3px;
}
.spec dd { color: var(--text); }
.spec dd b { color: var(--accent-2); font-weight: 600; }

/* theme strip */
.themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.theme {
  background: var(--bg-card);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
}
.theme-swatch {
  display: flex;
  flex: 0 0 auto;
}
.theme-swatch i {
  display: block;
  width: 12px; height: 24px;
  border: 1px solid var(--hairline-hi);
  box-sizing: border-box;
}
.theme-swatch i:not(:first-child) { margin-left: -1px; }
.theme-name { font-weight: 600; letter-spacing: -0.2px; }

/* CTA block */
.cta-block {
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-raised) 100%);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.cta-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,53,0.10), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,107,53,0.05), transparent 50%);
  pointer-events: none;
}
.cta-h {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 22px;
  color: var(--text);
}
.cta-h .accent { color: var(--accent); }
.cta-line {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 60ch;
  position: relative;
  z-index: 1;
}
.cta-line .pre { color: var(--accent); margin-right: 8px; }
.cta-line .key { color: var(--accent-2); }
.cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 14px 22px;
  background: transparent;
  color: var(--text-mute);
  border: 1px solid var(--hairline-hi);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: not-allowed;
  transition: all 160ms ease;
  position: relative;
  z-index: 1;
}
.cta-pill::before {
  content: ''; width: 6px; height: 6px;
  background: var(--warn); border-radius: 50%;
  box-shadow: 0 0 6px var(--warn);
}
.cta-pill:hover {
  color: var(--text); border-color: var(--accent); background: rgba(255,107,53,0.06);
}

/* privacy banner */
.privacy {
  border: 1px dashed var(--hairline-hi);
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mid);
  max-width: 760px;
  line-height: 1.7;
}
.privacy b { color: var(--accent-2); font-weight: 600; }

/* FAQ accordions */
.faq {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  transition: background 140ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+';
  flex: 0 0 auto;
  width: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
  transition: transform 200ms ease;
}
.faq details[open] summary::before { content: '−'; }
.faq summary:hover { background: rgba(255,107,53,0.04); }
.faq .faq-body {
  padding: 0 22px 22px 50px;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
}
.faq .faq-body p { margin-bottom: 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq .faq-body code { font-family: var(--mono); font-size: 0.92em; color: var(--accent-2); }
.faq .faq-body b { color: var(--text); font-weight: 600; }

/* footer */
footer {
  border-top: 1px solid var(--hairline);
  padding: 36px 0 56px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.5px;
}
footer .wrap {
  display: flex; gap: 24px; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
}
footer .copy { color: var(--text-faint); }
footer .stack { display: flex; gap: 24px; flex-wrap: wrap; }
footer .stack a {
  color: var(--text-mute);
  text-decoration: none;
  transition: color 140ms ease;
}
footer .stack a:hover { color: var(--accent); }
footer .stack a.current { color: var(--accent); }

/* utility */
.mono { font-family: var(--mono); }
.mute { color: var(--text-mute); }
.accent { color: var(--accent); }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--bg); }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .term-line { opacity: 1; transform: none; animation: none; }
  .term-cursor { animation: none; }
  .brand-mark { animation: none; }
}
