/* DetailQuote hero motion overlay */
#demo {
  position: relative;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
  animation: dq-card-float 6s ease-in-out infinite;
}

#demo::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -2;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(57, 225, 185, .18), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(93, 166, 255, .16), transparent 36%);
  filter: blur(24px);
  opacity: .72;
  animation: dq-glow-breathe 4.8s ease-in-out infinite;
  pointer-events: none;
}

#demo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.08) 43%, rgba(255,255,255,.02) 52%, transparent 72%);
  transform: translateX(-130%);
  animation: dq-sheen 6.5s ease-in-out infinite 1.2s;
  mix-blend-mode: screen;
}

#demo .dq-motion-row {
  opacity: 0;
  transform: translateY(12px);
  animation: dq-row-in .52s cubic-bezier(.2,.8,.2,1) forwards;
}

#demo .dq-motion-row:nth-of-type(2) { animation-delay: .16s; }
#demo .dq-motion-row:nth-of-type(3) { animation-delay: .32s; }
#demo .dq-motion-row:nth-of-type(4) { animation-delay: .48s; }
#demo .dq-motion-row:nth-of-type(5) { animation-delay: .64s; }

#demo .dq-recalc {
  position: relative;
}

#demo .dq-recalc::after {
  content: "";
  position: absolute;
  inset: -6px -8px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(57,225,185,.02), rgba(57,225,185,.12), rgba(93,166,255,.06));
  opacity: 0;
  z-index: -1;
  animation: dq-row-pulse 1.2s ease;
}

#demo .dq-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: #61e7c5;
  box-shadow: 0 0 0 rgba(97,231,197,.35);
  animation: dq-live-pulse 1.8s ease-out infinite;
  vertical-align: middle;
}

#demo .dq-orb {
  position: absolute;
  z-index: -1;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(88, 222, 197, .36);
  filter: blur(.2px);
  animation: dq-orb-drift var(--dq-duration, 9s) ease-in-out infinite;
  animation-delay: var(--dq-delay, 0s);
  pointer-events: none;
}

#demo .dq-bar-live {
  transform-origin: bottom;
  animation: dq-bar-breathe 2.8s ease-in-out infinite alternate;
}

#demo .dq-price-pop {
  animation: dq-price-pop .42s cubic-bezier(.2,.9,.25,1.25);
}

@keyframes dq-card-float {
  0%,100% { transform: translate3d(0,0,0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translate3d(0,-8px,0) rotateX(.7deg) rotateY(-.6deg); }
}

@keyframes dq-glow-breathe {
  0%,100% { transform: scale(.98); opacity: .48; }
  50% { transform: scale(1.04); opacity: .82; }
}

@keyframes dq-sheen {
  0%, 62% { transform: translateX(-130%); opacity: 0; }
  72% { opacity: .8; }
  88%,100% { transform: translateX(130%); opacity: 0; }
}

@keyframes dq-row-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dq-row-pulse {
  0% { opacity: 0; transform: scale(.98); }
  40% { opacity: 1; transform: scale(1.01); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes dq-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(97,231,197,.35); }
  70%,100% { box-shadow: 0 0 0 10px rgba(97,231,197,0); }
}

@keyframes dq-orb-drift {
  0%,100% { transform: translate3d(0,0,0) scale(.8); opacity: .12; }
  50% { transform: translate3d(var(--dq-x, 18px), var(--dq-y, -24px),0) scale(1.5); opacity: .5; }
}

@keyframes dq-bar-breathe {
  from { transform: scaleY(.9) translateY(1px); filter: brightness(.95); }
  to { transform: scaleY(1.04) translateY(-1px); filter: brightness(1.12); }
}

@keyframes dq-price-pop {
  0% { transform: scale(.94); filter: brightness(.9); }
  60% { transform: scale(1.08); filter: brightness(1.18); }
  100% { transform: scale(1); filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  #demo,
  #demo::before,
  #demo::after,
  #demo .dq-motion-row,
  #demo .dq-live-dot,
  #demo .dq-orb,
  #demo .dq-bar-live,
  #demo .dq-price-pop,
  #demo .dq-recalc::after {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
