:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8b8b9e;
  --accent: #6ee7b7;
  --accent-dim: #2d6a54;
  --accent-glow: rgba(110, 231, 183, 0.12);
  --border: #222233;
  --code-bg: #0d0d14;
  --font-body: 'Space Grotesk', system-ui, 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-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

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

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

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

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

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

.terminal-code {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--fg-muted);
}

.terminal-code .kw { color: #c792ea; font-weight: 600; }
.terminal-code .str { color: var(--accent); }
.terminal-code .num { color: #f78c6c; }
.terminal-code .comment { color: #546e7a; font-style: italic; }

/* ---- Shared Section ---- */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- How It Works ---- */
.how-it-works {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 64px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-dim);
  line-height: 1;
  min-width: 80px;
}

.step-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 480px;
}

.step-content code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ---- Features ---- */
.features {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.features h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  max-width: 500px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent-dim);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

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

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

/* ---- Closing ---- */
.closing {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.closing-block {
  max-width: 640px;
}

.closing-block h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing-block p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.footer-brand {
  font-weight: 600;
  color: var(--fg);
}

.footer-sep {
  opacity: 0.3;
}

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

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .lede {
    font-size: 1rem;
  }

  .terminal-code {
    font-size: 12px;
    padding: 16px;
  }

  .how-it-works,
  .features,
  .closing {
    padding: 80px 0;
  }

  .step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    font-size: 2rem;
    min-width: auto;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .terminal-code {
    font-size: 11px;
    padding: 12px;
  }
}