/* ============================================================
   Hangar — public site
   Design tokens ported verbatim from tokens.css (OKLCH, dark-first).
   Accent is a signal, not paint. Surface hierarchy, not shadows.
   ============================================================ */

:root {
  --bg: oklch(16% 0.005 240);
  --surface: oklch(20% 0.008 240);
  --surface-2: oklch(23% 0.008 240);
  --surface-3: oklch(27% 0.008 240);
  --fg: oklch(96% 0.005 240);
  --fg-soft: oklch(85% 0.008 240);
  --muted: oklch(64% 0.012 240);
  --muted-2: oklch(48% 0.012 240);
  --border: oklch(28% 0.008 240);
  --border-soft: oklch(24% 0.008 240);
  --accent: oklch(82% 0.19 135);
  --accent-soft: oklch(82% 0.19 135 / 0.14);
  --accent-fg: oklch(18% 0.05 135);
  --danger: oklch(68% 0.18 25);
  --danger-soft: oklch(68% 0.18 25 / 0.16);
  --warn: oklch(78% 0.15 75);
  --warn-soft: oklch(78% 0.15 75 / 0.16);
  --info: oklch(72% 0.12 230);
  --info-soft: oklch(72% 0.12 230 / 0.16);

  /* one step deeper than --bg, for log/terminal grounds (per spec) */
  --terminal: oklch(12% 0.005 240);

  --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui, sans-serif;
  --font-display:
    -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-1: 0 0 0 1px oklch(100% 0 0 / 0.04), 0 4px 12px oklch(0% 0 0 / 0.25);
  --shadow-2: 0 0 0 1px oklch(100% 0 0 / 0.05), 0 12px 32px oklch(0% 0 0 / 0.4);

  --maxw: 1120px;
  --gutter: 28px;

  color-scheme: dark;
}

/* ---------- reset / base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

code, kbd, samp { font-family: var(--font-mono); }

img, svg { display: block; }

::selection { background: var(--accent-soft); color: var(--fg); }

/* ---------- layout helpers ---------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
}

.section-narrow { max-width: 820px; margin-inline: auto; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-lede {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
}

.section-head { margin-bottom: 48px; }

/* ---------- buttons (pill or nothing) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
.btn-primary:hover { background: oklch(86% 0.19 135); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--fg-soft);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--muted-2); }

.btn-quiet {
  background: transparent;
  color: var(--fg-soft);
  padding-inline: 8px;
}
.btn-quiet:hover { color: var(--fg); }

.btn svg { width: 16px; height: 16px; }

/* ---------- pill / chip ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--muted);
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
}
.chip--accent { background: var(--accent-soft); border-color: transparent; color: var(--fg-soft); }

/* ---------- command / copy ---------- */

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 10px 10px 18px;
  color: var(--fg-soft);
  max-width: 100%;
}
.cmd .prompt { color: var(--accent); user-select: none; }
.cmd code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd .copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 120ms ease;
}
.cmd .copy:hover { color: var(--fg); border-color: var(--muted-2); }
.cmd .copy.copied { color: var(--accent); border-color: var(--accent); }
.cmd .copy svg { width: 14px; height: 14px; }

/* ============================================================
   Top navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(16% 0.005 240 / 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), oklch(72% 0.18 165));
  display: grid;
  place-items: center;
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; stroke: var(--accent-fg); }

.brand-wrap { display: inline-flex; align-items: center; gap: 10px; }
.nav-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 24%, transparent);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  white-space: nowrap;
}
@media (max-width: 600px) { .nav-badge { display: none; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color 120ms ease, background 120ms ease;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: 38px; height: 38px;
  cursor: pointer;
  color: var(--fg);
}

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--muted);
  line-height: 1.6;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; stroke: var(--accent); opacity: 0.85; }

/* ---------- live build card ---------- */

.build-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
/* 2.4s scanning accent line along the top edge */
.build-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 45%,
    oklch(92% 0.12 135) 50%,
    var(--accent) 55%,
    transparent 100%);
  background-size: 220% 100%;
  animation: slide 2.4s linear infinite;
}
.build-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.build-head .title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.build-head .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  font-feature-settings: "tnum";
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline-start: auto;
  font-size: 11.5px;
  font-weight: 550;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--info-soft);
  color: var(--info);
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.status-pill.is-done { background: var(--accent-soft); color: var(--accent); }
.status-pill.is-done .dot { animation: none; }

.build-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px 8px;
}
.step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--muted-2);
  padding: 5px 0;
  transition: color 200ms ease;
}
.step .ico {
  width: 18px; height: 18px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: transparent;
}
.step .ico svg { width: 11px; height: 11px; }
.step .dur {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  font-feature-settings: "tnum";
  opacity: 0;
  transition: opacity 200ms ease;
}
.step.is-active { color: var(--fg); }
.step.is-active .ico {
  border-color: var(--info);
  color: var(--info);
}
.step.is-active .ico svg { animation: spin 1s linear infinite; }
.step.is-done { color: var(--fg-soft); }
.step.is-done .ico {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.step.is-done .dur { opacity: 1; }

@keyframes spin { to { transform: rotate(360deg); } }

.build-progress {
  margin: 8px 18px 0;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.build-progress .fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-soft); /* the one place accent glows */
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.build-log {
  margin: 14px 14px 16px;
  background: var(--terminal);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--fg-soft);
  height: 116px;
  overflow: hidden;
  font-feature-settings: "tnum";
}
.build-log .line { white-space: pre-wrap; word-break: break-word; }
.build-log .t { color: var(--muted-2); }
.build-log .ok { color: var(--accent); }
.build-log .caret {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-inline-start: 2px;
  animation: blink 1s step-end infinite;
}

/* background glow behind hero card */
.hero-stage { position: relative; }
.hero-stage::after {
  content: "";
  position: absolute;
  inset: -10% -6% -10% 6%;
  background: radial-gradient(60% 55% at 70% 35%, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   Problem section
   ============================================================ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.problem-card .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  font-feature-settings: "tnum";
}
.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 12px 0 8px;
}
.problem-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   How it works
   ============================================================ */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
}
.flow-step .num {
  width: 34px; height: 34px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.flow-step h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.flow-step p { font-size: 14px; color: var(--muted); }
.flow-step p code {
  font-size: 12.5px;
  color: var(--fg-soft);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}
.flow-arrow {
  position: absolute;
  inset-inline-end: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border);
  z-index: 2;
}
.flow-arrow svg { width: 22px; height: 22px; }

/* ============================================================
   Benefits grid
   ============================================================ */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.benefit {
  background: var(--surface);
  padding: 26px 22px;
  transition: background 160ms ease;
}
.benefit:hover { background: var(--surface-2); }
.benefit .ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.benefit .ico svg { width: 18px; height: 18px; }
.benefit h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.benefit p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   Parity (dashboard + CLI)
   ============================================================ */

.parity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.surface-card .cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.surface-card .cap .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-inline-start: auto;
}
.surface-card .cap h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }

/* mini dashboard mock */
.mini-dash { padding: 16px 18px 20px; background: var(--bg); flex: 1; }
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  margin-bottom: 8px;
}
.mini-row:last-child { margin-bottom: 0; }
.mini-row .plat {
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--muted);
  flex: none;
}
.mini-row .plat svg { width: 15px; height: 15px; }
.mini-row .info { min-width: 0; }
.mini-row .info .name { font-size: 13px; font-weight: 550; }
.mini-row .info .sha {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  font-feature-settings: "tnum";
}
.mini-row .s {
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex: none;
}
.s-ok { background: var(--accent-soft); color: var(--accent); }
.s-run { background: var(--info-soft); color: var(--info); }
.s-wait { background: var(--surface-3); color: var(--muted); }

/* mini terminal */
.mini-term {
  background: var(--terminal);
  flex: 1;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-soft);
  font-feature-settings: "tnum";
}
.mini-term .p { color: var(--accent); }
.mini-term .c { color: var(--muted-2); }
.mini-term .ok { color: var(--accent); }
.mini-term .caret {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

/* ============================================================
   Security
   ============================================================ */

.security {
  background:
    radial-gradient(80% 120% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.security-points { display: grid; gap: 18px; }
.spoint { display: flex; gap: 14px; }
.spoint .ico {
  flex: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent);
}
.spoint .ico svg { width: 18px; height: 18px; }
.spoint h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; letter-spacing: -0.01em; }
.spoint p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============================================================
   Scope (honest)
   ============================================================ */

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.scope-col {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--surface);
}
.scope-col h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.scope-col h3 .badge {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.scope-col.does h3 .badge { background: var(--accent-soft); color: var(--accent); }
.scope-col.doesnt h3 .badge { background: var(--surface-3); color: var(--muted); }
.scope-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.scope-col li {
  display: flex; gap: 11px;
  font-size: 13.5px; color: var(--fg-soft); line-height: 1.5;
}
.scope-col li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.scope-col.does li svg { color: var(--accent); }
.scope-col.doesnt li svg { color: var(--muted-2); }
.scope-col li code {
  font-size: 12.5px; color: var(--fg);
  background: var(--surface-2); padding: 1px 6px; border-radius: var(--radius-sm);
}
.scope-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}
.scope-note strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   CTA band + footer
   ============================================================ */

.cta-band {
  text-align: center;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) var(--gutter);
  background:
    radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
}
.cta-band h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cta-band p { margin: 16px auto 0; max-width: 52ch; color: var(--muted); font-size: 16px; }
.cta-band .actions {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.cta-soon {
  margin: 26px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 22%, transparent);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
}
.cta-soon .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
  flex: none;
}
.cta-soon strong { color: var(--accent); font-weight: 600; }

.footer {
  border-top: 1px solid var(--border-soft);
  padding-block: 44px 36px;
  margin-top: clamp(64px, 9vw, 120px);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer .brand { margin-bottom: 12px; }
.footer .tagline { font-size: 13px; color: var(--muted-2); max-width: 30ch; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0;
  transition: color 120ms ease;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted-2);
}
.footer-bottom .soon {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

/* ============================================================
   Docs page
   ============================================================ */

.docs-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 56px;
  align-items: start;
  padding-block: 56px;
}
.docs-side { position: sticky; top: 86px; }
.docs-side nav { display: grid; gap: 2px; }
.docs-side .grp {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); margin: 18px 0 8px; font-weight: 600;
}
.docs-side .grp:first-child { margin-top: 0; }
.docs-side a {
  font-size: 13.5px; color: var(--muted);
  padding: 7px 12px; border-radius: var(--radius-pill);
  transition: all 120ms ease;
}
.docs-side a:hover { color: var(--fg); background: var(--surface-2); }
.docs-side a.active { color: var(--accent); background: var(--accent-soft); }

.docs-body { max-width: 720px; min-width: 0; }
.docs-body h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 680; letter-spacing: -0.025em; line-height: 1.05;
}
.docs-lede { margin-top: 16px; font-size: 17px; color: var(--muted); }
.docs-body h2 {
  font-size: 21px; font-weight: 640; letter-spacing: -0.015em;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border-soft);
  scroll-margin-top: 86px;
}
.docs-body h3 { font-size: 16px; font-weight: 600; margin-top: 30px; letter-spacing: -0.01em; }
.docs-body p { margin-top: 14px; color: var(--fg-soft); font-size: 15px; line-height: 1.65; }
.docs-body p code, .docs-body li code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface-2); color: var(--fg);
  padding: 1.5px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
.docs-body ul, .docs-body ol { margin-top: 14px; padding-inline-start: 22px; color: var(--fg-soft); }
.docs-body li { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.docs-body a.link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.codeblock {
  margin-top: 18px;
  background: var(--terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.codeblock .cb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted-2);
}
.codeblock .cb-head .copy {
  margin-inline-start: auto;
  font-family: var(--font);
  font-size: 11.5px; font-weight: 550;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 4px 11px; cursor: pointer; transition: all 120ms ease;
}
.codeblock .cb-head .copy:hover { color: var(--fg); border-color: var(--muted-2); }
.codeblock .cb-head .copy.copied { color: var(--accent); border-color: var(--accent); }
.codeblock pre {
  margin: 0; padding: 16px 18px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  color: var(--fg-soft); overflow-x: auto;
  font-feature-settings: "tnum";
}
.codeblock pre .p { color: var(--accent); }
.codeblock pre .c { color: var(--muted-2); }
.codeblock pre .ok { color: var(--accent); }
.codeblock pre .k { color: var(--info); }

.callout {
  margin-top: 22px;
  display: flex; gap: 13px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-inline-start: 2px solid var(--accent);
}
.callout svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.callout p { margin: 0; font-size: 13.5px; color: var(--muted); }
.callout strong { color: var(--fg-soft); font-weight: 600; }
.callout.warn { border-inline-start-color: var(--warn); }
.callout.warn svg { color: var(--warn); }

.step-list { counter-reset: s; list-style: none; padding: 0; margin-top: 22px; }
.step-list > li {
  counter-increment: s;
  position: relative;
  padding-inline-start: 46px;
  padding-bottom: 26px;
  margin-top: 0;
}
.step-list > li::before {
  content: counter(s);
  position: absolute; inset-inline-start: 0; top: -2px;
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--accent); font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  display: grid; place-items: center;
}
.step-list > li::after {
  content: ""; position: absolute;
  inset-inline-start: 15px; top: 32px; bottom: 0;
  width: 1px; background: var(--border-soft);
}
.step-list > li:last-child { padding-bottom: 0; }
.step-list > li:last-child::after { display: none; }
.step-list h3 { margin-top: 0; }

/* Planned-docs preview (server setup — coming soon) */
.soon-list { display: grid; gap: 10px; margin-top: 22px; }
.soon-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.soon-row .soon-ix {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--muted-2); padding-top: 1px; min-width: 18px;
}
.soon-row .soon-main { flex: 1; min-width: 0; }
.soon-row h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.soon-row p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.soon-tag {
  flex: none; align-self: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 3px 9px; white-space: nowrap;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stage { max-width: 520px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-side { display: none; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav[data-open="true"] .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 62px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 18px; gap: 2px;
  }
  .nav[data-open="true"] .nav-links a { padding: 11px 12px; }
  .nav[data-open="true"] .nav-cta {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: calc(62px + 196px);
    background: var(--surface); padding: 0 var(--gutter) 18px; margin: 0;
  }
  .problem-grid, .flow { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .parity-grid, .scope-grid { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .benefits { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .cmd { width: 100%; }
  .cmd { justify-content: space-between; }
}

/* respect reduced motion — kill the marquees and pulses */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .build-card::before { animation: none; opacity: 0.5; }
  .status-pill .dot,
  .build-progress .fill,
  .step.is-active .ico svg,
  .caret, .mini-term .caret, .build-log .caret { animation: none; }
}
