/* =========================================================
   CAREERS NAVIGATOR — Under Construction (Gamified)
   Palette pulled from the brand logo: #3ea4dc (sky blue)
   ========================================================= */

:root {
  --brand: #3ea4dc;
  --brand-bright: #4ed6ff;
  --brand-deep: #1b6fa8;
  --ink: #05070d;
  --ink-2: #0a0f1c;
  --paper: #eef7ff;
  --muted: rgba(226, 240, 255, 0.62);
  --muted-2: rgba(226, 240, 255, 0.38);
  --gold: #ffd15c;
  --violet: #8b6bff;
  --pink: #ff5fa2;
  --mint: #5cf5b0;

  --font-display: "Orbitron", "Pirulen", "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
}

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

html { overflow-x: clip; }

/* Keep native momentum scrolling on touch devices. */
@media (hover: hover) and (pointer: fine) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none !important; }
}

::selection { background: var(--brand); color: #001018; }

/* =========================================================
   BACKGROUND
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 50% -10%, #0f2236 0%, transparent 60%),
    radial-gradient(900px 700px at 85% 110%, #101a3a 0%, transparent 60%),
    linear-gradient(180deg, #05070d 0%, #070c16 45%, #04060b 100%);
}

.bg-grid {
  position: absolute;
  inset: -40% -10% -10%;
  background-image:
    linear-gradient(rgba(62, 164, 220, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 164, 220, 0.12) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(58deg) translateZ(-120px);
  transform-origin: center 70%;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 35%, transparent 78%);
  opacity: 0.85;
  will-change: background-position;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.bg-glow--a {
  width: 60vmax; height: 60vmax;
  left: -18vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(62,164,220,0.5), transparent 62%);
  animation: driftA 18s ease-in-out infinite;
}
.bg-glow--b {
  width: 52vmax; height: 52vmax;
  right: -16vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(139,107,255,0.38), transparent 62%);
  animation: driftB 22s ease-in-out infinite;
}
@keyframes driftA {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(6vmax,4vmax,0) scale(1.12); }
}
@keyframes driftB {
  0%,100% { transform: translate3d(0,0,0) scale(1.05); }
  50%     { transform: translate3d(-5vmax,-5vmax,0) scale(0.92); }
}

/* Floating orbs (parallax) */
.bg-orbs { position: absolute; inset: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), var(--brand) 45%, rgba(62,164,220,0.05) 72%);
  box-shadow: 0 0 30px rgba(78, 214, 255, 0.55), inset 0 0 18px rgba(255,255,255,0.5);
  opacity: 0.55;
  will-change: transform;
  animation: orbFloat 9s ease-in-out infinite;
}
.orb:nth-child(1) { width: 10px; height: 10px; left: 12%; top: 28%; animation-delay: -1s; }
.orb:nth-child(2) { width: 18px; height: 18px; left: 84%; top: 22%; animation-delay: -3s; }
.orb:nth-child(3) { width: 7px;  height: 7px;  left: 24%; top: 74%; animation-delay: -5s; }
.orb:nth-child(4) { width: 14px; height: 14px; left: 76%; top: 68%; animation-delay: -2s; }
.orb:nth-child(5) { width: 9px;  height: 9px;  left: 50%; top: 88%; animation-delay: -6s; }
@keyframes orbFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-26px); }
}

#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: screen;
}
.cursor__dot {
  position: absolute;
  width: 7px; height: 7px;
  left: -3.5px; top: -3.5px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 14px var(--brand-bright);
}
.cursor__ring {
  position: absolute;
  width: 38px; height: 38px;
  left: -19px; top: -19px;
  border-radius: 50%;
  border: 1.5px solid rgba(78, 214, 255, 0.7);
  transition: width .25s ease, height .25s ease, left .25s ease, top .25s ease, background .25s ease;
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  left: -32px; top: -32px;
  background: rgba(78, 214, 255, 0.12);
  border-color: var(--brand-bright);
}

/* =========================================================
   RUNNER (scroll follower)
   ========================================================= */
.runner {
  position: fixed;
  left: 0; top: 0;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}
.runner__avatar {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 15, 28, 0.7);
  border: 1.5px solid rgba(78, 214, 255, 0.55);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 24px rgba(78, 214, 255, 0.45), inset 0 0 16px rgba(78, 214, 255, 0.15);
}
.runner__avatar img { width: 26px; height: 26px; object-fit: contain; opacity: .95; }
.runner__pulse {
  position: absolute; inset: -6px;
  border-radius: 18px;
  border: 1px solid rgba(78, 214, 255, 0.5);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.runner__trail {
  position: absolute;
  right: 40px; top: 50%;
  height: 2px;
  width: 0;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--brand-bright));
  opacity: 0.7;
  filter: blur(0.5px);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 64px);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__img {
  height: clamp(28px, 4vw, 42px);
  width: auto;
  filter: drop-shadow(0 0 18px rgba(62, 164, 220, 0.55));
  transition: filter .4s ease, transform .4s ease;
}
.logo:hover .logo__img {
  filter: drop-shadow(0 0 26px rgba(78, 214, 255, 0.95));
  transform: translateY(-1px) scale(1.02);
}

.xp-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(10, 15, 28, 0.62);
  border: 1px solid rgba(78, 214, 255, 0.28);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,.8);
}
.xp-chip__label {
  display: grid; place-items: center;
  min-width: 34px; height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-size: 10px;
  color: #001018;
  font-weight: 900;
}
.xp-chip__value { color: var(--brand-bright); min-width: 2ch; text-align: left; }
.xp-chip.is-bump { animation: chipBump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes chipBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); box-shadow: 0 0 40px rgba(78,214,255,.7); }
  100% { transform: scale(1); }
}

/* =========================================================
   MAIN STAGE
   ========================================================= */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh; /* stable: page height won't shift as the address bar hides */
  display: flex;
  flex-direction: column;
  padding: clamp(110px, 14vh, 170px) clamp(18px, 5vw, 64px) 0;
  /* keep content clear of the notch / home indicator */
  padding-left: max(clamp(18px, 5vw, 64px), env(safe-area-inset-left));
  padding-right: max(clamp(18px, 5vw, 64px), env(safe-area-inset-right));
}

.hero {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(50px, 8vh, 90px);
}

/* --- Rotating logo badge --- */
.hero__badge-wrap { perspective: 800px; margin-bottom: 28px; }
.hero__badge {
  position: relative;
  width: clamp(100px, 15vw, 138px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(78,214,255,.28), transparent 60%),
    rgba(8, 14, 26, 0.75);
  border: 1px solid rgba(78, 214, 255, 0.35);
  box-shadow:
    0 0 60px rgba(62,164,220,0.45),
    0 0 120px rgba(62,164,220,0.18),
    inset 0 0 40px rgba(78,214,255,0.12);
  will-change: transform;
}
.hero__badge > img {
  width: 52%;
  height: 52%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(78, 214, 255, 0.8));
  animation: bob 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes bob {
  0%,100% { transform: translateY(-3px); }
  50%     { transform: translateY(4px); }
}
.hero__badge-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring {
  fill: none;
  stroke-linecap: round;
}
.ring--1 { stroke: rgba(78, 214, 255, 0.22); stroke-width: 1; stroke-dasharray: 3 9; }
.ring--2 { stroke: rgba(78, 214, 255, 0.5); stroke-width: 1.5; stroke-dasharray: 90 400; }
.ring--3 { stroke: rgba(255, 209, 92, 0.55); stroke-width: 2; stroke-dasharray: 18 360; }
.hero__spark {
  position: absolute;
  top: 50%; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 12px var(--brand-bright);
  transform-origin: 0 0;
}

/* --- Eyebrow --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: clamp(10px, 1.15vw, 12px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 240, 255, 0.8);
  background: rgba(10, 15, 28, 0.55);
  border: 1px solid rgba(78, 214, 255, 0.22);
  backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.8); }
}

/* --- Title --- */
.title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0.02em;
  font-size: clamp(2.6rem, 9vw, 6.6rem);
  text-transform: uppercase;
}
.title__line { display: block; }

/* Accent line.
   IMPORTANT: the gradient lives on .char (below), NOT on this element.
   background-clip:text only clips to text painted by that same element,
   so a gradient here would leave the inner <span> letters invisible. */
.title__line--accent {
  position: relative;
  filter: drop-shadow(0 0 30px rgba(78, 214, 255, 0.35));
}
.title__line--accent .char {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(
    100deg,
    #ffffff 4%,
    #b8ecff 24%,
    #4ed6ff 42%,
    #ffffff 56%,
    #8fe9ff 72%,
    #3ea4dc 96%
  );
  background-size: 220% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.char { display: inline-block; will-change: transform, opacity; }

/* Glowing underline — a real element so the text splitter can't wipe it */
.title__underline {
  display: block;
  height: 2px;
  width: min(78%, 620px);
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-bright), transparent);
  filter: blur(1px);
  opacity: 0.65;
}

/* --- Subtitle --- */
.subtitle {
  max-width: 640px;
  margin: 30px auto 0;
  font-size: clamp(0.95rem, 1.7vw, 1.14rem);
  line-height: 1.7;
  color: var(--muted);
}
.subtitle strong { color: var(--paper); font-weight: 700; }

/* =========================================================
   LOADER / XP BAR
   ========================================================= */
.loader {
  width: min(560px, 88vw);
  margin: clamp(32px, 5vh, 48px) auto 0;
  text-align: left;
}
.loader__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(10px, 1.4vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.loader__label { color: var(--muted); }
.loader__pct { color: var(--brand-bright); font-weight: 700; text-shadow: 0 0 18px rgba(78,214,255,.6); }

.loader__track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid rgba(78, 214, 255, 0.22);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 30px -8px rgba(62, 164, 220, 0.5);
  overflow: hidden;
}
.loader__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 45%, var(--brand-bright) 80%, #d8f7ff);
  box-shadow: 0 0 22px rgba(78, 214, 255, 0.85), 0 0 40px rgba(62, 164, 220, 0.5);
}
.loader__shine {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,0) 0 18px,
    rgba(255,255,255,0.16) 18px 26px,
    rgba(255,255,255,0) 26px 44px
  );
  background-size: 44px 100%;
  animation: shineMove 1.4s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes shineMove {
  from { background-position: 0 0; }
  to   { background-position: 44px 0; }
}
.loader__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 2px;
}
.loader__ticks span {
  width: 2px; height: 6px;
  border-radius: 2px;
  background: rgba(78, 214, 255, 0.25);
  transition: background .3s ease, box-shadow .3s ease;
}
.loader__ticks span.is-lit {
  background: var(--brand-bright);
  box-shadow: 0 0 10px var(--brand-bright);
}

/* =========================================================
   BADGE CARDS
   ========================================================= */
.badges {
  list-style: none;
  margin: clamp(36px, 6vh, 56px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
  width: min(880px, 92vw);
  perspective: 1000px;
}
.badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  text-align: left;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 32, 52, 0.82), rgba(8, 13, 24, 0.9));
  border: 1px solid rgba(78, 214, 255, 0.16);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(78, 214, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.badge:hover { border-color: rgba(78, 214, 255, 0.45); box-shadow: 0 24px 50px -24px rgba(62, 164, 220, 0.8); }
.badge:hover::before { opacity: 1; }
.badge__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  font-size: 21px;
  background: radial-gradient(circle at 30% 25%, rgba(78,214,255,.35), rgba(11,20,36,.9) 70%);
  border: 1px solid rgba(78, 214, 255, 0.3);
  box-shadow: inset 0 0 18px rgba(78, 214, 255, 0.18);
  transform: translateZ(30px);
}
.badge__text { transform: translateZ(18px); }
.badge__text h3 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.25vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.badge__text p { margin: 0; font-size: clamp(0.72rem, 1.05vw, 0.8rem); color: var(--muted-2); }
.badge__glow {
  position: absolute;
  right: -30px; bottom: -46px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 214, 255, 0.35), transparent 70%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity .4s ease;
}
.badge:hover .badge__glow { opacity: 1; }
.badge.is-unlocked { border-color: rgba(92, 245, 176, 0.4); }
.badge.is-unlocked .badge__icon { box-shadow: inset 0 0 18px rgba(92,245,176,.3); border-color: rgba(92,245,176,.45); }

/* =========================================================
   CTA BUTTONS
   ========================================================= */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(34px, 5vh, 50px);
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.3vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: none;
  overflow: hidden;
  will-change: transform;
  transition: transform .25s ease, box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
@media (hover: none), (pointer: coarse) { .btn { cursor: pointer; } }

.btn--primary {
  color: #00131f;
  background: linear-gradient(120deg, #d9f7ff, var(--brand-bright) 32%, var(--brand) 62%, #7fe3ff);
  background-size: 180% 100%;
  box-shadow: 0 14px 40px -12px rgba(78, 214, 255, 0.85), inset 0 1px 0 rgba(255,255,255,.7);
  animation: ctaSheen 4.5s ease-in-out infinite;
}
@keyframes ctaSheen {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.btn--primary:hover {
  box-shadow: 0 20px 60px -12px rgba(78, 214, 255, 1), 0 0 0 4px rgba(78, 214, 255, 0.16);
}
.btn__icon { font-size: 1.05em; transition: transform .3s ease; }
.btn--primary:hover .btn__icon { transform: translateX(5px); }
.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.btn--ghost {
  color: var(--paper);
  background: rgba(10, 15, 28, 0.6);
  border-color: rgba(78, 214, 255, 0.3);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: var(--brand-bright);
  color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(78, 214, 255, 0.12), 0 12px 40px -14px rgba(78,214,255,.9);
}
.btn--ghost.is-done { color: var(--mint); border-color: rgba(92,245,176,.5); }

.micro {
  margin: 18px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 44px) 0 clamp(24px, 4vh, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  border-top: 1px solid rgba(78, 214, 255, 0.1);
}
.footer a { color: rgba(226, 240, 255, 0.62); text-decoration: none; transition: color .3s ease; }
.footer a:hover { color: var(--brand-bright); }
.footer__path {
  position: absolute;
  top: -5px; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 6%;
  pointer-events: none;
}
.footer__step {
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 3px;
  background: rgba(78, 214, 255, 0.18);
  transform: rotate(45deg);
  animation: stepBlink 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.3s);
}
@keyframes stepBlink {
  0%, 100% { background: rgba(78, 214, 255, 0.15); box-shadow: none; }
  50%      { background: var(--brand-bright); box-shadow: 0 0 12px var(--brand-bright); }
}

/* =========================================================
   FLOATING XP + TOAST
   ========================================================= */
.layer-floats {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
}
.float-xp {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--brand-bright);
  text-shadow: 0 0 18px rgba(78, 214, 255, 0.9);
  will-change: transform, opacity;
  white-space: nowrap;
}
.float-xp--gold { color: var(--gold); text-shadow: 0 0 18px rgba(255, 209, 92, 0.9); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  bottom: calc(40px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  z-index: 300;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00131f;
  background: linear-gradient(120deg, #d9f7ff, var(--brand-bright) 40%, var(--brand));
  box-shadow: 0 18px 50px -14px rgba(78, 214, 255, 0.95);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  /* never let a long toast run off-screen on small phones */
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .badges { grid-template-columns: 1fr; width: min(420px, 92vw); }
  .badge { padding: 16px; }
  .cta { width: 100%; flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .footer { flex-direction: column; text-align: center; justify-content: center; }
  .xp-chip { padding: 6px 10px 6px 6px; font-size: 11px; }

  /* Thumb-friendly tap targets */
  .btn { min-height: 52px; padding: 16px 24px; font-size: 0.82rem; }
  .badge { min-height: 64px; }

  /* Comfortable rhythm on small screens */
  .subtitle { margin-top: 24px; line-height: 1.6; font-size: 0.98rem; }
  .title { letter-spacing: 0.01em; }
  .loader { width: 100%; }
  .micro { font-size: 0.72rem; letter-spacing: 0.04em; }
  .site-header { padding: 16px clamp(16px, 5vw, 24px); }
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* Very small / narrow phones (e.g. 320–400px) */
@media (max-width: 400px) {
  .stage { padding-top: clamp(96px, 16vh, 130px); }
  .title { font-size: clamp(2.1rem, 11vw, 3rem); }
  .hero__badge { width: clamp(84px, 26vw, 110px); }
  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    padding: 7px 12px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cta { gap: 10px; }
  .loader__track { height: 14px; }
  .footer { font-size: 0.7rem; }
}

/* Touch devices: give :active feedback since :hover never fires */
@media (hover: none), (pointer: coarse) {
  .btn--primary:active {
    transform: scale(0.97);
    box-shadow: 0 8px 24px -10px rgba(78, 214, 255, 0.9), inset 0 1px 0 rgba(255,255,255,.7);
  }
  .btn--ghost:active {
    transform: scale(0.97);
    border-color: var(--brand-bright);
    color: var(--brand-bright);
  }
  .badge:active {
    border-color: rgba(78, 214, 255, 0.45);
    box-shadow: 0 24px 50px -24px rgba(62, 164, 220, 0.8);
  }
  .badge:active::before { opacity: 1; }
  /* tap-to-unlock is handled in JS, make cards clearly interactive */
  .badge { cursor: pointer; }
}

/* =========================================================
   NO-JS / NO-GSAP FALLBACK
   ========================================================= */
.no-gsap .loader__fill { width: 87%; }
.no-gsap .loader__ticks span:nth-child(-n+9) {
  background: var(--brand-bright);
  box-shadow: 0 0 10px var(--brand-bright);
}
.no-gsap .hero__spark { transform: rotate(20deg) translateX(70px); }
.no-gsap .hero__spark:nth-of-type(2) { transform: rotate(140deg) translateX(64px); }
.no-gsap .hero__spark:nth-of-type(3) { transform: rotate(260deg) translateX(76px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .bg-grid { transform: none; }
}
