/* Stackle landing page — synthwave / neon retro */

:root {
  --hero-console-scale: 1;
  --hero-console-blur: 0px;
  --hero-console-opacity: 1;
  --hero-console-lift: 0px;
  --bg-cosmic-top: #090514;
  --bg-cosmic-bottom: #020005;
  --bg-panel: rgba(12, 10, 28, 0.82);
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.35);
  --magenta: #ff2bd6;
  --magenta-dim: rgba(255, 43, 214, 0.35);
  --purple: #2a1454;
  --text: #e8ecff;
  --text-muted: #9aa3c7;
  --gold: #ffd54a;
  --font-display: "Press Start 2P", "Courier New", monospace;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-prose: "Sora", var(--font-body);
  --font-brand: "Saira", var(--font-body);
  --font-script: "Caveat", "Brush Script MT", cursive;
  --radius: 14px;
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.55), 0 0 32px rgba(0, 240, 255, 0.25);
  --glow-magenta: 0 0 12px rgba(255, 43, 214, 0.55), 0 0 32px rgba(255, 43, 214, 0.25);
  --error-neon: #ff6b7a;
  --error-glow: rgba(255, 90, 105, 0.45);
  --arcade-body: #0d0e15;
  --arcade-body-deep: #060709;
  --arcade-body-mid: #12131c;
  --arcade-rim-magenta: #ff007f;
  --arcade-rim-cyan: #00f2fe;
  --arcade-rim-magenta-glow: rgba(255, 0, 127, 0.32);
  --arcade-rim-cyan-glow: rgba(0, 242, 254, 0.28);
  --arcade-joystick: #e8193a;
  --arcade-button-a: #ff6b3d;
  --arcade-button-b: #e8193a;
  --arcade-button-c: #c41230;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: linear-gradient(180deg, var(--bg-cosmic-top) 0%, var(--bg-cosmic-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.4;
}

/* ── Ambient audio toggle ── */

.audio-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 50%;
  background: rgba(4, 10, 28, 0.72);
  color: var(--cyan);
  cursor: pointer;
  box-shadow:
    var(--glow-cyan),
    inset 0 0 12px rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.audio-toggle:hover {
  transform: scale(1.06);
  border-color: rgba(0, 240, 255, 0.75);
  box-shadow:
    0 0 16px rgba(0, 240, 255, 0.65),
    0 0 36px rgba(0, 240, 255, 0.3),
    inset 0 0 14px rgba(0, 240, 255, 0.12);
}

.audio-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.audio-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.audio-toggle__icon--on {
  display: none;
}

.audio-toggle__icon--off {
  display: block;
}

.audio-toggle.is-playing .audio-toggle__icon--on {
  display: block;
}

.audio-toggle.is-playing .audio-toggle__icon--off {
  display: none;
}

/* ── Site navigation ── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  transform: translateY(calc(-100% - 1.5rem));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.site-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav__pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: min(700px, 100%);
  margin: 0 auto;
  padding: 0.875rem 0.875rem 0.875rem 1.5rem;
  border-radius: 999px;
  background: rgba(9, 5, 20, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.site-nav__brand:hover {
  text-decoration: none;
}

.site-nav__sun {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd54a 0%, #ff6b2b 100%);
  box-shadow: 0 0 18px rgba(255, 120, 40, 0.45);
  mask-image: repeating-linear-gradient(
    180deg,
    #000 0 8%,
    transparent 8% 14%
  );
  -webkit-mask-image: repeating-linear-gradient(
    180deg,
    #000 0 8%,
    transparent 8% 14%
  );
}

.site-nav__logo {
  font-family: var(--font-brand);
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(90deg, #ff2bd6, #00f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 43, 214, 0.3));
}

.site-nav__cta {
  flex-shrink: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.96);
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.4s ease,
    padding 0.4s ease,
    margin 0.4s ease,
    visibility 0.35s ease;
}

.site-nav.is-cta-visible .site-nav__cta {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  max-width: 14rem;
  padding: 0.75rem 1.5rem;
  margin-left: 0.375rem;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
  overflow-x: clip;
}

main {
  margin-top: 2rem;
  pointer-events: none;
}

main .section > .container {
  pointer-events: auto;
}

/* ── Global background ── */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__stars-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 4;
}

.page-bg__star {
  position: absolute;
  top: -5%;
  width: var(--star-size, 1.5px);
  height: var(--star-size, 1.5px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.65);
  animation: star-fall linear infinite;
}

@keyframes star-fall {
  from {
    transform: translate3d(0, -5vh, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translate3d(var(--star-drift, 0px), 110vh, 0);
    opacity: 0;
  }
}

.page-bg__skyline-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(160px, 28vh, 280px);
  z-index: 1;
  overflow: hidden;
  will-change: transform;
  opacity: 0.42;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 18%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.65) 18%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
}

.page-bg__skyline-track .page-bg__skyline {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/skyline-bg.png") repeat-x center bottom;
  background-size: auto 100%;
}

.page-bg__skyline-track .page-bg__skyline:first-child {
  left: 0;
  animation: skyline-scroll 90s linear infinite;
}

.page-bg__skyline-track .page-bg__skyline + .page-bg__skyline {
  left: 100%;
  animation: skyline-scroll 90s linear infinite;
}

@keyframes skyline-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.page-bg__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a0a32 0%, #090514 38%, transparent 72%);
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  perspective: 420px;
  perspective-origin: 50% 28%;
}

.page-bg__grid-plane {
  position: absolute;
  left: -60%;
  right: -60%;
  top: 28%;
  height: 220%;
  transform-origin: 50% 0%;
  transform: rotateX(74deg);
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 43, 214, 0.08) 50%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      var(--magenta-dim) 0 1px,
      transparent 1px 52px
    ),
    repeating-linear-gradient(
      0deg,
      var(--cyan-dim) 0 1px,
      transparent 1px 52px
    );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 10%,
    rgba(0, 0, 0, 0.75) 38%,
    rgba(0, 0, 0, 0.5) 58%,
    rgba(0, 0, 0, 0.15) 78%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.25) 10%,
    rgba(0, 0, 0, 0.75) 38%,
    rgba(0, 0, 0, 0.5) 58%,
    rgba(0, 0, 0, 0.15) 78%,
    transparent 100%
  );
  animation: grid-scroll 4s linear infinite;
}

.page-bg__horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 28%;
  height: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  box-shadow: var(--glow-cyan), var(--glow-magenta);
  transform-origin: 50% 0%;
  transform: rotateX(74deg) scaleX(1.5);
  opacity: 0.85;
}

.page-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 75% 55% at 50% 42%,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 72%,
      rgba(0, 0, 0, 0.85) 100%
    ),
    radial-gradient(
      ellipse 100% 80% at 50% 50%,
      transparent 25%,
      rgba(0, 0, 0, 0.5) 100%
    );
  pointer-events: none;
}

.page-bg__cosmic {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(9, 5, 20, 0.08) 25%,
    rgba(9, 5, 20, 0.35) 50%,
    rgba(9, 5, 20, 0.65) 72%,
    rgba(2, 0, 5, 0.95) 92%,
    var(--bg-cosmic-bottom) 100%
  );
}

@keyframes grid-scroll {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 0, 0 0, 0 52px;
  }
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: 4.5rem;
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  --hero-arcade-width: min(calc(100vw - 2rem), clamp(508px, 83vw, 930px));
  --hero-arcade-height: calc(var(--hero-arcade-width) * 1024 / 716);
  --hero-arcade-top: 0;
  --arcade-screen-top: 31.5%;
  --arcade-screen-left: 20.5%;
  --arcade-screen-width: 60%;
  --arcade-screen-height: 29.5%;
  --arcade-screen-radius: 2.8%;
  --arcade-cta-gap: 5.5%;
  padding: 1rem 0 0;
  min-height: calc(var(--hero-arcade-height) + 1rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: clip;
  overflow-y: visible;
}

.hero__content {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  pointer-events: none;
}

.hero__brand {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
  pointer-events: none;
}

.hero__logo-lockup {
  position: relative;
  display: inline-grid;
  place-items: center;
  margin-inline: auto;
}

.hero__sun {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: clamp(72px, 18vw, 128px);
  height: clamp(72px, 18vw, 128px);
  transform: translate(-42%, -42%);
  will-change: transform;
  pointer-events: none;
}

.retro-sun-glow-backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(252, 238, 33, 0.35) 0%,
    rgba(255, 65, 108, 0.2) 40%,
    rgba(158, 0, 255, 0.05) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  filter: blur(20px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.retro-sun-fill {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    to bottom,
    #fcee21 0%,
    #ff931e 30%,
    #ff416c 65%,
    #ff007f 85%,
    #9e00ff 100%
  );
  mask-image: repeating-linear-gradient(
    180deg,
    #000 0 7%,
    transparent 7% 13%
  );
  -webkit-mask-image: repeating-linear-gradient(
    180deg,
    #000 0 7%,
    transparent 7% 13%
  );
}

.hero__logo {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0;
  font-family: "Saira", sans-serif;
  font-size: clamp(5.6rem, 22.4vw, 11.4rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 1;
  transform: skewX(-10deg) rotate(-4deg);
  transform-origin: center center;
}

.chrome-logo-container {
  position: relative;
  display: inline-block;
}

.chrome-logo-text-base,
.chrome-logo-text-overlay {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  white-space: nowrap;
}

/* Layer 1: white perimeter stroke + 3D extrusion block */
.chrome-logo-text-base {
  position: relative;
  z-index: 1;
  color: #1a022b;
  -webkit-text-stroke: clamp(2px, 0.35vw, 4px) #ffffff;
  paint-order: stroke fill;
  text-shadow:
    1px 1px 0 #ff00b7,
    2px 2px 0 #ff00b7,
    3px 3px 0 #00f2fe,
    4px 4px 0 #0d041a,
    5px 5px 0 #0d041a,
    6px 6px 0 #0d041a,
    7px 7px 15px rgba(0, 0, 0, 0.9);
}

/* Layer 2: airbrushed horizon chrome via background-clip text */
.liquid-chrome-gradient {
  background: linear-gradient(
    to bottom,
    #0c0728 0%,
    #3a5eff 34%,
    #ffffff 47%,
    #ffffff 49%,
    #000000 50%,
    #000000 52%,
    #99005c 58%,
    #ff00a6 82%,
    #ffffff 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.chrome-logo-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  -webkit-text-stroke: 0 transparent;
  text-shadow: none;
  pointer-events: none;
}

.hero__tagline {
  position: relative;
  z-index: 2;
  margin: 0.625rem 0 0;
  font-family: var(--font-script);
  font-size: clamp(1.125rem, 3.2vw, 1.625rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8193a;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, 0.22),
    1px 2px 0 rgba(0, 0, 0, 0.48),
    2px 4px 6px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(232, 25, 58, 0.4),
    0 0 24px rgba(9, 5, 20, 0.85);
}

.hero__cta-spacer {
  width: 100%;
  height: clamp(3rem, 12vw, 5rem);
  flex-shrink: 0;
  pointer-events: none;
}

.hero__console {
  position: relative;
  transform: scale3d(var(--hero-console-scale), var(--hero-console-scale), 1)
    translate3d(0, var(--hero-console-lift), 0);
  transform-origin: 50% 0;
  opacity: var(--hero-console-opacity);
}

.hero__console .hero__brand,
.hero__console .hero__arcade-overlay,
.hero__console .hero__arcade-video,
.hero__console [data-hero-cta] {
  filter: blur(var(--hero-console-blur));
}

.hero__arcade-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
  pointer-events: none;
  width: 100%;
  max-width: none;
}

.hero__arcade-stage {
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: var(--hero-arcade-width);
  max-width: none;
  margin-top: var(--hero-arcade-top);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  perspective: 1200px;
  perspective-origin: 50% 20%;
  cursor: grab;
  touch-action: pan-y;
  pointer-events: auto;
  isolation: isolate;
}

.hero__arcade-stage:active {
  cursor: grabbing;
}

.hero__arcade-composite {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  aspect-ratio: 716 / 1024;
  transform-style: preserve-3d;
  transform-origin: center 22%;
  isolation: isolate;
  pointer-events: none;
}

.hero__arcade-cta-anchor {
  position: absolute;
  left: 50%;
  top: calc(var(--arcade-screen-top) + var(--arcade-screen-height) + var(--arcade-cta-gap));
  transform: translateX(-50%);
  z-index: 50;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero__arcade-cta-anchor::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - min(calc(var(--hero-arcade-width) * 0.24), 9rem));
  z-index: 0;
  width: min(28vw, 210px);
  height: min(18vw, 140px);
  transform: translate(-50%, -42%);
  background: radial-gradient(
    ellipse at 50% 100%,
    rgba(255, 43, 214, 0.62) 0%,
    rgba(255, 0, 127, 0.28) 42%,
    transparent 72%
  );
  filter: blur(20px);
  opacity: calc(0.88 * var(--hero-console-opacity, 1));
  pointer-events: none;
}

.hero__arcade-cta-anchor [data-hero-cta] {
  pointer-events: auto;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.hero__arcade-glow,
.hero__arcade-glow--outer {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero__arcade-glow {
  inset: -4% -24%;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at 50% 58%,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(2, 2, 8, 0.82) 22%,
      transparent 62%
    ),
    radial-gradient(ellipse at 22% 38%, var(--arcade-rim-magenta-glow), transparent 52%),
    radial-gradient(ellipse at 78% 48%, var(--arcade-rim-cyan-glow), transparent 52%);
  filter: blur(40px);
  opacity: 0.88;
}

.hero__arcade-glow--outer {
  inset: -14% -36%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(0, 0, 0, 0.7) 0%, transparent 52%),
    radial-gradient(ellipse at 28% 42%, rgba(255, 0, 127, 0.12), transparent 58%),
    radial-gradient(ellipse at 72% 46%, rgba(0, 242, 254, 0.1), transparent 58%);
  filter: blur(54px);
  opacity: 0.5;
}

.hero__arcade {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
}

.hero__arcade-video-layer {
  position: absolute;
  top: var(--arcade-screen-top);
  left: var(--arcade-screen-left);
  width: var(--arcade-screen-width);
  height: var(--arcade-screen-height);
  border-radius: var(--arcade-screen-radius);
  overflow: hidden;
  z-index: 1;
  background: #000;
  transform: translateZ(-8px);
  box-shadow:
    inset 0 0 24px rgba(0, 242, 254, 0.12),
    0 0 20px rgba(0, 242, 254, 0.08);
}

.hero__arcade-video {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 100%;
  height: 132%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center center;
}

.hero__arcade-glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 44%,
    rgba(0, 242, 254, 0.06) 100%
  );
  background-size: 200% 200%;
  mix-blend-mode: soft-light;
  opacity: 0.18;
}

.hero__arcade-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  z-index: 10;
  pointer-events: none;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 90%, transparent 100%);
}

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

  .site-nav__cta {
    transition: none;
  }

  .hero__bg {
    transform: none !important;
  }

  .hero__sun {
    transform: translate(calc(-100% - clamp(3.25rem, 10vw, 5.75rem)), -50%) !important;
  }

  .page-bg__star,
  .page-bg__skyline {
    animation: none !important;
  }

  .page-bg__skyline-track {
    transform: none !important;
  }

  .hero__arcade-stage {
    cursor: default;
  }

  .hero__arcade-stage:active {
    cursor: default;
  }

  .hero__arcade-cabinet,
  .hero__arcade-composite {
    transform: none !important;
  }

  .hero__arcade-cta-anchor .button.perspective {
    transform: perspective(500px) rotateX(35deg) !important;
    top: 0 !important;
  }

  .hero__arcade-cta-anchor .button.perspective::after {
    bottom: -25% !important;
  }

  .hero__console .hero__brand,
  .hero__console .hero__arcade-overlay,
  .hero__console .hero__arcade-video,
  .hero__console [data-hero-cta] {
    filter: none !important;
  }

  .hero__console {
    transform: none !important;
    opacity: 1 !important;
  }

  .hero__arcade-cta-anchor {
    transform: translateX(-50%) !important;
  }

  .hero__arcade-glow,
  .hero__arcade-glow--outer,
  .hero__arcade-glare {
    transform: none !important;
    opacity: 0.85;
  }

  .device {
    transition: none !important;
  }

  .btn-submit[data-state="loading"],
  .btn-submit[data-state="success"],
  .btn-submit[data-state="error"] {
    animation: none !important;
  }

  .beta-form__fields {
    transition: none;
  }

  .form-message__icon {
    animation: none !important;
  }
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-cosmic-bottom);
  background: linear-gradient(90deg, var(--cyan), #67f0ff);
  box-shadow: var(--glow-cyan);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta--hero {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Hero arcade CTA — perspective blue pill */

.hero__arcade-cta-anchor .button.perspective {
  --btn-w: calc(var(--hero-arcade-width) * 0.393);
  --btn-h: calc(var(--hero-arcade-height) * 0.057);
  --btn-pad: calc(var(--hero-arcade-width) * 0.015);
  --btn-font: calc(var(--hero-arcade-width) * 0.04);
  --btn-radius: calc(var(--btn-h) * 0.417);

  position: relative;
  display: block;
  width: var(--btn-w);
  height: var(--btn-h);
  padding: var(--btn-pad);
  margin: 0 auto;
  border: none;
  outline: none;
  border-radius: var(--btn-radius);
  background: transparent;
  color: transparent;
  font-family: var(--font-body);
  font-size: var(--btn-font);
  font-weight: 200;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  top: 0;
  transition: top 0.15s ease-in-out;
  transform: perspective(500px) rotateX(35deg);
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}

.hero__arcade-cta-anchor .button.perspective::before {
  content: "Join The Beta";
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: var(--btn-pad);
  border-radius: var(--btn-radius);
  box-sizing: border-box;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(to bottom, #00d2ff 0%, #0072ff 100%);
  box-shadow: inset 0 -2px 5px rgba(255, 255, 255, 0.3);
}

.hero__arcade-cta-anchor .button.perspective::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  left: 2.9%;
  bottom: -25%;
  width: 94.2%;
  height: 60%;
  border-radius: 0 0 calc(var(--btn-radius) * 0.8) calc(var(--btn-radius) * 0.8);
  background: linear-gradient(to bottom, #0051ba 0%, #002b80 100%);
  transform: perspective(500px) rotateX(-40deg);
  box-shadow:
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 3px 2px -1px rgba(0, 0, 0, 1);
  transition: bottom 0.15s ease-in-out;
}

.hero__arcade-cta-anchor .button.perspective:hover {
  top: 2px;
  text-decoration: none;
}

.hero__arcade-cta-anchor .button.perspective:active {
  top: 8px;
}

.hero__arcade-cta-anchor .button.perspective:active::after {
  bottom: -20%;
}

.hero__arcade-cta-anchor .button.perspective:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.btn-cta--nav {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.btn-cta:hover:not([data-hero-cta]) {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 24px rgba(0, 240, 255, 0.7),
    0 0 48px rgba(255, 43, 214, 0.45),
    0 12px 36px rgba(0, 0, 0, 0.4);
}

.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;
}

/* ── Form ── */

.beta-form {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.03) 18%,
      rgba(12, 14, 32, 0.22) 100%
    );
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 240, 255, 0.08) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 240, 255, 0.06);
  overflow: hidden;
}

.beta-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 42%,
    rgba(0, 240, 255, 0.05) 100%
  );
  opacity: 0.55;
}

.beta-form__title {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.2vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00f2fe;
  text-shadow: var(--glow-cyan);
}

.beta-form__fields {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-height: 720px;
  opacity: 1;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    margin 0.45s ease;
}

.beta-form.is-complete .beta-form__fields {
  max-height: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.beta-form.is-complete .form-message {
  margin: 0 0 1.25rem;
  width: 100%;
}

.beta-form.is-complete {
  text-align: center;
}

.beta-form.is-complete .btn-submit {
  margin-top: 0;
  cursor: default;
}

.beta-form.is-complete--instant .beta-form__fields {
  transition: none;
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.125rem;
}

.form-row--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

@media (max-width: 540px) {
  .form-row--inline {
    grid-template-columns: 1fr;
  }
}

.form-field label,
.form-field .form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: rgba(15, 10, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.form-field input::placeholder {
  color: rgba(154, 163, 199, 0.55);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300f0ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.25rem;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(15, 10, 25, 0.72);
  animation: input-focus-pulse 2.2s ease-in-out infinite;
}

@keyframes input-focus-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 240, 255, 0.55),
      0 0 10px rgba(0, 240, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 240, 255, 0.95),
      0 0 18px rgba(0, 240, 255, 0.45),
      0 0 32px rgba(0, 240, 255, 0.15);
  }
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: var(--error-neon);
  background: rgba(30, 10, 18, 0.55);
  animation: none;
  box-shadow:
    0 0 0 1px rgba(255, 107, 122, 0.65),
    0 0 14px var(--error-glow);
}

.field-error {
  min-height: 0;
  margin: 0.4rem 0 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: #ff9aa5;
}

.field-error:empty {
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

.device-type-group {
  border: none;
  margin: 0;
  padding: 0;
}

.device-type-group legend {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.segmented-control label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.segmented-control span {
  display: block;
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.32);
  background: rgba(15, 10, 25, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.device-type-group[aria-invalid="true"] .segmented-control span {
  border-color: var(--error-neon);
  box-shadow: 0 0 10px var(--error-glow);
}

.device-type-group[aria-invalid="true"] .field-error {
  color: #ff9aa5;
}

.segmented-control input:checked + span {
  color: var(--bg-cosmic-bottom);
  border-color: transparent;
}

.segmented-control label:nth-child(1) input:checked + span {
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.segmented-control label:nth-child(2) input:checked + span {
  background: var(--magenta);
  box-shadow: var(--glow-magenta);
}

.segmented-control label:nth-child(3) input:checked + span {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: var(--glow-cyan), var(--glow-magenta);
}

.segmented-control input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.segmented-control input:focus-visible + span {
  border-color: var(--cyan);
  animation: input-focus-pulse 2.2s ease-in-out infinite;
}

.btn-submit {
  width: 100%;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg-cosmic-bottom);
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.btn-submit__text {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.btn-submit[data-state="loading"] {
  pointer-events: none;
  animation: submit-pulse 1.1s ease-in-out infinite;
}

.btn-submit[data-state="success"] {
  background: #00c878;
  color: #042816;
  box-shadow:
    0 0 18px rgba(0, 200, 120, 0.55),
    0 0 36px rgba(0, 200, 120, 0.25);
  animation: submit-success-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-submit[data-state="error"] {
  background: #ff4a6a;
  color: #fff;
  box-shadow:
    0 0 18px rgba(255, 74, 106, 0.55),
    0 0 36px rgba(255, 74, 106, 0.25);
  animation: submit-error-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes submit-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.985); }
}

@keyframes submit-success-pop {
  0% { transform: scale(0.94); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes submit-error-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.btn-submit:hover:not(:disabled):not([data-state="success"]) {
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(0, 240, 255, 0.65),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-message {
  position: relative;
  z-index: 1;
  margin: 0 0 1.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-message--success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  border: none;
  background: none;
  text-align: center;
  color: #c8ffe0;
  font-size: 1rem;
  line-height: 1.55;
}

.form-message__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #00e08a;
  background: radial-gradient(
    circle,
    rgba(0, 224, 138, 0.24) 0%,
    rgba(0, 200, 120, 0.08) 68%
  );
  box-shadow:
    0 0 20px rgba(0, 200, 120, 0.55),
    0 0 40px rgba(0, 200, 120, 0.28),
    inset 0 0 14px rgba(0, 224, 138, 0.18);
  animation: success-icon-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-message__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  filter: drop-shadow(0 0 8px rgba(0, 224, 138, 0.85));
}

.form-message__text {
  max-width: 28ch;
}

@keyframes success-icon-pop {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.form-message[hidden] {
  display: none;
}

.form-message--error {
  color: #ffb3c2;
  background: rgba(255, 70, 100, 0.12);
  border: 1px solid rgba(255, 70, 100, 0.35);
}

.beta-form.is-submitting {
  opacity: 0.92;
}

/* ── How it works ── */

#how-it-works {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-block: 0 4.5rem;
}

#how-it-works .section-title,
.screenshots .section-title {
  width: 100%;
  text-align: center;
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(20, 16, 35, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(0, 242, 254, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.step-card:nth-child(2) {
  border-color: rgba(255, 43, 214, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px rgba(255, 43, 214, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.step-card:nth-child(3) {
  border-color: rgba(0, 242, 254, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(0, 242, 254, 0.05),
    0 0 20px rgba(255, 43, 214, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.step-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(15, 10, 25, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.step-card:nth-child(1) .step-card__icon {
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.12);
}

.step-card:nth-child(2) .step-card__icon {
  border: 1px solid rgba(255, 43, 214, 0.25);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.12);
}

.step-card:nth-child(3) .step-card__icon {
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow:
    0 0 8px rgba(255, 43, 214, 0.1),
    0 0 8px rgba(0, 242, 254, 0.1);
}

.step-glyph {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.step-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(1rem, 2.6vw, 1.125rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.step-card__text {
  margin: 0;
  font-family: var(--font-prose);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
}

/* ── Screenshots ── */

.screenshots {
  overflow-x: clip;
}

.screenshots .container {
  position: relative;
}

.screenshots .section-title {
  position: relative;
  z-index: 5;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .screenshots .section-title {
    margin-bottom: 3rem;
  }
}

.screenshot-showcase {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-x: contain;
  padding: 2rem 1rem 2.5rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(50% - 115px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) transparent;
}

.device {
  position: relative;
  flex: 0 0 210px;
  margin: 0;
  scroll-snap-align: center;
  outline: none;
}

.device:focus-visible .device__shell {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 2px var(--cyan),
    0 0 24px rgba(0, 240, 255, 0.35);
}

.device--center {
  flex: 0 0 230px;
  z-index: 2;
}

.device__glow {
  position: absolute;
  inset: 8% -20%;
  z-index: 0;
  border-radius: 50%;
  filter: blur(26px);
  pointer-events: none;
}

.device--left .device__glow {
  background: radial-gradient(ellipse, rgba(255, 43, 214, 0.45), transparent 68%);
}

.device--center .device__glow {
  inset: 4% -24%;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(255, 43, 214, 0.5), transparent 60%),
    radial-gradient(ellipse at 65% 50%, rgba(0, 240, 255, 0.45), transparent 60%);
}

.device--right .device__glow {
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.45), transparent 68%);
}

.device__shell {
  position: relative;
  z-index: 1;
  padding: 2px;
  border-radius: 32px;
  background: linear-gradient(165deg, #252530 0%, #101018 50%, #1a1a24 100%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(0, 240, 255, 0.12),
    0 0 24px rgba(255, 43, 214, 0.1);
}

.device--left .device__shell {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 43, 214, 0.22);
}

.device--center .device__shell {
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(0, 240, 255, 0.2),
    0 0 36px rgba(255, 43, 214, 0.2);
}

.device--right .device__shell {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(0, 240, 255, 0.22);
}

.device__shell--android {
  border-radius: 28px;
}

.device__island {
  display: none;
}

.device__camera {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06060c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.device__screen {
  position: relative;
  aspect-ratio: 471 / 1024;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.device__shell--android .device__screen {
  border-radius: 26px;
}

.device__screenshot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 768px) {
  .screenshot-showcase {
    position: relative;
    display: block;
    overflow-x: clip;
    overflow-y: visible;
    min-height: 500px;
    margin-top: 0.5rem;
    padding: 3.5rem 0 3rem;
    scroll-snap-type: none;
    perspective: 1400px;
  }

  .device {
    position: absolute;
    top: 58%;
    left: 50%;
    flex: none;
    width: 220px;
    transform-origin: 50% 88%;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .device--left {
    transform: translate(calc(-50% - 175px), -50%) rotate(-8deg) scale(0.9);
    z-index: 1;
  }

  .device--center {
    width: 250px;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.06);
    z-index: 3;
  }

  .device--right {
    transform: translate(calc(-50% + 175px), -50%) rotate(8deg) scale(0.9);
    z-index: 2;
  }

  .screenshot-showcase:has(.device--left:hover) .device--left,
  .screenshot-showcase:has(.device--left:focus-within) .device--left {
    transform: translate(calc(-50% - 175px), -50%) rotate(-22deg) scale(0.98);
  }

  .screenshot-showcase:has(.device--left:hover) .device--center,
  .screenshot-showcase:has(.device--left:focus-within) .device--center {
    transform: translate(-50%, -50%) rotate(5deg) scale(1);
  }

  .screenshot-showcase:has(.device--left:hover) .device--right,
  .screenshot-showcase:has(.device--left:focus-within) .device--right {
    transform: translate(calc(-50% + 175px), -50%) rotate(14deg) scale(0.84);
  }

  .screenshot-showcase:has(.device--center:hover) .device--center,
  .screenshot-showcase:has(.device--center:focus-within) .device--center {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.14);
  }

  .screenshot-showcase:has(.device--center:hover) .device--left,
  .screenshot-showcase:has(.device--center:focus-within) .device--left {
    transform: translate(calc(-50% - 175px), -50%) rotate(-15deg) scale(0.84);
  }

  .screenshot-showcase:has(.device--center:hover) .device--right,
  .screenshot-showcase:has(.device--center:focus-within) .device--right {
    transform: translate(calc(-50% + 175px), -50%) rotate(15deg) scale(0.84);
  }

  .screenshot-showcase:has(.device--right:hover) .device--right,
  .screenshot-showcase:has(.device--right:focus-within) .device--right {
    transform: translate(calc(-50% + 175px), -50%) rotate(22deg) scale(0.98);
  }

  .screenshot-showcase:has(.device--right:hover) .device--left,
  .screenshot-showcase:has(.device--right:focus-within) .device--left {
    transform: translate(calc(-50% - 175px), -50%) rotate(-14deg) scale(0.84);
  }

  .screenshot-showcase:has(.device--right:hover) .device--center,
  .screenshot-showcase:has(.device--right:focus-within) .device--center {
    transform: translate(-50%, -50%) rotate(-5deg) scale(1);
  }
}

@media (min-width: 960px) {
  .device--left {
    transform: translate(calc(-50% - 210px), -50%) rotate(-7deg) scale(0.92);
  }

  .device--center {
    width: 270px;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.08);
  }

  .device--right {
    transform: translate(calc(-50% + 210px), -50%) rotate(7deg) scale(0.92);
  }

  .screenshot-showcase:has(.device--left:hover) .device--left,
  .screenshot-showcase:has(.device--left:focus-within) .device--left {
    transform: translate(calc(-50% - 210px), -50%) rotate(-24deg) scale(1);
  }

  .screenshot-showcase:has(.device--left:hover) .device--center,
  .screenshot-showcase:has(.device--left:focus-within) .device--center {
    transform: translate(-50%, -50%) rotate(6deg) scale(1.02);
  }

  .screenshot-showcase:has(.device--left:hover) .device--right,
  .screenshot-showcase:has(.device--left:focus-within) .device--right {
    transform: translate(calc(-50% + 210px), -50%) rotate(16deg) scale(0.86);
  }

  .screenshot-showcase:has(.device--center:hover) .device--center,
  .screenshot-showcase:has(.device--center:focus-within) .device--center {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.16);
  }

  .screenshot-showcase:has(.device--center:hover) .device--left,
  .screenshot-showcase:has(.device--center:focus-within) .device--left {
    transform: translate(calc(-50% - 210px), -50%) rotate(-16deg) scale(0.86);
  }

  .screenshot-showcase:has(.device--center:hover) .device--right,
  .screenshot-showcase:has(.device--center:focus-within) .device--right {
    transform: translate(calc(-50% + 210px), -50%) rotate(16deg) scale(0.86);
  }

  .screenshot-showcase:has(.device--right:hover) .device--right,
  .screenshot-showcase:has(.device--right:focus-within) .device--right {
    transform: translate(calc(-50% + 210px), -50%) rotate(24deg) scale(1);
  }

  .screenshot-showcase:has(.device--right:hover) .device--left,
  .screenshot-showcase:has(.device--right:focus-within) .device--left {
    transform: translate(calc(-50% - 210px), -50%) rotate(-16deg) scale(0.86);
  }

  .screenshot-showcase:has(.device--right:hover) .device--center,
  .screenshot-showcase:has(.device--right:focus-within) .device--center {
    transform: translate(-50%, -50%) rotate(-6deg) scale(1.02);
  }
}

/* ── CTA section ── */

.cta-section {
  text-align: center;
  scroll-margin-top: 2rem;
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-section .section-title {
  margin-bottom: 0.75rem;
  width: 100%;
}

.cta-section__lead {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--text-muted);
}

.cta-section .beta-form {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  text-align: left;
  border-radius: 2rem;
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(154, 163, 199, 0.15);
}

.site-footer__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.site-footer__logo {
  display: block;
  width: auto;
  height: clamp(52px, 12vw, 72px);
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.site-footer__brand:hover .site-footer__logo {
  opacity: 0.72;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
}

/* ── Legal pages ── */

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  font-size: clamp(0.9rem, 3vw, 1.2rem);
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: clamp(0.75rem, 2.2vw, 0.9rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page a {
  color: var(--cyan);
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* ── Desktop ── */

@media (min-width: 768px) {
  .hero {
    padding-top: 1rem;
    --hero-arcade-width: min(calc(100vw - 2rem), clamp(578px, 79vw, 985px));
    --hero-arcade-height: calc(var(--hero-arcade-width) * 1024 / 716);
  }

  .hero__cta-spacer {
    height: clamp(5rem, 18vw, 10rem);
  }

  #how-it-works {
    padding-block: 0 4.5rem;
  }

  .hero__tagline {
    margin-top: 0.75rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .step-card__icon {
    margin-inline: auto;
  }
}
