/* Revoked — ambient motion layer.
   Small, slow, monochrome animations that keep the page alive after the scroll-reveal has finished.
   Everything is gated on the site's own "visual effects" switch (html[data-rv-motion="on"]),
   the same switch the existing snow/reveal effects use. */

@property --rv-glow-a {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}


  /* ---------- Cards: cursor spotlight + slow idle light sweep ----------
     rv-alive.js tags each card with .rv-alive-a (uses ::after) or .rv-alive-b (uses ::before),
     whichever pseudo-element the card does not already use. */
  html[data-rv-motion="on"] .rv-alive-a::after,
  html[data-rv-motion="on"] .rv-alive-b::before {
    content: "";
    display: block !important; /* some cards hide their old pseudo-elements with display:none !important */
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    opacity: 1;
    transform: none;
    filter: none;
    box-shadow: none;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    background-image:
      radial-gradient(260px circle at var(--rv-mx, 50%) var(--rv-my, 50%), rgba(255, 255, 255, calc(var(--rv-glow-a) * .12)), transparent 70%),
      linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .075) 50%, transparent 58%);
    background-size: 100% 100%, 300% 100%;
    background-repeat: no-repeat;
    background-position: 0 0, 100% 0;
    transition: --rv-glow-a .35s ease;
    animation: rvAliveSweep 11s cubic-bezier(.45, 0, .25, 1) infinite;
    animation-delay: calc(var(--rv-alive-i, 0) * 1.4s + 1.5s);
    animation-play-state: paused;
  }
  html[data-rv-motion="on"] .rv-alive-in.rv-alive-a::after,
  html[data-rv-motion="on"] .rv-alive-in.rv-alive-b::before { animation-play-state: running; }
  html[data-rv-motion="on"] .rv-alive-a:hover,
  html[data-rv-motion="on"] .rv-alive-b:hover { --rv-glow-a: 1; }

  @keyframes rvAliveSweep {
    0%, 72% { background-position: 0 0, 100% 0; }
    100%    { background-position: 0 0, 0% 0; }
  }

  /* ---------- Status dots ("Undetected" etc.): soft radar pulse ---------- */
  html[data-rv-motion="on"] .rv-sale-status i {
    animation: rvAlivePing 2.6s ease-out infinite;
  }
  @keyframes rvAlivePing {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rv-state-color, #22c55e) 55%, transparent); }
    70%  { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
  }

  /* ---------- Section titles: slow silver shimmer ---------- */
  html[data-rv-motion="on"] :is(.rv-home-heading h2, .rv-section-head h2, .rv-discord-title) {
    background-image: linear-gradient(100deg, #fff 0%, #fff 42%, #8e8e96 50%, #fff 58%, #fff 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rvAliveShimmer 9s ease-in-out infinite;
  }
  @keyframes rvAliveShimmer {
    0%, 60% { background-position: 100% 0; }
    100%    { background-position: 0% 0; }
  }

  /* ---------- "Why choose" icons: gentle float ---------- */
  html[data-rv-motion="on"] .rv-why-card .rv-refined-icon {
    animation: rvAliveFloat 4.8s ease-in-out infinite;
  }
  html[data-rv-motion="on"] .rv-why-card:nth-child(2) .rv-refined-icon { animation-delay: -1.6s; }
  html[data-rv-motion="on"] .rv-why-card:nth-child(3) .rv-refined-icon { animation-delay: -3.2s; }
  @keyframes rvAliveFloat {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -4px; }
  }

  /* ---------- Checkout steps: numbers light up one after another ---------- */
  html[data-rv-motion="on"] .rv-flow-num {
    animation: rvAliveStep 4.5s ease-in-out infinite;
  }
  html[data-rv-motion="on"] .rv-flow-step:nth-child(2) .rv-flow-num { animation-delay: 1.5s; }
  html[data-rv-motion="on"] .rv-flow-step:nth-child(3) .rv-flow-num { animation-delay: 3s; }
  @keyframes rvAliveStep {
    0%, 40%, 100% { scale: 1; filter: none; }
    15%           { scale: 1.08; filter: brightness(1.35) drop-shadow(0 0 9px rgba(255, 255, 255, .28)); }
  }

  /* ---------- Stats: values breathe in turn ---------- */
  html[data-rv-motion="on"] .rv-stat b {
    animation: rvAliveBreath 6s ease-in-out infinite;
  }
  html[data-rv-motion="on"] .rv-stat:nth-child(2) b { animation-delay: 2s; }
  html[data-rv-motion="on"] .rv-stat:nth-child(3) b { animation-delay: 4s; }
  @keyframes rvAliveBreath {
    0%, 45%, 100% { text-shadow: none; }
    20%           { text-shadow: 0 0 14px rgba(255, 255, 255, .45); }
  }

  /* ---------- Discord banner: slow glowing edge ---------- */
  html[data-rv-motion="on"] .rv-discord-cta {
    animation: rvAliveEdge 7s ease-in-out infinite;
  }
  @keyframes rvAliveEdge {
    0%, 100% { box-shadow: 0 20px 70px rgba(0, 0, 0, .13), 0 0 24px rgba(255, 255, 255, .015); }
    50%      { box-shadow: 0 20px 70px rgba(0, 0, 0, .13), 0 0 40px rgba(255, 255, 255, .07); }
  }

  /* ---------- Cobra watermark: very slow drift ---------- */
  html[data-rv-motion="on"] .rv-logo-watermark {
    animation: rvAliveDrift 18s ease-in-out infinite;
  }
  @keyframes rvAliveDrift {
    0%, 100% { scale: 1; translate: 0 0; }
    50%      { scale: 1.035; translate: 0 -8px; }
  }

  /* ---------- Product images on cards: slow "living photo" zoom ---------- */
  html[data-rv-motion="on"] .rv-alive-in .rv-sale-media img {
    animation: rvAliveKen 16s ease-in-out infinite alternate;
  }
  @keyframes rvAliveKen {
    from { scale: 1; }
    to   { scale: 1.035; }
  }

  /* ---------- Buy buttons: arrow-bag nudge on hover ---------- */
  html[data-rv-motion="on"] .rv-sale-buy:hover svg {
    animation: rvAliveNudge .7s ease-in-out;
  }
  @keyframes rvAliveNudge {
    0%, 100% { rotate: 0deg; }
    30%      { rotate: -12deg; }
    60%      { rotate: 8deg; }
  }