@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #0f0f0f;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #f5f5f5;
  --muted: #888888;
  --accent: #4ade80;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ─────────────────────────────────── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent);
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover {
  color: var(--text);
  border-color: #555;
}

/* ── SECTIONS ────────────────────────────── */

section {
  max-width: 860px;
  margin: 0 auto;
  padding: 96px 48px;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ── HERO ────────────────────────────────── */

.hero {
  padding-top: 120px;
  padding-bottom: 120px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 22px;
  color: #aaaaaa;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #d5d5d5;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: #555;
  background: var(--surface);
}

/* ── PROBLEM ─────────────────────────────── */

.problem p {
  font-size: 21px;
  line-height: 1.75;
  color: #c8c8c8;
}

.problem p strong {
  color: var(--text);
  font-weight: 600;
}

/* ── BRIDGE ──────────────────────────────── */

.bridge {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border);
}

.bridge p {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ── WHAT IT IS ──────────────────────────── */

.what-it-is h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.col-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.col h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.col p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── HOW IT WORKS ────────────────────────── */

.how-it-works h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 4px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 4px;
}

.step-label {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.step-arrow {
  color: var(--muted);
  font-size: 18px;
  padding: 0 4px;
}

.pipeline-descriptions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.pipeline-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.pipeline-desc strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ── QUICK START ─────────────────────────── */

.quick-start h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 14px;
  line-height: 2;
  overflow-x: auto;
  position: relative;
}

.code-comment {
  color: #555;
}

.code-cmd {
  color: var(--text);
}

.code-arg {
  color: var(--accent);
}

.code-block-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.code-block-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── METHODOLOGY ─────────────────────────── */

.methodology h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.methodology p {
  color: #c8c8c8;
  margin-bottom: 40px;
}

.references {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reference {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ref-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-width: 20px;
  padding-top: 2px;
}

.ref-body {
  font-size: 14px;
  line-height: 1.6;
}

.ref-authors {
  color: var(--muted);
}

.ref-title {
  color: var(--text);
  font-style: italic;
}

.ref-desc {
  color: var(--muted);
  margin-top: 4px;
  font-size: 13px;
}

/* ── EMAIL CAPTURE ───────────────────────── */

.email-capture h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.email-capture p {
  color: var(--muted);
  margin-bottom: 32px;
}

.tally-wrapper {
  max-width: 100%;
}

/* ── CTA FINAL ───────────────────────────── */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-final p {
  color: var(--muted);
  margin-bottom: 40px;
}

.cta-final .hero-ctas {
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  transition: color 0.15s;
}

footer a:hover {
  color: var(--text);
}

.footer-right {
  display: flex;
  gap: 24px;
}

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  section {
    padding: 72px 24px;
  }

  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: 16px;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .pipeline {
    flex-direction: column;
    align-items: flex-start;
  }

  .pipeline-step {
    width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .pipeline-descriptions {
    grid-template-columns: 1fr 1fr;
  }

  .cta-final h2 {
    font-size: 28px;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }

  .pipeline-descriptions {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}
