/* ============================================================
   ThreatRecall — Neural Dark brand theme
   Colors, typography, spacing per Neural Dark brand guide
   ============================================================ */

/* ── Palette ────────────────────────────────────────────── */
:root {
  --bg:         #0A0E17;
  --bg-card:    #161B22;
  --border:     #30363D;
  --accent:     #5EAE78;
  --accent-dim: #5EAE7818;
  --fg:         #C9D1D9;
  --fg-muted:   #8B949E;
  --link-hover: #58A6FF;

  /* code/token palette */
  --code-green:  #8ED1A0;
  --code-blue:   #79C0FF;
  --code-yellow: #E3B341;
  --code-muted:  #6B737D;

  --font-sans: 'Syne', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'IBM Plex Mono', monospace;

  --radius-card:   8px;
  --radius-input:  6px;
  --radius-inline: 4px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography scale ───────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}
.nav-cta:hover {
  border-color: var(--link-hover);
  color: var(--link-hover);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px 32px 80px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-inline);
  padding: 5px 12px;
  margin-bottom: 32px;
}
.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 680px;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Terminal ────────────────────────────────────────────── */
.hero-terminal {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  max-width: 680px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #161B22;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #FF5F57; }
.terminal-dot:nth-child(2) { background: #FEBC2E; }
.terminal-dot:nth-child(3) { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
}
.terminal-body { padding: 24px; }
.terminal-query {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.terminal-prompt {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.terminal-input {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--fg);
  line-height: 1.6;
}
.terminal-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.terminal-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.terminal-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  background: #0D1117;
}
.result-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.result-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 8px;
}
.result-body {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.6;
  margin-bottom: 10px;
}
.result-body.synthesis {
  color: var(--code-green);
  background: var(--accent-dim);
  border: 1px solid #5EAE7830;
  border-radius: var(--radius-inline);
  padding: 8px 12px;
}
.result-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.link-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg-card);
  color: var(--code-blue);
  border: 1px solid var(--border);
}

/* ── Section eyebrow ─────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Section heading (reused across sections) ───────────── */
.section-heading {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  max-width: 640px;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Tagline bar ─────────────────────────────────────────── */
.tagline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tagline-inner {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 0;
}
.tagline-segment {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tagline-sep {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--border);
  margin: 0 16px;
}

/* ── Problem ─────────────────────────────────────────────── */
.problem {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  border-bottom: 1px solid var(--border);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 40px;
}
.problem-card {
  background: var(--bg);
  padding: 36px 32px;
}
.problem-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.problem-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.problem-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── How It Works ─────────────────────────────────────────── */
.hiw-section {
  background: #0D1117;
}
.hiw-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  border-bottom: 1px solid var(--border);
}
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}
.hiw-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}
.hiw-step-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hiw-step-content p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.hiw-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.code-comment { color: var(--code-muted); }
.code-str { color: var(--code-yellow); }
.code-arrow { color: var(--accent); }
.code-sep { color: var(--code-muted); }

/* ── Pipeline visual (neural chain) ──────────────────────── */
.hiw-graph {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  overflow-x: auto;
}
.graph-node {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-inline);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.graph-node.actor { background: #5EAE7815; color: var(--accent); border: 1px solid #5EAE7830; }
.graph-node.ttp   { background: #79C0FF15;  color: var(--code-blue); border: 1px solid #79C0FF30; }
.graph-node.cve   { background: #E3B34115;  color: var(--code-yellow); border: 1px solid #E3B34130; }
.graph-arrow { color: var(--fg-muted); font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; }
.graph-conn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  flex-shrink: 0;
}
.graph-dashed {
  width: 40px;
  height: 0;
  border-top: 1.5px dashed var(--border);
  margin-bottom: 12px;
}
.graph-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--code-muted);
  text-align: center;
  white-space: nowrap;
}

/* ── Differentiators ─────────────────────────────────────── */
.differentiators {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  border-bottom: 1px solid var(--border);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 40px;
}
.diff-card {
  background: var(--bg);
  padding: 32px;
}
.diff-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
}
.diff-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.diff-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.diff-vs {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-muted);
  border-left: 2px solid var(--border);
  padding-left: 10px;
  line-height: 1.6;
}

/* ── Why Built ───────────────────────────────────────────── */
.whybuilt {
  background: #0D1117;
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.whybuilt-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.whybuilt-quote {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg);
  max-width: 600px;
  margin: 16px 0 20px;
}
.whybuilt-quote strong {
  color: var(--fg);
  font-weight: 600;
}
.whybuilt-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.whybuilt-links a {
  color: var(--code-blue);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
}
.whybuilt-links a:hover { text-decoration: underline; }
.whybuilt-links span { color: var(--code-muted); font-family: var(--font-mono); font-size: 13px; }
.whybuilt-stack {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-inline);
  padding: 6px 12px;
}
.whybuilt-stack strong { color: var(--fg); }
.gh-stars {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--code-muted);
}

/* ── Closing CTA ────────────────────────────────────────── */
.closing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  border-bottom: 1px solid var(--border);
}
.closing-inner h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 580px;
}
.closing-inner p {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-input);
  background: var(--accent);
  color: #0A0E17;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-bottom: 32px;
  line-height: 1.4;
  white-space: nowrap;
}
.cta-primary:hover { opacity: 0.82; }
.closing-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-inline);
  background: var(--bg-card);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-right a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
}
.footer-right a:hover { color: var(--fg); }

/* ── Waitlist ───────────────────────────────────────────── */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
/* Reset margin-bottom on .cta-primary inside flex CTA rows so buttons align */
.hero-cta-row .cta-primary { margin-bottom: 0; }
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}
.cta-secondary:hover { border-color: var(--fg-muted); color: var(--fg); }
.cta-ghost-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-input);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}
.cta-ghost-hero:hover { opacity: 0.75; }

/* ── Closing / Waitlist Form ────────────────────────────── */
.closing-inner { max-width: 1200px; margin: 0 auto; padding: 80px 32px; border-bottom: 1px solid var(--border); }
.waitlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.waitlist-left h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.waitlist-left p { color: var(--fg-muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; max-width: 440px; }
.waitlist-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--fg-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-input);
  color: var(--fg); font-family: var(--font-sans); font-size: 14px; padding: 10px 12px;
  outline: none; transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }
.form-error { font-family: var(--font-mono); font-size: 11px; color: #F85149; min-height: 14px; }
.label-opt { color: var(--code-muted); font-weight: 400; }
.form-submit { width: 100%; text-align: center; cursor: pointer; border: none; }
.form-success { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding: 16px; background: var(--accent-dim); border: 1px solid #5EAE7830; border-radius: var(--radius-input); text-align: center; }
.form-error-global { font-family: var(--font-mono); font-size: 12px; color: #F85149; padding: 8px 12px; background: #F8514910; border: 1px solid #F8514930; border-radius: var(--radius-inline); }

/* ── Audience / Who it's for ───────────────────────────── */
.who-its-for { max-width: 1200px; margin: 0 auto; padding: 80px 32px; border-bottom: 1px solid var(--border); }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; margin-top: 40px; }
.audience-card { background: var(--bg); padding: 32px; }
.audience-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.audience-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.7; }

/* ── Integration tags (HIW step 4) ─────────────────────── */
.hiw-integrations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.integration-tag { font-family: var(--font-mono); font-size: 11px; padding: 5px 12px; border-radius: var(--radius-inline); background: var(--bg-card); color: var(--fg-muted); border: 1px solid var(--border); }

/* ── Footer ─────────────────────────────────────────────── */
.footer-sep { color: var(--code-muted); font-family: var(--font-mono); font-size: 12px; margin: 0 6px; }

/* ── Nav right group ─────────────────────────────────────── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-gh {
  display: flex;
  align-items: center;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-gh:hover { color: var(--fg); }

/* ── Footer center (OSS line) ────────────────────────────── */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-center {
  text-align: center;
}
.footer-oss-line {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-oss-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
}
.footer-oss-link:hover { text-decoration: underline; }
.footer-stars-badge img { vertical-align: middle; }

/* ── OSS / Cloud two-card section ───────────────────────── */
.oss-section {
  border-bottom: 1px solid var(--border);
}
.oss-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.oss-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 40px;
}
.oss-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.oss-card--cloud { background: #0D1117; }
.oss-card-header { margin-bottom: 20px; }
.oss-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-inline);
}
.oss-badge--oss {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid #5EAE7830;
}
.oss-badge--cloud {
  background: #79C0FF10;
  color: var(--code-blue);
  border: 1px solid #79C0FF30;
}
.oss-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.oss-card-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.oss-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}
.oss-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.oss-check {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}
.oss-check--cloud { color: var(--code-blue); }
.oss-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}
.oss-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-input);
  text-decoration: none;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.oss-btn--gh {
  background: var(--accent);
  color: #0A0E17;
}
.oss-btn--gh:hover { opacity: 0.82; color: #0A0E17; }
.oss-btn--primary {
  background: var(--code-blue);
  color: #0A0E17;
}
.oss-btn--primary:hover { opacity: 0.82; color: #0A0E17; }
.oss-btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.oss-btn--outline:hover { border-color: var(--fg-muted); color: var(--fg); }
.oss-compare-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
}
.oss-compare-note a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 6px;
}
.oss-compare-note a:hover { text-decoration: underline; }

/* ── /open-source page ───────────────────────────────────── */
.osp-hero {
  padding-top: 80px;
  border-bottom: 1px solid var(--border);
}
.osp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 80px;
}
.osp-headline {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
  line-height: 1.1;
}
.osp-sub {
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
}
.osp-desc {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.osp-section {
  border-bottom: 1px solid var(--border);
}
.osp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.osp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 40px;
}
.osp-feature-card {
  background: var(--bg);
  padding: 32px;
}
.osp-feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 16px;
}
.osp-feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.osp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.osp-why-item {}
.osp-why-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}
.osp-why-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.osp-why-item p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.osp-table-wrap {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.osp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.osp-table th, .osp-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.osp-table tr:last-child td { border-bottom: none; }
.osp-table thead tr { background: var(--bg-card); }
.osp-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.osp-th-oss { color: var(--accent) !important; }
.osp-th-cloud { color: var(--code-blue) !important; }
.osp-table tbody tr:nth-child(even) { background: #0D1117; }
.osp-table td { color: var(--fg-muted); }
.osp-table td:first-child { color: var(--fg); font-weight: 500; }
.osp-code-block {
  background: #0D1117;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 40px;
}
.osp-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.osp-code-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}
.osp-code-file {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.osp-code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg);
  padding: 24px;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}
.osp-quickstart-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ── Hover states ───────────────────────────────────────── */
a:hover { color: var(--link-hover); }

/* ── /why page ───────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-inline);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--fg);
  background: var(--bg-card);
}
.nav-link--active {
  color: var(--accent);
}

.why-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px 80px;
}
.why-hero-inner {
  max-width: 800px;
}
.why-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-inline);
  padding: 5px 12px;
  margin-bottom: 40px;
}
.why-headline {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}
.why-timestamp {
  font-family: var(--font-mono);
  font-size: 13px;
}
.mono-muted { color: var(--fg-muted); }

/* ── Story section ─────────────────────────────────────── */
.why-story {
  background: #0D1117;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-story-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.why-terminal-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  max-width: 720px;
}
.why-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #161B22;
  border-bottom: 1px solid var(--border);
}
.why-terminal-body {
  padding: 28px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg);
}
.why-terminal-body p {
  margin-bottom: 20px;
  color: var(--fg);
}
.why-terminal-body p:last-child { margin-bottom: 0; }
.why-terminal-body strong { color: var(--fg); font-weight: 600; }
.terminal-comment { color: var(--fg-muted) !important; font-style: italic; }

/* ── Problem section ───────────────────────────────────── */
.why-problem {
  border-bottom: 1px solid var(--border);
}
.why-problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.why-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.why-section-headline {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
  max-width: 640px;
}
.why-section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.why-section-sub:last-child { margin-bottom: 0; }
.why-section-sub strong { color: var(--fg); }

.why-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 48px;
}
.why-problem-card {
  background: var(--bg);
  padding: 36px 32px;
}
.problem-card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.why-problem-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}
.why-problem-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ── Why Now section ──────────────────────────────────── */
.why-now {
  background: #0D1117;
  border-bottom: 1px solid var(--border);
}
.why-now-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.why-now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: start;
}
.why-now-card {}
.why-now-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.why-now-card-label--accent {
  color: var(--accent);
}
.why-now-terminal {
  background: #0A0E17;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 12px;
}
.why-now-card-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── Differentiator / CTA section ─────────────────────── */
.why-differentiator {
  border-bottom: 1px solid var(--border);
}
.why-differentiator-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}
.why-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-input);
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}
.cta-ghost:hover { opacity: 0.75; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero         { padding: 100px 20px 60px; }
  .hero-headline { font-size: 30px; }
  .problem-grid  { grid-template-columns: 1fr; }
  .diff-grid     { grid-template-columns: 1fr; }
  .hiw-step      { grid-template-columns: 32px 1fr; gap: 16px; }
  .hiw-step-num  { font-size: 22px; }
  .tagline       { display: none; }
  .hiw-graph     { gap: 4px; }
  .graph-dashed  { width: 24px; }
  .footer-inner  { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .footer-right  { justify-content: center; }
  .waitlist-grid { grid-template-columns: 1fr; gap: 40px; }
  .audience-grid { grid-template-columns: 1fr; }
  .oss-cards     { grid-template-columns: 1fr; }
  .osp-feature-grid { grid-template-columns: 1fr; }
  .osp-why-grid  { grid-template-columns: 1fr; gap: 32px; }
  .osp-headline  { font-size: 40px; }
  .why-problem-grid { grid-template-columns: 1fr; }
  .why-now-grid  { grid-template-columns: 1fr; }
  .why-hero      { padding: 100px 20px 60px; }
  .why-story-inner { padding: 60px 20px; }
  .why-problem-inner { padding: 60px 20px; }
  .why-now-inner { padding: 60px 20px; }
  .why-differentiator-inner { padding: 60px 20px; }
  .why-cta-group { gap: 12px; }
}

@media (max-width: 480px) {
  .problem-card, .diff-card { padding: 24px 20px; }
  .section-heading { font-size: 20px; }
  .oss-card { padding: 28px 24px; }
}