/* ─── Hero background orbs (light, soft accent blobs) ─── */

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero-orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(45, 212, 246, 0.30) 0%, transparent 70%);
  top: -120px;
  right: -120px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 188, 219, 0.18) 0%, transparent 70%);
  bottom: -80px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

/* ─── Hero content entrance ─── */

.hero-animate-1 { animation: fadeIn 0.8s ease both; animation-delay: 0.1s; }
.hero-animate-2 { animation: fadeIn 0.8s ease both; animation-delay: 0.25s; }
.hero-animate-3 { animation: fadeIn 0.8s ease both; animation-delay: 0.4s; }
.hero-animate-4 { animation: fadeIn 0.8s ease both; animation-delay: 0.55s; }

/* ─── Diagram dash flow ─── */

@keyframes dashFlow {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}

.diagram-line {
  stroke-dasharray: 6 4;
  stroke-dashoffset: 200;
  animation: dashFlow 2.5s linear infinite;
}

/* ─── Number counter animation ─── */

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

/* ─── Glow pulse for CTA ─── */

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 188, 219, 0.3); }
  50%       { box-shadow: 0 8px 40px rgba(0, 188, 219, 0.5); }
}

.glow-pulse { animation: glowPulse 3s ease-in-out infinite; }

/* ─── Spin (loading) ─── */

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ─── Pop-in ─── */

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.8) translateY(10px); }
  70%  { transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.pop-in { animation: popIn 0.4s ease both; }

/* ─── Subtle dot grid background ─── */

.bg-grid {
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ─── Highlight gradient text (cyan accent) ─── */

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Underline accent ─── */

.underline-accent {
  position: relative;
  display: inline-block;
}

.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── Transition utilities ─── */

.transition-all { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
