/* GuardPPC — Animations CSS */

/* ═══ DASHBOARD CARDS: Half-circle entrance ═══ */
.hero-dashboard .dash-widget {
  opacity: 0;
  transform: translateY(80px) translateX(-60px) scale(0.85);
}

.hero-dashboard.visible .dash-chart {
  animation: arcIn1 1s cubic-bezier(.34,1.56,.64,1) .2s forwards;
}
.hero-dashboard.visible .dash-stats {
  animation: arcIn2 1s cubic-bezier(.34,1.56,.64,1) .45s forwards;
}
.hero-dashboard.visible .dash-shield-group {
  animation: arcIn3 .9s cubic-bezier(.34,1.56,.64,1) .65s forwards;
}
.hero-dashboard.visible .dash-quality {
  animation: arcIn4 1s cubic-bezier(.34,1.56,.64,1) .8s forwards;
}
.hero-dashboard.visible .dash-gauge-mini {
  animation: fadeSlideUp .6s ease .9s forwards;
  opacity: 0;
}

/* Card 1: arcs from bottom-left */
@keyframes arcIn1 {
  0%   { opacity:0; transform: translateY(80px) translateX(-100px) rotate(-15deg) scale(.8); }
  40%  { opacity:1; transform: translateY(-20px) translateX(-30px) rotate(-8deg) scale(.95); }
  100% { opacity:1; transform: rotate(-6deg) translateY(20px) scale(1); }
}
/* Card 2: arcs from center-bottom */
@keyframes arcIn2 {
  0%   { opacity:0; transform: translateY(100px) translateX(-40px) scale(.8); }
  40%  { opacity:1; transform: translateY(-15px) translateX(-5px) scale(.98); }
  100% { opacity:1; transform: translateY(-10px) scale(1); }
}
/* Card 3: shield group from center */
@keyframes arcIn3 {
  0%   { opacity:0; transform: translateY(60px) scale(.5); }
  50%  { opacity:1; transform: translateY(-10px) scale(1.05); }
  100% { opacity:1; transform: translateY(-20px) scale(1); }
}
/* Card 4: arcs from bottom-right */
@keyframes arcIn4 {
  0%   { opacity:0; transform: translateY(80px) translateX(100px) rotate(12deg) scale(.8); }
  40%  { opacity:1; transform: translateY(-15px) translateX(20px) rotate(7deg) scale(.95); }
  100% { opacity:1; transform: rotate(5deg) translateY(15px) scale(1); }
}

@keyframes fadeSlideUp {
  0%   { opacity:0; transform:translateY(20px); }
  100% { opacity:1; transform:translateY(0); }
}

/* ═══ STATS ROW (ClickGuard-style) ═══ */
.stat-item {
  position: relative;
  text-align: left;
}

.stat-item .stat-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: .5rem;
  order: -1;
}

.stat-item .stat-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1;
}

.stat-badge-up {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  position: absolute;
  right: 10%;
  bottom: 0;
  animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.15); }
}

/* ═══ TABS WITH PROGRESS BAR ═══ */
.tab-pills-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: 2rem;
}

.tab-pill-p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .375rem;
  padding: .875rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.tab-pill-p:hover { border-color: var(--gray-400); }

.tab-pill-p.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.tp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-600);
  flex-shrink: 0;
}

.tab-pill-p.active .tp-icon {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.tp-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-700);
}

.tab-pill-p.active .tp-label { color: var(--white); }

.tp-progress {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-top: .25rem;
}

.tab-pill-p.active .tp-progress { background: rgba(255,255,255,.2); }

.tp-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width linear;
}

.tab-pill-p.active .tp-bar {
  background: var(--orange);
  width: 100%;
  transition: width 5s linear;
}

/* Tab panel card (content area) */
.tab-panel-card {
  display: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
}

.tab-panel-card.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeIn .4s ease;
}

.tab-panel-text {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tab-panel-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .75rem;
}

.tab-panel-text p {
  font-size: .9375rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Image inside tab panel */
.tab-panel-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 380px;
  background: linear-gradient(135deg, #e8e0f7 0%, #f0e8fc 50%, #f5e8ec 100%);
}

.tab-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tpv-arrows {
  position: relative;
  width: 100%;
  height: 100%;
}

.shield-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.shield-center svg { width: 48px; height: 52px; filter: drop-shadow(0 4px 12px rgba(99,102,241,.3)); }

/* Arrow cursor animations */
.arrow-cursor {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
  opacity: 0;
}

.tab-panel-card.active .arrow-cursor {
  animation: arrowOrbit 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}

/* Red arrows: fly in then explode/destroy */
.tab-panel-card.active .arrow-cursor.red {
  animation: arrowDestroyLoop 3.5s ease infinite;
  animation-delay: calc(var(--i) * 0.7s);
}

/* Blue arrows: fly in then morph to checkmark */
.tab-panel-card.active .arrow-cursor.blue {
  animation: arrowApproveLoop 3.5s ease infinite;
  animation-delay: calc(var(--i) * 0.7s);
}

/* Positions for each cursor */
.arrow-cursor:nth-child(1) { top: 20%; left: 15%; }
.arrow-cursor:nth-child(2) { top: 55%; left: 10%; }
.arrow-cursor:nth-child(3) { top: 35%; right: 20%; left: auto; }
.arrow-cursor:nth-child(4) { bottom: 25%; left: 25%; top: auto; }

@keyframes arrowDestroyLoop {
  0%   { opacity:0; transform: translate(-40px, 30px) rotate(-20deg) scale(.6); }
  20%  { opacity:1; transform: translate(0, 0) rotate(0deg) scale(1); }
  40%  { opacity:1; transform: translate(10px, -5px) scale(1.05); }
  55%  { opacity:1; transform: translate(15px, -2px) scale(1.1); filter: brightness(1); }
  65%  { opacity:.8; transform: translate(18px, 0) scale(1.3); filter: brightness(1.5) saturate(2); }
  75%  { opacity:0; transform: translate(20px, 0) scale(0.1); filter: brightness(3); }
  100% { opacity:0; transform: translate(-40px, 30px) rotate(-20deg) scale(.6); }
}

@keyframes arrowApproveLoop {
  0%   { opacity:0; transform: translate(-30px, 20px) rotate(-15deg) scale(.6); }
  20%  { opacity:1; transform: translate(0, 0) rotate(0deg) scale(1); }
  40%  { opacity:1; transform: translate(5px, -3px) scale(1); }
  55%  { opacity:1; transform: translate(8px, -2px) scale(1.05); }
  65%  { opacity:1; transform: translate(8px, -2px) scale(1.1); filter: hue-rotate(-40deg) brightness(1.2); }
  75%  { opacity:1; transform: translate(8px, -2px) scale(1); filter: hue-rotate(-60deg) brightness(1); }
  85%  { opacity:.7; transform: translate(8px, -2px) scale(.9); }
  100% { opacity:0; transform: translate(-30px, 20px) rotate(-15deg) scale(.6); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ═══ PLATFORM SECTION (Concentric circles + animated cursors) ═══ */
.platform-section {
  position: relative;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
  background: var(--white);
}

.platform-shell {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.p-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,.08);
  transform: translateY(1.25rem);
}

.p-c1 { width: 360px; height: 360px; }
.p-c2 { width: 560px; height: 560px; }
.p-c3 { width: 800px; height: 800px; }
.p-c4 { width: 1020px; height: 1020px; }

.p-circle { animation: circlePulse 7s ease-in-out infinite; }
.p-c2 { animation-delay: .5s; }
.p-c3 { animation-delay: 1s; }
.p-c4 { animation-delay: 1.5s; }

@keyframes circlePulse {
  0%,100% { opacity: .45; transform: translateY(1.25rem) scale(1); }
  50% { opacity: .12; transform: translateY(1.25rem) scale(1.035); }
}

/* Title with animated word highlights */
.platform-text-area {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.platform-title {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.platform-keywords {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: .14em;
  margin-top: .15em;
}

.pw,
.platform-connector,
.platform-ads-target {
  display: inline-block;
  color: rgba(99,102,241,.48);
  text-shadow: 0 0 26px rgba(99,102,241,.08);
  transition: color .45s ease, text-shadow .45s ease, transform .45s ease;
}

.pw.pw-active,
.platform-ads-target {
  background-image: linear-gradient(90deg, rgba(99,102,241,.38) 0%, #5b66f7 28%, rgba(138,143,255,.78) 58%, rgba(167,176,255,.42) 100%);
  background-size: 220% 100%;
  background-position: 0 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: platformTextFlow 6.4s ease-in-out infinite;
}

.platform-connector {
  color: rgba(99,102,241,.4);
}

.platform-ads-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .06em .24em .1em;
  margin-left: .04em;
  border: 1.5px solid rgba(99,102,241,.18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(241,245,255,.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(99,102,241,.08);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.platform-ads-marker::before {
  content: '';
  position: absolute;
  inset: -.32rem;
  border-radius: inherit;
  border: 1px solid rgba(99,102,241,.08);
  opacity: .8;
  pointer-events: none;
}

.platform-ads-marker.is-hit-red {
  border-color: rgba(239,68,68,.56);
  background: linear-gradient(180deg, rgba(255,241,242,.95) 0%, rgba(255,228,230,.88) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 30px rgba(239,68,68,.18), 0 0 0 4px rgba(239,68,68,.08);
}

.platform-ads-marker.is-shielding {
  border-color: rgba(99,102,241,.52);
  background: linear-gradient(180deg, rgba(239,246,255,.96) 0%, rgba(224,231,255,.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 5px rgba(99,102,241,.1), 0 16px 34px rgba(99,102,241,.16);
}

.platform-ads-marker.is-shielding::before {
  animation: markerShieldPulse .9s ease-out forwards;
}

@keyframes markerShieldPulse {
  0% {
    opacity: .9;
    transform: scale(.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.platform-ads-target {
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.platform-ads-target::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #ef4444;
  text-shadow: 0 0 22px rgba(239,68,68,.35);
  opacity: 0;
  pointer-events: none;
}

.platform-ads-target.is-hit-red {
  background-image: linear-gradient(90deg, #ef4444 0%, #fb7185 54%, rgba(248,113,113,.45) 100%);
  text-shadow: 0 0 26px rgba(239,68,68,.32), 0 0 46px rgba(239,68,68,.16);
  animation: adsTargetShake .72s ease;
}

.platform-ads-target.is-hit-red::after {
  animation: adsDisintegrate .72s cubic-bezier(.24, .86, .31, 1) forwards;
}

@keyframes platformTextFlow {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes adsTargetShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(2px, -1px, 0); }
  38% { transform: translate3d(-2px, 1px, 0); }
  58% { transform: translate3d(3px, 0, 0) scale(1.02); }
  78% { transform: translate3d(-1px, 1px, 0) scale(.99); }
}

@keyframes adsDisintegrate {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  18% {
    opacity: 1;
  }
  60% {
    opacity: .95;
    transform: translate3d(.6rem, -.15rem, 0) skewX(-12deg) scale(1.08);
    filter: blur(.6px);
  }
  100% {
    opacity: 0;
    transform: translate3d(1.4rem, -.6rem, 0) skewX(-18deg) scale(.8);
    filter: blur(4px);
  }
}

/* ── Stage: cursor + particle area ── */
.platform-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pa-cursor {
  position: absolute;
  left: calc(var(--left, 50) * 1%);
  top: calc(var(--top, 50) * 1%);
  --move-duration: 1.9s;
  --tail-x: -24px;
  --tail-y: 26px;
  --avatar-scale: 1;
  width: 0;
  height: 0;
  opacity: var(--opacity, 1);
  transform: translate(-50%, -50%);
  transition: opacity .45s ease, filter .45s ease;
  will-change: left, top, opacity;
}

.pa-cursor.no-transition {
  transition: none !important;
}

.pa-cursor.pa-blue {
  --move-duration: 1.85s;
  z-index: 4;
}

.pa-cursor.pa-red {
  --move-duration: 2.45s;
  z-index: 3;
}

.pa-arrow,
.pa-checkmark,
.pa-impact-ring,
.pa-avatar {
  position: absolute;
  left: 0;
  top: 0;
}

.pa-arrow {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(var(--arrow-rotate, 0deg));
  transform-origin: center;
  transition: opacity .35s ease, transform .35s ease, filter .24s ease;
  filter: drop-shadow(0 10px 18px rgba(99,102,241,.18));
}

.pa-red .pa-arrow {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 10px 18px rgba(239,68,68,.2));
}

.pa-arrow svg,
.pa-checkmark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pa-checkmark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5b66f7;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(99,102,241,.14);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(99,102,241,.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55) rotate(-16deg);
  transition: opacity .42s ease, transform .42s ease;
}

.pa-impact-ring {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 2px solid rgba(99,102,241,.34);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.3);
  pointer-events: none;
}

@keyframes platformImpactRing {
  0% {
    opacity: 0;
    transform: scale(.25);
  }
  18% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

.pa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.86), transparent 30%),
    linear-gradient(135deg, #eef2ff 0%, #dbeafe 48%, #cbd5e1 100%);
  border: 2px solid rgba(255,255,255,.98);
  box-shadow: 0 10px 28px rgba(15,23,42,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translate(calc(-50% + var(--tail-x)), calc(-50% + var(--tail-y))) scale(var(--avatar-scale, 1));
  transition: transform .42s ease, opacity .42s ease;
}

.pa-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(99,102,241,.18);
}

.pa-avatar-face {
  position: relative;
  z-index: 1;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--gray-700);
}

.pa-cursor.is-impact .pa-impact-ring {
  animation: platformImpactRing .68s ease-out forwards;
}

.pa-cursor.is-check .pa-arrow {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--arrow-rotate, 0deg)) scale(.4);
}

.pa-cursor.is-check .pa-checkmark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08) rotate(0deg);
}

.pa-cursor.is-check .pa-avatar {
  --avatar-scale: .96;
}

.pa-cursor.is-fading {
  opacity: 0;
  filter: blur(2px);
}

.pa-cursor.is-destroyed {
  opacity: 0;
  filter: blur(3px) brightness(1.2);
}

.pa-cursor.pa-red.is-impact,
.pa-cursor.pa-red.is-destroyed,
.pa-cursor.pa-blue.is-impact,
.pa-cursor.pa-blue.is-check {
  z-index: 7;
}

.pa-cursor.pa-red.is-impact .pa-arrow {
  filter: brightness(1.16) saturate(1.14) drop-shadow(0 12px 24px rgba(239,68,68,.3));
  transform: translate(-50%, -50%) rotate(var(--arrow-rotate, 0deg)) scale(1.12);
}

.pa-projectile {
  position: absolute;
  left: calc(var(--shot-left, 50) * 1%);
  top: calc(var(--shot-top, 50) * 1%);
  width: 0;
  height: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}

.pa-projectile.is-active {
  opacity: 1;
}

.pa-projectile-glow,
.pa-projectile-tail,
.pa-projectile-core,
.pa-explosion-flash,
.pa-explosion-ring,
.pa-spark {
  position: absolute;
  left: 0;
  top: 0;
}

.pa-projectile-glow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191,219,254,.82) 0%, rgba(96,165,250,.24) 66%, transparent 100%);
  transform: translate(-50%, -50%);
  filter: blur(2px);
}

.pa-projectile-core {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #dbeafe 28%, #60a5fa 62%, #2563eb 100%);
  box-shadow: 0 0 18px rgba(96,165,250,.5), 0 0 30px rgba(96,165,250,.22);
  transform: translate(-50%, -50%);
}

.pa-projectile-tail {
  width: 50px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,0) 0%, rgba(96,165,250,.18) 28%, rgba(191,219,254,.74) 78%, rgba(255,255,255,.98) 100%);
  transform: translate(calc(-100% + 6px), -50%) rotate(var(--shot-rotate, 0deg));
  transform-origin: right center;
  filter: blur(1px);
  opacity: .92;
}

.pa-explosion {
  position: absolute;
  left: calc(var(--boom-left, 50) * 1%);
  top: calc(var(--boom-top, 50) * 1%);
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

.pa-explosion.is-active {
  opacity: 1;
}

.pa-explosion-flash {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(248,113,113,.9) 35%, rgba(239,68,68,.15) 78%, transparent 100%);
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
}

.pa-explosion-ring {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(248,113,113,.72);
  transform: translate(-50%, -50%) scale(.18);
  opacity: 0;
}

.pa-explosion-ring-2 {
  border-color: rgba(251,191,36,.55);
}

.pa-spark {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(248,113,113,.72), rgba(239,68,68,0));
  transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(0) scaleX(.2);
  transform-origin: left center;
  opacity: 0;
}

@keyframes explosionRingExpand {
  0% {
    opacity: .92;
    transform: translate(-50%, -50%) scale(.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.1);
  }
}

@keyframes explosionFlashBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.2);
  }
}

@keyframes explosionSparkFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(0) scaleX(.2);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--spark-angle)) translateX(var(--spark-distance)) scaleX(.88);
  }
}

.pa-explosion.is-active .pa-explosion-flash {
  animation: explosionFlashBurst .52s ease-out forwards;
}

.pa-explosion.is-active .pa-explosion-ring {
  animation: explosionRingExpand .88s ease-out forwards;
}

.pa-explosion.is-active .pa-explosion-ring-2 {
  animation: explosionRingExpand .88s ease-out .08s forwards;
}

.pa-explosion.is-active .pa-spark {
  animation: explosionSparkFly .82s cubic-bezier(.17, .84, .29, 1) forwards;
}

.pa-particles {
  position: absolute;
  left: calc(var(--burst-left, 50) * 1%);
  top: calc(var(--burst-top, 50) * 1%);
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.pa-particles.is-bursting {
  opacity: 1;
}

.pa-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  opacity: 0;
}

@keyframes dotBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4);
  }
}

.pa-particles.is-bursting .pa-dot {
  animation: dotBurst .72s cubic-bezier(.18, .87, .31, 1) forwards;
}

@media (max-width: 960px) {
  .platform-section {
    padding: 4.75rem 0 4.25rem;
  }

  .platform-shell {
    min-height: 430px;
  }

  .p-c1 { width: 280px; height: 280px; }
  .p-c2 { width: 460px; height: 460px; }
  .p-c3 { width: 620px; height: 620px; }
  .p-c4 { width: 780px; height: 780px; }

  .platform-title {
    font-size: clamp(2rem, 7vw, 3.3rem);
  }

  .pa-avatar {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 640px) {
  .platform-shell {
    min-height: 360px;
  }

  .platform-text-area {
    padding: 0 .75rem;
  }

  .platform-keywords {
    gap: .1em;
  }

  .p-c3,
  .p-c4,
  .pa-r2,
  .pa-b3 {
    display: none;
  }

  .pa-arrow,
  .pa-checkmark {
    width: 24px;
    height: 24px;
  }

  .pa-avatar {
    width: 32px;
    height: 32px;
  }

  .pa-avatar-face {
    font-size: .58rem;
  }
}

/* ═══ DASHBOARD TILT ON SCROLL ═══ */
.features-hero {
  padding-bottom: 0 !important;
  overflow: visible !important;
}

.features-hero::after { display: none; }

.dashboard-tilt-wrap {
  position: relative;
  margin-top: 3rem;
  perspective: 1200px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 4rem;
}

.dashboard-tilt-inner {
  position: relative;
  transform-style: preserve-3d;
  /* --tilt: 0 = fully tilted, 1 = flat. Set by JS on scroll */
  transform: rotateX(calc(35deg * (1 - var(--tilt, 0)))) scale(calc(0.85 + 0.15 * var(--tilt, 0)));
  transition: transform .1s linear;
  will-change: transform;
}

.dashboard-img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow:
    0 20px 60px rgba(0,0,0,.08),
    0 4px 16px rgba(0,0,0,.04);
}

.dashboard-shadow {
  position: absolute;
  bottom: -20px;
  left: 5%;
  right: 5%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,.08) 0%, transparent 70%);
  filter: blur(12px);
  opacity: calc(1 - var(--tilt, 0));
  transition: opacity .1s linear;
}

@media (max-width: 768px) {
  .dashboard-tilt-inner {
    transform: rotateX(calc(20deg * (1 - var(--tilt, 0)))) scale(calc(0.9 + 0.1 * var(--tilt, 0)));
  }
  .dashboard-tilt-wrap {
    margin-top: 2rem;
    padding-bottom: 2rem;
  }
}
