/* ═══════════════════════════════════════════════
   KLARRRO — SPECTACLE ANIMATIONS CSS
   Cursor, holographic, flip, glow trail, depth
   ═══════════════════════════════════════════════ */

/* ── WebGL Canvas ── */
.spectacle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Custom cursor removed — conflicts with cookie banners and overlay z-index */

/* ── Holographic Card Tilt ── */
.feat-card.holo-tilt {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.feat-card.holo-tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    var(--holo-angle, 135deg),
    transparent 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.02) 55%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feat-card.holo-tilt:hover::after {
  opacity: 1;
}

[data-theme="light"] .feat-card.holo-tilt::after {
  background: linear-gradient(
    var(--holo-angle, 135deg),
    transparent 0%,
    rgba(224, 82, 122, 0.06) 35%,
    rgba(248, 191, 69, 0.06) 65%,
    transparent 100%
  );
}

.feat-card.holo-tilt {
  transform: perspective(800px) translateZ(0) scale(1);
}

.feat-card.holo-tilt.is-entering {
  transform: perspective(800px) translateZ(-100px) scale(0.9);
  opacity: 0;
}

[data-theme="light"] .feat-card.holo-tilt:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ── Price Flip Animation ── */
.price-flip-container {
  perspective: 600px;
  position: relative;
}

.price-flip-front,
.price-flip-back {
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.price-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(-180deg);
}

.price-flip-container.is-flipped .price-flip-front {
  transform: rotateY(180deg);
}

.price-flip-container.is-flipped .price-flip-back {
  transform: rotateY(0deg);
}

/* ── Glow Trail (for hero text reveal) ── */
@keyframes glowTrail {
  0%   { text-shadow: 0 0 0px var(--accent); }
  50%  { text-shadow: 0 0 8px var(--accent), 0 0 16px rgba(224, 82, 122, 0.3); }
  100% { text-shadow: 0 0 2px var(--accent); }
}

.glow-trail {
  animation: glowTrail 0.8s ease-out;
}

.pro-page .glow-trail {
  --accent: var(--gold);
}

/* ── Depth Effects (pricing, testimonials) ── */
.plan.is-featured {
  transform: translateZ(20px);
  box-shadow: var(--shadow-lg);
}

.testi-card.is-focused {
  transform: scale(1.05);
  filter: blur(0);
  z-index: 2;
}

.testi-card.is-adjacent {
  filter: blur(1px);
  opacity: 0.85;
}

.testi-card.is-far {
  filter: blur(3px);
  opacity: 0.6;
}

.testi-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

/* ── Scroll Progress Bar ── */
.spectacle-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 99999;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 4px var(--accent-glow);
}

.pro-page .spectacle-scroll-progress {
  background: linear-gradient(90deg, var(--gold), #b8822a);
  box-shadow: 0 0 4px rgba(248, 191, 69, 0.3);
}

/* ── Magnetic Hover CTA ── */
.magnetic-cta {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ── Spring FAQ Accordion Border ── */
@keyframes faqBorderPulse {
  0%   { border-left-color: transparent; }
  50%  { border-left-color: var(--accent); }
  100% { border-left-color: var(--accent); }
}

.pro-page .faq-item[open] {
  animation: faqBorderPulse 0.2s ease-out forwards;
  --accent: var(--gold);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .spectacle-canvas { display: none; }
  .cursor-outer, .cursor-inner { display: none !important; }
  .spectacle-scroll-progress { display: none; }
  .feat-card.holo-tilt::after { display: none; }
  .glow-trail { animation: none; }
  .price-flip-front,
  .price-flip-back { transition-duration: 0.01ms !important; }
  .testi-card { filter: none !important; }
}
