@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(80px);
  }
}

@keyframes gradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(120px) scale(0.5);
  }
}

.animate-scale-in {
  animation: scaleIn 1s ease-out;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

.animate-fade-in-up-delayed {
  animation: fadeInUp 1s ease-out 0.7s backwards;
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 8s ease-in-out 2s infinite;
}

.animate-float-slow {
  animation: float 10s ease-in-out 4s infinite;
}

.animate-loading {
  animation: loading 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Court Filling Animation Keyframes - Slower 8 second cycle */
@keyframes pulse-ring {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
}

/* Search Glow Animation - simulates active searching */
@keyframes search-glow {
  0% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.1), 0 0 10px rgba(59, 130, 246, 0.05);
  }
  25% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.9), 0 0 100px rgba(59, 130, 246, 0.6), 0 0 150px rgba(59, 130, 246, 0.4);
  }
  75% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
  }
  100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.1), 0 0 10px rgba(59, 130, 246, 0.05);
  }
}

/* Section Pulse Animation */
@keyframes section-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.8), 0 0 100px rgba(59, 130, 246, 0.5), inset 0 0 40px rgba(59, 130, 246, 0.2);
  }
}

/* Player 1 - joins at 25% of cycle (2s out of 8s) */
/* Player 1 - joins at 10% of cycle (1.6s out of 16s) */
@keyframes player-joins {
  0%, 10% {
    opacity: 0;
    transform: translate(60px, -60px) scale(0.5);
  }
  14% {
    opacity: 1;
    transform: translate(45px, -45px) scale(0.7);
  }
  18% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Player 2 - joins at 20% of cycle (3.2s out of 16s) */
@keyframes player-joins-2 {
  0%, 20% {
    opacity: 0;
    transform: translate(60px, 60px) scale(0.5);
  }
  24% {
    opacity: 1;
    transform: translate(45px, 45px) scale(0.7);
  }
  28% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

/* Player 3 - joins at 30% of cycle (4.8s out of 16s) */
@keyframes player-joins-3 {
  0%, 30% {
    opacity: 0;
    transform: translate(-60px, 60px) scale(0.5);
  }
  34% {
    opacity: 1;
    transform: translate(-45px, 45px) scale(0.7);
  }
  38% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
}

@keyframes notification-float {
  0% {
    top: -50px;
    opacity: 1;
  }
  100% {
    top: 150px;
    opacity: 0;
  }
}

@keyframes notification-float-left {
  0% {
    left: -50px;
    opacity: 1;
  }
  100% {
    left: 150px;
    opacity: 0;
  }
}

@keyframes completion-show {
  0%, 20% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes notification-float {
  0% {
    top: -50px;
    opacity: 1;
  }
  100% {
    top: 150px;
    opacity: 0;
  }
}

@keyframes notification-float-left {
  0% {
    left: -50px;
    opacity: 1;
  }
  100% {
    left: 150px;
    opacity: 0;
  }
}

@keyframes vacancy-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px 15px rgba(59, 130, 246, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    transform: scale(1);
  }
}

@keyframes completion-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.vacancy-glow {
  animation: vacancy-glow 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.completion-glow {
  animation: completion-pulse 1.2s ease-out;
}

/* ─────────────────────────────────────
   HERO SECTION
───────────────────────────────────── */
.hero-section {
  min-height: 100svh;
}

/* ── Glow orbs ── */
.hero-orb {
  filter: blur(80px);
  opacity: 0.25;
  animation: float 12s ease-in-out infinite;
}
.hero-orb--green { background: #10b981; animation-delay: 0s; }
.hero-orb--blue  { background: #3b82f6; animation-delay: 4s; }
.hero-orb--lime  { background: #84cc16; animation-delay: 8s; }

/* ── Store badges ── */
.store-badge {
  min-width: 160px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ─────────────────────────────────────
   PHONE MOCKUPS — Samsung Galaxy S24 + iPhone 16
───────────────────────────────────── */

/* Shared screen-inner content */
.phone-screen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phone-app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen-label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0;
}

.phone-screen-sublabel {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.phone-brand-label {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-family: sans-serif;
}

/* ─── Positioning wrapper ─── */
.phone-mockup {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Samsung: behind-left, tilted */
.phone-mockup--samsung {
  left: 50%;
  transform: translateX(-148%) rotate(-8deg) translateY(32px);
  z-index: 1;
  animation: phone-float-samsung 7s ease-in-out 1s infinite;
}

/* iPhone: front-right, slight tilt */
.phone-mockup--iphone16 {
  left: 50%;
  transform: translateX(12%) rotate(6deg);
  z-index: 2;
  animation: phone-float-iphone 7s ease-in-out infinite;
}

/* ════════════════════════════════
   SAMSUNG GALAXY S24
   — flat aluminium sides, Armor Aluminium finish
   — punch-hole front camera, no notch
   — USB-C bottom
════════════════════════════════ */
.samsung-frame {
  position: relative;
  width: 186px;
  height: 400px;
  border-radius: 28px;
  background: linear-gradient(160deg, #2c2c2e 0%, #1a1a1c 60%, #111113 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    /* flat chamfered edge highlight */
    inset 2px 2px 4px rgba(255,255,255,0.07),
    inset -2px -2px 4px rgba(0,0,0,0.40),
    0 32px 80px rgba(0,0,0,0.60),
    0 8px 24px rgba(0,0,0,0.40);
  overflow: visible;
}

/* Samsung screen — very thin bezel, edge-to-edge */
.samsung-screen {
  position: absolute;
  inset: 4px;
  border-radius: 24px;
  background: linear-gradient(150deg, #0e1a3a 0%, #0d2060 45%, #062a18 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Subtle glossy sheen on Samsung screen */
.samsung-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
  z-index: 10;
}

/* Status bar */
.samsung-statusbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* Punch-hole camera */
.samsung-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 3px rgba(100,180,255,0.3);
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* Gesture navigation bar */
.samsung-gesture {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.22);
}

/* Samsung physical buttons */
.samsung-btn {
  position: absolute;
  background: linear-gradient(180deg, #2e2e30, #1c1c1e);
  border-radius: 2px;
}

.samsung-btn--vol-up {
  left: -3px;
  top: 90px;
  width: 3px;
  height: 48px;
  box-shadow: -1px 0 2px rgba(0,0,0,0.5);
}

.samsung-btn--vol-down {
  left: -3px;
  top: 150px;
  width: 3px;
  height: 48px;
  box-shadow: -1px 0 2px rgba(0,0,0,0.5);
}

.samsung-btn--power {
  right: -3px;
  top: 120px;
  width: 3px;
  height: 52px;
  box-shadow: 1px 0 2px rgba(0,0,0,0.5);
}

/* ════════════════════════════════
   iPHONE 16
   — titanium flat-edge frame
   — Dynamic Island
   — Action Button (left, top)
   — USB-C bottom
════════════════════════════════ */
.iphone16-frame {
  position: relative;
  width: 192px;
  height: 416px;
  border-radius: 52px;
  /* Natural Titanium finish */
  background: linear-gradient(145deg, #c8bfb2 0%, #b0a898 40%, #9e9080 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.35),
    inset 1px 1px 3px rgba(255,255,255,0.50),
    inset -1px -1px 3px rgba(0,0,0,0.20),
    0 36px 90px rgba(0,0,0,0.55),
    0 10px 28px rgba(0,0,0,0.35);
  overflow: visible;
}

/* iPhone screen */
.iphone16-screen {
  position: absolute;
  inset: 5px;
  border-radius: 48px;
  background: linear-gradient(150deg, #0e1a3a 0%, #0d2060 45%, #062a18 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glossy sheen on iPhone screen */
.iphone16-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(185deg, rgba(255,255,255,0.09) 0%, transparent 100%);
  border-radius: 48px 48px 0 0;
  pointer-events: none;
  z-index: 10;
}

/* Status bar */
.iphone16-statusbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 0;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* Dynamic Island */
.iphone16-dynamic-island {
  width: 88px;
  height: 26px;
  border-radius: 20px;
  background: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 2px rgba(255,255,255,0.04);
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

/* Home indicator */
.iphone16-home-bar {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.28);
}

/* iPhone 16 physical buttons */
.iphone16-btn {
  position: absolute;
  border-radius: 2px;
}

/* Action button (left, top — small capsule) */
.iphone16-btn--action {
  left: -3px;
  top: 82px;
  width: 3px;
  height: 28px;
  background: linear-gradient(180deg, #c0b8b0, #a8a098);
  border-radius: 2px;
  box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

.iphone16-btn--vol-up {
  left: -3px;
  top: 126px;
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, #c0b8b0, #a8a098);
  box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

.iphone16-btn--vol-down {
  left: -3px;
  top: 182px;
  width: 3px;
  height: 44px;
  background: linear-gradient(180deg, #c0b8b0, #a8a098);
  box-shadow: -1px 0 2px rgba(0,0,0,0.3);
}

.iphone16-btn--power {
  right: -3px;
  top: 140px;
  width: 3px;
  height: 64px;
  background: linear-gradient(180deg, #c0b8b0, #a8a098);
  box-shadow: 1px 0 2px rgba(0,0,0,0.3);
}

/* ─── Float animations ─── */
@keyframes phone-float-iphone {
  0%, 100% { transform: translateX(12%) rotate(6deg) translateY(0px); }
  50%       { transform: translateX(12%) rotate(6deg) translateY(-16px); }
}

@keyframes phone-float-samsung {
  0%, 100% { transform: translateX(-148%) rotate(-8deg) translateY(32px); }
  50%       { transform: translateX(-148%) rotate(-8deg) translateY(16px); }
}

@media (max-width: 1023px) {
  .court-top-baseline {
    display: none;
  }
}
