/* ═══════════════════ BASE ═══════════════════ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #111827;
}

::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #4f46e5; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #6366f1; }

/* ═══════════════════ UTILITIES ═══════════════════ */
.gradient-text {
  background: linear-gradient(to right, #818cf8, #a78bfa, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.glow-border {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

.grid-pattern {
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ═══════════════════ BUTTONS ═══════════════════ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
  text-decoration: none;
}
.cta-button:hover {
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  transform: scale(1.05);
}
.cta-button:active { transform: scale(0.98); }

.cta-button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 2px solid rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s;
  text-decoration: none;
  background: transparent;
}
.cta-button-outline:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: #818cf8;
  transform: scale(1.05);
}
.cta-button-outline:active { transform: scale(0.98); }

/* ═══════════════════ HEADER SCROLL STATE ═══════════════════ */
.header-scrolled {
  background: rgba(17, 24, 39, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* ═══════════════════ HERO ANIMATIONS ═══════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }

.hero-animate {
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards;
}

.hero-delay-1 { animation-name: scaleIn; animation-delay: 0s; }
.hero-delay-2 { animation-delay: 0.15s; }
.hero-delay-3 { animation-delay: 0.3s; }
.hero-delay-4 { animation-delay: 0.45s; }
.hero-delay-5 { animation-delay: 0.7s; }

/* ═══════════════════ SCROLL ANIMATIONS ═══════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ═══════════════════ FAQ ACCORDION ═══════════════════ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ═══════════════════ PING ANIMATION ═══════════════════ */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
