:root {
  --bg: #f5f6f8;
  --bg-dark: #0d1117;
  --bg-mid: #161b22;
  --fg: #0d1117;
  --fg-light: #6e7681;
  --fg-muted: #8b949e;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: #d0d7de;
  --border-dark: #30363d;
  --white: #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

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

html { scroll-behavior: smooth; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 248, 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;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-light);
  font-weight: 400;
}

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--space-2xl) 2rem;
}
.hero-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: start;
}
.hero-stat-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--border-dark);
  padding-right: var(--space-xl);
}
.hero-stat {
  padding: var(--space-md) 0;
}
.hero-stat:first-child { padding-top: 0; }
.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}
.hero-stat-divider {
  width: 40px;
  height: 1px;
  background: var(--border-dark);
  margin: var(--space-xs) 0;
}
.hero-copy-col {
  padding-top: 0.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.hero-lede {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: var(--space-md);
}
.hero-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Manifesto */
.manifesto {
  background: var(--bg);
  padding: var(--space-2xl) 2rem;
}
.manifesto-inner {
  max-width: 680px;
  margin: 0 auto;
}
.manifesto-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--fg);
  margin-bottom: var(--space-md);
  font-weight: 300;
}
.manifesto-text--accent {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--fg);
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

/* Features */
.features {
  background: var(--white);
  padding: var(--space-2xl) 2rem;
}
.features-header {
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
}
.features-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature-card {
  background: var(--white);
  padding: var(--space-lg);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.feature-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--fg-light);
  line-height: 1.6;
}

/* How it works */
.howitworks {
  background: var(--bg);
  padding: var(--space-2xl) 2rem;
}
.howitworks-header {
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
}
.howitworks-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.howitworks-sub {
  font-size: 1rem;
  color: var(--fg-light);
}
.steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.step {
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 0;
  border-right: 1px solid var(--border);
  padding-right: var(--space-lg);
}
.step:last-child { border-right: none; }
.step:not(:first-child) { padding-left: var(--space-lg); }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}
.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--fg-light);
  line-height: 1.6;
}

/* Specs / API */
.specs {
  background: var(--bg-mid);
  padding: var(--space-2xl) 2rem;
}
.specs-header {
  max-width: 1100px;
  margin: 0 auto var(--space-md);
}
.specs-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.specs-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.specs-code {
  max-width: 1100px;
  margin: 0 auto;
}
.specs-code-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.specs-code-block {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #c9d1d9;
  white-space: pre;
}

/* Closing */
.closing {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--space-2xl) 2rem;
}
.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}
.closing-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
  font-weight: 300;
}
.closing-text--strong {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 1.5rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-meta {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .hero-stat-col {
    border-right: none;
    padding-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: var(--space-lg);
  }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 0; flex: 0 0 auto; }
  .hero-stat-number { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); padding: var(--space-md) 0; }
  .step:last-child { border-bottom: none; }
  .step:not(:first-child) { padding-left: 0; }
  .step { padding-left: 0 !important; padding-right: 0 !important; }
  .nav-tagline { display: none; }
}