/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(14,165,233,0.1); }
  50%      { box-shadow: 0 0 80px rgba(14,165,233,0.5), 0 0 160px rgba(14,165,233,0.2); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes dash {
  to { stroke-dashoffset: -20; }
}

@keyframes plane-fly {
  0%   { transform: translateX(-10px) translateY(5px) rotate(45deg); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { transform: translateX(10px) translateY(-5px) rotate(45deg); opacity:0; }
}

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

@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes glow-pulse {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ===== APPLIED ANIMATIONS ===== */
.about-card:nth-child(1).reveal { transition-delay: 0.1s; }
.about-card:nth-child(2).reveal { transition-delay: 0.2s; }
.about-card:nth-child(3).reveal { transition-delay: 0.3s; }
.about-card:nth-child(4).reveal { transition-delay: 0.4s; }

.feature-card:nth-child(1).reveal  { transition-delay: 0.05s; }
.feature-card:nth-child(2).reveal  { transition-delay: 0.10s; }
.feature-card:nth-child(3).reveal  { transition-delay: 0.15s; }
.feature-card:nth-child(4).reveal  { transition-delay: 0.20s; }
.feature-card:nth-child(5).reveal  { transition-delay: 0.25s; }
.feature-card:nth-child(6).reveal  { transition-delay: 0.30s; }
.feature-card:nth-child(7).reveal  { transition-delay: 0.35s; }
.feature-card:nth-child(8).reveal  { transition-delay: 0.40s; }
.feature-card:nth-child(9).reveal  { transition-delay: 0.45s; }
.feature-card:nth-child(10).reveal { transition-delay: 0.50s; }
.feature-card:nth-child(11).reveal { transition-delay: 0.55s; }
.feature-card:nth-child(12).reveal { transition-delay: 0.60s; }

.pricing-card:nth-child(1).reveal { transition-delay: 0.1s; }
.pricing-card:nth-child(2).reveal { transition-delay: 0.2s; }
.pricing-card:nth-child(3).reveal { transition-delay: 0.3s; }
.pricing-card:nth-child(4).reveal { transition-delay: 0.4s; }

.partner-badge:nth-child(1).reveal { transition-delay: 0.05s; }
.partner-badge:nth-child(2).reveal { transition-delay: 0.10s; }
.partner-badge:nth-child(3).reveal { transition-delay: 0.15s; }
.partner-badge:nth-child(4).reveal { transition-delay: 0.20s; }
.partner-badge:nth-child(5).reveal { transition-delay: 0.25s; }
.partner-badge:nth-child(6).reveal { transition-delay: 0.30s; }

/* ===== BACKGROUND GRID ===== */
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ===== GRADIENT ORBS ===== */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  top: 10%; left: -10%;
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  bottom: 10%; left: 20%;
  border-radius: 50%;
  animation: pulse-glow 4s 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-plane {
  font-size: 3rem;
  animation: plane-fly 1.5s ease-in-out infinite;
}
