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

:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a26;
  --fg: #e0e0e8;
  --fg-muted: #8888a0;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --error-red: #ff3366;
  --warn-amber: #ffaa00;
  --border: #2a2a3a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  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;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(255, 51, 102, 0.06), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 2rem;
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}

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

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

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

.hero h1 .highlight {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

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

/* === TERMINAL SECTION === */
.terminal-section {
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
}

.terminal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  overflow: hidden;
}

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

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

.terminal-dot.red { background: var(--error-red); }
.terminal-dot.yellow { background: var(--warn-amber); }
.terminal-dot.green { background: var(--accent); }

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

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
}

.terminal-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.terminal-line .prompt {
  color: var(--accent);
  flex-shrink: 0;
}

.terminal-line .cmd { color: var(--fg); }

.terminal-line .output { color: var(--fg-muted); }

.terminal-line .status-ok { color: var(--accent); }
.terminal-line .status-warn { color: var(--warn-amber); }
.terminal-line .status-bug { color: var(--error-red); }

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

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

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

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

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

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

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

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

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

/* === STATS === */
.stats {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

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

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

.closing::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 400px;
  background: radial-gradient(ellipse 70% 70% at 50% 100%, var(--accent-glow), transparent);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 500px;
  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);
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.footer-tagline {
  color: var(--fg-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero {
    min-height: 80vh;
    padding-top: 4rem;
  }
  .terminal-body {
    font-size: 0.75rem;
    padding: 1rem;
  }
}
