@keyframes cc-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cc-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.35);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(217, 70, 239, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 70, 239, 0);
  }
}

@keyframes hero-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes stat-line {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.cc-animate-in {
  animation: cc-fade-in 0.45s ease-out both;
}

.cc-save-pulse {
  animation: cc-pulse-ring 1.6s ease-out 1;
}

.hero-shimmer-layer {
  background: linear-gradient(
    120deg,
    rgba(217, 70, 239, 0.08) 0%,
    rgba(27, 19, 32, 0) 40%,
    rgba(217, 70, 239, 0.12) 60%,
    rgba(27, 19, 32, 0) 100%
  );
  background-size: 200% 200%;
  animation: hero-shimmer 18s linear infinite alternate;
}

.stat-bar-fill {
  transform: scaleX(0);
}

.stat-bar-fill.stat-bar-fill--active {
  animation: stat-line 1.1s ease-out forwards;
}

.nav-link-active {
  font-weight: 600;
  color: #d946ef;
  background-color: rgba(217, 70, 239, 0.12);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(217, 70, 239, 0.25);
}

.nav-link-active:hover {
  background-color: rgba(217, 70, 239, 0.18);
  color: #f5edf7;
}

.form-toast {
  opacity: 0;
  transform: translateX(0.75rem);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.form-toast.form-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.faq-trigger--open .faq-chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .cc-animate-in,
  .cc-save-pulse,
  .hero-shimmer-layer,
  .stat-bar-fill.stat-bar-fill--active {
    animation: none !important;
  }

  .stat-bar-fill.stat-bar-fill--active {
    transform: scaleX(1);
  }
}
