:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #55556a;
  --accent: #4af0b0;
  --accent-glow: rgba(74, 240, 176, 0.15);
  --accent-secondary: #3dd4e6;
  --border: #2a2a3a;
  --radius: 12px;
  --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;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 32px;
  background: var(--bg-elevated);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 24px;
  max-width: 800px;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* Hero CTA */
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 40px;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 0 40px rgba(74, 240, 176, 0.3);
}
.hero-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.hero-cta-btn:active { transform: scale(0.98); }

/* Terminal */
.hero-visual { width: 100%; max-width: 620px; }

.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca41; }

.terminal-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 2;
}

.prompt { color: var(--accent); font-weight: 600; }
.cmd { color: var(--fg-muted); }
.cmd.success { color: var(--accent); font-weight: 500; }

.fade-1 { opacity: 0.9; }
.fade-2 { opacity: 0.8; }
.fade-3 { opacity: 0.7; }
.fade-4 { opacity: 1; }

/* ===== STATS ===== */
.stats {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  gap: 40px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 14px;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  margin-bottom: 64px;
}

.features-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

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

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

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.feature-icon {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--fg);
}

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

/* ===== HOW ===== */
.how {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.how-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.how-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 24px;
}

.how-text p {
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.aside-card {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.aside-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.aside-card p {
  color: var(--fg);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===== CLOSING ===== */
.closing {
  padding: 140px 24px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 212, 230, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 700px;
  margin: 0 auto 24px;
  position: relative;
}

.closing-text {
  color: var(--fg-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

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

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

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

  .terminal-body {
    font-size: 12px;
    padding: 16px;
  }

  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }

  .features,
  .how {
    padding: 80px 20px;
  }

  .closing {
    padding: 100px 20px;
  }
}