:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: #14161d;
  --ink: #fff;
  --muted: rgb(255 255 255 / 0.72);
  --line: rgb(255 255 255 / 0.12);
  --coral: #ff6e5a;
  --gold: #ffcd3f;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --city-shift: 15vw;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
::selection { background: #fff; color: #000; }
.grad { background: linear-gradient(95deg, #ffd3c7 0%, #ff7a62 40%, #ffcd3f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- nav */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px;
  background: linear-gradient(180deg, rgb(11 12 16 / 0.75), rgb(11 12 16 / 0)); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.01em; }
.brand img { margin: -6px -2px -6px -6px; }
.nav nav { display: flex; align-items: center; gap: 18px; }
.nav-x { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--muted); }
.nav-x:hover { color: #fff; }
.btn, .field button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; background: var(--coral); color: #fff; font-weight: 800;
  text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px rgb(255 110 90 / 0.35); transition: transform 0.15s, filter 0.15s; }
.btn:hover, .field button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-ghost { display: inline-flex; margin-top: 18px; padding: 12px 20px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--muted); }
.btn-ghost:hover { color: #fff; border-color: rgb(255 255 255 / 0.3); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #0b0c10; }
/* wider than the hero by twice the shift, so downtown (the canvas centre) sits right of the copy with no edge in view */
.city { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + 2 * var(--city-shift)); }
.city canvas { cursor: default; }
.city-shield { position: absolute; inset: 0; z-index: 1; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 0.5s;
  background: linear-gradient(90deg, rgb(11 12 16 / 0.97) 0%, rgb(11 12 16 / 0.93) 30%, rgb(11 12 16 / 0.25) 52%, rgb(11 12 16 / 0) 64%),
    linear-gradient(0deg, rgb(11 12 16 / 0.9) 0%, rgb(11 12 16 / 0) 22%); }
.hero-copy { position: absolute; z-index: 2; left: max(28px, 6vw); top: 50%; transform: translateY(-46%); width: min(700px, calc(100vw - 56px)); transition: opacity 0.4s, transform 0.5s; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgb(255 205 63 / 0.12); border: 1px solid rgb(255 205 63 / 0.35);
  color: var(--gold); font-weight: 700; font-size: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(255 205 63 / 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgb(255 205 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 205 63 / 0); } }
.hero h1 { margin: 22px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5.4vw, 84px); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 .grad { white-space: nowrap; }
.lede { margin: 22px 0 0; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.explore { margin-top: 26px; padding: 0; border: 0; background: none; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; border-bottom: 2px solid rgb(255 255 255 / 0.3); padding-bottom: 3px; }
.explore:hover { border-color: #fff; }
.explore span { display: inline-block; transition: transform 0.2s; }
.explore:hover span { transform: translate(2px, -2px); }
.sample { position: absolute; z-index: 2; right: 24px; bottom: 18px; margin: 0; font-size: 12.5px; color: rgb(255 255 255 / 0.5); }

/* explore mode: the city goes interactive and full width */
.explore-ui { position: absolute; z-index: 3; left: 0; right: 0; top: 84px; display: flex; justify-content: center; align-items: center; gap: 14px; opacity: 0; pointer-events: none;
  transition: opacity 0.4s; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 0.85); }
.explore-ui button { padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgb(20 22 29 / 0.88); color: #fff; font-weight: 700; cursor: pointer; }
.explore-ui span { padding: 9px 14px; border-radius: 12px; background: rgb(20 22 29 / 0.7); }
.exploring body { overflow: hidden; }
.exploring .city { width: 100%; }
.exploring .city-shield { display: none; }
.exploring .hero-scrim { opacity: 0; }
.exploring .hero-copy { opacity: 0; transform: translate(-30px, -46%); pointer-events: none; }
.exploring .explore-ui { opacity: 1; pointer-events: auto; }
.exploring .nav nav, .exploring .sample { opacity: 0; pointer-events: none; }
.no-webgl .explore { display: none; }
.no-webgl .hero { background: radial-gradient(70% 90% at 75% 50%, #1d3a2a, #0b0c10 70%); }

.card { position: absolute; z-index: 3; left: 24px; bottom: 24px; width: min(360px, calc(100vw - 48px)); padding: 18px 20px; border-radius: 18px; background: rgb(20 22 29 / 0.92);
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgb(0 0 0 / 0.45); backdrop-filter: blur(10px); }
.card[hidden] { display: none; }
.card-pin { display: inline-block; padding: 4px 11px; border-radius: 99px; background: var(--pin); border: 2px solid #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.card-name { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.card-meta { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.6); }
.card-note { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* the engine's map labels (same look as the app) */
.mv-overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; isolation: isolate; z-index: 0; }
.mv-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--pin); color: #fff;
  border: 2px solid rgb(255 255 255 / 0.95); box-shadow: 0 6px 16px rgb(0 0 0 / 0.35); font-family: var(--font-display); font-weight: 800; font-size: 13px; white-space: nowrap; cursor: pointer;
  text-shadow: 0 1px 1px rgb(0 0 0 / 0.25); transition: filter 0.15s, box-shadow 0.15s; will-change: transform; }
.mv-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 9px; margin-left: -1px; background: rgb(255 255 255 / 0.9); }
.mv-pin::before { content: ""; position: absolute; left: 50%; top: calc(100% + 8px); width: 7px; height: 7px; margin-left: -3.5px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px var(--pin); }
.mv-pin em { font-style: normal; font-size: 9.5px; padding: 1px 5px; border-radius: 999px; background: #fff; color: var(--pin); letter-spacing: 0.04em; }
.mv-pin em.hot { background: #1b1b1f; color: #ffb347; }
.mv-pin small { display: none; font-size: 9.5px; padding: 1px 5px; border-radius: 999px; background: rgb(0 0 0 / 0.28); letter-spacing: 0.04em; }
.mv-pin .mv-pin-crown { font-style: normal; color: #ffd257; font-size: 14px; margin-left: -2px; }
.mv-pin:hover, .mv-pin.is-hover { filter: brightness(1.08); z-index: 99998 !important; }
.mv-pin:hover small, .mv-pin.is-hover small, .mv-pin.is-selected small { display: inline; }
.mv-pin.is-selected { z-index: 99999 !important; font-size: 15px; padding: 6px 12px; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.25), 0 10px 24px rgb(0 0 0 / 0.45); }
.mv-overlay.is-far .mv-pin:not(.is-selected):not(.is-hover) { font-size: 11px; padding: 2px 8px; border-width: 1.5px; }
.mv-overlay.is-far .mv-pin:not(.is-selected):not(.is-hover) em { display: none; }
.mv-zone { position: absolute; left: 0; top: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 18px 9px; border-radius: 10px;
  background: rgb(18 19 22 / 0.86); border: 1px solid rgb(255 255 255 / 0.12); color: #fff; white-space: nowrap; }
.mv-zone b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0.2em; line-height: 1; }
.mv-zone span { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgb(255 255 255 / 0.72); }
.mv-vacant-tip { position: absolute; left: 0; top: 0; padding: 5px 10px; border-radius: 8px; background: #fff; color: #111; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity 0.12s; white-space: nowrap; }
.mv-vacant-tip.is-on { opacity: 1; }

/* ---------------------------------------------------------------- waitlist */

.waitlist { margin-top: 30px; }
.field { display: flex; gap: 8px; padding: 6px; max-width: 520px; border-radius: 18px; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.16); }
.field input[type="email"] { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: none; color: #fff; font-size: 16px; outline: none; }
.field input::placeholder { color: rgb(255 255 255 / 0.4); }
.field:focus-within { border-color: rgb(255 255 255 / 0.4); }
.field button { padding: 12px 20px; font-size: 16px; white-space: nowrap; }
.field button:disabled { opacity: 0.6; cursor: default; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 10px 0 0 4px; font-size: 13.5px; color: rgb(255 255 255 / 0.55); }
.waitlist.done .field { display: none; }
.waitlist.done .form-note { margin: 0; padding: 14px 18px; max-width: 520px; border-radius: 14px; background: rgb(66 219 160 / 0.12); border: 1px solid rgb(66 219 160 / 0.4); color: #8ff0c9; font-size: 15px; font-weight: 700; }
.waitlist.err .form-note { color: #ff9a86; }

/* ---------------------------------------------------------------- sections */

.section { padding: clamp(80px, 11vw, 140px) 0; border-top: 1px solid rgb(255 255 255 / 0.06); }
.wrap { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.kicker { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.section h2 { margin: 14px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em; }
.video { margin-top: 40px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgb(0 0 0 / 0.5); background: #000; aspect-ratio: 16 / 9; }
.video video { display: block; width: 100%; height: 100%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.step { padding: 26px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.step b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #111; font-family: var(--font-display); font-weight: 800; }
.step h3 { margin: 18px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.step p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.grow { margin-top: 26px; border-radius: 24px; border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.feature { padding: 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.feature i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 16px var(--c); }
.feature h3 { margin: 16px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.feature p { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

.join { background: radial-gradient(60% 80% at 50% 0%, rgb(255 110 90 / 0.12), transparent 70%); }
.join h2 { margin-top: 22px; }
.join-lede { margin: 16px 0 0; font-size: 18px; color: var(--muted); }
.join .waitlist { width: min(520px, 100%); }
.join .form-note { text-align: center; }

.foot { padding: 34px 0 44px; border-top: 1px solid rgb(255 255 255 / 0.06); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand.small { font-size: 16px; gap: 8px; }
.brand.small img { margin: 0; }
.foot p { margin: 0; max-width: 560px; font-size: 13px; line-height: 1.5; color: rgb(255 255 255 / 0.45); text-align: right; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: 0.16s; }
.features .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --city-shift: 0px; }
  .nav { padding: 14px 18px; }
  .nav-x { display: none; }
  .hero-scrim { background: linear-gradient(0deg, rgb(11 12 16 / 0.97) 0%, rgb(11 12 16 / 0.82) 48%, rgb(11 12 16 / 0.25) 75%, rgb(11 12 16 / 0.5) 100%); }
  .hero-copy { top: auto; bottom: 52px; transform: none; left: 20px; width: calc(100vw - 40px); }
  .hero h1 .grad { white-space: normal; }
  .exploring .hero-copy { transform: translateY(30px); }
  .chip { font-size: 12.5px; }
  .field { flex-direction: column; }
  .field button { width: 100%; }
  .steps, .features { grid-template-columns: 1fr; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
  .foot p { text-align: left; }
  .explore-ui { top: 76px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip i { animation: none; }
}
