/* ilm-era mock animations & interactions */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 24px 4px rgba(124, 58, 237, 0.15); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.ill-float { animation: float 5s ease-in-out infinite; }
.ill-float-slow { animation: float-slow 7s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.card-hover {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.marquee-wrap {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
}
.marquee-track.left { animation: marquee-left 45s linear infinite; }
.marquee-track.right { animation: marquee-right 50s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

.review-card {
  flex-shrink: 0;
  width: 280px;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: transform 0.3s ease;
}
.review-card:hover { transform: scale(1.03); }

.stat-number { font-variant-numeric: tabular-nums; }

.header-scrolled {
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.12);
}

.blob-bg {
  animation: blob 8s ease-in-out infinite;
}

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open { max-height: 28rem; }
#mobile-menu nav a {
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary { transition: color 0.2s ease; }
.faq-item[open] summary { color: inherit; }
.faq-item .faq-body {
  animation: fade-up 0.35s ease;
}

.wa-pulse { animation: pulse-glow 2.5s ease-in-out infinite; }
.wa-pulse-emerald {
  animation: pulse-glow-emerald 2.5s ease-in-out infinite;
}
@keyframes pulse-glow-emerald {
  0%, 100% { box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.35); }
  50% { box-shadow: 0 0 24px 4px rgba(4, 120, 87, 0.2); }
}

.ill-3d {
  filter: drop-shadow(0 20px 28px rgba(15, 23, 42, 0.22));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ill-3d:hover { transform: translateY(-6px) scale(1.02); }
.ill-glow {
  filter: drop-shadow(0 0 24px rgba(16, 185, 129, 0.35)) drop-shadow(0 20px 32px rgba(0,0,0,0.4));
}
.skew-cta { transform: skewY(-2deg); margin: 2rem 0; }
.skew-cta > div { transform: skewY(2deg); }
.grid-bg { background-color: #020617; }

.section-wave svg { display: block; vertical-align: middle; }

.ill-pod {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ill-pod img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
