:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: rgba(0, 229, 204, 0.15);
  --accent: #00e5cc;
  --accent-dim: rgba(0, 229, 204, 0.6);
  --text: #f0ede8;
  --text-muted: rgba(240, 237, 232, 0.55);
  --text-dim: rgba(240, 237, 232, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* HERO */
.hero {
  padding: 80px 48px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

/* Map mockup */
.map-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.mockup-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}

.mockup-map {
  width: 100%;
}

.mockup-map svg {
  width: 100%;
  height: auto;
}

.mockup-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid;
  flex-shrink: 0;
}

.legend-dot.flaw { border-color: var(--accent); }
.legend-dot.solution { border-color: rgba(0,229,204,0.5); }
.legend-dot.paper { border-color: rgba(0,229,204,0.35); }
.legend-dot.question { border-color: rgba(0,229,204,0.65); }

/* MANIFESTO */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 48px;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 32px;
}

.manifesto-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: normal;
}

.manifesto-response {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* SECTION TYPOGRAPHY */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--text);
  margin-bottom: 12px;
}

.section-title.centered {
  text-align: center;
  margin-bottom: 32px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* MAPSTRUCTURE */
.mapstructure {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.mapstructure-header {
  margin-bottom: 48px;
}

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

.layer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.layer-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.layer-name {
  font-family: 'Figtree', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.layer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* NODECOLLECTION */
.nodecollection {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 48px;
}

.nodecollection-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.node-tags {
  margin-bottom: 24px;
}

.node-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.node-tag {
  background: rgba(0, 229, 204, 0.08);
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  color: var(--accent-dim);
}

.nodecollection-note {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-align: center;
}

/* CLOSING */
.closing {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.closing-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.closing-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 140px;
  text-align: center;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}

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

.footer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: var(--accent-dim);
}

.footer-desc {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .layers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .closing-stats {
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .nav, .hero, .manifesto, .mapstructure, .nodecollection, .closing, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .closing-stats {
    flex-direction: column;
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .nav-tagline {
    display: none;
  }
}