@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a26;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #555570;
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.12);
  --accent-glow: rgba(0, 229, 160, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --font-display: '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-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
.nav {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent-glow); }
}

.nav-spec {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ---- HERO ---- */
.hero {
  padding: 100px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 229, 160, 0.15);
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.65;
}

.hero-code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  position: relative;
}

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

.hero-code-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-dim);
  opacity: 0.4;
}

.hero-code-bar .bar-title {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  opacity: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-left: 8px;
}

.hero-code pre {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--fg-muted);
  overflow-x: auto;
}

.hero-code pre .key { color: #7aa2f7; }
.hero-code pre .str { color: var(--accent); }
.hero-code pre .comment { color: var(--fg-dim); font-style: italic; }
.hero-code pre .bracket { color: var(--fg-dim); }

/* ---- DIVIDER ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 0;
}

.problem-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.problem h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 48px;
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.problem-card {
  background: var(--bg-surface);
  padding: 32px 28px;
}

.problem-card .card-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

.problem-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ---- HOW ---- */
.how {
  padding: 100px 0;
}

.how-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.how h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 56px;
}

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

.how-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.how-step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  padding-top: 4px;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 560px;
}

.step-content code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---- PRINCIPLES ---- */
.principles {
  padding: 100px 0;
}

.principles-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: 20px;
}

.principles h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 56px;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.principle {
  padding-left: 20px;
  border-left: 2px solid var(--bg-elevated);
}

.principle:hover {
  border-left-color: var(--accent);
}

.principle h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.principle p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

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

.closing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.closing p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---- FOOTER ---- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--fg-dim);
}

.footer a {
  color: var(--fg-muted);
  text-decoration: none;
}

.footer a:hover { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 24px;
}

/* ---- CTA BUTTONS (hero + closing) ---- */
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0a0a0f;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}

.hero-btn-primary:hover { opacity: 0.88; }

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.hero-btn-ghost:hover {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problem-cards {
    grid-template-columns: 1fr;
  }
  .principles-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .how-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 28px 0;
  }
  .closing { padding: 80px 0; }
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}