:root {
  --bg: #0a0f1c;
  --bg-surface: #111827;
  --bg-card: #1a2236;
  --fg: #e8ecf4;
  --fg-muted: #8b97b0;
  --accent: #4fd1c5;
  --accent-dim: #2c8c83;
  --accent-glow: rgba(79, 209, 197, 0.15);
  --border: #1e293b;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(79, 209, 197, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(99, 102, 241, 0.06), transparent),
    var(--bg);
}

.hero-inner {
  max-width: 780px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--accent);
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Pipeline */
.pipeline {
  padding: 6rem 2rem;
  background: var(--bg-surface);
}

.pipeline-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pipeline h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 3.5rem;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pipe-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.pipe-step:hover {
  border-color: var(--accent-dim);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.pipe-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.pipe-step p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Scale */
.scale {
  padding: 6rem 2rem;
}

.scale-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.scale-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.scale-text p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.format-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.scale-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.paper-stack {
  position: relative;
  width: 200px;
  height: 280px;
}

.paper {
  position: absolute;
  width: 180px;
  height: 240px;
  background: linear-gradient(135deg, #1e293b, #243044);
  border: 1px solid var(--border);
  border-radius: 8px;
  left: 50%;
  top: 50%;
}

.paper.p1 { transform: translate(-50%, -50%) rotate(-8deg); opacity: 0.3; }
.paper.p2 { transform: translate(-50%, -50%) rotate(-4deg); opacity: 0.45; }
.paper.p3 { transform: translate(-50%, -50%) rotate(0deg); opacity: 0.6; }
.paper.p4 { transform: translate(-50%, -50%) rotate(4deg); opacity: 0.8; }
.paper.p5 {
  transform: translate(-50%, -50%) rotate(8deg);
  opacity: 1;
  background: linear-gradient(135deg, #243044, #2d3a52);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 32px rgba(79, 209, 197, 0.1);
}

/* Closing */
.closing {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  text-align: center;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.closing-text {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.footer-note {
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Mobile */
@media (max-width: 768px) {
  .pipeline-grid {
    grid-template-columns: 1fr;
  }

  .scale-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .scale-visual {
    order: -1;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.2rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }

  .pipeline, .scale, .closing {
    padding: 4rem 1.5rem;
  }
}