/* ============================================================
   STAKE POOL USD — Animations
   ============================================================ */

/* ─── Glow pulse (logo / orbs) ─── */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ─── Float (hero logo) ─── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}
.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* ─── Scroll bounce hint ─── */
@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50%       { transform: rotate(45deg) translate(4px, 4px); opacity: 0.5; }
}

/* ─── CTA button pulse ring ─── */
.pulse-btn {
  position: relative;
}
.pulse-btn::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  background: linear-gradient(90deg, #00cfff, #0072ff);
  opacity: 0;
  z-index: -1;
  animation: pulse-ring 2.2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.25); }
}

/* ─── Header logo glow ─── */
.header__logo-img {
  animation: logo-glow 3s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% { filter: brightness(1.1) drop-shadow(0 0 6px rgba(0,207,255,0.4)); }
  50%       { filter: brightness(1.25) drop-shadow(0 0 16px rgba(0,207,255,0.75)); }
}

/* ─── Card shimmer on hover ─── */
.card {
  background-image: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(255,255,255,0.025) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 200%;
  background-position: 0% 0%;
}
.card:hover {
  background-position: 100% 100%;
  transition: background-position 0.6s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ─── Donut chart segment draw ─── */
.donut__seg {
  animation: draw-seg 1.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.donut__seg:nth-child(2) { animation-delay: 0.2s; }
.donut__seg:nth-child(3) { animation-delay: 0.4s; }
.donut__seg:nth-child(4) { animation-delay: 0.6s; }
.donut__seg:nth-child(5) { animation-delay: 0.8s; }
.donut__seg:nth-child(6) { animation-delay: 1.0s; }

@keyframes draw-seg {
  from { stroke-dasharray: 0 502.4; }
}

/* ─── Legend bar fill ─── */
.legend-fill {
  animation: fill-bar 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: 0.5s;
}
@keyframes fill-bar {
  from { width: 0% !important; }
}

/* ─── Plan card active glow shimmer ─── */
.plan--active .plan-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 207, 255, 0.07),
    transparent
  );
  animation: plan-shimmer 3s ease-in-out infinite;
}
@keyframes plan-shimmer {
  0%   { left: -100%; }
  60%, 100% { left: 150%; }
}

/* ─── Section tag blink border ─── */
.section__tag {
  animation: tag-blink 3s ease-in-out infinite;
}
@keyframes tag-blink {
  0%, 100% { border-color: rgba(0,207,255,0.3); }
  50%       { border-color: rgba(0,207,255,0.7); box-shadow: 0 0 10px rgba(0,207,255,0.2); }
}

/* ─── Hero orbs drift ─── */
.hero__orb--1 { animation: orb-drift-1 12s ease-in-out infinite; }
.hero__orb--2 { animation: orb-drift-2 15s ease-in-out infinite; }
.hero__orb--3 { animation: orb-drift-3 10s ease-in-out infinite; }

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(40px, 30px); }
  66%  { transform: translate(-20px, 50px); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(-50px, -30px); }
  66%  { transform: translate(30px, -20px); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(-50%, -50%); }
  50%  { transform: translate(-60%, -60%); }
}

/* ─── Social link spin on hover ─── */
.social-link:hover svg {
  animation: spin-once 0.4s ease;
}
@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Stat value count-up glow ─── */
.hero__stat-val {
  text-shadow: 0 0 20px rgba(0,207,255,0.3);
}

/* ─── Partner logo hover ─── */
.partner-logo {
  position: relative;
  overflow: hidden;
}
.partner-logo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-start), var(--green-start));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.partner-logo:hover::after { transform: scaleX(1); }

/* ─── Scroll arrow continuous ─── */
.hero__scroll-hint {
  animation: fade-in-up 1s ease 1.5s both;
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
