/* ==========================================================================
   Courtix FX — cinematic motion layer for the marketing site.
   Dark, low-key, one volt accent. Everything is gated behind
   prefers-reduced-motion and (for cursor/tilt) fine-pointer devices via JS.
   Load AFTER the page's own styles.
   ========================================================================== */

/* Film-grain overlay — subtle broadcast-sport texture over the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* Volt cursor glow — a soft light that follows the pointer on dark sections.
   Element is injected by courtix-fx.js; hidden until first pointer move. */
.ss-fx-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.10), rgba(57, 255, 20, 0.04) 38%, transparent 64%);
  mix-blend-mode: screen;
  transition: opacity 0.45s ease;
  will-change: left, top;
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero Ken-Burns — slow, cinematic push-in on the strike. */
  .hero-visual-img {
    animation: ss-kenburns 24s ease-in-out infinite alternate;
    will-change: transform;
  }
  @keyframes ss-kenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.09) translateY(-1.6%); }
  }

  /* 3D tilt targets (app-UI mockups, device shots). */
  [data-tilt] {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform;
  }

  /* Photo cards: gentle push-in + de-desaturate on hover. */
  .bento-card-img img,
  .step-img img,
  .showcase-img img {
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
  }
  .bento-card:hover .bento-card-img img,
  .step-card:hover .step-img img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
  }

  /* Volt scan-line sweep across the biomechanics (HUD) feature card on hover. */
  .bento-card.tall { position: relative; overflow: hidden; }
  .bento-card.tall::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -30%;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(57, 255, 20, 0.18), transparent);
    transform: translateY(-120%);
    pointer-events: none;
    opacity: 0;
  }
  .bento-card.tall:hover::after {
    opacity: 1;
    animation: ss-scan 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  @keyframes ss-scan {
    from { transform: translateY(-120%); }
    to   { transform: translateY(360%); }
  }
}

/* Keep the phone/UI overlays crisp and give them a premium drop shadow. */
.hero-phone-overlay,
[data-tilt] {
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

/* Real photo avatars in the testimonials grid (replaces gradient letter chips). */
img.proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 48px;
  border: 1.5px solid rgba(57, 255, 20, 0.35);
}

/* ── Final CTA — full-bleed comeback video ── */
.big-cta { position: relative; overflow: hidden; }
.big-cta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
  filter: saturate(1.05) contrast(1.05);
}
.big-cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.86) 78%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.5));
}
.big-cta > .page,
.big-cta .big-cta-inner { position: relative; z-index: 1; }
.big-cta .big-cta-orb { z-index: 0; }
@media (prefers-reduced-motion: reduce) {
  .big-cta-video { display: none; } /* fall back to poster via scrim + bg */
}

/* ── Lifestyle band — full-bleed cinematic strip (Marcus walk-off + app-in-hand) ── */
.lifestyle-band { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.lifestyle-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.lifestyle-band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.93), rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.22));
}
.lifestyle-band__inner {
  position: relative; z-index: 1;
  width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.lifestyle-band__content { max-width: 480px; }
.lifestyle-band__content h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 14px; }
.lifestyle-band__content p { color: rgba(255,255,255,0.78); font-size: 17px; max-width: 440px; margin: 0 0 26px; }
.lifestyle-band__phone { width: 200px; border-radius: 26px; flex-shrink: 0; }
@media (max-width: 820px) { .lifestyle-band__phone { display: none; } }

/* ── Volt ball-trajectory thread (GSAP scroll signature) ── */
.ss-ball-thread { position: fixed; top: 0; left: 14px; width: 60px; z-index: 2; pointer-events: none; }
.ss-thread-path { fill: none; stroke: rgba(57, 255, 20, 0.5); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(57, 255, 20, 0.55)); }
.ss-thread-ball { fill: #39ff14; filter: drop-shadow(0 0 9px rgba(57, 255, 20, 0.95)); }
@media (max-width: 900px) { .ss-ball-thread { display: none; } }
