@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #0a0e17;
  --bg-surface: #111827;
  --bg-card: #1a2235;
  --fg-primary: #e2e8f0;
  --fg-secondary: #94a3b8;
  --fg-muted: #64748b;
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.15);
  --accent-warm: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --border: rgba(148, 163, 184, 0.08);
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

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

.mono { font-family: 'JetBrains Mono', monospace; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  background: rgba(34, 211, 238, 0.05);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

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

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

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-secondary);
  max-width: 560px;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ─── TERMINAL BLOCK ─── */
.terminal-wrap {
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}

.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

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

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

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--fg-secondary);
}

.terminal-body .cmd { color: var(--accent); }
.terminal-body .ok { color: var(--success); }
.terminal-body .warn { color: var(--accent-warm); }
.terminal-body .dim { color: var(--fg-muted); }

/* ─── STATS BAR ─── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

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

.features-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-header p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  padding: 6rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-num {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-content p {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ─── CLOSING ─── */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.closing p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* ─── FOOTER ─── */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.82rem;
}

footer .footer-name {
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .stats-bar { gap: 2rem; padding: 3rem 1.5rem; }
  .stat-number { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 0.75rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .terminal-wrap { max-width: 100%; }
  .terminal-body { font-size: 0.72rem; padding: 1rem; }
}