/* ==============================================
   PURETENSOR ANIMATIONS
   ============================================== */

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Counter Animation --- */
.counter[data-target] {
  font-variant-numeric: tabular-nums;
}

/* --- Card Hover Glow --- */
.service-card,
.lab-card,
.spec-card {
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card:hover,
.lab-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* --- Pricing Card Hover --- */
.pricing-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.pricing-card--featured:hover {
  box-shadow: 0 8px 40px rgba(0, 212, 170, 0.12);
}

/* --- SVG Topology Animations --- */
.topo-pulse {
  animation: pulse 3s ease-in-out infinite;
}
.topo-pulse--delay { animation-delay: 1s; }
.topo-pulse--delay-2 { animation-delay: 2s; }

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.topo-flow {
  stroke-dasharray: 8 12;
  animation: flow 2s linear infinite;
}
.topo-flow--reverse {
  animation-direction: reverse;
}

@keyframes flow {
  to { stroke-dashoffset: -40; }
}

/* --- Node glow on topology --- */
.topo-node {
  transition: filter 0.3s;
}
.topo-node:hover {
  filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.5));
}

/* --- Nav scroll state --- */
.nav--scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* --- Hero text fade in --- */
.hero__content {
  animation: heroFadeIn 0.8s ease-out;
}

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

/* --- Button press --- */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* --- Form focus ring animation --- */
.form__input:focus,
.form__textarea:focus {
  animation: focusRing 0.2s ease;
}

@keyframes focusRing {
  from { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
  to { box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15); }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .topo-pulse { animation: none; opacity: 0.8; }
  .topo-flow { animation: none; }
  .hero__content { animation: none; }
  .service-card,
  .lab-card,
  .pricing-card,
  .spec-card {
    transition: none;
  }
  .service-card:hover,
  .lab-card:hover,
  .pricing-card:hover {
    transform: none;
  }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
