@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-semibold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Outfit; src: url('/assets/fonts/outfit-black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --sky: #1aa7e8;
  --sky-deep: #087db8;
  --sky-soft: #dff5ff;
  --coral: #f04438;
  --coral-deep: #ca2e25;
  --gold: #f8ba19;
  --green: #10a967;
  --ink: #152231;
  --ink-soft: #40556a;
  --navy: #10283a;
  --paper: #ffffff;
  --canvas: #f3fafe;
  --line: #cfe7f4;
  --muted: #70879a;
  --shadow-sm: 0 8px 22px rgba(20, 55, 77, .10);
  --shadow: 0 28px 70px rgba(11, 48, 74, .18);
  --radius: 24px;
  --radius-lg: 38px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: white; background: var(--coral); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: white;
  background: var(--navy);
  border-radius: 12px;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 76px;
  padding: .65rem clamp(1rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(207, 231, 244, .7);
  backdrop-filter: blur(18px);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 32px rgba(16, 40, 58, .10); }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand img { width: 48px; height: 48px; flex: 0 0 auto; object-fit: cover; border: 2px solid white; border-radius: 14px; box-shadow: 0 4px 0 rgba(8, 125, 184, .18); }
.brand > span, .footer-brand > span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1rem; font-weight: 900; letter-spacing: -.025em; }
.brand small { margin-top: .22rem; color: var(--sky-deep); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.site-header nav { min-width: 0; display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.7rem); }
.site-header nav a { padding: .65rem .2rem; font-size: .92rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header nav a:not(.nav-cta):not(.nav-download):hover { color: var(--sky-deep); }
.nav-download {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem !important;
  color: var(--ink) !important;
  background: rgba(26, 167, 232, .12);
  border: 1.5px solid rgba(26, 167, 232, .3);
  border-radius: 999px;
  font-size: .84rem !important;
  font-weight: 800 !important;
  transition: all .2s ease;
}
.nav-download svg { stroke: var(--sky-deep); }
.nav-download:hover {
  background: var(--sky);
  color: white !important;
  border-color: var(--sky);
  transform: translateY(-1px);
}
.nav-download:hover svg { stroke: white; }

.nav-cta, .primary-link {
  min-height: 52px;
  padding: .78rem 1.15rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  color: white !important;
  background: var(--coral);
  border: 0;
  border-bottom: 5px solid var(--coral-deep);
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(240, 68, 56, .20);
  transition: transform .15s ease, border-width .15s ease, box-shadow .15s ease;
}
.nav-cta:hover, .primary-link:hover { transform: translateY(2px); border-bottom-width: 3px; box-shadow: 0 6px 18px rgba(240, 68, 56, .18); }

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  overflow: hidden;
  background: var(--sky-soft);
}
.hero-copy { position: relative; z-index: 2; width: min(55%, 780px); max-width: 780px; min-height: calc(100svh - 76px); padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7.5rem); display: grid; align-content: center; background: linear-gradient(90deg, rgba(243, 250, 254, .99) 0%, rgba(243, 250, 254, .94) 64%, rgba(243, 250, 254, 0) 100%); }
.eyebrow, .section-kicker { margin: 0 0 1rem; color: var(--sky-deep); font-size: .82rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow span { margin-right: .45rem; color: var(--green); }
h1, h2, h3 { margin-top: 0; font-weight: 900; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
h1 { max-width: 12ch; margin-bottom: 1.5rem; font-size: clamp(3.6rem, 5.8vw, 6.5rem); }
h1 em { color: var(--coral); font-style: normal; }
.hero-lede { max-width: 37rem; margin: 0; color: var(--ink-soft); font-size: clamp(1.08rem, 1.55vw, 1.32rem); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.hero-apk-btn {
  background: linear-gradient(135deg, #f04438 0%, #e02d1e 100%);
  border-bottom: 5px solid #a81c10;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.hero-apk-btn svg { flex-shrink: 0; stroke: white; }
.hero-apk-btn span { display: inline-flex; align-items: baseline; gap: .35rem; }
.hero-apk-btn small { font-size: .78rem; opacity: .92; font-weight: 700; }
.secondary-link { min-height: 50px; padding: .75rem .2rem; color: var(--sky-deep); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tertiary-link {
  min-height: 50px;
  padding: .75rem .2rem;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: color .2s ease;
}
.tertiary-link:hover { color: var(--ink); }
.proof-list { margin: 2.4rem 0 0; padding: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 1.4rem; border-top: 1px solid var(--line); list-style: none; }
.proof-list li { display: grid; min-width: 76px; }
.proof-list strong { color: var(--ink); font-size: 1.55rem; font-weight: 900; line-height: 1; }
.proof-list span { margin-top: .25rem; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.hero-world { position: absolute; inset: 0; min-width: 0; min-height: calc(100svh - 76px); margin: 0; overflow: hidden; background: #14263c; }
.hero-world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(243, 250, 254, .58) 0%, transparent 54%), linear-gradient(180deg, transparent 56%, rgba(8, 28, 42, .58) 100%); pointer-events: none; }
.hero-world > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }
.hero-world figcaption { position: absolute; z-index: 2; right: clamp(1.5rem, 5vw, 5rem); bottom: clamp(1.5rem, 5vw, 4.5rem); left: clamp(1.5rem, 5vw, 5rem); padding-top: 1.2rem; display: flex; align-items: center; gap: 1rem; color: white; border-top: 1px solid rgba(255, 255, 255, .45); }
.hero-world figcaption > span { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ink); background: var(--gold); border: 3px solid white; border-radius: 50%; font-weight: 900; }
.hero-world figcaption div { min-width: 0; display: grid; }
.hero-world figcaption small { color: #d9eef9; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-world figcaption strong { font-size: clamp(1rem, 1.8vw, 1.45rem); line-height: 1.2; }
.capture-tag { position: absolute; z-index: 3; top: 1.5rem; right: 1.5rem; margin: 0; padding: .55rem .8rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); background: rgba(255, 255, 255, .92); border: 2px solid white; border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.capture-tag span { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(16, 169, 103, .18); }

.playtest { position: relative; z-index: 4; max-width: 1240px; margin: clamp(3rem, 6vw, 5rem) auto; padding: clamp(2rem, 4vw, 3.5rem); display: grid; grid-template-columns: minmax(260px, .7fr) minmax(480px, 1.3fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); color: white; background: linear-gradient(135deg, var(--navy), #153c56); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.playtest::before { content: "BETA"; position: absolute; top: -27px; left: 7%; width: 66px; height: 66px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border: 4px solid var(--canvas); border-radius: 50%; font-weight: 900; font-size: .85rem; letter-spacing: .04em; transform: rotate(-7deg); }
.playtest .section-kicker { color: #70d1ff; }
.playtest-heading h2 { max-width: 12ch; margin-bottom: 1rem; font-size: clamp(2.4rem, 4vw, 4rem); }
.playtest-heading > p:last-child,
.playtest-heading > p:nth-of-type(1) { max-width: 34rem; margin-bottom: 0; color: #bed6e4; }
.playtest-direct-download {
  margin-top: 1.6rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.btn-playtest-apk {
  min-height: 56px;
  padding: .85rem 1.35rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  color: white !important;
  background: linear-gradient(135deg, #10a967 0%, #0d8a53 100%);
  border: 0;
  border-bottom: 5px solid #08613a;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(16, 169, 103, .28);
  transition: transform .15s ease, border-width .15s ease, box-shadow .15s ease;
}
.btn-playtest-apk:hover {
  transform: translateY(2px);
  border-bottom-width: 3px;
  box-shadow: 0 6px 16px rgba(16, 169, 103, .24);
}
.btn-playtest-apk svg { flex-shrink: 0; stroke: white; }
.btn-playtest-apk div { display: grid; text-align: left; }
.btn-playtest-apk strong { font-size: 1.05rem; line-height: 1.2; }
.btn-playtest-apk small { font-size: .78rem; opacity: .92; font-weight: 600; }
.direct-download-note {
  display: block;
  margin-top: .65rem;
  color: #70d1ff;
  font-size: .78rem;
  font-weight: 700;
}
.signup-panel { min-width: 0; padding: clamp(1.2rem, 2.6vw, 2rem); display: grid; gap: 1.4rem; color: var(--ink); background: var(--paper); border: 3px solid #d5edf8; border-radius: var(--radius); box-shadow: 0 10px 0 #071620; }

.signup-community-bar {
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed rgba(26, 167, 232, .2);
}
.community-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  background: rgba(16, 169, 103, .12);
  border: 1px solid rgba(16, 169, 103, .35);
  border-radius: 999px;
  color: #0d8a53;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.live-pulse {
  width: 9px;
  height: 9px;
  background: #10a967;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 169, 103, .7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 169, 103, .7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 169, 103, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 169, 103, 0); }
}
.community-counter {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 700;
}
.community-counter strong {
  color: var(--green);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.community-subtext {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.signup-form label { display: block; margin-bottom: .5rem; font-size: .9rem; font-weight: 900; }
.input-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.input-row input { min-width: 0; min-height: 54px; padding: 0 1rem; color: var(--ink); background: var(--canvas); border: 2px solid var(--line); border-radius: 14px; }
.input-row input:focus { border-color: var(--sky); outline: 3px solid rgba(26, 167, 232, .2); }
.input-row input[aria-invalid="true"] { border-color: var(--coral); }
.input-row button { min-height: 54px; padding: 0 1.15rem; color: white; background: var(--coral); border: 0; border-bottom: 5px solid var(--coral-deep); border-radius: 14px; font-weight: 900; cursor: pointer; }
.input-row button:hover { transform: translateY(1px); border-bottom-width: 4px; }
.input-row button:disabled { cursor: wait; opacity: .65; }
.form-note { margin: .55rem 0 0; color: var(--muted); font-size: .78rem; }
.form-note a { color: var(--sky-deep); text-underline-offset: 3px; }
.form-status { min-height: 1.25rem; font-weight: 700; transition: all .25s ease; }
.form-status:not(:empty) {
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .88rem;
  line-height: 1.45;
}
.form-status.is-success {
  background: rgba(16, 169, 103, .12);
  border: 1px solid rgba(16, 169, 103, .35);
  color: #0d8a53;
}
.form-status.is-error {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #dc2626;
}

.signup-success-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 169, 103, .12) 0%, rgba(6, 182, 212, .08) 100%);
  border: 2px solid rgba(16, 169, 103, .45);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(16, 169, 103, .14);
  animation: fadeInSuccess .35s ease-out;
}
@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.signup-success-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.signup-success-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  background: #10a967;
  color: white;
  font-size: .8rem;
  font-weight: 900;
  border-radius: 999px;
  letter-spacing: .02em;
}
.signup-success-number {
  display: inline-flex;
  align-items: center;
  padding: .3rem .85rem;
  background: rgba(16, 169, 103, .18);
  border: 1px solid rgba(16, 169, 103, .5);
  color: #0d8a53;
  font-size: .88rem;
  font-weight: 900;
  border-radius: 999px;
}
.signup-success-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: .4rem;
}
.signup-success-card p {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.signup-success-card p strong {
  color: var(--ink);
}
.btn-signup-another {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 0;
  color: var(--sky-deep);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.btn-signup-another:hover {
  color: var(--sky);
}

.districts { padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); background: var(--paper); }
.section-heading { max-width: 1280px; margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 2.5rem; }
.section-heading h2, .gameplay h2, .closing h2 { margin-bottom: 0; font-size: clamp(3rem, 5.8vw, 6rem); }
.section-heading > p { max-width: 35rem; margin: 0 0 .4rem; color: var(--ink-soft); font-size: 1.08rem; }
.district-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.district-card { position: relative; min-width: 0; height: clamp(280px, 27vw, 380px); margin: 0; overflow: hidden; color: white; background: var(--navy); border-radius: 28px; box-shadow: var(--shadow-sm); isolation: isolate; }
.district-card::after { content: ""; position: absolute; z-index: 1; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(5, 20, 31, .94)); }
.district-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.district-card:hover img { transform: scale(1.035); }
.district-card > div { position: absolute; z-index: 2; right: 1.25rem; bottom: 1.25rem; left: 1.25rem; }
.district-card span { color: #82d9ff; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.district-card h3 { margin: .2rem 0 .25rem; font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.district-card p { margin: 0; color: #d9e8ef; font-size: .86rem; }

.gameplay { min-height: 900px; display: grid; grid-template-columns: .92fr 1.08fr; color: white; background: var(--navy); border-block: 10px solid #183b52; }
.gameplay-copy { min-width: 0; padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem); align-self: center; }
.gameplay .section-kicker { color: #77d4ff; }
.gameplay h2 { max-width: 10ch; margin-bottom: 1.25rem; }
.gameplay-copy > p:not(.section-kicker) { max-width: 37rem; color: #c1d7e3; font-size: 1.08rem; }
.material-row { margin-top: 2rem; display: flex; gap: .75rem; }
.material-row figure { width: min(112px, 29%); margin: 0; padding: .5rem; color: var(--ink); background: white; border: 2px solid rgba(255,255,255,.55); border-radius: 18px; box-shadow: 0 8px 0 rgba(4, 18, 28, .22); }
.material-row img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.material-row figcaption { padding: .45rem .25rem .1rem; text-align: center; font-size: .78rem; font-weight: 900; }
.core-loop { margin: 2.5rem 0 0; padding: 0; display: grid; gap: .8rem; list-style: none; }
.core-loop li { padding: .9rem 0; display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: .7rem; border-top: 1px solid rgba(255,255,255,.13); }
.core-loop li > strong { color: var(--gold); font-size: .82rem; }
.core-loop li > span { display: grid; color: #9db7c7; font-size: .88rem; }
.core-loop b { color: white; font-size: 1rem; }
.delivery-truck-banner {
  margin-top: 1.8rem;
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
}
.delivery-truck-banner img {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.delivery-truck-banner strong {
  color: var(--gold);
  font-size: .95rem;
  display: block;
}
.delivery-truck-banner p {
  margin: .2rem 0 0;
  color: #c0d8e8;
  font-size: .84rem;
  line-height: 1.4;
}

.game-stage {
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #1f5074 0%, #0c2335 65%, #061521 100%);
}
.game-stage::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 167, 232, .24) 0%, transparent 70%);
  pointer-events: none;
}
.device-phone {
  position: relative;
  width: min(330px, 84vw);
  aspect-ratio: 1080 / 2160;
  background: #0f172a;
  border: 9px solid #1e293b;
  border-radius: 44px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .65), 0 0 0 2px rgba(255, 255, 255, .14), inset 0 0 0 2px rgba(0, 0, 0, .9);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s ease;
}
.device-phone:hover {
  transform: translateY(-4px);
}
.device-speaker {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
  z-index: 10;
}
.device-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background: #05141e;
  overflow: hidden;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease, transform .3s ease;
}
.device-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 1rem .9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 19, 30, .96) 60%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .5rem;
  z-index: 5;
}
.device-caption div { min-width: 0; }
.device-caption strong { font-size: .88rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-caption span:not(.stage-badge) { font-size: .7rem; color: #7ed0f7; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; display: block; }
.stage-badge {
  flex: 0 0 auto;
  padding: .25rem .55rem;
  border-radius: 8px;
  background: rgba(16, 169, 103, .92);
  color: white;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.gameplay-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  max-width: 480px;
  z-index: 2;
}
.chapter-tab {
  padding: .48rem .8rem;
  font-size: .76rem;
  font-weight: 800;
  color: #9ab4c7;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.chapter-tab:hover {
  color: white;
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .25);
}
.chapter-tab.active {
  color: #071620;
  background: var(--gold);
  border-color: white;
  box-shadow: 0 4px 14px rgba(248, 186, 25, .35);
}

.restoration { padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 6vw, 7rem); background: var(--canvas); }
.restoration-copy { max-width: 1280px; margin: 0 auto 2.5rem; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 2rem; }
.restoration-copy h2 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 5.8vw, 6rem); }
.restoration-copy > p:last-child { max-width: 34rem; margin: 0 0 .5rem; color: var(--ink-soft); font-size: 1.08rem; }
.compare { --position: 52%; position: relative; max-width: 1280px; aspect-ratio: 1376 / 768; margin: 0 auto; overflow: hidden; background: var(--navy); border: 6px solid white; border-radius: 30px; box-shadow: var(--shadow); }
.compare > img, .compare-after, .compare-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.compare-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--position); width: 4px; background: white; box-shadow: 0 0 0 1px rgba(16,40,58,.22); transform: translateX(-50%); pointer-events: none; }
.compare-divider span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; color: var(--ink); background: white; border: 3px solid var(--gold); border-radius: 50%; box-shadow: var(--shadow-sm); font-weight: 900; transform: translate(-50%, -50%); }
.compare input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.compare-label { position: absolute; z-index: 3; top: 1rem; padding: .55rem .75rem; color: white; background: rgba(16,40,58,.88); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.label-before { right: 1rem; }
.label-after { left: 1rem; background: rgba(16,169,103,.92); }

.feature-band { padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 6vw, 7rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: var(--paper); }
.feature-band > div { min-width: 0; padding: 1.5rem; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: .3rem .8rem; background: var(--canvas); border: 2px solid var(--line); border-radius: 20px; }
.feature-band > div > span { width: 36px; height: 36px; grid-row: 1 / 3; display: grid; place-items: center; color: var(--ink); background: var(--gold); border-radius: 50%; font-weight: 900; }
.feature-band strong { align-self: end; font-size: 1rem; font-weight: 900; }
.feature-band p { margin: 0; color: var(--muted); font-size: .88rem; }

.closing { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 8vw, 9rem); display: flex; align-items: end; justify-content: space-between; gap: 3rem; background: linear-gradient(140deg, #d8f5ff 0%, #f7fcff 62%, #fff4c9 100%); }
.closing h2 { max-width: 12ch; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; flex: 0 0 auto; margin-bottom: .5rem; }
.closing-actions .primary-link,
.closing-actions .secondary-link { margin: 0; }

footer { padding: 2.2rem clamp(1.25rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; color: white; background: #0b1b27; font-size: .82rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { border: 2px solid white; border-radius: 11px; }
.footer-brand strong { font-size: .9rem; }
.footer-brand small { color: #7bd7ff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
footer nav a { color: #bdd1dc; }
footer p { margin: 0; color: #7892a2; }

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

.legal-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2rem) clamp(4rem, 8vw, 6rem);
}

.legal-hero {
  margin-bottom: 2.2rem;
}

.legal-hero .eyebrow {
  margin-bottom: 0.75rem;
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin-bottom: 1.8rem;
}

.legal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  box-shadow: 0 2px 6px rgba(20, 55, 77, 0.03);
}

.legal-meta-item strong {
  color: var(--ink);
  font-weight: 800;
}

.legal-subnav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.legal-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px rgba(20, 55, 77, 0.04);
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.legal-tab:hover {
  color: var(--sky-deep);
  border-color: var(--sky);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 55, 77, 0.08);
}

.legal-tab.is-active {
  color: white;
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  box-shadow: 0 6px 18px rgba(8, 125, 184, 0.28);
}

.legal-tab-back {
  margin-left: auto;
  color: var(--sky-deep);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.legal-tab-back:hover {
  background: var(--sky-soft);
  border-color: var(--line);
}

.legal-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.legal-highlight-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.legal-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 55, 77, 0.12);
}

.legal-highlight-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--sky-soft);
  border: 1.5px solid #b3e3fc;
  border-radius: 13px;
}

.legal-highlight-icon.is-green {
  background: #dff7eb;
  border-color: #a3e7c5;
}

.legal-highlight-icon.is-amber {
  background: #fff5db;
  border-color: #fedf89;
}

.legal-highlight-title {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.legal-highlight-desc {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.2rem;
}

.legal-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 900;
  color: var(--navy);
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.2;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--sky-deep);
  margin: 1.8rem 0 0.65rem;
  line-height: 1.3;
}

.legal-card p {
  color: var(--ink-soft);
  margin-bottom: 1.15rem;
  line-height: 1.72;
  font-size: 0.98rem;
}

.legal-card ul {
  margin-bottom: 1.4rem;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.legal-card li {
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.legal-card strong {
  color: var(--ink);
  font-weight: 800;
}

.legal-card code {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.88em;
  color: var(--sky-deep);
  font-weight: 700;
}

.legal-card a {
  color: var(--sky-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.legal-card a:hover {
  color: var(--coral);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.legal-badge-green {
  background: #dff7eb;
  color: #0d7d4c;
  border: 1px solid #a3e7c5;
}

.legal-badge-sky, .legal-badge-cyan {
  background: #e0f4ff;
  color: #087db8;
  border: 1px solid #b3e3fc;
}

.legal-badge-amber {
  background: #fff5db;
  color: #b47805;
  border: 1px solid #fedf89;
}

.legal-table-container {
  overflow-x: auto;
  margin: 1.6rem 0 2rem;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(20, 55, 77, 0.04);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  background: var(--paper);
}

.legal-table th {
  background: #edf7fd;
  padding: 0.95rem 1.15rem;
  color: var(--navy);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--line);
}

.legal-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #e7f2f8;
  color: var(--ink-soft);
  vertical-align: top;
  line-height: 1.55;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: rgba(243, 250, 254, 0.7);
}

.legal-contact-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  margin-top: 2rem;
  box-shadow: 0 6px 18px rgba(20, 55, 77, 0.04);
}

.legal-contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
}

.legal-contact-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.legal-contact-row:last-child {
  margin-bottom: 0;
}

.legal-contact-label {
  font-weight: 800;
  color: var(--ink);
  min-width: 130px;
}

@media (max-width: 768px) {
  .legal-main {
    padding-top: 2rem;
    padding-inline: 1rem;
  }
  .legal-card {
    padding: 1.4rem 1.15rem;
    border-radius: 20px;
  }
  .legal-hero h1 {
    font-size: 2.1rem;
  }
  .legal-highlights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .legal-contact-row {
    flex-direction: column;
    gap: 0.15rem;
  }
  .legal-contact-label {
    min-width: auto;
  }
  .legal-tab-back {
    margin-left: 0;
  }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 1120px) {
  .hero-copy { padding-inline: clamp(1.5rem, 4vw, 4rem); }
  .playtest { margin-inline: 1.5rem; grid-template-columns: .8fr 1.2fr; }
  .gameplay-copy { padding-inline: clamp(1.5rem, 4vw, 4rem); }
}

@media (max-width: 860px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; display: block; }
  .hero-copy { width: 100%; max-width: 760px; min-height: auto; padding-block: 5rem; background: linear-gradient(180deg, rgba(243,250,254,.99), rgba(243,250,254,.93)); }
  .hero-world { position: relative; min-height: 520px; }
  .hero-world::after { background: linear-gradient(180deg, transparent 52%, rgba(8,28,42,.7)); }
  .playtest { grid-template-columns: 1fr; }
  .playtest-heading h2 { max-width: 15ch; }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .district-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .district-card { height: 320px; }
  .gameplay { grid-template-columns: 1fr; }
  .game-stage { min-height: 700px; }
  .restoration-copy { grid-template-columns: 1fr; align-items: start; }
  .feature-band { grid-template-columns: 1fr; }
  .closing { align-items: start; flex-direction: column; }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-header { min-height: 68px; padding-inline: .85rem; }
  .brand img { width: 44px; height: 44px; }
  .brand small { display: none; }
  .nav-cta { min-height: 50px; padding: .68rem .8rem !important; font-size: .8rem !important; }
  .hero-copy { padding: 3.75rem 1rem 3rem; }
  h1 { font-size: clamp(3.15rem, 16vw, 4.7rem); }
  .hero-lede { font-size: 1.04rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .primary-link, .hero-actions .secondary-link { width: 100%; }
  .secondary-link { justify-content: center; text-align: center; }
  .proof-list { justify-content: space-between; gap: .8rem; }
  .proof-list li { min-width: 68px; }
  .hero-world { min-height: 390px; }
  .hero-world figcaption { right: 1rem; bottom: 1.2rem; left: 1rem; }
  .capture-tag { top: 1rem; right: 1rem; }
  .playtest { margin: 3rem .75rem; padding: 3rem 1rem 1.2rem; border-radius: 28px; }
  .playtest::before { left: 1.2rem; }
  .signup-panel { padding: 1rem; border-radius: 20px; }
  .progress-label { align-items: center; font-size: .74rem; }
  .progress-label strong { display: block; font-size: 1.7rem; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { width: 100%; }
  .districts { padding-inline: 0; }
  .districts .section-heading { padding-inline: 1rem; }
  .section-heading h2, .gameplay h2, .closing h2 { font-size: clamp(2.8rem, 13vw, 4.6rem); }
  .district-grid { padding: 0 1rem .8rem; display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .district-card { width: min(86vw, 360px); height: 250px; flex: 0 0 auto; scroll-snap-align: center; }
  .district-card:first-child { scroll-snap-align: start; }
  .gameplay-copy { padding: 4.5rem 1rem 3rem; }
  .game-stage { min-height: 460px; padding: 3rem 1rem; }
  .delivery-art { width: min(420px, 88vw); border-width: 4px; border-radius: 28px; box-shadow: 12px 12px 0 rgba(248,186,25,.92), 0 24px 50px rgba(5,30,46,.28); }
  .restoration { padding-inline: .75rem; }
  .restoration-copy { padding-inline: .25rem; }
  .compare { aspect-ratio: 4 / 3; border-width: 4px; border-radius: 22px; }
  .compare > img, .compare-after img { object-position: center; }
  .feature-band { padding-inline: 1rem; }
  .closing { padding-inline: 1rem; }
  footer { grid-template-columns: 1fr; align-items: start; }
  footer p { grid-column: auto; }
}

@media (max-width: 370px) {
  .brand strong { font-size: .9rem; }
  .nav-cta { font-size: .74rem !important; }
  .proof-list span { font-size: .7rem; }
  .hero-world { min-height: 340px; }
  .hero-world figcaption > span { display: none; }
  .district-card { width: 88vw; height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
