:root {
  --bg-deep: #0a0a0f;
  --bg-card: #12121a;
  --bg-surface: #1a1a26;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #55556a;
  --accent: #00e676;
  --danger: #ff3d57;
  --warning: #ffab00;
  --accent-glow: rgba(0, 230, 118, 0.15);
  --danger-glow: rgba(255, 61, 87, 0.12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 230, 118, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(255, 61, 87, 0.04) 0%, transparent 60%),
    var(--bg-deep);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

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

.hero h1 .strike {
  color: var(--danger);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  opacity: 0.7;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 540px;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ── Stats Strip ── */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: var(--bg-card);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-cell {
  flex: 1;
  max-width: 300px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-deep);
}

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

.stat-cell .num.green { color: var(--accent); }
.stat-cell .num.red { color: var(--danger); }
.stat-cell .num.yellow { color: var(--warning); }

.stat-cell .label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
}

/* ── Problem Section ── */
.problem {
  padding: 6rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}

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

.failure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3rem;
}

.failure-card {
  padding: 2rem;
  background: var(--bg-card);
}

.failure-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.failure-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--danger);
}

.failure-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── Solution Section ── */
.solution {
  padding: 6rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
}

.solution-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.solution h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 650px;
}

.feature-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.feature-row:hover {
  border-color: rgba(0, 230, 118, 0.15);
}

.feature-indicator {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.feature-row h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-row p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── Terminal Demo ── */
.terminal-section {
  padding: 5rem 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.terminal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-bar .dot-r { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.terminal-bar .dot-y { width: 10px; height: 10px; border-radius: 50%; background: var(--warning); }
.terminal-bar .dot-g { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.terminal-body {
  padding: 1.25rem 1.25rem;
  line-height: 1.8;
}

.terminal-body .line { display: block; }
.terminal-body .prompt { color: var(--fg-dim); }
.terminal-body .pass { color: var(--accent); }
.terminal-body .fail { color: var(--danger); }
.terminal-body .warn { color: var(--warning); }
.terminal-body .dim { color: var(--fg-dim); }

/* ── Closing ── */
.closing {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(0, 230, 118, 0.05) 0%, transparent 70%),
    var(--bg-deep);
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 auto;
}

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

/* ── Footer ── */
footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}

footer p {
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ── CTA Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.1s;
  position: relative;
  z-index: 1;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.hero-cta {
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cta-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  margin: 0 !important;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .stats-strip {
    flex-direction: column;
  }

  .stat-cell {
    max-width: none;
    padding: 1.5rem 1rem;
  }

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

  .feature-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero {
    padding: 4rem 1.25rem;
  }

  .problem, .solution, .terminal-section, .closing {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}