:root {
  --bg: #0a0a0f;
  --bg-surface: #111118;
  --bg-elevated: #1a1a24;
  --fg: #e4e4ef;
  --fg-muted: #8888a0;
  --fg-dim: #55556a;
  --accent: #6366f1;
  --accent-bright: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- NAV --- */
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}

.logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.logo-dot {
  color: var(--accent-bright);
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-bright), #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* --- TERMINAL --- */
.terminal {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  max-width: 680px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: var(--red); opacity: 0.8; }
.dot.yellow { background: var(--yellow); opacity: 0.8; }
.dot.green { background: var(--green); opacity: 0.8; }

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

.terminal-body {
  padding: 20px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}

.line { color: var(--fg-muted); }
.prompt { color: var(--accent-bright); }
.cmd { color: var(--fg); font-weight: 500; }
.arg { color: var(--fg-dim); }
.output { padding-left: 18px; }
.ok { color: var(--green); }
.warn { color: var(--yellow); }
.cursor { color: var(--accent-bright); animation: blink 1s step-end infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

/* --- FEATURES --- */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.features h2, .how h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 56px;
  line-height: 1.15;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.feature-card.featured {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border-color: rgba(99, 102, 241, 0.2);
  text-align: center;
  padding: 48px 28px;
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

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

/* --- HOW / STATS --- */
.how {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.strikethrough {
  text-decoration: line-through;
  color: var(--fg-dim);
}

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

.stat {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 12px;
}

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

.how-text {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 700px;
  line-height: 1.7;
}

/* --- CLOSING --- */
.closing {
  padding: 120px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.04) 50%, var(--bg) 100%);
}

.closing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing p {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 24px;
}

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

.footer-brand {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

.footer-text {
  font-size: 13px;
  color: var(--fg-dim);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content {
    padding: 60px 20px 40px;
  }

  .hero h1 {
    letter-spacing: -1px;
  }

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

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

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

  .stat-number {
    font-size: 36px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .terminal-body {
    font-size: 11px;
  }
}