:root {
  --bg: #14110e;
  --paper: #1c1814;
  --line: rgba(243, 236, 228, 0.12);
  --text: #f3ece4;
  --muted: #a89f94;
  --coral: #fe3c72;
  --coral-deep: #c9184a;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --radius: 18px;
  --space: clamp(16px, 4vw, 32px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--text); text-decoration: none; }
.nav, main, footer { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand img {
  height: 28px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}
.nav nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav nav a:hover { color: var(--text); }
.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary {
  background: var(--coral);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.lg { padding: 14px 26px; font-size: 16px; }
.lang-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 36px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) var(--space) 48px;
}
.hero-copy { max-width: 36rem; }
.eyebrow {
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 0 0 18px;
}
.sub {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 34rem;
  text-wrap: pretty;
}
.trust {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.tick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--coral);
  position: relative;
  flex-shrink: 0;
}
.tick::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 5px;
  height: 8px;
  border: solid var(--coral);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.atlas-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 18px 18px;
  min-height: 460px;
}
.atlas-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.mw-shape {
  width: 100%;
  height: 420px;
  display: block;
}
.land-path {
  fill: url(#landFill);
  stroke: var(--coral);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lake-path {
  fill: rgba(90, 170, 190, 0.35);
  stroke: rgba(180, 220, 230, 0.55);
  stroke-width: 1.2;
}
.city-dots circle { fill: var(--text); }
.city-dots text {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 0 var(--space);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 8px;
  text-align: left;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.manifesto {
  max-width: 800px;
  margin: 0 auto 72px;
  padding: 0 var(--space);
}
.manifesto h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.manifesto-list { list-style: none; margin: 0; padding: 0; }
.manifesto-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.manifesto-list li:last-child { border-bottom: 1px solid var(--line); }
.num {
  font-family: var(--display);
  color: var(--coral);
  font-size: 22px;
  padding-top: 4px;
}
.manifesto h3 { margin: 0 0 6px; font-size: 18px; }
.manifesto p { margin: 0; color: var(--muted); font-size: 15px; }

.safety-band {
  max-width: 800px;
  margin: 0 auto 72px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.safety-band h2 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0 0 10px;
  font-size: 28px;
}
.safety-band p { color: var(--muted); margin: 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--space) 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer img {
  height: 24px;
  width: auto;
  vertical-align: middle;
}
.legal-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-start;
}
footer .legal-btn-row { justify-content: center; }
.legal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-weight: 650;
  font-size: 13px;
}
.legal-btn:hover { border-color: var(--coral); color: var(--coral); }

.back-home,
a.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  text-decoration: none !important;
  font-weight: 650;
  font-size: 13px;
}
.doc-legal { max-width: 680px; margin: 0 auto; padding: 32px 20px 64px; }
.doc-legal h1 { font-family: var(--display); font-size: 32px; margin: 16px 0 8px; }
.doc-legal h2 { font-size: 18px; margin: 28px 0 8px; }
.doc-legal p, .doc-legal li { color: var(--muted); }
.legal-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .atlas-frame { min-height: 0; }
  .mw-shape { height: 280px; }
  .nav nav { display: none; }
  .nav nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
  }
  .menu-btn { display: grid; place-items: center; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

[data-theme="light"] {
  --bg: #f4efe8;
  --paper: #fffdf9;
  --line: rgba(28, 24, 20, 0.12);
  --text: #1c1814;
  --muted: #6f675e;
  --coral: #e11d48;
  --coral-deep: #be123c;
}
[data-theme="light"] .nav { background: color-mix(in srgb, var(--bg) 90%, transparent); }
[data-theme="light"] .brand img,
[data-theme="light"] footer img { filter: invert(1) brightness(0.18); }
[data-theme="light"] .atlas-frame,
[data-theme="light"] .safety-band { box-shadow: 0 12px 40px rgba(28, 24, 20, 0.06); }
[data-theme="light"] .mw-shape circle { fill: var(--coral); }

html, body { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }


/* Theme toggle in landing nav */
.nav-theme-btn {
  appearance: none;
  border: 1px solid var(--line, rgba(255,255,255,0.15));
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.nav-theme-btn:hover {
  border-color: var(--coral, #fe3c72);
  color: var(--coral, #fe3c72);
}
#siteNav.open .nav-theme-btn {
  display: inline-flex;
  width: fit-content;
}
