/* ─── FX layer: 3D objects, marquee, scroll progress, glow ─── */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--indigo) 0%, #8B89FF 50%, var(--indigo) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(73, 71, 255, 0.6);
}

/* Hero aura — soft glow that tracks the cursor */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-aura {
  position: absolute;
  top: 0; left: 0;
  width: 520px; height: 520px;
  max-width: 80vw; max-height: 80vw;
  background: radial-gradient(circle at center, rgba(73,71,255,0.32) 0%, rgba(73,71,255,0.10) 30%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  will-change: transform;
}
@media (max-width: 760px) { .hero-aura { display: none; } }
.hero-grid { position: relative; z-index: 1; }

/* Decorative background orbs (multiple per page, parallax-animated) */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  contain: layout style paint;
}
@media (max-width: 760px) {
  .bg-orb.o1, .bg-orb.o3 { width: 360px; height: 360px; }
  .bg-orb.o2, .bg-orb.o4 { width: 280px; height: 280px; }
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}
.bg-orb.indigo {
  background: radial-gradient(circle at 30% 30%, var(--indigo), transparent 70%);
}
.bg-orb.white {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), transparent 70%);
  opacity: 0.10;
}
.bg-orb.dark {
  background: radial-gradient(circle at 30% 30%, #1a1a4a, transparent 70%);
}
.bg-orb.o1 { width: 720px; height: 720px; top: -10%;  left: -15%;  }
.bg-orb.o2 { width: 540px; height: 540px; top: 35%;   right: -10%; }
.bg-orb.o3 { width: 620px; height: 620px; top: 70%;   left: -5%;   }
.bg-orb.o4 { width: 480px; height: 480px; top: 110%;  right: 10%;  }

/* Animated dot grid backdrop + radial vignette for depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(73,71,255,0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(73,71,255,0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* SplitText preparation */
[data-split] { display: inline-block; }
.split-ready { overflow: hidden; }
.split-word {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}
/* Inherit gradient text-fill from .display parent so each split-word stays visible */
.display.split-ready .split-word {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 60%, #A8A6FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 3D tilt cards: glow ring on hover */
.tariff-card,
.stat-card,
.bonus-card,
.solution-card,
.case-card,
.feat,
.teaser-card,
.mentor-card,
.speaker-card,
.faq-item,
.whofor-tile,
.week-block {
  transform-style: preserve-3d;
  position: relative;
}
.tariff-card::after,
.stat-card::after,
.bonus-card::after,
.solution-card::after,
.case-card::after,
.feat::after,
.teaser-card::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(73,71,255,0.5), transparent 50%, rgba(73,71,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.tariff-card:hover::after,
.stat-card:hover::after,
.bonus-card:hover::after,
.solution-card:hover::after,
.case-card:hover::after,
.feat:hover::after,
.teaser-card:hover::after {
  opacity: 1;
}

/* Marquee — infinite tech stack ribbon */
.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: var(--s-3);
  white-space: nowrap;
  will-change: transform;
}
.marquee-track .pill { flex-shrink: 0; }

/* Hero portrait glow ring */
.hero-portrait-wrap {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06),
              0 40px 120px -20px rgba(73,71,255,0.55),
              0 60px 180px -40px rgba(73,71,255,0.4);
}

/* Animated indicator: scroll hint under hero */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  color: var(--fg-3);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scroll-hint-bounce 2.4s var(--ease-out) infinite;
  pointer-events: none;
  z-index: 4;
}
.scroll-hint .line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--fg-3), transparent);
}
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}
@media (max-width: 760px) { .scroll-hint { display: none; } }

/* Floating glow under primary CTA */
.btn-hero {
  position: relative;
  overflow: visible;
}
.btn-hero::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: radial-gradient(closest-side, rgba(73,71,255,0.5), transparent 70%);
  border-radius: inherit;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.6;
  animation: cta-pulse 2.6s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 0.9; }
}

/* Bigger entry on whynow-card — glowing border on hover */
.whynow-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.whynow-card::before {
  content: "";
  position: absolute;
  inset: -100%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(73,71,255,0.6) 60deg, transparent 120deg, transparent 360deg);
  animation: rotate-conic 16s linear infinite;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}
@keyframes rotate-conic { to { transform: rotate(360deg); } }

/* Boxed banner: shimmer on hover */
.boxed-banner {
  position: relative;
  overflow: hidden;
}
.boxed-banner::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.9s var(--ease-out);
}
.boxed-banner:hover::after { left: 150%; }

/* Solution-card hover effect: number lifts */
.solution-card, .case-card { transition: transform 0.4s var(--ease-out); }
.solution-card:hover .solution-num,
.case-card:hover .solution-num {
  transform: scale(1.08);
  color: rgba(73,71,255,0.35);
}
.solution-num { transition: transform 0.5s var(--ease-out), color 0.5s var(--ease-out); }

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint,
  .btn-hero::before,
  .whynow-card::before,
  .boxed-banner::after { animation: none !important; }
  .bg-orb { display: none; }
}
