/* ══════════════════════════════════════════════════════════════
   SPOTS MOTION & ANIMATION SYSTEM
   ══════════════════════════════════════════════════════════════ */

/* ── Green Status Pulsing ────────────────────────────────────── */
@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(45, 92, 74, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(45, 92, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(45, 92, 74, 0);
  }
}

/* ── Orchestrated Hero Entrance (Fade & Rise) ────────────────── */
@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-rise {
  animation: fadeRise var(--transition-slow) forwards;
  opacity: 0;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.45s; }

/* ── Scroll Reveals (Intersection Observer) ───────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Micro-interactions ──────────────────────────────────────── */

/* Hover arrow shift in CTAs */
.btn-arrow-slide {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow-slide {
  transform: translateX(4px);
}

/* Highlight underline drawing */
.headline-drawn-underline {
  position: relative;
  display: inline-block;
}

.headline-drawn-underline::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-gold);
  opacity: 0.4;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow) 0.6s ease;
}

.reveal-on-scroll.is-visible .headline-drawn-underline::after {
  transform: scaleX(1);
}

/* Ticker Item animation */
.console-row.tick-update {
  animation: ticker-flash var(--transition-normal) ease;
}

@keyframes ticker-flash {
  0% {
    background-color: rgba(184, 130, 61, 0.2);
    border-color: rgba(184, 130, 61, 0.4);
  }
  100% {
    background-color: rgba(28, 20, 16, 0.6);
    border-color: rgba(251, 247, 240, 0.03);
  }
}

/* ── Accessibility: Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-rise {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .status-dot {
    animation: none !important;
  }

  .btn:hover .btn-arrow-slide {
    transform: none !important;
  }

  .headline-drawn-underline::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }
  
  .console-row.tick-update {
    animation: none !important;
  }
}
