:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a25;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --accent: #00e68a;
  --accent-dim: #00c876;
  --accent-glow: rgba(0, 230, 138, 0.15);
  --border: #2a2a3a;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 230, 138, 0.25);
  display: inline-block;
  border-radius: 4px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* Data flow visualization */
.hero-viz {
  display: flex;
  justify-content: center;
  align-items: center;
}

.data-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-node {
  width: 180px;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.flow-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.flow-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border));
  position: relative;
}

.flow-line::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--border);
}

.node-4 {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--bg-surface), rgba(0, 230, 138, 0.05));
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== HOW SECTION ===== */
.how {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.how-header {
  margin-bottom: 3.5rem;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.how-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipe-step {
  padding: 2rem 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.pipe-step:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.pipe-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.pipe-step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.pipe-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent-dim), var(--border));
  margin: 0 auto;
}

/* ===== STREAMS ===== */
.streams {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.streams-header {
  margin-bottom: 3rem;
}

.streams h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.stream-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stream-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stream-icon {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  border: 1px solid rgba(0, 230, 138, 0.2);
}

.stream-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stream-card p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 50%, var(--bg) 100%);
}

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

.closing h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

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

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

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

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-viz {
    display: none;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }

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

  .how, .streams {
    padding: 4rem 1.5rem;
  }

  .pipe-step {
    padding: 1.5rem;
  }

  .closing {
    padding: 5rem 1.5rem;
  }

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

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

  .stat-num {
    font-size: 1.4rem;
  }

  .streams-grid {
    gap: 1rem;
  }

  .stream-card {
    padding: 1.5rem;
  }
}