:root {
  /* ValeronLabs house palette — pit-black / navy / cyan, matching
     valeronlabs.com and the NTerm app's default "Valeron" theme. */
  --bg: #05080d;
  --bg2: #0b1520;
  --panel: #101a26;
  --line: #1c2a3a;
  --text: #eef3f8;
  --muted: #9aa8b5;
  --accent: #3ec6ff;
  --accent2: #7ad7ff;
  --ok: #3dd68c;
  --navy: #00072d;

  /* ── Soft Rack ────────────────────────────────────────────────────────────
     The same four-step tonal ladder the app uses, derived from the palette
     above rather than hand-picked. Depth comes from lightness, not from a
     border on every edge, so the site and the product read as one thing.
     Nothing here introduces a new colour — every step is one of the five
     house values, or a mix of two of them. */
  --s0: var(--bg);
  --s1: var(--bg2);
  --s2: var(--panel);
  --s3: color-mix(in srgb, var(--panel) 88%, var(--text));
  --outline: color-mix(in srgb, var(--line) 62%, transparent);
  --outline-2: var(--line);

  /* Accent containers. A soft accent pill is how the app says "active";
     the site says it the same way. */
  --acc: var(--accent);
  --acc-cont: color-mix(in srgb, var(--acc) 18%, transparent);
  --acc-cont-2: color-mix(in srgb, var(--acc) 28%, transparent);
  --acc-ink: var(--navy);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Figtree is the app's UI face; IBM Plex Mono is everything the machine
     wrote. --display and --body are kept as names so older rules still
     resolve, but both are now one typeface. */
  --font: "Figtree", system-ui, -apple-system, sans-serif;
  --display: var(--font);
  --body: var(--font);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--s0);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }

/* ══ nav ══════════════════════════════════════════════════════════════════
   A rail of pills. No underline, no bottom rule on the active item — the
   active page is a soft accent container, exactly as in the app's left rail. */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; row-gap: 10px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--s0) 84%, transparent);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: 13px;
  padding-right: 4px;
}
.brand img { width: 32px; height: 32px; border-radius: var(--r-sm); }
.nav-links { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: background .16s ease, color .16s ease;
}
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav-links a.on { color: var(--text); background: var(--s2); font-weight: 600; }
/* .nav-links a (0,2,0) outranks .btn (0,1,0), which was painting the nav CTA
   muted grey on cyan. Restate it at matching specificity. */
.nav-links a.btn { color: var(--acc-ink); font-weight: 700; padding: 9px 18px; }
.nav-links a.btn:hover { color: var(--acc-ink); background: var(--accent2); }

/* Chips. "Beta" is an accent container; the licence pill is a plain surface
   pill so the two do not compete. */
.chip {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: var(--acc-cont);
  padding: 5px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip.oss {
  color: var(--muted); background: var(--s2); text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.chip.oss:hover { background: var(--s3); color: var(--text); }

/* ══ buttons ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--acc-ink); text-decoration: none;
  font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, transform .12s cubic-bezier(.34,1.56,.64,1);
}
.btn:hover { background: var(--accent2); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--s2); color: var(--muted); font-weight: 600; }
.btn.ghost:hover { background: var(--s3); color: var(--text); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: var(--r-sm); }

/* ══ hero ═════════════════════════════════════════════════════════════════ */
.hero { padding: 72px 0 44px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -.04em; line-height: 1.03; margin: 0 0 16px; font-weight: 800;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.lead { font-size: 20px; color: var(--muted); max-width: 36rem; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0 14px; }
.hint {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--s2); border-radius: var(--r-pill);
  padding: 8px 16px; display: inline-block;
}

/* Open source signal — the same sentence the licence file makes. */
.oss-line {
  margin: 14px 0 0; font-size: 14px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.oss-line a { color: var(--accent); text-decoration: none; font-weight: 600; }
.oss-line a:hover { text-decoration: underline; }

/* ══ pull quote ═══════════════════════════════════════════════════════════
   Was a full-bleed band pinched between two hairlines. Now a panel: 18px
   radius, tonal, no rules. */
.punch {
  width: min(1120px, calc(100% - 40px));
  margin: 32px auto 12px;
  padding: 34px 36px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #00072d 0%, #07090d 55%, #0b1018 100%);
}
.punch p {
  width: auto; margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: -.03em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

/* ══ surfaces ═════════════════════════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 48px 0 24px; }
.step {
  padding: 24px 26px; border: none; border-radius: var(--r);
  background: var(--s2);
}
.step .n { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: .14em; }
.step h3 { margin: 0 0 8px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); }

.shots { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; padding: 16px 0 56px; }
.shot {
  border: none; border-radius: var(--r-lg); overflow: hidden; background: var(--s2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.34); }
.shot-head { padding: 13px 18px; font-size: 13px; font-weight: 500; color: var(--muted); }
.mini-ui {
  margin: 0 10px 10px; padding: 14px 16px; border-radius: var(--r);
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  min-height: 118px; background: var(--s0); color: #d6deea;
}
.mini-ui .dim { color: var(--muted); }
.mini-ui .ok  { color: var(--ok); }
.mini-ui .cmd { color: var(--accent); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 8px 0 64px; }
.card { background: var(--s2); border: none; border-radius: var(--r); padding: 22px 24px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }

/* ══ FAQ ══════════════════════════════════════════════════════════════════
   Rows, not a stack of hairlines. */
.faq { padding-bottom: 24px; }
.faq h2 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.faq details {
  border: none; border-radius: var(--r); background: var(--s2);
  padding: 12px 18px; margin: 8px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 2px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; display: inline-block; width: 1.1em;
  color: var(--accent); font-weight: 700;
}
.faq details[open] summary::before { content: "\2212"; }
.faq details[open] summary { color: var(--accent); }
.faq p { color: var(--muted); margin: 8px 0 4px 1.1em; }

/* ══ page + prose ═════════════════════════════════════════════════════════ */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 {
  font-family: var(--display); font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.03em; margin: 0 0 10px; font-weight: 800;
}
.prose { max-width: 720px; padding-bottom: 80px; }
.prose h2 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 2em; }
.prose h3 { font-family: var(--display); font-size: 18px; font-weight: 650; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: .45em 0; color: var(--muted); }
.prose li strong, .prose p strong { color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--outline); margin: 36px 0; }

/* Code and tables were previously unstyled — browser defaults on a dark
   ground. Both now sit on the ladder. */
code {
  font-family: var(--mono); font-size: .88em;
  background: var(--s2); color: var(--accent2);
  padding: 1px 6px; border-radius: 6px;
  overflow-wrap: break-word;
}
pre {
  background: var(--s2); border-radius: var(--r);
  padding: 16px 18px; margin: 18px 0;
  overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
}
pre code { background: none; padding: 0; border-radius: 0; color: var(--text); font-size: 13px; }

table {
  width: 100%; margin: 18px 0;
  border-collapse: separate; border-spacing: 0;
  background: var(--s2); border-radius: var(--r); overflow: hidden;
  font-size: 14px;
}
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--outline); }
th { font-weight: 600; color: var(--text); font-size: 12.5px; }
td { color: var(--muted); vertical-align: top; }
tr:last-child td { border-bottom: none; }

.out {
  font-family: var(--mono); font-size: 13px;
  background: var(--s2); border: none; border-radius: var(--r);
  padding: 16px 18px; white-space: pre-wrap;
}

/* ══ footer ═══════════════════════════════════════════════════════════════
   A tonal band rather than a rule across the page. */
footer {
  border-top: none; background: var(--s1);
  margin-top: 24px; padding: 48px 0 56px;
  color: var(--muted); font-size: 13px;
}
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.foot strong { color: var(--text); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
footer a { color: var(--muted); text-decoration: none; display: block; margin: 7px 0; }
footer a:hover { color: var(--text); }
footer .brand { margin-bottom: 10px; }
.foot-co { display: block; margin-top: 18px; font-size: 12px; }
.legal { margin-top: 28px; font-size: 12px; }

@media (max-width: 900px) {
  .hero, .shots, .steps, .grid3, .foot { display: flex; flex-direction: column; }
  .nav-links { margin-left: 0; }
  .punch { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .shot, .btn { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
