:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #111114;
  --bg-card: #16161a;
  --bg-terminal: #0d1117;
  --fg-primary: #e8e8ec;
  --fg-secondary: #8b8b96;
  --fg-muted: #5a5a66;
  --accent: #00e87b;
  --accent-dim: #00e87b22;
  --accent-glow: #00e87b44;
  --red: #ff4444;
  --yellow: #ffcc00;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 48px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
}

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

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

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--fg-secondary);
  max-width: 620px;
  line-height: 1.7;
}

/* Terminal */
.hero-terminal {
  background: var(--bg-terminal);
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
  box-shadow: 0 24px 80px rgba(0, 232, 123, 0.06);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

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

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

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

.t-prompt { color: var(--accent); font-weight: 700; }
.t-cmd { color: var(--fg-primary); }
.t-result { color: var(--fg-muted); padding-left: 18px; margin-bottom: 8px; }

/* ---- PROBLEM ---- */
.problem {
  padding: 120px 24px;
  background: var(--bg-secondary);
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.problem h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 60px;
  max-width: 700px;
}

.mono-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid #222228;
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color 0.2s;
}

.problem-card:hover { border-color: var(--accent-glow); }

.problem-icon {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 20px;
}

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

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

/* ---- ENGINE ---- */
.engine {
  padding: 120px 24px;
}

.engine-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}

.engine h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 60px;
}

.engine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.engine-feature {
  background: var(--bg-card);
  border: 1px solid #222228;
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.2s;
}

.engine-feature:hover { border-color: var(--accent-glow); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-dim);
  position: absolute;
  top: 20px;
  right: 28px;
  line-height: 1;
}

.engine-feature h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ---- NUMBERS ---- */
.numbers {
  padding: 120px 24px;
  background: var(--bg-secondary);
}

.numbers-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.numbers h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 60px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid #222228;
  border-radius: 12px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  line-height: 1.5;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  text-align: center;
}

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

.closing h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid #1a1a1f;
}

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

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 20px 40px; gap: 36px; }
  .terminal-body { font-size: 11px; padding: 14px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .hero-badge { font-size: 10px; }
}