:root {
  --bg: #08080d;
  --bg-raised: #10101a;
  --bg-card: #151520;
  --fg: #e8e8ef;
  --fg-dim: #8888a0;
  --fg-muted: #55556a;
  --accent: #00e87b;
  --accent-dim: rgba(0, 232, 123, 0.12);
  --red: #ff4d4d;
  --yellow: #ffcc00;
  --green: #00e87b;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1080px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
  overflow: hidden;
}

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

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

.terminal-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.terminal-tag .prompt {
  color: var(--fg-dim);
  margin-right: 0.3em;
}

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

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

/* Code block */
.hero-code {
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

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

.hero-code pre {
  padding: 20px;
  overflow-x: auto;
}

.hero-code code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

.line { display: block; }
.line-num { color: var(--fg-muted); margin-right: 1.2em; user-select: none; }
.comment { color: var(--fg-muted); font-style: italic; }
.kw { color: var(--accent); font-weight: 500; }
.accent-text { color: var(--accent); }
.badge {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.dimmed { color: var(--fg-muted); }

/* ---- PROBLEM ---- */
.problem {
  padding: var(--space-xl) var(--space-md);
}

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

.problem h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: var(--space-md);
}

.problem-icon {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

/* ---- FEATURES ---- */
.features {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-raised);
}

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

.features h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  padding-top: 4px;
  flex-shrink: 0;
  width: 36px;
}

.feature-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

/* ---- DIFFERENCE ---- */
.difference {
  padding: var(--space-xl) var(--space-md);
}

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

.difference h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.comp-col {
  padding: var(--space-md);
  border-radius: 12px;
}

.comp-col.old {
  background: rgba(255, 77, 77, 0.05);
  border: 1px solid rgba(255, 77, 77, 0.15);
}

.comp-col.new {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 232, 123, 0.2);
}

.comp-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

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

.comp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.comp-col li {
  font-size: 0.95rem;
  color: var(--fg-dim);
  padding-left: 1.4em;
  position: relative;
}

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

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

/* ---- CLOSING ---- */
.closing {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: var(--bg-raised);
}

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

.closing h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

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

/* ---- FOOTER ---- */
.site-footer {
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

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

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

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

  .feature-item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .feature-num {
    width: auto;
  }

  .hero-code {
    margin: 0 -1rem;
    border-radius: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
  }
}