/* RP Bot Info | Animations V3: UI-only, no changes to data fetching */
.hero .metrics > div {
  isolation: isolate;
  will-change: auto;
  animation: rpCardEnter .72s cubic-bezier(.2,.82,.25,1) both;
  transition: transform .35s cubic-bezier(.18,.75,.22,1),
              border-color .35s ease, box-shadow .35s ease !important;
}
.hero .metrics > div:nth-child(1) { animation-delay: .10s; }
.hero .metrics > div:nth-child(2) { animation-delay: .20s; }
.hero .metrics > div:nth-child(3) { animation-delay: .30s; }
.hero .metrics > div:nth-child(4) { animation-delay: .40s; }
@keyframes rpCardEnter { from { opacity:0; transform:translateY(22px) scale(.97); filter:blur(5px); } to { opacity:1; transform:translateY(0) scale(1); filter:blur(0); } }
.hero .metrics > div:hover {
  transform: translateY(-7px) scale(1.012) !important;
  border-color: rgba(90,220,255,.86) !important;
  box-shadow: 0 20px 45px rgba(0,9,37,.42), 0 0 32px rgba(22,168,255,.23) !important;
}
/* Soft floating highlight travels across each card on hover. */
.hero .metrics > div > .rp-v3-shine {
  position: absolute; z-index:0; inset:0; pointer-events:none;
  background: linear-gradient(110deg,transparent 18%,rgba(190,239,255,.12) 47%,transparent 75%);
  transform:translateX(-130%); transition:transform .95s ease;
}
.hero .metrics > div:hover > .rp-v3-shine { transform:translateX(130%); }
/* Icon tiles gently float only during hover. */
.hero .metrics > div:hover::before {
  animation: rpIconFloat 1.6s ease-in-out infinite;
  box-shadow: inset 0 0 24px rgba(53,190,255,.18),0 0 18px rgba(45,170,255,.18) !important;
}
@keyframes rpIconFloat { 0%,100% { translate:0 0; } 50% { translate:0 -4px; } }
/* Live badge pulses without stopping the existing live server count. */
.hero .metrics .rpbot-server-metric::after {
  animation: rpLiveGlow 2.4s ease-in-out infinite;
}
@keyframes rpLiveGlow { 0%,100% { box-shadow:0 0 0 0 rgba(88,244,171,.08) !important; opacity:.88; } 50% { box-shadow:0 0 0 5px rgba(88,244,171,.09) !important; opacity:1; } }
.hero .metrics .rpbot-server-metric strong.rp-v3-number-change { animation: rpNumberPop .48s ease; }
@keyframes rpNumberPop { 0% { transform:scale(.94); filter:brightness(1.4); } 55% { transform:scale(1.07); } 100% { transform:scale(1);filter:brightness(1); } }
/* Reveal later sections as the visitor scrolls. Keep contents visible when JS is off. */
@media (prefers-reduced-motion: no-preference) {
  .rp-v3-ready .section.rp-v3-reveal { opacity:0; transform:translateY(30px); transition:opacity .75s ease, transform .75s cubic-bezier(.22,.7,.2,1); }
  .rp-v3-ready .section.rp-v3-reveal.rp-v3-shown { opacity:1; transform:none; }
}
@media (max-width:720px) {
  .hero .metrics > div:hover { transform:translateY(-3px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .metrics > div, .hero .metrics > div::before,
  .hero .metrics .rpbot-server-metric::after,
  .hero .metrics .rpbot-server-metric strong,
  .rp-v3-ready .section.rp-v3-reveal {
    animation:none !important; transition:none !important; transform:none !important;
    opacity:1 !important; filter:none !important; translate:none !important;
  }
  .hero .metrics > div:hover > .rp-v3-shine { transform:translateX(-130%) !important; }
}
