/**
 * Λrclyte — animations
 * Hero entrance, button hover, menu mockup scroll-in
 */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .hero-volt,
  .hero-volt-inner > *,
  .menu-mockup-wrap,
  .btn-hero,
  .menu-tab {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero: fade-in and slight rise */
@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-volt-inner {
  animation: hero-fade-in 0.6s var(--ease-out) both;
}

.hero-volt-inner .hero-volt-logo {
  animation: hero-fade-in 0.5s var(--ease-out) 0.1s both;
}

.hero-volt-inner .hero-volt-tagline {
  animation: hero-fade-in 0.5s var(--ease-out) 0.2s both;
}

.hero-volt-inner .hero-volt-buttons {
  animation: hero-fade-in 0.5s var(--ease-out) 0.3s both;
}

.hero-volt-inner .hero-volt-legal {
  animation: hero-fade-in 0.5s var(--ease-out) 0.4s both;
}

/* Button hover: subtle scale and glow */
.btn-hero {
  transform: scale(1);
  transition: transform var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-hero:hover {
  transform: scale(1.03);
}

.btn-hero-primary:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-hero:active {
  transform: scale(0.98);
}

/* Menu mockup: fade-in when in view */
@keyframes mockup-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Start hidden; animate in when .is-visible is added (scroll or in view on load) */
.menu-mockup-wrap {
  opacity: 0;
  transform: translateY(24px);
}

.menu-mockup-wrap.is-visible {
  animation: mockup-in 0.6s var(--ease-out) both;
}

/* Tab hover transition (already has transition in menu-mockup.css; ensure smooth) */
.menu-tab {
  transition: color 0.12s ease, opacity 0.12s ease;
}

.menu-tab:hover {
  opacity: 1;
}

/* Logo mark: subtle pulse on hover (hero) */
.hero-volt-logo:hover .hero-volt-logo-mark {
  animation: logo-pulse 1.5s var(--ease-out) infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}
