/* GymOrbita website (marketing and pricing). The app has its own styles.css */
:root {
  --night: #0b0f1a;
  --deep: #11162e;
  --indigo: #1e2a5b;
  --blue: #3b82f6;
  --violet: #a855f7;
  --lavender: #e0e7ff;
  --ink-2: rgb(224 231 255 / 0.72);
  --ink-3: rgb(224 231 255 / 0.5);
  --line: rgb(224 231 255 / 0.1);
  --grad: linear-gradient(90deg, #3b82f6, #a855f7);
  color-scheme: dark;
  /* variables used by the rocket scene (/space.css) */
  --bg: #0b0f1a;
  --fs-sm: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--lavender);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; font-weight: 700; letter-spacing: -0.025em; margin: 0; color: #f3f5ff; }
h1 { font-size: clamp(44px, 7.2vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 14px; font: 700 16px/1 Inter, sans-serif; text-decoration: none; white-space: nowrap; transition: transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgb(124 58 237 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25); }
.btn-ghost { color: var(--lavender); border: 1px solid rgb(124 140 255 / 0.35); background: rgb(17 22 46 / 0.6); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(11 15 26 / 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav nav { display: flex; gap: 22px; margin-left: 12px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: #fff; }
.nav .actions { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 860px) { .nav nav { display: none; } .nav .actions .btn-ghost { display: none; } }
.nav .actions.checking { visibility: hidden; }
.me { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; text-decoration: none; }
.me .ring { position: absolute; inset: 0; }
.me img, .me .initial { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.me .initial { display: grid; place-items: center; background: var(--indigo); color: #fff; font: 700 16px/1 Sora, sans-serif; }

/* Wordmark: Gym + orbiting O + rbita */
.wordmark { display: inline-flex; align-items: baseline; font: 700 26px/1 Sora, sans-serif; letter-spacing: -0.02em; color: #f2f4ff; text-decoration: none; }
.wordmark .rbita { background: linear-gradient(90deg, #6366f1, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glyph-o { width: 0.76em; height: 0.76em; margin: 0 0.08em 0 0.07em; overflow: visible; }

/* Header: orbital system */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 8% 20%, #fff, transparent), radial-gradient(1px 1px at 22% 70%, #cdd6ff, transparent),
    radial-gradient(1.4px 1.4px at 38% 12%, #fff, transparent), radial-gradient(1px 1px at 52% 88%, #cdd6ff, transparent),
    radial-gradient(1.2px 1.2px at 64% 30%, #fff, transparent), radial-gradient(1px 1px at 78% 8%, #cdd6ff, transparent),
    radial-gradient(1.3px 1.3px at 90% 64%, #fff, transparent), radial-gradient(1px 1px at 12% 92%, #fff, transparent),
    radial-gradient(70% 60% at 75% 45%, rgb(59 130 246 / 0.18), transparent 70%),
    radial-gradient(50% 50% at 85% 60%, rgb(168 85 247 / 0.16), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 20px 0 48px; }
.hero .tagline {
  margin: 0 0 22px; max-width: none; font: 500 clamp(14px, 1.5vw, 17px)/1 Orbitron, Sora, sans-serif;
  letter-spacing: 0.42em; color: #c7d2fe; white-space: nowrap;
  text-shadow: 0 0 6px rgb(124 140 255 / 0.8), 0 0 18px rgb(168 85 247 / 0.55);
}
.hero h1 { max-width: 11ch; text-wrap: balance; }
h2 { text-wrap: balance; }
.hero .lead { margin-top: 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .note { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

.system { position: relative; aspect-ratio: 1; width: min(500px, 100%); justify-self: center; }
.system .core {
  position: absolute; inset: 40%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgb(124 92 255 / 0.35), transparent 70%);
}
.system .core svg { width: 100%; height: 100%; filter: drop-shadow(0 0 28px rgb(99 102 241 / 0.55)); }
/* Orbits (tracks) with their satellites spread every 60° across the three (--a). They all rotate together, so they never
   bunch up; the satellites rotate the opposite way to stay upright. */
.track { position: absolute; border-radius: 50%; border: 1px solid rgb(124 140 255 / 0.14); animation: spin 90s linear infinite; }
.track.t1 { inset: 24%; }
.track.t2 { inset: 12%; border-style: dashed; border-color: rgb(124 140 255 / 0.18); }
.track.t3 { inset: 0; }
.sat {
  position: absolute; left: calc(50% + 50% * cos(var(--a))); top: calc(50% + 50% * sin(var(--a))); translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none;
  animation: spin 90s linear infinite reverse;
}
.sat .body {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--c);
  background: rgb(13 18 38 / 0.92); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 0 0 5px rgb(11 15 26 / 0.85), 0 0 22px color-mix(in srgb, var(--c) 22%, transparent);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.sat .body .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.sat .label { font: 500 12.5px/1 Inter, sans-serif; color: var(--ink-2); letter-spacing: 0.01em; padding: 4px 8px; border-radius: 999px; background: rgb(11 15 26 / 0.7); transition: color 0.2s; }
.sat:hover .body, .sat:focus-visible .body { border-color: var(--c); box-shadow: 0 0 0 5px rgb(11 15 26 / 0.85), 0 0 28px color-mix(in srgb, var(--c) 45%, transparent); transform: scale(1.06); }
.sat:hover .label { color: #fff; }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .track, .sat { animation: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 16px; }
  .system { width: min(400px, 100%); margin-top: 12px; }
  .sat .body { width: 40px; height: 40px; }
  .sat .label { font-size: 12px; }
}

/* Sections */
section { padding: clamp(44px, 5.5vw, 72px) 0; position: relative; }
.intro { max-width: 760px; }
.intro p { margin-top: 18px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature.flip .copy { order: 2; }
.feature .copy p { margin-top: 16px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.points li .icon { color: #a78bfa; margin-top: 3px; }
.points b { color: #f3f5ff; font-weight: 600; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
}

/* Phone frame with a real screenshot */
/* Real screenshots in a thin frame with a gradient border (the border is the frame's "padding"). A dark inner bezel
   keeps the rounded corners from cropping the content. */
.phone {
  position: relative; width: min(320px, 80vw); justify-self: center; aspect-ratio: 390 / 844;
  padding: 2px; border-radius: 34px;
  background: conic-gradient(from 200deg, #818cf8, #a855f7 20%, #ec4899 32%, rgb(59 130 246 / 0.25) 50%, rgb(99 102 241 / 0.2) 68%, #3b82f6 85%, #818cf8);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.5), 0 0 60px rgb(99 102 241 / 0.16);
}
.phone img {
  display: block; box-sizing: border-box; width: 100%; height: 100%; padding: 9px 7px;
  object-fit: contain; object-position: top; border-radius: 32px; background: #0b0f1a;
}
/* 3-screenshot gallery: fanned out on desktop, carousel on mobile */
.shots { position: relative; display: grid; place-items: center; min-height: calc(min(270px, 24vw) * 844 / 390 + 30px); }
.shots .phone { grid-area: 1 / 1; width: min(270px, 24vw); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), filter 0.4s; }
.shots .phone[data-pos="front"] { z-index: 3; }
.shots .phone[data-pos="left"] { z-index: 2; transform: translateX(-62%) scale(0.84) rotate(-5deg); filter: brightness(0.62); cursor: pointer; }
.shots .phone[data-pos="right"] { z-index: 2; transform: translateX(62%) scale(0.84) rotate(5deg); filter: brightness(0.62); cursor: pointer; }
.shots .phone[data-pos="left"]:hover, .shots .phone[data-pos="right"]:hover { filter: brightness(0.85); }
.dots { display: none; }
@media (max-width: 860px) {
  .shots {
    display: flex; min-height: 0; gap: 16px; margin: 0 -20px; padding: 8px 13vw 24px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone { flex: 0 0 74vw; width: 74vw; transform: none !important; filter: none !important; scroll-snap-align: center; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: -4px; }
  .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgb(224 231 255 / 0.25); cursor: pointer; transition: width 0.2s, background 0.2s; }
  .dots button[aria-current="true"] { width: 22px; background: var(--grad); }
}

/* Out-of-this-world exercises: hologram-style viewer */
.aliens-band { background: linear-gradient(180deg, transparent, rgb(30 42 91 / 0.3), transparent); }
.holo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.holo-grid > * { min-width: 0; }
.holo-copy .lead { margin-top: 16px; }
.holo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 28px; }
.holo-item {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-height: 56px; padding: 10px 14px; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgb(17 22 46 / 0.55); border: 1px solid var(--line); color: var(--ink-2); font: inherit;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.holo-item .n { grid-row: span 2; font: 600 12px/1 Sora, sans-serif; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.holo-item .t { font-size: 15px; font-weight: 600; color: #e9ecff; line-height: 1.25; }
.holo-item .m { font-size: 12.5px; color: var(--ink-3); }
.holo-item:hover { border-color: rgb(139 124 255 / 0.4); }
.holo-item[aria-selected="true"] { background: linear-gradient(rgb(99 102 241 / 0.16), rgb(99 102 241 / 0.16)), rgb(17 22 46 / 0.7); border-color: rgb(139 124 255 / 0.7); }
.holo-item[aria-selected="true"] .n { color: #a78bfa; }
.holo {
  position: relative; margin: 0; padding: 18px 18px 22px; border-radius: 24px; overflow: hidden;
  background:
    linear-gradient(rgb(124 140 255 / 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(124 140 255 / 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(80% 70% at 50% 35%, #1a2357, #0d1230);
  border: 1px solid rgb(139 124 255 / 0.35);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), inset 0 0 60px rgb(99 102 241 / 0.12);
}
/* viewfinder corners */
.holo::before, .holo::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgb(167 139 250 / 0.7); pointer-events: none; }
.holo::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.holo::after { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.holo-stage { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.holo-alien { position: relative; z-index: 1; width: 92%; }
.holo-alien svg { display: block; width: 100%; height: auto; }
.holo-alien.in { animation: holo-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1); }
.holo-alien.in.from-right { animation-name: holo-in-right; }
.holo-alien.in.from-left { animation-name: holo-in-left; }
@keyframes holo-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes holo-in-right { from { opacity: 0; transform: translateX(14%); } }
@keyframes holo-in-left { from { opacity: 0; transform: translateX(-14%); } }
/* you can change exercise by swiping; vertical page scrolling still works */
.holo-stage { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.holo-stage:active { cursor: grabbing; }
.holo-swipe { display: flex; justify-content: center; gap: 6px; margin-top: 14px; pointer-events: none; }
.holo-swipe i { width: 6px; height: 6px; border-radius: 999px; background: rgb(224 231 255 / 0.25); transition: width 0.2s, background 0.2s; }
.holo-swipe i.on { width: 18px; background: var(--grad); }
.holo-pad {
  position: absolute; left: 12%; right: 12%; bottom: 6%; height: 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(129 140 248 / 0.4), rgb(168 85 247 / 0.14) 60%, transparent);
  box-shadow: 0 0 0 1px rgb(167 139 250 / 0.25), 0 0 60px rgb(129 140 248 / 0.25);
}
.holo-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 0 4px; }
.holo-name { font: 700 clamp(18px, 2vw, 22px)/1.2 Sora, sans-serif; color: #f3f5ff; }
.holo-tags { display: flex; gap: 6px; }
.holo-tags span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; color: #c7d2fe; background: rgb(99 102 241 / 0.16); border: 1px solid rgb(139 124 255 / 0.3); }
.holo-progress { height: 3px; margin: 16px 4px 0; border-radius: 3px; background: rgb(224 231 255 / 0.1); overflow: hidden; }
.holo-progress span { display: block; height: 100%; width: 0; background: var(--grad); }
.holo.auto .holo-progress span { animation: holo-bar 5s linear forwards; }
.holo.paused .holo-progress span { animation-play-state: paused; }
@keyframes holo-bar { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .holo-alien.in { animation: none; } }
@media (max-width: 860px) {
  .holo-grid { grid-template-columns: 1fr; }
  .holo-list { display: flex; overflow-x: auto; margin: 20px -20px 0; padding: 0 20px 4px; scrollbar-width: none; }
  .holo-list::-webkit-scrollbar { display: none; }
  .holo-item { flex: 0 0 auto; min-height: 48px; }
}

/* Ranks */
.ranks-stage { position: relative; margin-top: 40px; padding: 24px 0; }
.funnel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ranks { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: start; }
.rank .ico { height: 104px; display: grid; place-items: center; }
.rank { text-align: center; }
.rank svg { width: calc(var(--k, 1) * 100%); max-width: calc(var(--k, 1) * 100px); margin: 0 auto; display: block; }
.rank b { display: block; margin-top: 10px; font: 600 14px/1.2 Sora, sans-serif; color: #f3f5ff; }
.rank small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* each rank slightly bigger than the previous one, relative to its column (same on mobile and desktop) */
.rank:nth-child(1) { --k: 0.520; } .rank:nth-child(2) { --k: 0.573; } .rank:nth-child(3) { --k: 0.626; }
.rank:nth-child(4) { --k: 0.679; } .rank:nth-child(5) { --k: 0.732; } .rank:nth-child(6) { --k: 0.785; }
.rank:nth-child(7) { --k: 0.838; } .rank:nth-child(8) { --k: 0.891; } .rank:nth-child(9) { --k: 0.944; }
.rank:nth-child(10) { --k: 0.997; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border-radius: 20px; overflow: hidden; }
.rules div { background: var(--deep); padding: 22px; }
.rules b { display: block; font: 700 28px/1 Sora, sans-serif; color: #f3f5ff; }
.rules span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 860px) {
  .ranks { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 20px; gap: 4px; }
  .rank b { font-size: 12px; overflow-wrap: anywhere; }
  .rank small { font-size: 11px; }
  .funnel { display: none; }
  .rank .ico { height: auto; }
  .rules { grid-template-columns: 1fr 1fr; }
}

/* Gyms: roles */
.gyms { background: radial-gradient(60% 50% at 20% 30%, rgb(59 130 246 / 0.12), transparent 70%); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.role { padding: 28px; border-radius: 24px; background: var(--deep); border: 1px solid var(--line); }
.role.featured { border-color: rgb(139 124 255 / 0.5); background: linear-gradient(rgb(99 102 241 / 0.1), rgb(99 102 241 / 0.1)), var(--deep); }
.role .who { display: flex; align-items: center; gap: 12px; }
.role .who .icon { width: 26px; height: 26px; color: #a78bfa; }
.role ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.role li { color: var(--ink-2); font-size: 16px; padding-left: 18px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
@media (max-width: 860px) { .roles { grid-template-columns: 1fr; } }

/* Privacy */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.trust div .icon { width: 28px; height: 28px; color: #a78bfa; }
.trust h3 { margin-top: 14px; font-size: 19px; }
.trust p { margin-top: 8px; font-size: 16px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* Scroll-driven finale (see index.html): full-screen stage with planet, moon and ship */
.finale { position: relative; padding: 0; }
.finale-stage {
  position: relative; height: 100vh; min-height: 640px; max-height: 920px; text-align: center;
  overflow-x: clip; overflow-y: visible; /* the cloud and the ship can leave through the top, not the sides */
  /* the ground and content are measured from the bottom: that way they don't move when the stage shrinks */
  --w: clamp(60px, 6vw, 88px); --ground: 112px; --horizon: calc(100% - var(--ground));
  transition: height 1.5s cubic-bezier(0.55, 0, 0.35, 1), min-height 1.5s cubic-bezier(0.55, 0, 0.35, 1);
}
/* after take-off the empty sky above is spare: the stage shrinks and the logo ends up closer to the previous section */
.finale-stage.settled { height: 620px; min-height: 0; }
/* already seen this session: straight to the final state, without the take-off animations */
.finale-stage.instant, .instant .f-content, .instant .f-planet, .instant .f-moon { transition: none !important; }
.instant .f-rocket, .instant .f-trail, .instant .f-moon, .instant .f-flash, .instant .f-ring, .instant .f-smoke, .instant .f-groundflash { display: none; }
/* clipped layer (planet, moon, smoke and flashes); the ship stays outside so it can fly over the sections */
.f-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* planet: a huge sphere spanning the full width, with lunar ground (craters) and volcanic cracks that
   light up on take-off. The footer sits on top, on the sphere itself. */
.f-planet {
  position: absolute; left: 50%; top: var(--horizon); width: max(170vw, 1400px); aspect-ratio: 1; translate: -50% 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #2a3160, #171c3c 9%, #0f1329 22%, #0b0f1a 40%);
  box-shadow: 0 -1px 0 #a5b8ff, 0 -6px 26px rgb(96 165 250 / 0.85), 0 -28px 80px rgb(59 130 246 / 0.5), 0 -70px 160px rgb(168 85 247 / 0.35);
  transition: box-shadow 0.6s;
}
.launched .f-planet { box-shadow: 0 -1px 0 #fde68a, 0 -8px 40px rgb(251 146 60 / 0.8), 0 -40px 120px rgb(236 72 153 / 0.55), 0 -90px 220px rgb(168 85 247 / 0.35); }
.f-surface { position: absolute; left: 50%; top: 0; width: 100vw; height: 40vh; translate: -50% 0; }
.f-surface svg { display: block; width: 100%; height: 100%; }
.cracks path { fill: none; stroke: #fb923c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.18; transition: opacity 0.8s, stroke 0.8s; }
.launched .cracks path { opacity: 1; stroke: #fdba74; filter: drop-shadow(0 0 3px #f97316); animation: lava 1.8s ease-in-out var(--d) infinite alternate; }
@keyframes lava { from { opacity: 0.55; } to { opacity: 1; } }
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i { position: absolute; top: 18%; width: 3px; height: 3px; border-radius: 50%; background: #fdba74; box-shadow: 0 0 6px #f97316; opacity: 0; }
.launched .embers i { animation: ember var(--t) ease-out var(--d) infinite; }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -120px); } }
.f-footer {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 20px; font-size: 13px; color: var(--ink-3); text-align: center; border: 0;
  text-shadow: 0 0 8px #0b0f1a, 0 0 2px #0b0f1a;
}
.f-footer .made { font-size: 14.5px; color: var(--ink-2); }
/* moon with its lit crescent (as in the login); it leaves on take-off */
.f-moon {
  position: absolute; top: 14vh; right: max(6vw, 24px); width: clamp(90px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 30% 40%, rgb(255 255 255 / 0.25) 0 6%, transparent 7%), radial-gradient(circle at 22% 66%, rgb(30 42 91 / 0.5) 0 7%, transparent 8%),
    linear-gradient(90deg, #dbe2ff, #a5b4fc 22%, #6366f1 42%, #1e2a5b 62%, #0d1330);
  box-shadow: -6px 0 28px rgb(165 180 252 / 0.45);
  transition: opacity 1.1s ease-in, transform 1.4s cubic-bezier(0.5, 0, 0.8, 0.5);
}
.f-moon::after { content: ""; position: absolute; inset: -4px -4px -4px 30%; border-radius: 50%; background: radial-gradient(circle at 40% 50%, #0b0f1a, #10173a 70%); box-shadow: -10px 0 18px rgb(11 15 26 / 0.85); }
.launched .f-moon { opacity: 0; transform: translate(14vw, -30vh) scale(0.6); }
/* ship: always resting on the ground; on arrival it fires its engines, shakes and takes off */
.f-rocket {
  position: absolute; left: 50%; width: var(--w); margin-left: calc(var(--w) / -2); z-index: 8; pointer-events: none;
  top: calc(var(--horizon) - var(--w) * 1.64);
}
.play .f-rocket { animation: f-shake 0.07s linear 0.5s 14 alternate; }
@keyframes f-shake { from { transform: translateX(-1.5px); } to { transform: translateX(1.5px); } }
.f-ship svg { display: block; width: 100%; height: auto; overflow: visible; }
.f-ship .thrust, .f-ship .flame { transform-box: view-box; transform-origin: 60px 197px; }
.f-ship .thrust { transform: scale(0.35, 0.12); opacity: 0.8; }
.play .f-ship .thrust { animation: f-ignite 1.5s ease-in forwards; }
@keyframes f-ignite { 0% { transform: scale(0.35, 0.12); } 40% { transform: scale(0.7, 0.45); } 100% { transform: scale(1.05, 1.05); opacity: 1; } }
.f-ship .f1 { animation: f-flicker 0.22s ease-in-out infinite alternate; }
.f-ship .f2 { animation: f-flicker 0.16s ease-in-out infinite alternate-reverse; }
.f-ship .f3 { animation: f-flicker 0.11s ease-in-out infinite alternate; }
@keyframes f-flicker { from { transform: scale(0.94, 0.9); } to { transform: scale(1.04, 1.08); } }
.f-trail {
  position: absolute; left: 50%; top: calc(var(--w) * 1.64); width: 16px; margin-left: -8px; height: 0; border-radius: 8px; opacity: 0;
  background: linear-gradient(rgb(233 213 255 / 0.95), rgb(168 85 247 / 0.55) 40%, rgb(59 130 246 / 0)); filter: blur(3px);
}
.launched .f-rocket { animation: f-blast 1.6s cubic-bezier(0.55, 0, 0.85, 0.35) 0.1s forwards; }
.launched .f-ship .thrust { animation: none; transform: scale(1.15, 1.25); transition: transform 0.3s; }
.launched .f-trail { animation: f-trail 2.2s ease-in 0.2s forwards; }
@keyframes f-blast { 0% { transform: translateY(0); opacity: 1; } 10% { transform: translateY(6px) scale(1.04, 0.96); } 75% { opacity: 1; } 100% { transform: translateY(-130vh) scale(0.8); opacity: 0; visibility: hidden; } }
@keyframes f-trail { 0% { opacity: 0; height: 0; } 15% { opacity: 1; } 70% { opacity: 0.8; height: 110vh; } 100% { opacity: 0; height: 120vh; } }
/* white cloud: a few puffs on ignition and a big cloud explosion spreading across the ground on take-off */
.f-smoke { position: absolute; left: 50%; top: var(--horizon); z-index: 7; pointer-events: none; }
.f-smoke i {
  position: absolute; left: -45px; top: -60px; width: 90px; height: 90px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgb(255 255 255 / 0.95), rgb(248 250 255 / 0.8) 22%, rgb(226 232 255 / 0.5) 42%, rgb(199 210 254 / 0.2) 58%, transparent 70%);
}
.f-smoke i:nth-child(odd) { --side: -1; } .f-smoke i:nth-child(even) { --side: 1; }
.f-smoke i:nth-child(-n+6) { --x: 60px; --s: 1.6; --y: -10px; }
.f-smoke i:nth-child(n+7):nth-child(-n+12) { --x: 150px; --s: 2.3; --y: -24px; }
.f-smoke i:nth-child(n+13):nth-child(-n+18) { --x: 260px; --s: 3; --y: -14px; }
.f-smoke i:nth-child(n+19):nth-child(-n+22) { --x: 380px; --s: 3.6; --y: -30px; }
.f-smoke i:nth-child(n+23) { --x: 30px; --s: 3.4; --y: -40px; }
.play .f-smoke i:nth-child(-n+6) { animation: f-puff 1.2s ease-out 0.3s forwards; }
@keyframes f-puff { 0% { opacity: 0; transform: scale(0.2); } 100% { opacity: 0.85; transform: translate(calc(var(--side) * 26px), -6px) scale(0.9); } }
.launched.play .f-smoke i { animation: f-cloud 2.6s cubic-bezier(0.08, 0.7, 0.25, 1) forwards; }
.launched.play .f-smoke i:nth-child(3n) { animation-delay: 0.06s; } .launched.play .f-smoke i:nth-child(3n+1) { animation-delay: 0.12s; }
/* the cloud spreads at ground level (wider than tall) and clears before the buttons appear */
@keyframes f-cloud {
  0% { opacity: 0.95; transform: scale(0.5); }
  15% { opacity: 1; }
  55% { opacity: 0.75; }
  100% { opacity: 0; transform: translate(calc(var(--side) * var(--x) * 1.3), calc(var(--y) * 0.5)) scale(var(--s), calc(var(--s) * 0.55)); }
}
/* white flash at ground level */
.f-groundflash {
  position: absolute; left: 50%; top: var(--horizon); z-index: 7; width: 900px; height: 180px; margin: -110px 0 0 -450px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgb(255 255 255 / 0.85) 25%, rgb(233 213 255 / 0.45) 55%, transparent); opacity: 0; pointer-events: none;
}
.launched .f-groundflash { animation: f-gflash 1.6s ease-out; }
@keyframes f-gflash { 0% { opacity: 0; transform: scale(0.3); } 18% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4, 1.15); } }
/* white explosion and the logo appearing with the buttons */
.f-flash { position: fixed; inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; } /* full-screen flash */
.launched .f-flash { animation: f-flash 0.7s ease-out 1.1s; }
@keyframes f-flash { 0% { opacity: 0; } 15% { opacity: 0.8; } 100% { opacity: 0; } }
.f-content {
  position: absolute; left: 0; right: 0; bottom: calc(var(--ground) + 56px); z-index: 5; padding: 0 20px;
  opacity: 0; transform: scale(0.92); pointer-events: none; transition: opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.launched .f-content { opacity: 1; transform: none; pointer-events: auto; transition-delay: 1.2s; }
.f-brand { position: relative; display: inline-block; }
.f-brand .wordmark { font-size: clamp(46px, 7vw, 84px); }
.f-brand .wordmark .orbit { background: linear-gradient(90deg, #6366f1, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.f-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 30px #fff, 0 0 60px rgb(196 181 253 / 0.9); opacity: 0; }
.launched .f-ring { animation: f-ring 0.9s cubic-bezier(0.1, 0.6, 0.3, 1) 1.2s; }
@keyframes f-ring { 0% { opacity: 1; transform: scale(0.2); } 100% { opacity: 0; transform: scale(6, 3); } }
.f-content .tagline { margin: 14px auto 0; max-width: none; font: 500 clamp(13px, 1.4vw, 16px)/1 Orbitron, Sora, sans-serif; letter-spacing: 0.42em; color: #c7d2fe; text-shadow: 0 0 6px rgb(124 140 255 / 0.8), 0 0 18px rgb(168 85 247 / 0.55); }
.f-content h2 { margin-top: 32px; font-size: clamp(28px, 3.6vw, 44px); }
.f-content .lead { margin: 12px auto 0; }
.f-content .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.launched .f-footer .heart { display: inline-block; color: #f472b6; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1.05); } 45% { transform: scale(1.2); } }
.f-content .stores.center { margin-top: 18px; }
@media (max-width: 860px) {
  .finale-stage { --ground: 136px; }
  .finale-stage.settled { height: 590px; }
  .f-content { bottom: calc(var(--ground) + 36px); }
  .f-brand .wordmark { font-size: 40px; }
  .f-content .tagline { margin-top: 10px; font-size: 11px; }
  .f-content h2 { margin-top: 20px; font-size: 26px; }
  .f-content .lead { display: none; }
  .f-content .ctas { margin-top: 18px; }
  .f-content .ctas .btn { min-width: 220px; }
    .f-footer { font-size: 11px; bottom: 10px; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .f-trail, .f-smoke, .f-flash, .f-ring, .embers, .f-groundflash { display: none; }
  .launched .f-rocket { animation: none; opacity: 0; }
  .launched .cracks path { animation: none; }
  .f-content { transition: none; }
  .f-footer .heart, .f-ship .flame { animation: none; }
}

/* Background that changes colour as you scroll (driven by the page: --a1, --a2, --a3 based on scroll) */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky i { position: absolute; inset: 0; transition: opacity 0.3s linear; will-change: opacity; }
.sky i:nth-child(1) { opacity: var(--a1, 1); background: radial-gradient(70% 55% at 80% 25%, rgb(59 130 246 / 0.16), transparent 70%), radial-gradient(60% 50% at 10% 80%, rgb(30 42 91 / 0.5), transparent 70%); }
.sky i:nth-child(2) { opacity: var(--a2, 0); background: radial-gradient(70% 60% at 20% 40%, rgb(124 58 237 / 0.2), transparent 70%), radial-gradient(60% 55% at 85% 75%, rgb(59 130 246 / 0.14), transparent 70%); }
.sky i:nth-child(3) { opacity: var(--a3, 0); background: radial-gradient(90% 60% at 50% 100%, rgb(219 39 119 / 0.2), transparent 70%), radial-gradient(70% 50% at 50% 70%, rgb(168 85 247 / 0.22), transparent 70%); }

/* footer: the same on every page (home, pricing, login): © and, below it, the Barcelona line */
footer { padding: 40px 20px 32px; color: var(--ink-3); font-size: 13px; text-align: center; }
footer .wrap, .site-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
footer .made { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: none; }
footer .heart { display: inline-block; color: #f472b6; animation: beat 1.4s ease-in-out infinite; }
footer a { color: var(--ink-2); }


/* Stars across the whole page (fixed layer behind the content; some twinkle) */
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.starfield i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #e0e7ff; opacity: var(--o);
}
.starfield i.big { box-shadow: 0 0 calc(var(--s) * 3) rgb(196 181 253 / 0.7); }
.starfield i.tw { will-change: opacity; }
.starfield i.tw { animation: star-twinkle var(--d) ease-in-out var(--delay) infinite alternate; }
.starfield i.sparkle {
  width: calc(var(--s) * 3); height: calc(var(--s) * 3); border-radius: 0; box-shadow: none; background: linear-gradient(#fff, #c4b5fd);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
@keyframes star-twinkle { from { opacity: 0.1; } to { opacity: var(--o); } }
@media (prefers-reduced-motion: reduce) { .starfield i.tw { animation: none; } }
/* Shooting stars and comets (stars.js): a thin tail with a bright head at the leading end */
.starfield .shoot {
  position: absolute; width: var(--len); height: 1px; margin-left: calc(var(--len) * -1);
  background: linear-gradient(90deg, transparent, rgb(224 231 255 / 0.75));
  transform-origin: 100% 50%; opacity: 0;
  animation: shoot var(--t) cubic-bezier(.3, 0, .7, 1) forwards;
}
.starfield .shoot::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgb(196 181 253 / 0.8);
}
.starfield .shoot.comet { height: 2px; background: linear-gradient(90deg, transparent, rgb(124 140 255 / 0.25) 55%, rgb(196 181 253 / 0.7)); }
.starfield .shoot.comet::after { width: 5px; height: 5px; top: -1.5px; box-shadow: 0 0 10px 3px rgb(168 85 247 / 0.55), 0 0 3px 1px #fff; }
@keyframes shoot {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(0); }
  12% { opacity: 0.9; }
  75% { opacity: 0.7; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--dist)); }
}


/* Mobile app: coming soon to the stores */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.stores.center { justify-content: center; margin-top: 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 12px; border-radius: 12px;
  background: #05070d; border: 1px solid rgb(224 231 255 / 0.22); color: #f3f5ff; cursor: default;
  font: 600 16px/1.1 Inter, sans-serif; text-align: left;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.01em; }

/* Animations paused when not visible (saves battery and CPU) */
.holo.paused .holo-alien *, .hero.paused .track, .hero.paused .sat { animation-play-state: paused !important; }

/* «GymBro» in the logo colours: Gym in white and Bro with the «rbita» gradient */
.gymbro { white-space: nowrap; }
.gymbro .bro { background: linear-gradient(90deg, #6366f1, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
