/* Merge Car Master — dreamy pink/lavender game shell + glass HUD panels */

:root {
  --violet-950: #1a0b2e;
  --violet-900: #2d1b4e;
  --violet-700: #5b21b6;
  --violet-500: #7c3aed;
  --pink-500: #ec4899;
  --pink-300: #f9a8d4;
  --cyan-400: #22d3ee;
  --amber-400: #fbbf24;
  --surface-glass: rgba(20, 12, 40, 0.55);
  --surface-glass-strong: rgba(12, 6, 28, 0.78);
  --text-strong: #12061f;
  --text-muted: #4c3a63;
  --text-on-dark: #f5f3ff;
  --text-muted-on-dark: rgba(245, 243, 255, 0.72);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1120px;
  --glow-cyan: 0 0 0 1px rgba(34, 211, 238, 0.45), 0 0 40px rgba(34, 211, 238, 0.18);
  --shadow-float: 0 24px 60px rgba(76, 29, 149, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

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

  .bg-scene__orb {
    animation: none !important;
  }
}

/* Extra perf: skip decorative orb motion on coarse pointers (many tablets / laptops with touch). */
@media (hover: none) {
  .bg-scene__orb {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-strong);
  background: linear-gradient(165deg, #fae8ff 0%, #fdf2f8 38%, #fff1f2 72%, #f5f3ff 100%);
  min-height: 100vh;
  line-height: 1.65;
  overscroll-behavior-y: contain;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--violet-900);
  color: var(--text-on-dark);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
}

.skip-link:focus {
  left: 1rem;
}

/* --- Ambient background --- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(196, 181, 253, 0.55) 0%, transparent 55%),
    radial-gradient(90% 70% at 90% 10%, rgba(251, 207, 232, 0.65) 0%, transparent 50%),
    linear-gradient(180deg, #ede9fe 0%, #fce7f3 45%, #fff7ed 100%);
}

.bg-scene__orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  transform: translateZ(0);
}

@media (prefers-reduced-motion: no-preference) {
  .bg-scene__orb {
    animation: floaty 22s ease-in-out infinite alternate;
  }

  .bg-scene__orb--b {
    animation-duration: 28s;
  }

  .bg-scene__orb--c {
    animation-duration: 34s;
  }
}

.bg-scene__orb--a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.35), rgba(124, 58, 237, 0.15));
}

.bg-scene__orb--b {
  width: min(360px, 48vw);
  height: min(360px, 48vw);
  bottom: 6%;
  right: -10%;
  background: radial-gradient(circle at 70% 30%, rgba(167, 139, 250, 0.45), rgba(244, 114, 182, 0.12));
}

.bg-scene__orb--c {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.12), rgba(124, 58, 237, 0.08));
  opacity: 0.7;
}

.bg-scene__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(91, 33, 182, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 33, 182, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 70%);
}

@keyframes floaty {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(12px, -18px, 0) scale(1.04);
  }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  /* Do not transition backdrop-filter — it forces expensive repaints every frame in many browsers. */
}

.site-header.is-scrolled .navbar {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: var(--shadow-float);
}

body.nav-open {
  overflow: hidden;
}

.navbar {
  position: relative;
  margin: 0.65rem 0.85rem 0;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.65);
  /* Solid + light blur only on the nav bar (one small region), not stacked across the whole page. */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(91, 33, 182, 0.12);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-strong);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.94;
}

.brand:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.85);
  outline-offset: 3px;
  border-radius: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--violet-500), var(--pink-500));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 30px rgba(124, 58, 237, 0.35);
}

.brand__mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.brand__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand__tag {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(34, 211, 238, 0.45);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.85);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto;
  background: var(--violet-900);
  border-radius: var(--radius-pill);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links__a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--violet-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links__a:hover {
  background: rgba(124, 58, 237, 0.1);
}

.nav-links__a:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.85);
  outline-offset: 2px;
}

.nav-cta {
  white-space: nowrap;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.78rem 1.45rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.9);
  outline-offset: 3px;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--cta {
  color: #fff;
  background: linear-gradient(120deg, var(--violet-500) 0%, var(--pink-500) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 14px 34px rgba(124, 58, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--cta:hover {
  box-shadow:
    0 18px 40px rgba(236, 72, 153, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--store {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  color: var(--violet-900);
  border: 1px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 10px 26px rgba(91, 33, 182, 0.12);
}

.btn--store:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.15);
}

.btn--store-alt {
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
}

.btn--glow {
  color: #fff;
  background: linear-gradient(120deg, #7c3aed 0%, #db2777 100%);
  border: 1px solid rgba(34, 211, 238, 0.45);
  box-shadow: var(--glow-cyan), 0 16px 40px rgba(91, 33, 182, 0.45);
}

.btn--glow:hover {
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.55),
    0 0 36px rgba(34, 211, 238, 0.22),
    0 18px 44px rgba(91, 33, 182, 0.48);
}

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(245, 243, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 2.25rem 1.1rem 0;
  overflow: clip;
}

.hero__wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 2rem;
}

.hero__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: default;
}

.hero__pill--coin {
  color: var(--violet-900);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.12);
}

.hero__pill--bolt {
  color: #0f172a;
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.95), rgba(253, 224, 71, 0.95));
  box-shadow: 0 10px 24px rgba(234, 179, 8, 0.2);
}

.hero__pill-label {
  letter-spacing: 0.02em;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  line-height: 1.08;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  font-weight: 800;
  color: var(--violet-950);
}

.hero__title-line--gradient {
  background: linear-gradient(95deg, var(--violet-700), var(--pink-500), #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}

.hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
}

.hero__frame {
  position: relative;
  padding: 2px;
  border-radius: 36px;
}

.hero__frame-glow {
  position: absolute;
  inset: -6px;
  border-radius: 40px;
  /* Avoid filter: blur() here — large blurred layers repaint with pointer movement. */
  background: radial-gradient(ellipse 85% 70% at 50% 0%, rgba(34, 211, 238, 0.35), transparent 68%);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(160deg, #0f172a, #020617);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--glow-cyan), 0 30px 70px rgba(15, 23, 42, 0.45);
}

.phone-frame__bezel {
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone-frame__screen {
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__ribbon {
  margin-top: 0.5rem;
  padding: 0 1rem 2.75rem;
}

.hero__ribbon-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.hero__ribbon-chip {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--violet-900);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow: 0 12px 30px rgba(91, 33, 182, 0.1);
  cursor: default;
}

.hero__ribbon-chip--hot {
  background: linear-gradient(120deg, #fef3c7, #fde68a);
  border-color: rgba(234, 88, 12, 0.35);
}

/* --- Sections --- */
.section {
  padding: 3rem 1.1rem;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.1rem;
}

.section__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--violet-950);
}

.section__title--on-dark {
  color: #fff;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.65rem, 1.2vw, 1rem);
  }

  .features .feature-card__body {
    padding: 0.95rem 0.75rem 1.1rem;
  }

  .features .feature-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.6rem;
    border-radius: 14px;
  }

  .features .feature-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .features .feature-card__title {
    font-size: clamp(0.95rem, 1.05vw, 1.08rem);
    line-height: 1.2;
  }

  .features .feature-card__text {
    font-size: clamp(0.78rem, 0.88vw, 0.9rem);
    line-height: 1.45;
  }
}

.feature-card {
  position: relative;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: var(--radius-md);
  color: var(--text-on-dark);
  /* Opaque glass tint — stacking 4× backdrop-filter blurs was the main interaction jank source. */
  background: rgba(16, 8, 32, 0.94);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: 0 20px 50px rgba(26, 11, 46, 0.35);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

.feature-card:not(.feature-card--with-shot)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 10% 0%, rgba(236, 72, 153, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.feature-card:not(.feature-card--with-shot) > * {
  position: relative;
  z-index: 1;
}

.feature-card--with-shot {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.feature-card__shot {
  margin: 0;
  border-bottom: 1px solid rgba(34, 211, 238, 0.22);
  background: #0f172a;
}

.feature-card__shot img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card__body {
  position: relative;
  padding: 1.2rem 1.2rem 1.4rem;
}

.feature-card__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 20% 0%, rgba(236, 72, 153, 0.14), transparent 58%);
  opacity: 0.95;
  pointer-events: none;
}

.feature-card__body > * {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--glow-cyan), 0 26px 60px rgba(76, 29, 149, 0.45);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0f172a;
  background: linear-gradient(145deg, #e9d5ff, #fbcfe8);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  margin-bottom: 0.85rem;
}

.feature-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
}

.feature-card__text {
  margin: 0;
  color: var(--text-muted-on-dark);
  font-size: 0.98rem;
}

/* Screenshots: split rows with two-up frames (smaller scale, side-by-side) */
.shots {
  padding-top: 2.25rem;
  padding-bottom: 1rem;
}

.shot-strip {
  margin: 0;
}

.shot-strip + .shot-strip {
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
  padding-top: clamp(2.75rem, 7vw, 4.5rem);
  border-top: 1px solid rgba(124, 58, 237, 0.12);
}

.shot-strip--split {
  display: grid;
  grid-template-columns: minmax(0, min(45.6vw, 432px)) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

/* First row: more air between the two-up frames and the copy (pushes text right). */
.shot-strip--split:not(.shot-strip--reverse) {
  column-gap: clamp(2rem, 5.5vw, 3.75rem);
}

.shot-strip--split:not(.shot-strip--reverse) .shot-strip__copy {
  padding-inline-start: clamp(0.75rem, 2.5vw, 2rem);
}

.shot-strip--split.shot-strip--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, min(45.6vw, 432px));
}

.shot-strip__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.45rem, 1.5vw, 0.65rem);
  width: 100%;
  max-width: min(432px, 100%);
  justify-self: start;
}

.shot-strip--reverse .shot-strip__pair {
  justify-self: end;
}

.shot-strip__figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: linear-gradient(180deg, #faf5ff 0%, #fce7f3 100%);
  box-shadow:
    0 8px 0 rgba(91, 33, 182, 0.04),
    0 18px 36px rgba(76, 29, 149, 0.12);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
  min-width: 0;
}

.shot-strip__figure--duo {
  border-radius: calc(var(--radius-md) - 2px);
}

.shot-strip__figure:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow:
    0 10px 0 rgba(91, 33, 182, 0.03),
    0 22px 44px rgba(76, 29, 149, 0.16);
}

.shot-strip__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-strip__copy {
  padding: 0.25rem 0;
}

.shot-strip__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 800;
  color: var(--violet-950);
}

.shot-strip__text {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  max-width: 28rem;
}

@media (max-width: 840px) {
  .shot-strip--split,
  .shot-strip--split.shot-strip--reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .shot-strip__pair {
    max-width: min(384px, 92vw);
    margin: 0 auto;
    justify-self: center;
  }

  .shot-strip--split:not(.shot-strip--reverse) .shot-strip__copy {
    padding-inline-start: 0;
  }

  .shot-strip--reverse .shot-strip__pair {
    justify-self: center;
  }

  .shot-strip__text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-strip__figure {
    transition: none;
  }
}

/* Download */
.download {
  padding-bottom: 3.5rem;
}

.download__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.1rem 1.85rem;
  border-radius: calc(var(--radius-lg) + 6px);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(236, 72, 153, 0.35), transparent 55%),
    linear-gradient(135deg, #1e1b4b 0%, #312e81 48%, #4c1d95 100%);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: var(--glow-cyan), 0 30px 80px rgba(15, 23, 42, 0.45);
}

.download__glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, rgba(34, 211, 238, 0.12), transparent, rgba(236, 72, 153, 0.16), transparent);
  opacity: 0.45;
  pointer-events: none;
  /* Removed infinite rotate — full-bleed animated conic layers force constant GPU compositing. */
}

.download__copy {
  position: relative;
  z-index: 1;
}

.download__eyebrow {
  margin: 0 0 0.45rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(244, 244, 255, 0.75);
}

.download__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted-on-dark);
  font-size: 1.05rem;
}

.download__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.download__art-img {
  width: min(240px, 72vw);
  max-height: min(420px, 52vh);
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0b0220 0%, #120a2a 100%);
  color: var(--text-on-dark);
  padding: 2.5rem 1.1rem 2.75rem;
  border-top: 1px solid rgba(34, 211, 238, 0.22);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--violet-500), var(--pink-500));
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.site-footer__mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.site-footer__tag {
  margin: 0.15rem 0 0;
  color: var(--text-muted-on-dark);
  font-size: 0.95rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: #e9d5ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__links a:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.85);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(245, 243, 255, 0.65);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 6, 28, 0.62);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 1.75rem 1.5rem 1.45rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(124, 58, 237, 0.25);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--violet-900);
  transition: background 0.2s ease, transform 0.15s ease;
}

.modal__close:hover {
  background: #faf5ff;
}

.modal__close:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.85);
  outline-offset: 2px;
}

.modal__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--violet-950);
}

.modal__text {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.modal__ok {
  width: 100%;
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero__wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    order: 1;
  }

  .hero__visual {
    order: 0;
    justify-self: center;
  }

  .hero__lead,
  .hero__note {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta-row {
    justify-content: center;
  }

  .hero__hud {
    justify-content: center;
  }

  .download__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download__cta-row {
    justify-content: center;
  }

  .download__art {
    order: -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0.5rem;
    right: 0.5rem;
    padding: 1rem 1.1rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-float);
    transform-origin: top;
    transform: scaleY(0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links__a {
    width: 100%;
    text-align: center;
  }

  .nav-cta {
    width: 100%;
  }

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

@media (max-width: 380px) {
  .hero {
    padding-top: 1.6rem;
  }

  .btn--store {
    width: 100%;
  }
}
