:root {
  --bg: #06060f;
  --bg-subtle: #0c0c1a;
  --bg-card: #10101f;
  --fg: #e8e6e3;
  --fg-muted: #8a8699;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --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;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: var(--accent-glow);
}

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

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

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

.hero-terminal {
  background: #0a0a16;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 680px;
  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);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

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

.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
}

.terminal-line {
  color: var(--fg);
}

.terminal-line.output {
  color: var(--fg-muted);
}

.terminal-line .prompt {
  color: var(--accent);
  margin-right: 8px;
}

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

.cursor {
  color: var(--accent);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-gradient {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ---- STATS ---- */
.stats {
  padding: 0 24px;
  margin-top: -8px;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-unit {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 4px;
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 24px;
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}

.features-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.feature-card:hover {
  border-color: rgba(245,158,11,0.2);
}

.feature-card.feature-large {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245,158,11,0.04) 100%);
}

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

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ---- STACK ---- */
.stack {
  padding: 80px 24px 100px;
}

.stack-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.stack-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}

.stack-text > p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 80px;
  flex-shrink: 0;
}

.stack-value {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.stack-visual {
  position: sticky;
  top: 40px;
}

.stack-code {
  background: #0a0a16;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.stack-code pre {
  padding: 24px 20px;
  overflow-x: auto;
}

.stack-code code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--fg);
}

.stack-code .kw { color: #c792ea; }
.stack-code .str { color: #c3e88d; }
.stack-code .num { color: var(--accent); }
.stack-code .cmt { color: #546e7a; font-style: italic; }

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

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

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

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

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

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

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

  .stats-inner {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat {
    flex: 0 0 45%;
  }

  .stat-divider {
    display: none;
  }

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

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

  .stack-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stack-visual {
    position: static;
  }

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

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