:root {
  --bg: #0a0a0c;
  --bg-elevated: #111116;
  --bg-card: #16161c;
  --fg: #e8e6e3;
  --fg-dim: #8a8a97;
  --accent: #4ade80;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --red: #f87171;
  --yellow: #fbbf24;
  --green: #4ade80;
  --border: rgba(255,255,255,0.06);
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
  --max-w: 1100px;
}

* { 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;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 60px;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  text-align: center;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

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

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

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

/* Terminal mockup */
.hero-visual {
  width: 100%;
  max-width: 580px;
}

.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

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

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
}

.terminal-body .line { color: var(--fg); }
.terminal-body .dim { color: var(--fg-dim); }
.terminal-body .prompt { color: var(--accent); margin-right: 8px; }
.terminal-body .success { color: var(--accent); margin-right: 6px; }

/* === HOW === */
.how {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* === CONTRAST === */
.contrast {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.contrast-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.contrast h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  text-align: center;
}

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

.col {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.col.old {
  background: rgba(248, 113, 113, 0.04);
  border-color: rgba(248, 113, 113, 0.12);
}

.col.new {
  background: var(--accent-dim);
  border-color: rgba(74, 222, 128, 0.18);
}

.col-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.col.old .col-label { color: var(--red); }
.col.new .col-label { color: var(--accent); }

.col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col ul li {
  font-size: 0.95rem;
  color: var(--fg-dim);
  padding-left: 20px;
  position: relative;
}

.col.old ul li::before {
  content: '\00D7';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 600;
}

.col.new ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* === CLOSING === */
.closing {
  padding: 120px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

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

.closing-text {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 500;
}

/* === FOOTER === */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

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

  .hero {
    min-height: auto;
    padding: 60px 20px 40px;
  }

  .how, .contrast, .closing {
    padding: 60px 20px;
  }

  .terminal-body {
    font-size: 12px;
    padding: 14px;
  }
}