/* =====================================================================
   DeCYFIR V4 trial motions. Each block is independent: delete a block to drop that motion.
   All motion is inside prefers-reduced-motion: no-preference; the static page is unchanged without it.
   ===================================================================== */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }


@media (prefers-reduced-motion: no-preference) {

  /* ---------- M1: six AI-native capabilities ring ---------- */
  .cyc__ring::after { content: ""; position: absolute; left: 50%; top: -9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 0 6px rgba(206,32,44,.18), 0 0 18px rgba(206,32,44,.6); transform-origin: 8px 269px; animation: cycspin 12s linear infinite; }
  @keyframes cycspin { to { rotate: 360deg; } }
  .cyc__node { animation: cyclit 12s ease-in-out infinite; }
  .cyc__node--1 { animation-delay: 2s; } .cyc__node--2 { animation-delay: 4s; } .cyc__node--3 { animation-delay: 6s; } .cyc__node--4 { animation-delay: 8s; } .cyc__node--5 { animation-delay: 10s; }
  @keyframes cyclit { 0%, 1% { border-color: rgba(16,24,40,.08); box-shadow: 0 20px 40px -32px rgba(16,24,40,.35); translate: 0 0; }
    4%, 13% { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(112,52,196,.12), 0 26px 44px -26px rgba(59,26,115,.5); translate: 0 -4px; }
    17%, 100% { border-color: rgba(16,24,40,.08); box-shadow: 0 20px 40px -32px rgba(16,24,40,.35); translate: 0 0; } }
  .cyc__node--0, .cyc__node--3 { translate: -50% 0; }
  @keyframes cyclitc { 0%, 1% { border-color: rgba(16,24,40,.08); translate: -50% 0; } 4%, 13% { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(112,52,196,.12), 0 26px 44px -26px rgba(59,26,115,.5); translate: -50% -4px; } 17%, 100% { border-color: rgba(16,24,40,.08); translate: -50% 0; } }
  .cyc__node--0, .cyc__node--3 { animation-name: cyclitc; }
  .cyc__node .cyc__n { animation: cycnum 12s ease-in-out infinite; animation-delay: inherit; }
  @keyframes cycnum { 0%, 1% { background: var(--ink); } 4%, 13% { background: var(--red); } 17%, 100% { background: var(--ink); } }

  /* ---------- M2: fragmented -> earlier decisions ---------- */
  .conv__lines path { animation: convflow 1.6s linear infinite; }
  @keyframes convflow { to { stroke-dashoffset: -20; } }
  .conv__hub { animation: hubglow 4.5s ease-in-out infinite; }
  @keyframes hubglow { 0%, 100% { box-shadow: 0 30px 60px -24px rgba(16,24,40,.45), 0 0 0 0 rgba(206,32,44,0); } 50% { box-shadow: 0 30px 60px -24px rgba(16,24,40,.45), 0 0 0 10px rgba(206,32,44,.12); } }
  .conv__outs li { animation: outlit 4.5s ease-in-out infinite; }
  .conv__outs li:nth-child(2) { animation-delay: 1.5s; } .conv__outs li:nth-child(3) { animation-delay: 3s; }
  @keyframes outlit { 0%, 4% { border-style: dashed; border-color: rgba(112,52,196,.6); background: #fff; } 10%, 30% { border-style: solid; border-color: var(--violet); background: #FBF8FF; } 38%, 100% { border-style: dashed; border-color: rgba(112,52,196,.6); background: #fff; } }

  /* ---------- M3: hero product view (plays once on load) ---------- */
  .trend__line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: trenddraw 1.8s .3s ease-out forwards; }
  @keyframes trenddraw { to { stroke-dashoffset: 0; } }
  .trend__area { opacity: 0; animation: fadein .8s 1.6s ease-out forwards; }
  @keyframes fadein { to { opacity: 1; } }
  .score__ring { animation: dial 1.4s .2s cubic-bezier(.2,.8,.2,1) both; }
  .score:nth-child(2) .score__ring { animation-delay: .4s; } .score:nth-child(3) .score__ring { animation-delay: .6s; }
  @keyframes dial { from { --p: 0; } }
  .alerts li { opacity: 0; translate: 0 8px; animation: alertin .5s ease-out forwards; }
  .alerts li:nth-child(1) { animation-delay: 1.9s; } .alerts li:nth-child(2) { animation-delay: 2.2s; }
  @keyframes alertin { to { opacity: 1; translate: 0 0; } }

  /* ---------- M5: security stack, integration logos pulse in turn ---------- */
  .stackc__logos li { animation: stackpulse 9s ease-in-out infinite; }
  .stackc__logos li:nth-child(2) { animation-delay: 1s; } .stackc__logos li:nth-child(3) { animation-delay: 2s; } .stackc__logos li:nth-child(4) { animation-delay: 3s; }
  .stackc__logos li:nth-child(5) { animation-delay: 4s; } .stackc__logos li:nth-child(6) { animation-delay: 5s; } .stackc__logos li:nth-child(7) { animation-delay: 6s; }
  .stackc__logos li:nth-child(8) { animation-delay: 7s; } .stackc__logos li:nth-child(9) { animation-delay: 8s; }
  @keyframes stackpulse { 0%, 2% { box-shadow: 0 0 0 0 rgba(205,184,242,0); scale: 1; } 5%, 9% { box-shadow: 0 0 0 4px rgba(205,184,242,.55), 0 0 26px rgba(112,52,196,.55); scale: 1.04; } 13%, 100% { box-shadow: 0 0 0 0 rgba(205,184,242,0); scale: 1; } }
}
.trustb__num { white-space: nowrap; flex: none; }

/* ===== Dark mode (html[data-theme="dark"]) ===== */
/* M1 number badge (.cyc__n) animates its background through var(--ink); --ink is flipped to a
   light text color for dark mode, so pin this badge's idle state with a dark-mode keyframe
   instead of editing the light-mode one */
@media (prefers-reduced-motion: no-preference) {
  @keyframes cycnum-dark { 0%, 1% { background: #101828; } 4%, 13% { background: var(--red); } 17%, 100% { background: #101828; } }
  html[data-theme="dark"] .cyc__node .cyc__n { animation-name: cycnum-dark; }

  /* M2 convergence outputs pulse to literal #fff / #FBF8FF surfaces; swap in dark-surface
     keyframes (the resting card background is already pinned to #1D2939 in shared/base.css) */
  @keyframes outlit-dark { 0%, 4% { border-style: dashed; border-color: rgba(112,52,196,.6); background: #1D2939; } 10%, 30% { border-style: solid; border-color: var(--violet); background: var(--violet-tint); } 38%, 100% { border-style: dashed; border-color: rgba(112,52,196,.6); background: #1D2939; } }
  html[data-theme="dark"] .conv__outs li { animation-name: outlit-dark; }
}

