:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-card: #1a1a26;
  --fg: #e8e8f0;
  --fg-dim: #6b6b80;
  --accent: #00e5a0;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --hot: #ff6b6b;
  --cold: #6bc5ff;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

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

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

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

.hero-bg-digits {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.drift {
  position: absolute;
  font-family: var(--mono);
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  animation: float 20s ease-in-out infinite;
  user-select: none;
}

.d1 { top: 5%; left: 10%; animation-delay: 0s; }
.d2 { top: 15%; right: 15%; animation-delay: -3s; }
.d3 { top: 40%; left: 5%; animation-delay: -6s; }
.d4 { bottom: 30%; right: 8%; animation-delay: -9s; }
.d5 { top: 10%; left: 50%; animation-delay: -12s; }
.d6 { bottom: 15%; left: 25%; animation-delay: -15s; }
.d7 { top: 55%; right: 30%; animation-delay: -2s; }
.d8 { bottom: 40%; left: 60%; animation-delay: -7s; }
.d9 { top: 70%; left: 15%; animation-delay: -11s; }
.d10 { top: 25%; right: 40%; animation-delay: -4s; }
.d11 { bottom: 10%; right: 45%; animation-delay: -8s; }
.d12 { top: 80%; right: 10%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin-bottom: 3rem;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: var(--accent-glow);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

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

.lede {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === TERMINAL === */
.hero-terminal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px 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.05);
}

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.terminal-body code {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  white-space: pre;
  min-height: 1.4em;
}

.dim { color: var(--fg-dim); }
.hot { color: var(--hot); font-weight: 600; }
.cold { color: var(--cold); font-weight: 600; }
.nums { color: var(--fg); font-weight: 500; letter-spacing: 0.2em; }

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

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

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

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

.feature-icon {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.7;
}

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

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

/* === HOW === */
.how {
  padding: 6rem 2rem;
  background: var(--bg-surface);
}

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

.how h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

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

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

.step-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  min-width: 3rem;
  padding-top: 0.15rem;
}

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

.step-content p {
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

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

.closing h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.closing-stat {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

/* === FOOTER === */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .step-num {
    min-width: auto;
  }

  .closing-stat {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .hero-terminal {
    max-width: 100%;
  }

  .terminal-body code {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem; }
  .features { padding: 4rem 1.25rem; }
  .how { padding: 4rem 1.25rem; }
  .closing { padding: 5rem 1.25rem; }
}