:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-card-accent: #0f2a4a;
  --bg-card-light: #1a2744;
  --fg: #e2e8f0;
  --fg-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --terminal-bg: #0d1117;
  --terminal-green: #4ade80;
  --terminal-yellow: #fbbf24;
  --terminal-red: #f87171;
  --radius: 12px;
  --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;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 6vw;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

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

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

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  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(--terminal-red); }
.dot.yellow { background: var(--terminal-yellow); }
.dot.green { background: var(--terminal-green); }
.terminal-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-family: var(--font-display);
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 2;
}

.terminal-body .line { color: var(--fg-muted); }
.terminal-body .prompt { color: var(--accent); font-weight: bold; }
.terminal-body .cmd { color: var(--fg); }
.terminal-body .output { color: var(--terminal-green); padding-left: 1.2rem; }
.terminal-body .highlight { color: var(--terminal-yellow); font-weight: bold; }
.terminal-body .blink .cursor {
  animation: blink 1s step-end infinite;
}

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

/* Hero CTA */
.hero-cta { margin-top: 2rem; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  background: var(--accent);
  color: #0a0e17;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.25);
}

.btn-hero:hover {
  background: #7dd3fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35);
}

/* ===== FEATURES ===== */
.features {
  padding: 8rem 6vw;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 600px;
}

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

.feature-card {
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.2);
}

.card-dark { background: var(--bg-card); }
.card-accent { background: var(--bg-card-accent); }
.card-light { background: var(--bg-card-light); }

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

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ===== METRICS ===== */
.metrics {
  padding: 6rem 6vw;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.metrics-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.metric-block { text-align: center; }

.metric-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 200px;
}

.metric-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* ===== CLOSING ===== */
.closing {
  padding: 10rem 6vw;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

.closing-text {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 450px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 6vw;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

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

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 5vw 2rem;
    gap: 2.5rem;
  }

  .hero-visual { order: -1; }

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

  .metrics-inner {
    flex-direction: column;
    gap: 2.5rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .closing {
    padding: 6rem 5vw;
  }
}