/* ============================================
   Arrow Lumen — Flight Hub Landing
   Differentiated layout: floating dock, pillar flight path,
   horizontal mode/scene tracks, soft arcade light palette
   ============================================ */

:root {
  --bg: #f7f9fb;
  --bg-peach: #fff5ee;
  --bg-soft: #ffe8d6;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5c6370;
  --primary: #ff7a3d;
  --primary-deep: #ff3d4a;
  --primary-grad: linear-gradient(135deg, #ff8a3d 0%, #ff4d3a 55%, #ff3d4a 100%);
  --gold: #f5c518;
  --purple: #7b5cff;
  --emerald: #22c55e;
  --sky: #38bdf8;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 10px 28px rgba(26, 26, 46, 0.08);
  --shadow-soft: 0 4px 16px rgba(26, 26, 46, 0.06);
  --dock-h: 88px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-padding-bottom: calc(var(--dock-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 24px);
}

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

button,
a {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: #fff;
}

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

/* ---------- Atmosphere ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.sky__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(255, 138, 61, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 61, 74, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-peach) 0%, var(--bg) 45%, #eef3f8 100%);
}

.sky__rain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.sky__rain span {
  position: absolute;
  width: 1.5px;
  height: 18px;
  background: linear-gradient(to bottom, transparent, rgba(92, 99, 112, 0.35));
  border-radius: 2px;
  transform: rotate(18deg);
  animation: rain-fall linear infinite;
}

@keyframes rain-fall {
  from {
    transform: translateY(-20px) rotate(18deg);
  }
  to {
    transform: translateY(110vh) rotate(18deg);
  }
}

.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.sky__glow--a {
  width: 280px;
  height: 280px;
  background: rgba(255, 213, 106, 0.5);
  top: 12%;
  right: 18%;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.sky__glow--b {
  width: 220px;
  height: 220px;
  background: rgba(255, 122, 61, 0.35);
  bottom: 20%;
  left: 10%;
  animation: glow-drift 14s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(30px, -24px);
  }
}

/* ---------- Flight path SVG ---------- */
.flight-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.flight-path__line {
  fill: none;
  stroke: url(#trailGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  opacity: 0.7;
}

.flight-path__halo {
  fill: rgba(255, 213, 106, 0.35);
}

.flight-path__tip {
  fill: #ff7a3d;
  filter: drop-shadow(0 0 8px rgba(255, 122, 61, 0.7));
}

@media (max-width: 900px) {
  .flight-path {
    display: none;
  }
}

/* ---------- Top floating pill ---------- */
.top-pill {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1100px, calc(100% - 24px));
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease), background 0.25s ease;
}

.top-pill.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.12);
}

.top-pill__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.top-pill__brand img,
.footer__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.top-pill__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.top-pill__nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.top-pill__nav a:hover,
.top-pill__nav a:focus-visible {
  color: var(--primary);
  background: rgba(255, 122, 61, 0.1);
  outline: none;
}

.top-pill__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--primary-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(255, 77, 74, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.top-pill__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(255, 77, 74, 0.45);
}

.top-pill__cta svg {
  width: 16px;
  height: 16px;
}

.top-pill__menu {
  display: none;
  border: none;
  background: rgba(26, 26, 46, 0.06);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.top-pill__menu svg {
  width: 20px;
  height: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 122, 61, 0.45);
  outline-offset: 3px;
}

.btn--store {
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1.2rem 0.7rem 1rem;
  text-align: left;
  min-width: 168px;
}

.btn--store svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1rem;
}

.btn--store small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.btn--store:hover {
  box-shadow: 0 10px 24px rgba(26, 26, 46, 0.22);
}

.btn--store-light {
  background: #fff;
  color: var(--text);
}

.btn--primary {
  background: var(--primary-grad);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 77, 74, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--header-h) + 48px) clamp(1.25rem, 4vw, 3.5rem) 4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero__pillars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pillar {
  position: absolute;
  width: clamp(48px, 6vw, 72px);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #3d4652 0%, #2a313a 100%);
  opacity: 0.12;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pillar--l1 {
  left: 2%;
  top: 18%;
  height: 38%;
}

.pillar--l2 {
  left: 8%;
  bottom: 8%;
  height: 28%;
  border-radius: 0 0 14px 14px;
}

.pillar--r1 {
  right: 4%;
  top: 12%;
  height: 32%;
}

.pillar--r2 {
  right: 10%;
  bottom: 5%;
  height: 42%;
  border-radius: 0 0 14px 14px;
}

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

.hero__eyebrow {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 122, 61, 0.25);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  background: var(--primary-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(255, 122, 61, 0.15));
}

.hero__tagline {
  margin: 0 0 1.75rem;
  max-width: 28ch;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 600;
}

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

.hero__stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
  perspective: 900px;
}

.phone {
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 24px 48px rgba(26, 26, 46, 0.16),
    0 0 0 10px #fff,
    0 0 0 12px rgba(26, 26, 46, 0.06);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.phone--front {
  width: min(280px, 62vw);
  position: relative;
  z-index: 2;
  transform: rotate(-4deg) translateY(8px);
  animation: phone-float 5.5s ease-in-out infinite;
}

.phone--back {
  width: min(250px, 54vw);
  position: absolute;
  right: 4%;
  top: 8%;
  z-index: 1;
  transform: rotate(8deg);
  opacity: 0.95;
  animation: phone-float 6.5s ease-in-out infinite reverse;
}

@keyframes phone-float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(8px);
  }
  50% {
    transform: rotate(-4deg) translateY(-10px);
  }
}

.phone--back {
  animation-name: phone-float-back;
}

@keyframes phone-float-back {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-14px);
  }
}

.hero__coin {
  position: absolute;
  left: 2%;
  bottom: 18%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(245, 197, 24, 0.55);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text);
  animation: coin-bob 3.5s ease-in-out infinite;
}

.hero__coin svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

@keyframes coin-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Section chrome ---------- */
.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.features,
.modes,
.gallery,
.download {
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 4vw, 3.5rem);
}

/* ---------- Action strip (app-like quick tiles) ---------- */
.action-strip {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.action-tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.15rem 0.75rem;
  background: var(--surface);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.action-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.action-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
}

.action-tile__icon svg {
  width: 26px;
  height: 26px;
}

.action-tile__icon--chest {
  background: linear-gradient(145deg, #f5c518, #e8a317);
}

.action-tile__icon--star {
  background: linear-gradient(145deg, #a78bfa, #7b5cff);
}

.action-tile__icon--cup {
  background: linear-gradient(145deg, #4ade80, #22c55e);
}

.action-tile__icon--book {
  background: linear-gradient(145deg, #60a5fa, #38bdf8);
}

/* ---------- Feature rail (asymmetric stagger) ---------- */
.feature-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.feature-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-block--offset {
  transform: translateY(28px);
}

.feature-block--offset:hover {
  transform: translateY(24px);
}

.feature-block h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feature-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.feature-block__visual {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
}

.feature-block__visual svg {
  width: 24px;
  height: 24px;
}

.feature-block__visual--steer {
  background: var(--primary-grad);
}

.feature-block__visual--power {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
}

.feature-block__visual--skin {
  background: linear-gradient(145deg, #a78bfa, #7b5cff);
}

.feature-block__visual--offline {
  background: linear-gradient(145deg, #64748b, #475569);
}

/* Spotlight (Timed Mode row) */
.spotlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(105deg, #ffe8d6 0%, #fff0e6 50%, #ffe4d0 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.spotlight__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.spotlight__text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.spotlight__text span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.spotlight__go {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--primary-grad);
  color: #7af0ff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(255, 77, 74, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.spotlight__go:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(255, 77, 74, 0.5);
}

.spotlight__go svg {
  width: 26px;
  height: 26px;
}

/* ---------- Modes horizontal track ---------- */
.modes__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.85rem;
}

.modes__hint svg {
  width: 18px;
  height: 18px;
}

.modes__track,
.gallery__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 122, 61, 0.4) transparent;
}

.modes__track:focus-visible,
.gallery__track:focus-visible {
  outline: 3px solid rgba(255, 122, 61, 0.4);
  outline-offset: 4px;
  border-radius: 12px;
}

.mode-card {
  position: relative;
  flex: 0 0 min(220px, 72vw);
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.mode-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.mode-card__art {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
}

.mode-card__art svg {
  width: 34px;
  height: 34px;
}

.mode-card__art--challenge {
  background: linear-gradient(145deg, #ff8a3d, #ff3d4a);
}

.mode-card__art--easy {
  background: linear-gradient(145deg, #4ade80, #16a34a);
}

.mode-card__art--endless {
  background: linear-gradient(145deg, #a78bfa, #7b5cff);
}

.mode-card__art--timed {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.mode-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.mode-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Screenshot gallery ---------- */
.gallery__track {
  align-items: flex-end;
  gap: 1.15rem;
  padding-bottom: 1.5rem;
}

.shot {
  position: relative;
  flex: 0 0 min(240px, 68vw);
  margin: 0;
  scroll-snap-align: start;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 16px 36px rgba(26, 26, 46, 0.12),
    0 0 0 8px #fff,
    0 0 0 9px rgba(26, 26, 46, 0.06);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
  cursor: default;
}

.shot:nth-child(even) {
  transform: translateY(-18px);
}

.shot:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 44px rgba(26, 26, 46, 0.16),
    0 0 0 8px #fff,
    0 0 0 9px rgba(255, 122, 61, 0.25);
}

.shot:nth-child(even):hover {
  transform: translateY(-24px);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
}

.shot figcaption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 0.35rem 0.9rem;
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
}

.scene-chips {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.scene-chips li {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 26, 46, 0.08);
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Download ---------- */
.download__panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 32px;
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 20px 48px rgba(255, 77, 74, 0.35);
  overflow: hidden;
  position: relative;
}

.download__panel::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

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

.download__copy h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}

.download__copy p {
  margin: 0 0 1.5rem;
  max-width: 36ch;
  opacity: 0.92;
  font-weight: 600;
}

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

.download__preview {
  position: relative;
  z-index: 1;
  justify-self: center;
}

.download__preview img {
  width: 200px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(26, 26, 46, 0.35);
  border: 6px solid rgba(255, 255, 255, 0.85);
}

/* ---------- Footer ---------- */
.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 1rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
}

.footer__links a {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__copy {
  width: 100%;
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Floating dock (app mirror) ---------- */
.dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.25rem;
  width: min(420px, calc(100% - 24px));
  padding: 0.65rem 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.dock__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem;
  border-radius: 12px;
  transition: color 0.2s ease;
  cursor: pointer;
}

.dock__item svg {
  width: 22px;
  height: 22px;
}

.dock__item:hover,
.dock__item.is-active {
  color: var(--primary);
}

.dock__item.is-active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 1px;
}

.dock__play {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  margin: 0 0.35rem -28px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: var(--primary-grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 6px rgba(255, 122, 61, 0.2),
    0 12px 28px rgba(255, 77, 74, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.dock__play:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 8px rgba(255, 122, 61, 0.25),
    0 14px 32px rgba(255, 77, 74, 0.55);
}

.dock__play svg {
  width: 28px;
  height: 28px;
  margin-left: 2px;
}

/* ---------- Modal ---------- */
.modal[hidden] {
  display: none !important;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 2rem 1.75rem 1.75rem;
  background: #fff;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(26, 26, 46, 0.25);
  animation: modal-in 0.3s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.06);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
}

.modal__close svg {
  width: 18px;
  height: 18px;
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--primary-grad);
  color: #fff;
  display: grid;
  place-items: center;
}

.modal__icon svg {
  width: 28px;
  height: 28px;
}

.modal__dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.modal__dialog p {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-block--offset {
    transform: none;
  }

  .feature-block--offset:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-h) + 28px);
    text-align: center;
  }

  .hero__tagline {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stage {
    min-height: 420px;
    margin-top: 0.5rem;
  }

  .phone--back {
    right: 8%;
    top: 0;
  }

  .hero__coin {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

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

  .download__copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .download__btns {
    justify-content: center;
  }

  .pillar {
    opacity: 0.07;
  }
}

@media (max-width: 720px) {
  .top-pill__nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .top-pill__nav.is-open {
    display: flex;
  }

  .top-pill__nav a {
    padding: 0.75rem 1rem;
  }

  .top-pill__cta {
    display: none;
  }

  .top-pill__menu {
    display: inline-flex;
    margin-left: auto;
  }

  .action-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer__links {
    margin-left: 0;
    width: 100%;
  }

  .modes__hint {
    display: none;
  }

  .shot:nth-child(even) {
    transform: none;
  }

  .shot:nth-child(even):hover {
    transform: translateY(-6px);
  }
}

@media (max-width: 400px) {
  .hero__brand {
    font-size: 2.75rem;
  }

  .dock__item span {
    font-size: 0.6rem;
  }

  .dock__play {
    width: 58px;
    height: 58px;
  }
}

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

  .sky__rain span,
  .sky__glow,
  .phone--front,
  .phone--back,
  .hero__coin {
    animation: none !important;
  }

  .modal__dialog {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
