/* ============================================
   ACOMPIA — Scroll Animations & Polish
   ============================================ */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Button hover micro-animation */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; }

/* Smooth focus styles */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(67,56,202,0.1);
}

/* Card lift on hover */
.stat-card, .how-card, .about-point, .theme-card, .pricing-card, .contact-card, .trust-item {
  will-change: transform;
}

/* Subtle text selection color */
::selection {
  background: rgba(67,56,202,0.15);
  color: inherit;
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(67,56,202,0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(67,56,202,0.4); }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-orb { animation: none; }
  .gradient-text { animation: none; }
  .path-arrow span { animation: none; }
  .hero-badge-dot { animation: none; }
}
