/* ==========================================================================
   VoyaSM Interactions — RePay-style scroll & motion
   ========================================================================== */

/* === Global: remove all italic === */
* { font-style: normal !important; }

/* === Reveal on scroll === */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s cubic-bezier(.2,.7,.2,1), transform .45s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-20px); }
[data-reveal="right"] { transform: translateX(20px); }
[data-reveal="scale"] { transform: scale(.98); }
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: .05s; }
[data-reveal-delay="2"] { transition-delay: .10s; }
[data-reveal-delay="3"] { transition-delay: .15s; }
[data-reveal-delay="4"] { transition-delay: .20s; }
[data-reveal-delay="5"] { transition-delay: .25s; }
[data-reveal-delay="6"] { transition-delay: .30s; }

/* Stagger children */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s cubic-bezier(.2,.7,.2,1), transform .4s cubic-bezier(.2,.7,.2,1);
}
[data-reveal-stagger].in-view > * { opacity: 1; transform: none; }
[data-reveal-stagger].in-view > *:nth-child(1) { transition-delay: .00s; }
[data-reveal-stagger].in-view > *:nth-child(2) { transition-delay: .05s; }
[data-reveal-stagger].in-view > *:nth-child(3) { transition-delay: .10s; }
[data-reveal-stagger].in-view > *:nth-child(4) { transition-delay: .15s; }
[data-reveal-stagger].in-view > *:nth-child(5) { transition-delay: .20s; }
[data-reveal-stagger].in-view > *:nth-child(6) { transition-delay: .25s; }
[data-reveal-stagger].in-view > *:nth-child(7) { transition-delay: .30s; }
[data-reveal-stagger].in-view > *:nth-child(8) { transition-delay: .35s; }
[data-reveal-stagger].in-view > *:nth-child(9) { transition-delay: .40s; }

/* === Marquee === */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex: none; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === Card hover lift === */
.lift {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1), border-color .25s ease;
}
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(13,13,18,.10), 0 6px 16px rgba(13,13,18,.06);
}

/* === Button glow on hover === */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, background .2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 38px rgba(124,92,255,.45), 0 4px 12px rgba(124,92,255,.30);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-dark, .btn-ghost {
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, background .2s ease, border-color .2s ease;
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,13,18,.20); }
.btn-ghost:hover { transform: translateY(-2px); }

/* === Hero glow === */
.hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 80%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(124,92,255,.18), transparent 70%),
    radial-gradient(closest-side at 70% 30%, rgba(167,139,250,.14), transparent 70%),
    radial-gradient(closest-side at 50% 80%, rgba(255,200,220,.10), transparent 70%);
  filter: blur(20px);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -2%) scale(1.04); }
  100% { transform: translate(-2%, 2%) scale(1.02); }
}

/* === Floating device === */
.float-y { animation: float-y 6s ease-in-out infinite; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* === FAQ icon rotate (smoother) === */
.faq-q .icon { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.faq-item.open .faq-q .icon { transform: rotate(180deg); }
.faq-a {
  transition: max-height .45s cubic-bezier(.2,.7,.2,1);
}

/* === Testimonial slider === */
.testi-slider {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.testi-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.testi-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}
.testi-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.testi-arrow {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: white;
  color: var(--ink-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all .2s ease;
}
.testi-arrow:hover {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.testi-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-500);
  min-width: 60px;
  text-align: center;
}

/* === Magnetic / Header shrink === */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(13,13,18,.06);
}
.site-header.scrolled .container { height: 72px; }

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > *, .marquee-track, .float-y, .hero-glow {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}