:root {
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8b8b9e;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.1);
  --accent-glow: rgba(0, 212, 170, 0.25);
  --warn: #ffb347;
  --good: #00d4aa;
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --green: #6bcb77;
  --radius: 12px;
  --radius-sm: 6px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* HERO */
.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 1.5rem;
}

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

/* TERMINAL */
.terminal {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  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: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.terminal-body {
  padding: 1.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.9;
}

.line { color: var(--fg); }
.prompt { color: var(--accent); margin-right: 0.5rem; }
.output { color: var(--fg-muted); padding-left: 1.2rem; }
.output.good { color: var(--good); }
.output.warn { color: var(--warn); }
.blink .cursor { animation: blink 1s step-end infinite; }

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

/* METRICS */
.metrics {
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: var(--bg-secondary);
}

.metrics-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* FEATURES */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.features-header {
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.features-header p {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

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

.feature-block {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-block:hover {
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 0 30px var(--accent-dim);
}

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

.feature-icon {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-block h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

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

/* STACK */
.stack {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.stack-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stack-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1.5rem;
}

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

.stack-visual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-layer {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.stack-layer:hover {
  background: rgba(0, 212, 170, 0.06);
  transform: translateX(6px);
}

/* CLOSING */
.closing {
  padding: 8rem 2rem;
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}

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

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 3rem 2rem;
  text-align: center;
}

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

.footer-sub {
  color: var(--fg-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.footer-powered {
  color: var(--fg-muted);
  font-size: 0.7rem;
  opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4rem 1.5rem 2rem;
    gap: 2.5rem;
  }
  .metrics-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-large {
    grid-column: span 1;
  }
  .stack-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}