:root {
  --bg: #0a0a0c;
  --bg-elevated: #111116;
  --bg-card: #16161c;
  --fg: #e8e6e3;
  --fg-muted: #8a8894;
  --fg-dim: #5a5867;
  --accent: #c4f;
  --accent-glow: rgba(204, 68, 255, 0.15);
  --accent-bright: #d97aff;
  --wire: #2a2a35;
  --wire-active: #c4f;
  --border: #1e1e28;
  --font-main: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Wire visualization */
.wire-viz {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.wire-node {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding: 0.75rem 1.25rem;
  border-left: 2px solid var(--wire);
  transition: all 0.3s ease;
  position: relative;
}

.wire-node::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--wire);
  border: 2px solid var(--bg-elevated);
}

.wire-node.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.wire-node.active::before {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.wire-line {
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-left: 2px solid var(--wire);
}

/* ─── SIGNAL (Stats) ─── */
.signal {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

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

/* ─── FEATURES ─── */
.features {
  padding: 6rem 2rem;
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.features-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.features-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.feature-card:hover {
  border-color: rgba(204, 68, 255, 0.3);
}

.feature-card.feature-wide {
  grid-column: span 2;
}

.feature-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 8px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

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

/* ─── HOW (Built for Underground) ─── */
.how {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.how-text {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.how-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.genre-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--wire);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.genre-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ─── CLOSING ─── */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

.closing-tagline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg-dim);
}

.footer-brand {
  font-weight: 600;
  color: var(--fg);
}

.footer-divider {
  color: var(--wire);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 4rem 1.5rem 3rem;
  }

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

  .hero-right {
    order: -1;
  }

  .signal-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .signal-divider {
    width: 60px;
    height: 1px;
  }

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

  .feature-card.feature-wide {
    grid-column: span 1;
  }

  .closing {
    padding: 5rem 1.5rem;
  }
}

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

  .features-header h2,
  .how h2,
  .closing h2 {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}