/* ── Data flow animation on connecting lines ── */
.hero-diagram-line {
  stroke-dasharray: 8 4;
  animation: flowData 2s linear infinite;
}

@keyframes flowData {
  to {
    stroke-dashoffset: -24;
  }
}

/* ── Hub pulse glow ── */
.hero-diagram-hub {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(35, 131, 229, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(35, 131, 229, 0.55));
  }
}

/* ── Hover effects on runner nodes ── */
.hero-diagram-node {
  cursor: default;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.hero-diagram-node:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(35, 131, 229, 0.3));
}

.hero-diagram-hub:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 24px rgba(35, 131, 229, 0.5));
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-diagram-line,
  .hero-diagram-hub {
    animation: none;
  }

  .hero-diagram-node {
    transition: none;
  }
}
