:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #55556a;
  --accent: #00e5a0;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-dim: #00c488;
  --border: #1e1e2a;
  --terminal-bg: #0d0d14;
  --red: #ff5f57;
  --yellow: #febc2e;
  --green: #28c840;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent);
}

.hero-grid {
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: var(--accent-glow);
}

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

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

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

/* Terminal */
.hero-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

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

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

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

.terminal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 2;
}

.terminal-line { color: var(--fg); }
.prompt { color: var(--accent); margin-right: 8px; }
.terminal-output { color: var(--fg-muted); padding-left: 20px; }

.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

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

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

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

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 16px;
}

.features-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

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

.feature-card:hover {
  border-color: rgba(0, 229, 160, 0.3);
}

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

.feature-icon {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 20px;
}

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

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

/* Bar chart visual */
.feature-visual {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 120px;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--accent-dim));
  border-radius: 6px 6px 0 0;
  position: relative;
  min-width: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.bar:hover { opacity: 1; }

.bar span {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-dim);
  white-space: nowrap;
}

/* ============ METRICS ============ */
.metrics {
  padding: 100px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metrics-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.metrics-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.metric-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

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

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

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

.closing h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
}

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

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

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-large {
    grid-column: 1;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .terminal-body {
    font-size: 11px;
    padding: 16px;
  }
  
  .bar span {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 16px 40px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .bar-chart {
    height: 80px;
    gap: 8px;
  }
}