/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.industries__grid > .reveal:nth-child(2) { transition-delay: 0.1s; }
.industries__grid > .reveal:nth-child(3) { transition-delay: 0.2s; }

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

/* ===== HERO ENTRANCE ===== */
.hero__content {
  animation: heroEntrance 0.8s ease forwards;
}

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

.hero .badge {
  animation: fadeIn 0.6s ease 0.2s both;
}

.hero h1 {
  animation: fadeIn 0.6s ease 0.4s both;
}

.hero__subtitle {
  animation: fadeIn 0.6s ease 0.6s both;
}

.hero__ctas {
  animation: fadeIn 0.6s ease 0.8s both;
}

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

/* ===== PIPELINE PULSE ===== */
.pipeline__connector span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
  animation: pipelinePulse 2s ease-in-out infinite;
}

@keyframes pipelinePulse {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== TECH BADGES FLOAT ===== */
.tech-badge {
  animation: badgeFloat 3s ease-in-out infinite;
}

.tech-badge:nth-child(2) { animation-delay: 0.4s; }
.tech-badge:nth-child(3) { animation-delay: 0.8s; }
.tech-badge:nth-child(4) { animation-delay: 1.2s; }
.tech-badge:nth-child(5) { animation-delay: 1.6s; }
.tech-badge:nth-child(6) { animation-delay: 2s; }
.tech-badge:nth-child(7) { animation-delay: 2.4s; }
.tech-badge:nth-child(8) { animation-delay: 2.8s; }

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

/* ===== HOW STEPS LINE ANIMATION ===== */
.how__line {
  animation: linePulse 2s ease-in-out infinite;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== GRADIENT BORDER (for special elements) ===== */
@keyframes borderRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__content,
  .hero .badge,
  .hero h1,
  .hero__subtitle,
  .hero__ctas {
    animation: none;
  }

  .tech-badge {
    animation: none;
  }

  .pipeline__connector span::before {
    animation: none;
  }

  .how__line {
    animation: none;
  }
}
