/* Marketing hero — live HUD + squad feed (home page only) */
.home-hud-stack {
  perspective: 800px;
}

.home-hud-card {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 90, 0, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: home-hud-card-breathe 7s ease-in-out infinite;
}

@keyframes home-hud-card-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 90, 0, 0.12),
      0 16px 40px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 140, 60, 0.35),
      0 24px 56px rgba(255, 90, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

.home-hud-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 55%
  );
  animation: home-hud-shimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes home-hud-shimmer {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.home-hud-pace-display,
.home-hud-hr-display {
  font-variant-numeric: tabular-nums;
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease,
    transform 0.2s ease;
}

.home-hud-pace-display.is-tick {
  transform: scale(1.02);
  text-shadow: 0 0 24px rgba(251, 146, 60, 0.45);
}

.home-hud-hr-display.is-tick {
  transform: scale(1.03);
  text-shadow: 0 0 20px rgba(103, 232, 249, 0.35);
}

.home-hud-effort-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a2a2b, #353436);
  overflow: hidden;
}

.home-hud-effort-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ea580c, #fb923c, #fbbf24);
  width: 72%;
  transform-origin: left center;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.45);
}

.home-hud-effort-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.25), transparent);
  animation: home-effort-pulse 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes home-effort-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

.home-hud-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: home-live-blink 2.4s ease-in-out infinite;
}

@keyframes home-live-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}

.home-squad-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.home-squad-feed {
  position: relative;
}

.home-squad-viewport {
  overflow: hidden;
  min-height: 2.75rem;
  max-height: 3.25rem;
  position: relative;
  border-radius: 6px;
}

.home-squad-track {
  will-change: transform;
}

.home-squad-slide {
  margin: 0;
  padding: 0.35rem 0;
  min-height: 2.5rem;
  display: block;
  line-height: 1.5;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .home-hud-card,
  .home-hud-card::after,
  .home-hud-effort-glow,
  .home-hud-live-dot {
    animation: none !important;
  }
  .home-hud-pace-display,
  .home-hud-hr-display {
    transition: none;
  }
  .home-squad-track {
    transition: none !important;
  }
}
