:root {
  --bg: #fefcf7;
  --bg-alt: #fff8ee;
  --fg: #1a1208;
  --fg-muted: #7c6f5a;
  --accent: #f97316;
  --accent-warm: #fb923c;
  --accent-light: #fed7aa;
  --border: #f0e6d8;
  --surface: #ffffff;
  --code-bg: #16110a;
  --code-fg: #f8f4ef;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* SECTIONS */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 3rem;
}

/* HERO */
.hero {
  padding: 5rem 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
}

/* CODE WINDOW */
.hero-code {
  position: relative;
}
.code-window {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 18, 8, 0.15), 0 4px 12px rgba(26, 18, 8, 0.08);
}
.code-dots {
  padding: 0.9rem 1.2rem;
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.code-body {
  padding: 1.5rem 1.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}
.code-body code { color: var(--code-fg); white-space: pre; }
.code-comment { color: #8a8a6e; font-style: italic; }
.code-kw { color: #c792ea; }
.code-mod { color: #82aaff; }
.code-type { color: #ffcb6b; }
.code-var { color: #f78c6c; }
.code-fn { color: #82aaff; }
.code-op { color: #89ddff; }

/* FEATURES */
.features { background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(26, 18, 8, 0.08);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.step {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--border);
  padding-right: 2.5rem;
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: none; padding-left: 2.5rem; }
.step:nth-child(2) { padding-left: 2rem; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 1rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* MANIFESTO */
.manifesto {
  background: var(--fg);
  color: var(--bg);
}
.manifesto blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.manifesto blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: #e8dcc8;
}
.manifesto-sub {
  font-size: 0.95rem;
  color: #9a8e7a;
  padding-left: 2rem;
}

/* CLOSING */
.closing {
  background: linear-gradient(160deg, #fff8ee 0%, #fef3e2 100%);
  text-align: center;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1rem;
}
.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-tagline {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-left: auto;
  margin-right: auto;
}
.footer-copy {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-code { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
  .step:last-child { border-bottom: none; }
  .footer-inner { flex-wrap: wrap; }
  .nav-links { display: none; }
}