/* Flow Wave site. Colours are the game's palette (hero-art-depot/brand/palette.png); the beat is the run music's
   120 BPM, so everything that pulses here pulses with the game's tempo. */

@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --navy: #141A33;
  --navy-2: #1A1E40;
  --indigo: #2E295E;
  --periwinkle: #7D8CFF;
  --sky: #63B8FF;
  --cyan: #4FE3FF;
  --orchid: #E86BD6;
  --pink: #FF5EA8;
  --coral: #FF8066;
  --peach: #FFB26B;
  --gold: #F2D15C;
  --sunset: #FF8099;
  --haze: #8C5294;
  --star: #FFF5E6;
  --ink: #26103F;               /* the logo's outline */
  --text: #F3ECFF;
  --muted: #B9B3DC;

  --contour: linear-gradient(90deg, var(--peach), var(--coral), var(--orchid), var(--periwinkle), var(--sky));
  --title: linear-gradient(180deg, #FFE59A 0%, #FFB98A 45%, #FF5EA8 100%);

  --beat: 0.5s;                 /* 120 BPM */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;

  --display: "Offside", "Comfortaa", ui-rounded, system-ui, sans-serif;   /* headers; one weight (400) */
}
h1, h2, h3, .wordmark { font-family: var(--display); font-weight: 400; font-synthesis: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Comfortaa", ui-rounded, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.05vw + 11px, 18px);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }             /* the width/height attributes are for layout reservation, not the drawn size */
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 12px; background: var(--star); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

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

.hero {
  --horizon: 61%;
  --sun: min(48svh, 50vw);
  position: relative;
  height: 100svh;
  min-height: 640px;
  max-height: 1200px;
  overflow: hidden;
  isolation: isolate;
}
.sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% var(--horizon), rgba(255, 94, 168, 0.55), rgba(232, 107, 214, 0.18) 45%, transparent 75%),
    linear-gradient(180deg, #121733 0%, #1F2152 30%, #3A2763 50%, #7A3A7E calc(var(--horizon) - 4%), #FF8099 var(--horizon), #3A2050 calc(var(--horizon) + 0.5%), #1B1638 100%);
}

.stars { position: absolute; inset: 0 0 calc(100% - var(--horizon)) 0; }
.star {
  position: absolute; width: var(--s, 10px); aspect-ratio: 1;
  background:
    radial-gradient(circle, #fff 0 12%, transparent 30%),
    linear-gradient(90deg, transparent 47%, rgba(255, 245, 230, 0.9) 50%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(255, 245, 230, 0.9) 50%, transparent 53%);
  -webkit-mask: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, 0.6) 35%, transparent 70%);
          mask: radial-gradient(circle, #000 0 18%, rgba(0, 0, 0, 0.6) 35%, transparent 70%);
  animation: twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.35; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }

.sun-glow {
  position: absolute; left: 50%; top: var(--horizon);
  width: calc(var(--sun) * 2.2); aspect-ratio: 1;
  transform: translate(-50%, calc(-50% - var(--sun) * 0.2));
  background: radial-gradient(circle, rgba(255, 128, 153, 0.55) 0 22%, rgba(232, 107, 214, 0.22) 38%, transparent 62%);
  animation: beat-glow var(--beat) cubic-bezier(.2, .7, .3, 1) infinite;
}
@keyframes beat-glow { 0% { opacity: 1; scale: 1.04; } 100% { opacity: 0.72; scale: 1; } }

.sun {
  position: absolute; left: 50%; top: var(--horizon);
  width: calc(var(--sun) * 2.4); height: calc(var(--sun) * 1.2);
  max-width: none;
  transform: translate(-50%, calc(-50% - var(--sun) * 0.2));
  overflow: visible;
  filter: drop-shadow(0 0 calc(var(--sun) * 0.06) rgba(255, 150, 160, 0.6));
}
.sun .ring { stroke: var(--gold); stroke-width: 1.5; animation: ring-beat var(--beat) ease-out infinite; }
@keyframes ring-beat { 0% { stroke-width: 2.1; } 100% { stroke-width: 1.3; } }

.horizon {
  position: absolute; left: 0; right: 0; top: var(--horizon); height: 2px; transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, #FFC2CF 20%, #fff 50%, #FFC2CF 80%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 128, 153, 0.75), 0 0 60px 12px rgba(255, 94, 168, 0.35);
  z-index: 2;
}

.spire {
  position: absolute; bottom: calc(100% - var(--horizon)); height: calc(var(--sun) * 0.62); width: auto;
  opacity: 0.85; filter: saturate(1.1);
  transform: translateX(calc(var(--px, 0) * -7px));
}
.spire-l { left: 14%; }
.spire-r { right: 17%; height: calc(var(--sun) * 0.44); }

.cloud {
  position: absolute; width: calc(var(--sun) * 0.62); height: auto; opacity: 0.92; will-change: transform;
  transform: translateX(calc(var(--px, 0) * -18px));    /* parallax against the plane's lane position */
}
.cloud-1 { left: 3%;  top: calc(var(--horizon) - var(--sun) * 0.3); animation: drift 22s ease-in-out infinite alternate; }
.cloud-2 { right: 2%; top: calc(var(--horizon) - var(--sun) * 0.62); width: calc(var(--sun) * 0.46); animation: drift 28s ease-in-out -9s infinite alternate-reverse; }
.cloud-3 { right: 22%; top: calc(var(--horizon) - var(--sun) * 0.08); width: calc(var(--sun) * 0.3); opacity: 0.7; animation: drift 34s ease-in-out -4s infinite alternate; }
@keyframes drift { from { translate: -2.5vw 0; } to { translate: 2.5vw -0.6vh; } }

.floor {
  position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; width: 100%; height: calc(100% - var(--horizon));
  z-index: 1;
  /* Without JS, a static floor. */
  background: linear-gradient(180deg, rgba(58, 32, 80, 0.55), #2A1A4A 18%, #1B1638 100%);
}

.plane {
  position: absolute; left: 50%; bottom: 9%; z-index: 3;
  width: clamp(170px, 26vw, 390px); height: auto; max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 18px rgba(20, 10, 40, 0.55)) drop-shadow(0 0 22px rgba(242, 209, 92, 0.35));
  pointer-events: none;
}
.plane.is-flying { left: 0; top: 0; bottom: auto; will-change: transform; }

.scanlines {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, 0.035) 3px 4px);
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative; z-index: 5;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter) clamp(120px, 22svh, 240px);
  text-align: center;
}
/* The title, set in Offside with the game logo's treatment: gold → pink fill over a thick ink outline, pink glow.
   Two stacked copies of the text (the outline copy is hidden from screen readers) work in every browser. */
.wordmark {
  display: inline-grid; margin: 0;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; white-space: nowrap; text-decoration: none;
}
.wordmark > span { grid-area: 1 / 1; position: relative; }   /* positioned, so the fill can sit over the filtered ink */
.wordmark__ink {
  color: var(--ink); -webkit-text-stroke: 0.12em var(--ink);
  filter: drop-shadow(0 0.04em 0 var(--ink)) drop-shadow(0 0 0.16em rgba(255, 94, 168, 0.7));
}
.wordmark__fill {
  z-index: 1;
  background: linear-gradient(180deg, #FFE59A 12%, #FFB98A 42%, #FF5EA8 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark--hero { font-size: clamp(3rem, 12vw, 8.6rem); animation: logo-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logo-in { from { transform: translateY(18px) scale(0.96); } }   /* motion only: the hero never waits on an animation to be visible */

.tagline {
  margin: clamp(10px, 2svh, 22px) 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1.25;
  color: var(--star);
  /* the logo's ink outline, so it reads over the sun as well as the sky */
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink),
    0 4px 0 var(--ink), 0 0 26px rgba(255, 94, 168, 0.8);
  animation: rise 0.9s 0.25s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { transform: translateY(14px); } }

.cta-row {
  margin-top: clamp(18px, 3.2svh, 34px);
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center;
  animation: rise 0.9s 0.45s cubic-bezier(.2, .8, .2, 1) both;
}

/* The big button: the logo's look (gold → pink fill, ink outline, pink glow), breathing on the beat. */
.store-btn {
  position: relative;
  display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 18px; align-items: center;
  padding: 14px 30px 15px 36px;
  min-height: 78px;
  border-radius: 999px;
  background: var(--title);
  border: 3px solid var(--ink);
  color: var(--ink); text-decoration: none; text-align: left;
  box-shadow: 0 0 0 2px rgba(255, 229, 154, 0.4) inset, 0 8px 0 var(--ink), 0 0 34px rgba(255, 94, 168, 0.65);
  transition: transform 0.18s cubic-bezier(.2, .8, .2, 1), box-shadow 0.18s;
  animation: btn-beat var(--beat) ease-out infinite;
}
.store-btn::after {            /* a light sweep, once every two bars */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat;
  animation: sweep 4s ease-in-out 1.2s infinite;
}
@keyframes sweep { 0%, 70% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes btn-beat {
  0% { box-shadow: 0 0 0 2px rgba(255, 229, 154, 0.4) inset, 0 8px 0 var(--ink), 0 0 46px rgba(255, 94, 168, 0.9); }
  100% { box-shadow: 0 0 0 2px rgba(255, 229, 154, 0.4) inset, 0 8px 0 var(--ink), 0 0 28px rgba(255, 94, 168, 0.5); }
}
.store-btn__small { grid-column: 1; grid-row: 1; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; opacity: 0.8; }
.store-btn__big { grid-column: 1; grid-row: 2; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
.store-btn__arrow { grid-column: 2; grid-row: 1 / 3; width: 30px; height: 30px; transition: transform 0.2s cubic-bezier(.2, .8, .2, 1); }
.store-btn:hover { transform: translateY(-3px); }
.store-btn:hover .store-btn__arrow { transform: translateX(5px); }
.store-btn:active { transform: translateY(5px); box-shadow: 0 0 0 2px rgba(255, 229, 154, 0.4) inset, 0 3px 0 var(--ink), 0 0 30px rgba(255, 94, 168, 0.6); }

.ghost-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  color: var(--star); text-decoration: none; font-weight: 700;
  background: rgba(20, 26, 51, 0.45);
  border: 2px solid rgba(99, 184, 255, 0.55);
  box-shadow: 0 0 18px rgba(79, 227, 255, 0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ghost-btn svg { width: 18px; height: 18px; color: var(--cyan); }
.ghost-btn:hover { border-color: var(--cyan); box-shadow: 0 0 26px rgba(79, 227, 255, 0.5); transform: translateY(-2px); }

.chips {
  list-style: none; margin: clamp(16px, 2.6svh, 26px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  animation: rise 0.9s 0.55s cubic-bezier(.2, .8, .2, 1) both;
}
.chips li {
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--star); background: rgba(38, 16, 63, 0.55); border: 1px solid rgba(255, 178, 107, 0.35);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 6; translate: -50% 0;
  width: 28px; height: 44px; border-radius: 14px; border: 2px solid rgba(255, 245, 230, 0.6);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--star);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 80%, 100% { opacity: 0; translate: 0 14px; } }

/* The game's sine-wave border, five contour lines flowing one period every four beats. */
.wave-rule { width: 100%; height: 34px; margin-top: -17px; position: relative; z-index: 2; }
.wave-rule path { fill: none; stroke-width: 2.4; stroke-linecap: round; }

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

.section { position: relative; padding: clamp(72px, 11vw, 140px) 0; }
.eyebrow {
  margin: 0 0 10px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--contour); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
h2 {
  margin: 0; max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12;
  background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 94, 168, 0.3));
  text-wrap: balance;
}
h3 { margin: 0; font-size: 1.45rem; color: var(--star); }
.lede { margin: 18px 0 0; max-width: 56ch; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); }

/* How it plays */
.how { background: radial-gradient(80% 60% at 50% 0%, rgba(46, 41, 94, 0.9), transparent 70%), var(--navy); }
.steps {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px);
}
.step {
  position: relative; padding: 14px 14px 26px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(46, 41, 94, 0.85), rgba(26, 30, 64, 0.9));
  border: 1px solid rgba(125, 140, 255, 0.25);
  box-shadow: 0 20px 50px rgba(8, 6, 24, 0.45);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), border-color 0.3s;
}
.step::before {                 /* the game panels' gradient bar */
  content: ""; position: absolute; left: 28%; right: 28%; top: -2px; height: 4px; border-radius: 4px;
  background: var(--contour); box-shadow: 0 0 14px rgba(232, 107, 214, 0.7);
}
.step:hover { transform: translateY(-6px); border-color: rgba(232, 107, 214, 0.6); }
.step__pic { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #1d1840; }
.step__pic img { width: 100%; height: 100%; object-fit: cover; }
.step__pic--swap img { position: absolute; inset: 0; }
.step__pic--swap img + img { animation: swap 4s ease-in-out infinite; }
@keyframes swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.step__num {
  display: block; margin: 20px 12px 2px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.18em;
  background: var(--contour); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
}
.step h3, .step p { margin-inline: 12px; }
.step p { margin-top: 6px; margin-bottom: 0; color: var(--muted); }

/* Trailer in a torn neon portal */
.trailer { background: linear-gradient(180deg, var(--navy), #1A1640 50%, var(--navy)); }
.portal { position: relative; margin: clamp(40px, 6vw, 70px) auto 0; max-width: 1040px; }
.portal__window {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 6px; background: #0e0f22;
  box-shadow: 0 30px 90px rgba(255, 94, 168, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.portal__window video { width: 100%; height: 100%; object-fit: cover; background: #0e0f22; }
.portal__rift { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); max-width: none; pointer-events: none; overflow: visible; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(72px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: var(--title); border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 0 40px rgba(255, 94, 168, 0.8);
  animation: btn-beat var(--beat) ease-out infinite;
  transition: transform 0.2s cubic-bezier(.2, .8, .2, 1), opacity 0.3s;
}
.play svg { width: 42%; height: 42%; margin-left: 8%; }
.play:hover { transform: scale(1.07); }
.portal.is-playing .play { opacity: 0; pointer-events: none; }
html:not(.js) .play { display: none; }

/* Features */
.features { background: var(--navy); padding-top: clamp(40px, 6vw, 80px); }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 90px);
  padding: clamp(28px, 5vw, 60px) 0;
}
.feature--flip .feature__art { order: 2; }
.feature__text p:not(.eyebrow) { color: var(--muted); max-width: 48ch; margin: 18px 0 0; }
.feature__art { position: relative; display: grid; place-items: center; min-height: 300px; }
.feature__art::before {          /* a soft halo in the art's own colour */
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--halo, rgba(242, 209, 92, 0.28)), transparent 65%);
  animation: beat-glow var(--beat) ease-out infinite;
}
.feature__art--gate img { width: min(420px, 80%); animation: float 6s ease-in-out infinite; }
.feature__art--gems { --halo: rgba(232, 107, 214, 0.28); min-height: 340px; }
.gem { position: absolute; width: clamp(130px, 17vw, 210px); height: auto; animation: float 5s ease-in-out infinite; }
.gem-3 { left: 4%; top: 22%; animation-delay: -1.2s; }
.gem-5 { left: 50%; top: 2%; translate: -50% 0; animation-delay: -2.4s; width: clamp(150px, 19vw, 240px); }
.gem-10 { right: 4%; top: 30%; animation-delay: -3.6s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

.fleet { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
.fleet__text { text-align: center; }
.fleet__text h2, .fleet__text .eyebrow, .fleet__text p:not(.eyebrow) { margin-inline: auto; }
.fleet__planes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1.6vw, 18px);
}
.fleet__planes li {
  position: relative; display: grid; justify-items: center; align-content: end; gap: 10px;
  padding: 18px 10px 14px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(46, 41, 94, 0.55), rgba(26, 30, 64, 0.2));
  border: 1px solid rgba(125, 140, 255, 0.18);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), border-color 0.3s, box-shadow 0.3s;
}
.fleet__planes img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(8, 6, 24, 0.5)); }
.fleet__planes span { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--star); }
.fleet__planes li:hover { transform: translateY(-8px) rotate(-1deg); border-color: rgba(99, 184, 255, 0.6); box-shadow: 0 0 28px rgba(99, 184, 255, 0.25); }
.fleet__planes li.is-gold { border-color: rgba(242, 209, 92, 0.6); box-shadow: 0 0 30px rgba(242, 209, 92, 0.25); }
.fleet__planes li.is-gold span { color: var(--gold); }

/* Screenshots */
.shots { padding-top: clamp(40px, 6vw, 70px); }
.shots__strip {
  list-style: none; margin: 18px 0 0; padding: 6px max(var(--gutter), (100% - var(--wrap)) / 2) 24px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 42vw, 620px); gap: clamp(12px, 2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--orchid) transparent;
}
.shots__strip li { scroll-snap-align: start; }
.shots__strip button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none;
  border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 16px 40px rgba(8, 6, 24, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s;
}
.shots__strip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots__strip button:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(8, 6, 24, 0.6), 0 0 0 2px var(--orchid), 0 0 30px rgba(232, 107, 214, 0.4); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(12px, 4vw, 48px);
  border: 0; background: transparent; color: var(--star);
  display: none; place-items: center;
}
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(10, 10, 28, 0.9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 0 60px rgba(255, 94, 168, 0.3); }
.lightbox button {
  position: absolute; border: 0; cursor: pointer; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1;
  background: rgba(38, 16, 63, 0.75); color: var(--star); border: 2px solid rgba(255, 178, 107, 0.5);
}
.lightbox button:hover { border-color: var(--peach); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }

/* Final call */
.finale { overflow: hidden; text-align: center; padding-bottom: 0; background: linear-gradient(180deg, var(--navy), #2B1E55 65%, #4A2766 100%); }
/* A sunset under the call to action: the sun sits 70% above the horizon, the floor runs on the beat. */
.finale__scene {
  --d: min(520px, 76vw); --hz: calc(var(--d) * 0.7);
  position: relative; height: calc(var(--hz) + clamp(90px, 12vw, 160px)); margin-top: clamp(40px, 6vw, 70px);
}
.finale__sun {
  position: absolute; left: 50%; top: 0; width: var(--d); aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF08A, #FFC98A 45%, #FF6FB4);
  -webkit-mask: linear-gradient(180deg, #000 52%, transparent 52% 54%, #000 54% 60%, transparent 60% 63%, #000 63% 69%, transparent 69% 73%, #000 73% 79%, transparent 79% 85%, #000 85% 89%, transparent 89%);
          mask: linear-gradient(180deg, #000 52%, transparent 52% 54%, #000 54% 60%, transparent 60% 63%, #000 63% 69%, transparent 69% 73%, #000 73% 79%, transparent 79% 85%, #000 85% 89%, transparent 89%);
  opacity: 0.85;
  filter: drop-shadow(0 0 60px rgba(255, 128, 153, 0.7));
}
.finale__floor {
  position: absolute; left: 0; right: 0; top: var(--hz); bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, #6A2F72, #2A1A4A 35%, #1A1638);
  perspective: 220px; perspective-origin: 50% 0;
}
.finale__floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, #FFC2CF 25%, #fff 50%, #FFC2CF 75%, transparent);
  box-shadow: 0 0 16px 4px rgba(255, 128, 153, 0.7);
}
.finale__grid {
  position: absolute; left: -150%; right: -150%; top: 0; height: 400%;
  transform-origin: 50% 0; transform: rotateX(74deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 110, 180, 0.8) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(180deg, rgba(255, 110, 180, 0.8) 0 2px, transparent 2px 60px);
  background-position: center 0;
  -webkit-mask: linear-gradient(180deg, transparent, #000 12%);
          mask: linear-gradient(180deg, transparent, #000 12%);
  animation: grid-run calc(var(--beat) * 2) linear infinite;
}
@keyframes grid-run { to { background-position: center 0, center 60px; } }
.finale__inner { position: relative; display: grid; justify-items: center; }
.finale h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: none; }
.finale .lede { margin-inline: auto; color: #E4DCFF; }
.finale .store-btn { margin-top: 34px; }
.specs {
  list-style: none; margin: 40px 0 0; padding: 0; width: min(100%, 860px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, 1fr); } }
.specs li {
  padding: 10px 18px; border-radius: 14px; font-size: 0.92rem;
  background: rgba(20, 26, 51, 0.65); border: 1px solid rgba(125, 140, 255, 0.3);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.specs b { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peach); }

/* Footer */
.footer { background: #0F1329; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(125, 140, 255, 0.15); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.footer__logo { font-size: 1.7rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.footer__nav a:hover { color: var(--star); text-decoration: underline; text-decoration-color: var(--orchid); text-underline-offset: 5px; }
.footer__legal { flex-basis: 100%; margin: 0; font-size: 0.78rem; color: #7E78A6; }

/* Reveal on scroll (only when JS is there to undo it). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__art { order: 0; }
  .feature__art { min-height: 260px; }
  .feature__art--gems { min-height: 280px; }
  .fleet__planes { grid-template-columns: repeat(3, 1fr); }
}

/* Phones, portrait: the sun sits higher and bigger, the content stacks above the horizon. */
@media (max-width: 640px) {
  .hero { --horizon: 60%; --sun: min(78vw, 44svh); min-height: 600px; }
  .hero-content { justify-content: flex-start; padding-top: clamp(64px, 13svh, 120px); padding-bottom: 0; }
  .wordmark--hero { font-size: 14.2vw; }
  .cta-row { flex-direction: column; gap: 14px; width: 100%; }
  .store-btn { width: min(100%, 360px); justify-content: center; padding-inline: 28px; }
  .ghost-btn { padding: 10px 18px; }
  .spire-l { left: 4%; } .spire-r { right: 6%; }
  .cloud-2, .cloud-3 { display: none; }
  .scroll-cue { display: none; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; translate: none; }
}

/* Short landscape screens (phones turned sideways, small laptops). */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 560px; max-height: none; }
  .hero-content { justify-content: flex-start; padding-top: 36px; }

}

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

/* ------------------------------------------------------------ privacy page */

.doc-page { background: radial-gradient(90% 50% at 50% 0%, rgba(46, 41, 94, 0.9), transparent 70%), var(--navy); }
.doc-head { padding: clamp(28px, 5vw, 48px) 0 clamp(20px, 3vw, 30px); }
.doc-head__logo { font-size: clamp(2rem, 6vw, 3rem); }
.doc { padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 9vw, 110px); max-width: 760px; }
.doc h1 {
  margin: 0 0 24px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1;
  background: var(--title); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
}
.doc h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); max-width: none; margin: 44px 0 0; filter: none; }
.doc h3 { font-size: 1.15rem; margin: 30px 0 0; color: var(--peach); }
.doc p, .doc li { color: #D9D3F2; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 10px 0; }
.doc li::marker { color: var(--orchid); }
.doc strong { color: var(--star); }
.doc__meta { margin-top: 44px; font-size: 0.92rem; }
mark.fill { background: rgba(255, 94, 168, 0.25); color: var(--star); padding: 0 6px; border-radius: 6px; border: 1px dashed var(--pink); }
