/* ==========================================================================
   Traffic Escape — marketing site
   Dark, tactile and built around the game's emerald / amber palette.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0f111a;
  --bg-deep: #080a10;
  --surface: #1e202b;
  --surface-raised: #242736;
  --surface-soft: rgba(30, 32, 43, 0.7);
  --white: #ffffff;
  --text: #f5f6fa;
  --muted: #a1a1a6;
  --muted-strong: #c4c6d0;
  --green: #00d26a;
  --green-bright: #6bffb0;
  --green-soft: rgba(0, 210, 106, 0.12);
  --amber: #ff9500;
  --amber-soft: rgba(255, 149, 0, 0.12);
  --red: #ff3b30;
  --red-soft: rgba(255, 59, 48, 0.12);
  --indigo: #7b79ff;
  --indigo-soft: rgba(123, 121, 255, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --container: 1180px;
  --header-height: 82px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-lg: 0 32px 80px -24px rgba(0, 0, 0, 0.75);
  --font-body: "Inter", "SF Pro Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Avenir Next", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% -10%, rgba(94, 92, 230, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--green);
  color: var(--bg-deep);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

ul,
ol {
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

svg-sprite,
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--green);
  color: var(--bg-deep);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.text-muted {
  color: var(--muted);
}

.text-gradient {
  display: inline-block;
  background: linear-gradient(115deg, #00d26a 10%, #8dffc7 52%, #00d26a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 26, 0.68);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 11, 18, 0.9);
  border-color: var(--line);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--white);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand__text strong {
  font-weight: 900;
  color: var(--green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 8px;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.site-nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--white);
}

.site-nav .gplay {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--white);
  transition: transform 200ms ease, opacity 160ms ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Shared components
   ========================================================================== */

.gplay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: linear-gradient(180deg, #17181d, #000);
  color: var(--white);
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.9);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gplay:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, #1d1f26, #050505);
  box-shadow: 0 22px 38px -18px rgba(0, 0, 0, 0.95);
}

.gplay:active {
  transform: translateY(0) scale(0.985);
}

.gplay__icon {
  width: 29px;
  height: 29px;
  flex: none;
}

.gplay__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.gplay__copy small {
  margin-bottom: 3px;
  color: #c9ccd4;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1;
}

.gplay__copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.gplay--compact {
  min-height: 46px;
  padding: 7px 13px;
  gap: 9px;
  border-radius: 12px;
}

.gplay--compact .gplay__icon {
  width: 23px;
  height: 23px;
}

.gplay--compact .gplay__copy small {
  font-size: 7px;
}

.gplay--compact .gplay__copy strong {
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, gap 180ms ease;
}

.text-link .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--white);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(0, 210, 106, 0.2);
  border-radius: 999px;
  background: rgba(0, 210, 106, 0.07);
  color: #bfffd9;
  font-size: 10.5px;
  letter-spacing: 0.13em;
}

.eyebrow__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.5);
  animation: pulse-ring 2.4s infinite;
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(38px, 5vw, 60px);
}

.section-heading h2 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}

.section-heading--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: 56px;
}

.section-heading--split > p {
  width: min(390px, 38%);
  margin: 0 0 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(54px, 7.5vw, 104px) 0 clamp(86px, 9vw, 132px);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 16, 0.78));
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  z-index: -4;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.hero__glow--green {
  top: 4%;
  right: -10%;
  width: min(620px, 52vw);
  height: min(620px, 52vw);
  background: radial-gradient(circle, rgba(0, 210, 106, 0.18), transparent 68%);
}

.hero__glow--indigo {
  bottom: -28%;
  left: -16%;
  width: min(720px, 60vw);
  height: min(720px, 60vw);
  background: radial-gradient(circle, rgba(94, 92, 230, 0.16), transparent 68%);
}

.hero__grid-lines {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.65;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 60% 35%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__copy > * {
  animation: rise-in 720ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero__copy > :nth-child(2) { animation-delay: 80ms; }
.hero__copy > :nth-child(3) { animation-delay: 150ms; }
.hero__copy > :nth-child(4) { animation-delay: 220ms; }
.hero__copy > :nth-child(5) { animation-delay: 290ms; }
.hero__copy > :nth-child(6) { animation-delay: 360ms; }

.hero h1 {
  max-width: 690px;
  margin-top: 24px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero__lede {
  max-width: 540px;
  margin-top: 26px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 34px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
}

.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero__facts .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
  stroke-width: 2.4;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 540px;
  margin-top: clamp(36px, 5vw, 58px);
  border-top: 1px solid var(--line);
}

.hero__stats > div {
  padding: 22px 22px 0 0;
  border-right: 1px solid var(--line);
}

.hero__stats > div + div {
  padding-left: 22px;
}

.hero__stats > div:last-child {
  border-right: 0;
}

.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero__stats span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 26px 8px;
  animation: stage-in 900ms 160ms both cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stage-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stage-orbit--outer {
  width: min(570px, 117%);
  aspect-ratio: 1;
  border-color: rgba(0, 210, 106, 0.11);
  box-shadow: inset 0 0 80px rgba(0, 210, 106, 0.035);
}

.stage-orbit--inner {
  width: min(440px, 92%);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.08);
}

.stage-orbit--inner::before {
  content: "";
  position: absolute;
  top: 12%;
  right: 10%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px 3px rgba(0, 210, 106, 0.5);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(26, 29, 41, 0.86);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: bob 6s ease-in-out infinite;
}

.float-card--reward {
  top: 11%;
  left: -6%;
  transform: rotate(-5deg);
}

.float-card--stars {
  right: -4%;
  bottom: -4%;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  animation-delay: -3s;
  transform: rotate(4deg);
}

.float-card__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}

.float-card__icon .icon {
  width: 18px;
  height: 18px;
}

.float-card small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.float-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.float-card__stars {
  display: flex;
  gap: 3px;
  color: var(--amber);
}

.float-card__stars .icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Phone / game preview
   ========================================================================== */

.phone {
  position: relative;
  z-index: 2;
  width: min(392px, 100%);
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 55px;
  background: linear-gradient(145deg, #202331, #05060b 38%, #12141e 74%, #05060b);
  box-shadow:
    0 60px 120px -36px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 90px -30px rgba(0, 210, 106, 0.3);
  transform: rotate(-2.2deg);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 500ms ease;
}

.phone:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 70px 130px -36px rgba(0, 0, 0, 0.98),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 110px -28px rgba(0, 210, 106, 0.38);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 47px;
  background: #0b0d15;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone__notch {
  position: absolute;
  z-index: 10;
  top: 7px;
  left: 50%;
  width: 106px;
  height: 27px;
  border-radius: 999px;
  background: #030407;
  transform: translateX(-50%);
}

.status-bar {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 39px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.status-bar__icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}

.signal-bars i {
  display: block;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
}

.signal-bars i:nth-child(1) { height: 3px; }
.signal-bars i:nth-child(2) { height: 5px; }
.signal-bars i:nth-child(3) { height: 7px; }
.signal-bars i:nth-child(4) { height: 9px; }

.wifi-mark {
  width: 11px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  transform: scaleY(0.8);
}

.battery-mark {
  position: relative;
  width: 17px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.battery-mark::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border-radius: 1px;
  background: var(--green);
}

.battery-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  right: -3px;
  width: 2px;
  height: 3px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.5);
}

.game-shell {
  position: relative;
  padding: 0 0 1px;
  background:
    radial-gradient(circle at 15% 10%, rgba(94, 92, 230, 0.09), transparent 34%),
    radial-gradient(circle at 92% 45%, rgba(0, 210, 106, 0.08), transparent 38%),
    #0b0d15;
}

.game-hud {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 2px;
}

.hud-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
}

.hud-button .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.hud-level {
  text-align: center;
}

.hud-level span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hud-level strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.hud-moves {
  text-align: right;
}

.hud-moves span {
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hud-moves small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  font-weight: 600;
}

.hud-moves em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cars-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 17px 8px;
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cars-left > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cars-left > span:first-child i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.8);
}

.cars-left__track {
  width: 92px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.cars-left__track i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.game-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(8, 1fr);
  aspect-ratio: 6 / 8;
  margin: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 15px;
  background:
    radial-gradient(circle at 24% 16%, rgba(94, 92, 230, 0.12), transparent 36%),
    radial-gradient(circle at 80% 72%, rgba(0, 210, 106, 0.08), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #181b26;
  background-size: auto, auto, calc(100% / 6) calc(100% / 8), calc(100% / 6) calc(100% / 8), auto;
  box-shadow:
    inset 0 0 36px rgba(0, 0, 0, 0.35),
    0 12px 24px -12px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}

.game-board::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.07) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(255, 255, 255, 0.07) 50%, transparent 50.3%);
  pointer-events: none;
}

.lane {
  position: absolute;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

.lane--v {
  top: 3%;
  bottom: 3%;
  left: calc(100% / 3);
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255, 204, 0, 0.9) 0 7px, transparent 7px 16px);
}

.lane--h {
  top: 62.5%;
  right: 3%;
  left: 3%;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(255, 204, 0, 0.9) 0 7px, transparent 7px 16px);
}

.vehicle {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.vehicle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.55));
  transform: rotate(var(--rot, 0deg)) scale(0.93);
  transition: transform 180ms ease;
}

.vehicle--v {
  grid-column: var(--x);
  grid-row: var(--y) / span var(--len);
}

.vehicle--h {
  grid-column: var(--x) / span var(--len);
  grid-row: var(--y);
}

.vehicle--h img {
  inset: auto;
  top: 50%;
  left: 50%;
  width: calc(100% / var(--len));
  height: calc(100% * var(--len));
  transform: translate(-50%, -50%) rotate(var(--rot, 90deg)) scale(0.9);
}

.vehicle--emergency::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 9%;
  right: 24%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px 3px rgba(255, 59, 48, 0.75);
  animation: siren-pulse 1.3s ease-in-out infinite;
}

.emergency-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 12px 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 9px;
  background: rgba(255, 59, 48, 0.08);
  color: #ffb8b4;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.emergency-strip strong {
  margin-left: auto;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.siren-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px 2px rgba(255, 59, 48, 0.7);
  animation: siren-pulse 1.2s ease-in-out infinite;
}

.power-dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 8px 12px 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.power {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.power__icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  color: var(--muted-strong);
}

.power__icon .icon {
  width: 18px;
  height: 18px;
}

.power__icon b {
  position: absolute;
  top: -4px;
  right: -5px;
  display: grid;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  place-items: center;
  border: 2px solid #171a24;
  border-radius: 999px;
  background: var(--amber);
  color: #1b1203;
  font-size: 7px;
  font-weight: 900;
  line-height: 1;
}

.power small {
  color: var(--muted);
  font-size: 6.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-indicator {
  width: 96px;
  height: 4px;
  margin: 4px auto 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Features
   ========================================================================== */

.section--features {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 28%, rgba(94, 92, 230, 0.08), transparent 25rem),
    linear-gradient(180deg, rgba(15, 17, 26, 0.2), #0c0e16 50%, var(--bg));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 48%),
    linear-gradient(145deg, rgba(31, 34, 46, 0.94), rgba(19, 21, 31, 0.92));
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.85);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}

.feature-card--amber {
  --accent: var(--amber);
  --accent-soft: var(--amber-soft);
}

.feature-card--red {
  --accent: var(--red);
  --accent-soft: var(--red-soft);
}

.feature-card--indigo {
  --accent: var(--indigo);
  --accent-soft: var(--indigo-soft);
}

.feature-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.feature-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card__icon .icon {
  width: 27px;
  height: 27px;
}

.feature-card__number {
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}

.feature-card h3 {
  max-width: 280px;
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.feature-card p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-card__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   Screenshot showcase
   ========================================================================== */

.section--screenshots {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 15%, rgba(0, 210, 106, 0.07), transparent 28rem),
    #0a0c14;
}

.section--screenshots::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 106, 0.4), transparent);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shot {
  padding: 10px 10px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 32, 43, 0.7), rgba(14, 16, 24, 0.8));
  box-shadow: 0 24px 50px -32px rgba(0, 0, 0, 0.9);
  transition: transform 230ms ease, border-color 230ms ease;
}

.shot:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.shot__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #0b0d15;
}

.shot__screen::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 27%;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.82));
  pointer-events: none;
}

.shot__screen--board {
  padding: 13px 12px 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 92, 230, 0.13), transparent 40%),
    #0b0d15;
}

.mini-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mini-hud__pause {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.mini-hud__pause .icon {
  width: 11px;
  height: 11px;
}

.mini-hud strong {
  color: var(--amber);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.mini-progress {
  height: 3px;
  margin: 10px 0 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-progress i {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
}

.mini-board {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  max-height: 70%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, rgba(94, 92, 230, 0.11), transparent 46%),
    #181b26;
  background-size: 25% 20%, 25% 20%, auto, auto;
  isolation: isolate;
}

.mini-dock {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 12px -12px 0;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.mini-dock span {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-strong);
}

.mini-dock .icon {
  width: 15px;
  height: 15px;
}

.mini-dock b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  place-items: center;
  border: 1px solid #151721;
  border-radius: 999px;
  background: var(--amber);
  color: #1b1203;
  font-size: 6px;
  line-height: 1;
}

.screenshot-caption {
  position: absolute;
  z-index: 5;
  right: 20px;
  bottom: 19px;
  left: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.shot__meta {
  padding: 19px 10px 20px;
}

.shot__index {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.shot__meta h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
}

.shot__meta p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Victory screen */

.shot__screen--victory {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 210, 106, 0.15), transparent 48%),
    radial-gradient(circle at 82% 16%, rgba(255, 149, 0, 0.15), transparent 33%),
    #0b0d15;
}

.shot__screen--victory::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(circle at center, #000, transparent 78%);
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  width: 5px;
  height: 11px;
  border-radius: 1px;
  opacity: 0.9;
  transform: rotate(var(--r, 24deg));
  animation: confetti-fall 4s linear infinite;
}

.confetti i:nth-child(1) { top: -8%; left: 8%; background: var(--green); --r: 20deg; animation-delay: -0.2s; }
.confetti i:nth-child(2) { top: -18%; left: 24%; background: var(--amber); --r: 64deg; animation-delay: -1.9s; }
.confetti i:nth-child(3) { top: -6%; left: 47%; background: var(--indigo); --r: -20deg; animation-delay: -3.1s; }
.confetti i:nth-child(4) { top: -16%; left: 68%; background: var(--green-bright); --r: 38deg; animation-delay: -0.9s; }
.confetti i:nth-child(5) { top: -10%; left: 89%; background: var(--amber); --r: 72deg; animation-delay: -2.4s; }
.confetti i:nth-child(6) { top: 17%; left: -4%; background: var(--red); --r: -30deg; animation-delay: -3.8s; }
.confetti i:nth-child(7) { top: 36%; left: 104%; background: var(--green); --r: 16deg; animation-delay: -1.4s; }
.confetti i:nth-child(8) { top: 72%; left: -2%; background: var(--indigo); --r: 54deg; animation-delay: -2.9s; }
.confetti i:nth-child(9) { top: 86%; left: 92%; background: var(--amber); --r: -10deg; animation-delay: -0.5s; }
.confetti i:nth-child(10) { top: 8%; left: 60%; background: var(--red); --r: 28deg; animation-delay: -2.1s; }
.confetti i:nth-child(11) { top: 64%; left: 15%; background: var(--green-bright); --r: 80deg; animation-delay: -3.5s; }
.confetti i:nth-child(12) { top: 48%; left: 80%; background: var(--indigo); --r: 44deg; animation-delay: -1.1s; }

.victory-modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 280px;
  padding: 28px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% -20%, rgba(0, 210, 106, 0.2), transparent 55%),
    rgba(26, 29, 42, 0.94);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.9);
  text-align: center;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.victory-modal__kicker {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.victory-stars {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 13px 0 10px;
  color: var(--amber);
  filter: drop-shadow(0 0 12px rgba(255, 149, 0, 0.45));
}

.victory-stars .icon {
  width: 25px;
  height: 25px;
}

.victory-stars .icon:nth-child(1) { transform: rotate(-8deg); }
.victory-stars .icon:nth-child(3) { transform: rotate(8deg); }

.victory-modal h3 {
  font-size: 24px;
  letter-spacing: -0.045em;
}

.receipt {
  margin-top: 18px;
  padding: 12px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  color: var(--muted);
  font-size: 9px;
}

.receipt strong {
  color: var(--muted-strong);
  font-weight: 750;
}

.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.receipt-total strong {
  color: var(--amber);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.victory-cta {
  padding: 11px 8px;
  border-radius: 11px;
  background: var(--green);
  color: #08160e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px -10px rgba(0, 210, 106, 0.7);
}

.victory-modal__hint {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
}

/* Tools screen */

.shot__screen--tools {
  padding: 28px 20px;
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 149, 0, 0.16), transparent 40%),
    radial-gradient(circle at 5% 85%, rgba(0, 210, 106, 0.1), transparent 36%),
    #0b0d15;
}

.tools-head {
  position: relative;
  z-index: 2;
}

.tools-head span {
  color: var(--amber);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.tools-head strong {
  display: block;
  max-width: 210px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.tool-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.tool-row__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 9px;
}

.tool-row__icon .icon {
  width: 17px;
  height: 17px;
}

.tool-row__icon--green { background: var(--green-soft); color: var(--green); }
.tool-row__icon--amber { background: var(--amber-soft); color: var(--amber); }
.tool-row__icon--indigo { background: var(--indigo-soft); color: var(--indigo); }

.tool-row div {
  min-width: 0;
  flex: 1;
}

.tool-row strong {
  display: block;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}

.tool-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-row__count {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.tools-demo {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(4, 7, 12, 0.3);
}

.tools-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tools-demo__head strong {
  color: var(--green);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.tools-demo__lanes {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.tools-demo__lane {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.tools-demo__lane::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  left: 8px;
  border-top: 1px dashed rgba(255, 204, 0, 0.16);
}

.tools-demo__lane--target {
  border-color: rgba(255, 149, 0, 0.45);
  background: rgba(255, 149, 0, 0.09);
  box-shadow: inset 0 0 18px rgba(255, 149, 0, 0.05);
}

.mini-car {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 15px;
  flex: none;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.45);
}

.mini-car::before {
  content: "";
  position: absolute;
  inset: 3px 8px;
  border-radius: 2px;
  background: rgba(12, 15, 24, 0.55);
}

.mini-car--red { background: var(--red); }
.mini-car--blue { background: #448bff; }
.mini-car--green { background: #65dd65; }
.mini-car--amber { background: var(--amber); }

.tools-demo__lane--target em {
  position: relative;
  z-index: 1;
  margin-left: auto;
  color: var(--amber);
  font-size: 7.5px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.tools-demo p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   How it plays
   ========================================================================== */

.section--steps {
  padding-top: clamp(64px, 8vw, 100px);
  padding-bottom: clamp(40px, 6vw, 80px);
  background: var(--bg);
}

.steps-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
  padding-top: 8px;
}

.steps-heading h2 {
  margin-top: 18px;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.steps-heading .text-link {
  margin-top: 26px;
}

.steps {
  list-style: none;
  counter-reset: steps;
  border-top: 1px solid var(--line);
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  flex: none;
  padding-top: 3px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.steps p {
  max-width: 450px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ==========================================================================
   Final download CTA
   ========================================================================== */

.download {
  position: relative;
  padding: 20px 0 clamp(80px, 9vw, 120px);
  background: var(--bg);
}

.cta-card {
  position: relative;
  min-height: 366px;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 106, 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 78% 30%, rgba(0, 210, 106, 0.22), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(94, 92, 230, 0.16), transparent 38%),
    linear-gradient(130deg, #1b1f2d 0%, #10131d 55%, #0b0e15 100%);
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.95);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 106, 0.65), transparent);
}

.cta-card__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: clamp(36px, 5.4vw, 68px);
}

.cta-card h2 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 4.7vw, 4.2rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.cta-card__content > p:not(.section-kicker) {
  max-width: 470px;
  margin-top: 18px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

.cta-card__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 28px;
}

.cta-card__note {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.traffic-light {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 68px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(160deg, #313644, #10131a);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-50%) rotate(4deg);
}

.traffic-light i {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.34);
}

.traffic-light i:nth-child(1) {
  box-shadow: inset 0 0 14px rgba(255, 59, 48, 0.14);
}

.traffic-light i:nth-child(2) {
  box-shadow: inset 0 0 14px rgba(255, 149, 0, 0.14);
}

.traffic-light i:nth-child(3) {
  background: var(--green);
  box-shadow: 0 0 22px 5px rgba(0, 210, 106, 0.43), inset 0 0 10px rgba(255, 255, 255, 0.5);
  animation: green-light 2.8s ease-in-out infinite;
}

.cta-road {
  position: absolute;
  right: -6%;
  bottom: -20%;
  width: 44%;
  height: 44%;
  display: flex;
  gap: 16px;
  transform: rotate(-18deg);
  opacity: 0.22;
}

.cta-road span {
  width: 9px;
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0 28px, transparent 28px 52px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 56px 0 22px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.65fr 0.8fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-links h2 {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 550;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
}

.footer-bottom p:nth-child(2) {
  margin-inline: auto;
}

.back_top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: color 160ms ease;
}

.back_top .icon {
  width: 14px;
  height: 14px;
}

.back_top:hover {
  color: var(--green);
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */

.policy-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(circle at 80% 15%, rgba(0, 210, 106, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 90%, rgba(94, 92, 230, 0.12), transparent 27rem);
}

.policy-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.policy-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.policy-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(0, 210, 106, 0.22);
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green);
}

.policy-icon .icon {
  width: 25px;
  height: 25px;
}

.policy-hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.policy-hero__lede {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.75;
}

.policy-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.policy-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.policy-hero__meta .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 960px;
  margin-top: clamp(34px, 5vw, 52px);
}

.policy-summary__item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(30, 32, 43, 0.56);
}

.policy-summary__item strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.policy-summary__item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(44px, 6vw, 76px) 0 clamp(80px, 10vw, 132px);
}

.policy-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding-top: 4px;
}

.policy-toc__label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.policy-toc nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 13px;
  border-left: 1px solid var(--line);
}

.policy-toc nav a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 160ms ease, transform 160ms ease;
}

.policy-toc nav a:hover {
  color: var(--green);
  transform: translateX(3px);
}

.policy-toc__contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--muted-strong);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}

.policy-toc__contact .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}

.policy-toc__contact:hover {
  color: var(--green);
}

.policy-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 210, 106, 0.04), transparent 34%),
    rgba(22, 24, 34, 0.82);
  box-shadow: 0 30px 70px -48px rgba(0, 0, 0, 0.9);
}

.policy-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: clamp(30px, 4vw, 46px);
  padding: 16px 18px;
  border: 1px solid rgba(0, 210, 106, 0.18);
  border-radius: 14px;
  background: rgba(0, 210, 106, 0.06);
  color: var(--muted-strong);
  font-size: 12.5px;
  line-height: 1.65;
}

.policy-callout .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--green);
}

.policy-section + .policy-section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.policy-section h2 {
  scroll-margin-top: calc(var(--header-height) + 24px);
  margin-bottom: 16px;
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.policy-section h2 .policy-section__num {
  margin-right: 8px;
  color: var(--green);
  font-size: 0.65em;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: 0.18em;
}

.policy-section h3 {
  margin-top: 26px;
  margin-bottom: 9px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.policy-section p,
.policy-section li {
  color: var(--muted-strong);
  font-size: 13.5px;
  line-height: 1.8;
}

.policy-section p + p {
  margin-top: 13px;
}

.policy-section ul,
.policy-section ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 15px 0 0;
  padding-left: 20px;
}

.policy-section li::marker {
  color: var(--green);
}

.policy-section a {
  color: var(--green-bright);
  text-decoration: underline;
  text-decoration-color: rgba(0, 210, 106, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.policy-section a:hover {
  text-decoration-color: var(--green-bright);
}

.policy-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 149, 0, 0.055);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.service-item {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.service-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.service-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.service-item a {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 650;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 210, 106, 0.18);
  border-radius: 16px;
  background: rgba(0, 210, 106, 0.055);
}

.contact-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.contact-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--white);
  font-size: 13px;
}

.contact-card a {
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.policy-back .icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.policy-back:hover {
  color: var(--green);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7vw, 5.4rem);
  }

  .float-card--reward {
    left: -2%;
  }

  .float-card--stars {
    right: -1%;
  }

  .feature-card {
    padding: 23px;
  }

  .feature-card__number {
    font-size: 38px;
  }
}

@media (max-width: 1100px) {
  .tools-demo p {
    display: none;
  }
}

@media (max-width: 1024px) {
  .shot__screen--board {
    padding-bottom: 40px;
  }

  .shot__screen--tools {
    padding: 20px 16px;
  }

  .tools-head strong {
    margin-top: 7px;
    font-size: 21px;
  }

  .tool-stack {
    gap: 6px;
    margin-top: 15px;
  }

  .tool-row {
    gap: 8px;
    padding: 7px;
  }

  .tool-row__icon {
    width: 28px;
    height: 28px;
  }

  .tools-demo {
    margin-top: 12px;
    padding: 8px;
  }

  .tools-demo__lanes {
    gap: 4px;
    margin-top: 6px;
  }

  .tools-demo__lane {
    height: 31px;
  }

  .tools-demo__lane:last-child,
  .tools-demo p {
    display: none;
  }
}

@media (max-width: 520px) {
  .tools-demo__lane:first-child {
    display: none;
  }

  .tools-demo__lane:last-child {
    display: flex;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #11131d;
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
  }

  .site-nav__link {
    padding: 13px 14px;
    border-radius: 11px;
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav .gplay {
    width: 100%;
    margin: 7px 0 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(3.5rem, 11vw, 6rem);
  }

  .hero__visual {
    width: min(100%, 500px);
    margin-inline: auto;
  }

  .float-card--reward {
    left: 2%;
  }

  .float-card--stars {
    right: 2%;
  }

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

  .section-heading--split {
    display: block;
  }

  .section-heading--split > p {
    width: auto;
    max-width: 560px;
    margin-top: 20px;
  }

  .shots {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(280px, 42%);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    scrollbar-width: thin;
  }

  .shot {
    scroll-snap-align: start;
  }

  .steps-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .steps-heading {
    max-width: 560px;
  }

  .cta-card__content {
    max-width: 74%;
  }

  .traffic-light {
    right: 7%;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
    gap: 28px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .policy-toc {
    position: static;
    padding: 0;
  }

  .policy-toc nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 0;
    border-left: 0;
  }

  .policy-toc nav a {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
  }

  .policy-toc nav a:hover {
    transform: none;
  }

  .policy-toc__contact {
    margin-top: 13px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 80px;
  }

  .hero__stats > div {
    padding-right: 14px;
  }

  .hero__stats > div + div {
    padding-left: 14px;
  }

  .hero__stats span {
    font-size: 8.5px;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .gplay {
    width: 100%;
  }

  .hero__actions .text-link {
    align-self: flex-start;
  }

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

  .feature-card {
    min-height: 235px;
  }

  .shots {
    grid-auto-columns: minmax(270px, 78%);
  }

  .cta-card {
    min-height: 0;
  }

  .cta-card__content {
    max-width: 100%;
  }

  .traffic-light {
    top: 26px;
    right: 24px;
    width: 48px;
    padding: 9px;
    gap: 6px;
    border-radius: 16px;
    transform: rotate(4deg);
    opacity: 0.8;
  }

  .traffic-light i {
    width: 27px;
    height: 27px;
  }

  .cta-card h2 {
    max-width: 80%;
  }

  .cta-road {
    right: -10%;
    bottom: -8%;
    width: 52%;
    height: 40%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
    padding-bottom: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .footer-bottom p:nth-child(2) {
    order: 3;
    width: 100%;
    margin: 0;
    color: inherit;
  }

  .back_top {
    margin-left: auto;
  }

  .policy-summary {
    grid-template-columns: 1fr;
  }

  .policy-summary__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .policy-summary__item strong {
    flex: none;
    margin: 0;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

@media (max-width: 520px) {
  :root {
    --header-height: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand__text {
    font-size: 18px;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 15.5vw, 4.4rem);
  }

  .hero__lede {
    font-size: 15.5px;
  }

  .hero__facts {
    gap: 8px 16px;
    font-size: 11px;
  }

  .hero__visual {
    padding-top: 12px;
  }

  .float-card {
    transform: scale(0.85) rotate(-5deg);
  }

  .float-card--reward {
    top: 4%;
    left: -14px;
  }

  .float-card--stars {
    right: -12px;
    bottom: -3%;
    transform: scale(0.85) rotate(4deg);
  }

  .stage-orbit--outer {
    width: 105%;
  }

  .section-heading h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .section-heading > p:last-child {
    font-size: 15px;
  }

  .cta-card__content {
    padding: 30px 24px 28px;
  }

  .cta-card h2 {
    max-width: 100%;
    font-size: 2.4rem;
  }

  .cta-card__content > p:not(.section-kicker) {
    font-size: 14px;
  }

  .cta-card__actions .gplay {
    width: 100%;
  }

  .traffic-light {
    display: none;
  }

  .cta-card__note {
    font-size: 9px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .shot__meta {
    padding-bottom: 18px;
  }

  .policy-hero__lede {
    font-size: 15px;
  }

  .policy-card {
    border-radius: 22px;
  }

  .policy-section p,
  .policy-section li {
    font-size: 13px;
  }

  .policy-hero__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.45);
  }
  65% {
    box-shadow: 0 0 0 8px rgba(0, 210, 106, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 210, 106, 0);
  }
}

@keyframes siren-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes green-light {
  0%,
  100% {
    box-shadow: 0 0 20px 3px rgba(0, 210, 106, 0.38), inset 0 0 10px rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 30px 8px rgba(0, 210, 106, 0.56), inset 0 0 10px rgba(255, 255, 255, 0.6);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(var(--r, 20deg));
  }
  100% {
    transform: translateY(540px) rotate(calc(var(--r, 20deg) + 280deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .float-card,
  .confetti i {
    animation: none;
  }
}
