/* ============================================================
   NavRx Homepage FX v3 - Full Experience
   ============================================================ */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.fx-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(56, 189, 248, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  mix-blend-mode: difference;
}

.fx-cursor--hover {
  width: 50px;
  height: 50px;
  border-color: rgba(251, 191, 36, 0.9);
  background: rgba(251, 191, 36, 0.1);
}

.fx-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #fbbf24;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
}

.fx-cursor-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999998;
  transform: translate(-50%, -50%);
  background: rgba(56, 189, 248, 0.4);
}

@media (hover: none) {
  .fx-cursor,
  .fx-cursor-dot,
  .fx-cursor-trail {
    display: none !important;
  }
}

.block-hero {
  overflow: hidden;
  position: relative;
}

.block-hero .hero-image {
  overflow: hidden;
}

.block-hero.design-2 .hero-image img {
  height: calc(100% + 60px) !important;
  min-height: calc(100% + 60px);
  object-fit: cover;
}

.block-hero .hero-content {
  position: relative;
  z-index: 2;
}

.fx-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fx-word {
  display: inline-block;
  overflow: hidden;
  perspective: 600px;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.fx-word-inner {
  display: inline-block;
  will-change: transform, opacity;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
  z-index: 0;
}

.fx-orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(56, 189, 248, 0.08);
  top: -150px;
  right: -150px;
}

.fx-orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.07);
  bottom: -100px;
  left: -100px;
}

.fx-orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(251, 191, 36, 0.05);
  top: 40%;
  left: 30%;
}

.block-large-cards-grid .large-card,
.block-small-cards-grid .small-card {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  transition: box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.large-card:has(a):hover,
.small-card:has(a):hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(56, 189, 248, 0.08);
}

.large-card:has(a),
.small-card:has(a) {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.large-card:has(a)::after,
.small-card:has(a)::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.large-card:has(a):hover::after,
.small-card:has(a):hover::after {
  left: 120%;
}

.fx-counter-active {
  position: relative;
}

.fx-counter-active::after {
  content: "";
  position: absolute;
  inset: -4px -8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(251, 191, 36, 0.15));
  border-radius: 8px;
  opacity: 0;
  animation: fx-counter-pulse 0.8s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

@keyframes fx-counter-pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.95);
  }

  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

.fx-section-line {
  display: block;
  width: 0;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), rgba(251, 191, 36, 0.3), transparent);
  will-change: width;
}

.block-call-to-action .button,
.block-hero .button,
.block-hero a.btn,
.block-call-to-action a.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: fx-ripple-expand 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes fx-ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.block-hero .button::before,
.block-hero a.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--fx-mouse-x, 50%) var(--fx-mouse-y, 50%), rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.block-hero .button:hover::before,
.block-hero a.btn:hover::before {
  opacity: 1;
}

/* CTA button: fill sweep from below (replaces radial gradient fx) */
.block-call-to-action .button::before,
.block-call-to-action a.btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--color-goldenrod);
  opacity: 1;
  transition: height 320ms ease-out;
  z-index: -1;
  pointer-events: none;
}

.block-call-to-action .button:hover::before,
.block-call-to-action a.btn:hover::before {
  height: 100%;
  opacity: 1;
}

.block-trust-logos,
.block-media-content {
  overflow: hidden;
}

.block-media-content img {
  will-change: transform;
}

.fx-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6, #fbbf24);
  z-index: 9999999;
  transform-origin: left;
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-word,
  .fx-word-inner,
  .fx-orb,
  .block-hero::before,
  .fx-scroll-progress,
  .fx-cursor,
  .fx-cursor-dot,
  .fx-cursor-trail,
  .fx-hero-canvas,
  .fx-ripple {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    display: none !important;
  }
}
