:root {
  --bg: #0a0e17;
  --bg-elevated: #111827;
  --bg-card: #151d2e;
  --fg: #e2e8f0;
  --fg-dim: #8892a4;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-green: #34d399;
  --accent-red: #f87171;
  --accent-yellow: #fbbf24;
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1120px;
}

* { 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;
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

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

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

/* Terminal */
.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

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

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

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

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

.terminal-line { color: var(--fg); }
.terminal-line.dim { color: var(--fg-dim); }
.terminal-line.success { color: var(--accent-green); }
.prompt { color: var(--accent); font-weight: 600; }
.cmd { color: #fff; font-weight: 500; }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }

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

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

.section-tag {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

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

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}

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

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

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-large {
  grid-column: span 2;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

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

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

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  display: block;
  line-height: 1;
}

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

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

/* ===== CLOSING ===== */
.closing {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px;
}

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

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.75;
  margin-bottom: 16px;
}

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

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

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

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

.footer-meta a:hover { text-decoration: underline; }

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

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

  .feature-large {
    grid-column: span 1;
  }

  .stats-inner {
    flex-direction: column;
    gap: 32px;
  }

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

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

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