/* ==========================================================================
   OFFIXO — animations.css
   Premium motion design & visual polish layer.
   Loaded after style.css. Uses the same CSS variables / brand palette.
   ========================================================================== */

/* ---------- Scroll-progress shimmer ---------- */
.scroll-progress {
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: shimmer-progress 3s linear infinite;
  box-shadow: 0 0 10px rgba(18,184,212,0.4);
}
@keyframes shimmer-progress {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Cursor glow (desktop only, GPU-accelerated) ---------- */
.cursor-glow {
  position: fixed;
  width: 320px; height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(18,184,212,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%) translate3d(0,0,0);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Ambient floating blobs behind hero & page-hero ---------- */
.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18,184,212,0.09), transparent 70%);
  top: -15%; right: -8%;
  animation: drift-blob 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.07), transparent 70%);
  bottom: -10%; left: -5%;
  animation: drift-blob 22s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 768px) {
  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after {
    display: none;
  }
}
@keyframes drift-blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ---------- Reveal animations (IntersectionObserver-driven) ---------- */
/* Base: elements start hidden, JS adds .is-visible */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }

.anim-fade-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim-fade-down.is-visible { opacity: 1; transform: translateY(0); }

.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-fade-left.is-visible { opacity: 1; transform: translateX(0); }

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-fade-right.is-visible { opacity: 1; transform: translateX(0); }

.anim-scale-in {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim-scale-in.is-visible { opacity: 1; transform: scale(1); }

.anim-clip-up {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s var(--ease);
}
.anim-clip-up.is-visible { clip-path: inset(0 0 0 0); }

/* Stagger delay via CSS custom property --i */
[data-stagger] > * {
  transition-delay: calc(var(--i, 0) * 0.08s);
}

/* ---------- Card hover depth (universal for all card types) ---------- */
.feature-card,
.value-num-card,
.admin-feature-card,
.emp-feature-card,
.price-card:not(.featured),
.impact-card,
.platform-card,
.workflow-support-card,
.leave-item-card,
.value-card,
.benefit-block {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature-card:hover,
.value-num-card:hover,
.emp-feature-card:hover,
.price-card:not(.featured):hover,
.platform-card:hover,
.workflow-support-card:hover,
.leave-item-card:hover,
.value-card:hover,
.benefit-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(18,184,212,0.13);
  border-color: rgba(18,184,212,0.35);
}

/* Icon micro-animation on card hover */
.feature-card:hover .feature-icon,
.admin-feature-card:hover .icon,
.value-num-card:hover .icon,
.emp-feature-card:hover .icon,
.platform-card:hover .platform-icon,
.benefit-block:hover .icon {
  animation: icon-pop 0.5s var(--ease);
}
@keyframes icon-pop {
  0%   { transform: scale(1) rotate(0); }
  40%  { transform: scale(1.18) rotate(-6deg); }
  70%  { transform: scale(0.95) rotate(2deg); }
  100% { transform: scale(1.08) rotate(0); }
}

/* ---------- Magnetic button glow ring ---------- */
.magnetic {
  position: relative;
  will-change: transform;
}
.magnetic::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(18,184,212,0.25), rgba(14,165,233,0.15));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}
.magnetic:hover::before { opacity: 1; }

/* ---------- Navbar shrink on scroll ---------- */
.navbar {
  transition: all 0.35s var(--ease);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(15,23,42,0.06);
}
.navbar.scrolled .nav-inner {
  height: 66px;
}

/* ---------- Price card featured glow ---------- */
.price-card.featured {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card.featured:hover {
  transform: scale(1.04);
  box-shadow: 0 24px 60px rgba(18,184,212,0.25);
}

/* ---------- Compare slider handle glow ---------- */
.compare-handle i {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.compare-handle:hover i,
.compare-handle.dragging i {
  box-shadow: var(--shadow-md), 0 0 20px rgba(18,184,212,0.3);
}

/* ---------- CTA section mesh gradient ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.cta-section > * { position: relative; z-index: 1; }

.detail-cta {
  position: relative;
}

/* ---------- Page transitions (View Transitions API graceful) ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: fade-out 0.2s ease;
}
::view-transition-new(root) {
  animation: fade-in 0.3s ease;
}
@keyframes fade-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Parallax helper (JS sets --parallax-y) ---------- */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ==========================================================================
   FUTURISTIC SAAS UPGRADES
   ========================================================================== */

/* ==========================================================================
   MULTI-LAYER AMBIENT BACKGROUND SYSTEM
   ========================================================================== */

#global-ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
  background-color: transparent;
}

/* Layer 1: Ambient Grid */
.ambient-grid {
  position: absolute;
  inset: -100px;
  background-image: 
    linear-gradient(rgba(18,184,212,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,184,212,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 80%);
  animation: grid-pan 30s linear infinite;
  will-change: transform;
}
@keyframes grid-pan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); }
}

/* Layer 2: Moving Light Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: -10%; left: -10%;
  animation: orbFloat1 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  bottom: -20%; right: -10%;
  animation: orbFloat2 28s ease-in-out infinite alternate-reverse;
}
.orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  top: 40%; left: 40%;
  animation: orbFloat3 18s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, 15vh) scale(1.1); }
  100% { transform: translate(5vw, 30vh) scale(0.9); }
}
@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20vw, -10vh) scale(1.2); }
  100% { transform: translate(-30vw, -25vh) scale(1.0); }
}
@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(0.8); }
  100% { transform: translate(25vw, -20vh) scale(1.3); }
}

/* Layer 3: Moving Data Lines */
.data-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18,184,212,0.4), transparent);
  opacity: 0;
  will-change: transform, opacity;
}

/* Layer 4: Network Particles */
.ambient-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  will-change: transform;
}
.ambient-link {
  position: absolute;
  height: 1px;
  background: rgba(18,184,212,0.15);
  transform-origin: 0 50%;
  will-change: width, transform;
}

/* Layer 5: Global Mouse Flashlight */
.global-flashlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background: radial-gradient(
    600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
    rgba(18,184,212,0.06),
    transparent 80%
  );
  will-change: background;
  transition: background 0.1s;
}

/* Layer 6: Global Scanline */
.global-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background: linear-gradient(180deg, transparent, rgba(18,184,212,0.05) 50%, transparent);
  background-size: 100% 10vh;
  animation: globalScan 12s linear infinite;
}
@keyframes globalScan {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

/* Specific Section Adjustments for the new system */
.cinematic-hero .hero-element {
  opacity: 0;
  transform: translateY(20px);
  animation: cinematic-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--hero-delay, 0s);
}
.cinematic-hero .stagger-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  animation: cinematic-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.cinematic-hero .stagger-words .word:nth-child(1) { animation-delay: calc(var(--hero-delay, 0.3s) + 0.05s); }
.cinematic-hero .stagger-words .word:nth-child(2) { animation-delay: calc(var(--hero-delay, 0.3s) + 0.10s); }
.cinematic-hero .stagger-words .word:nth-child(3) { animation-delay: calc(var(--hero-delay, 0.3s) + 0.15s); }
.cinematic-hero .stagger-words .word:nth-child(4) { animation-delay: calc(var(--hero-delay, 0.3s) + 0.20s); }
.cinematic-hero .stagger-words .word:nth-child(5) { animation-delay: calc(var(--hero-delay, 0.3s) + 0.25s); }

@keyframes cinematic-fade-up {
  0% { opacity: 0; transform: translateY(30px); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Removed old background rules */

/* Admin Stat Card Scanning Highlight */
.admin-stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.admin-stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(18,184,212,0.15) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  z-index: 2;
  pointer-events: none;
}
.admin-stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(18,184,212,0.15);
  border-color: rgba(18,184,212,0.4);
}
.admin-stat-card:hover::after {
  animation: cardSweep 0.8s ease forwards;
}
@keyframes cardSweep {
  100% { transform: translateX(120%); }
}

/* Feature Grid Cursor Spotlight & 3D Tilt */
.admin-feature-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}
.admin-feature-card:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) translateY(-10px) scale(1.025);
  box-shadow: 0 20px 40px rgba(18,184,212,0.15);
  border-color: rgba(18,184,212,0.5);
  z-index: 10;
}
.admin-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(18,184,212,0.15),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.admin-feature-card:hover::before {
  opacity: 1;
}
.admin-feature-card > * {
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

/* Feature Icon Glass Update & Continuous Pulse */
.admin-feature-card .icon, .admin-stat-card .icon {
  position: relative;
  background: rgba(18,184,212,0.08);
  border: 1px solid rgba(18,184,212,0.2);
  box-shadow: inset 0 0 10px rgba(255,255,255,0.6);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-feature-card .icon::after, .admin-stat-card .icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  opacity: 0;
}
.admin-feature-card:hover .icon, .admin-stat-card:hover .icon {
  background: rgba(18,184,212,0.15);
  box-shadow: inset 0 0 15px rgba(255,255,255,0.9), 0 4px 15px rgba(18,184,212,0.25);
  transform: scale(1.15) rotate(5deg);
}
.admin-feature-card:hover .icon::after, .admin-stat-card:hover .icon::after {
  animation: pulseRing 1.5s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* CTA Interactive Particles */
.interactive-cta-section {
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(18,184,212,0.2), transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: cta-pulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes cta-pulse {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* ==========================================================================
   RADIAL ECOSYSTEM (PLATFORM OVERVIEW)
   ========================================================================== */
.radial-ecosystem {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 600px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.radial-center {
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(18,184,212,0.3), inset 0 0 20px rgba(18,184,212,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 2px solid var(--primary);
  flex-direction: column;
}
.radial-center img {
  width: 90px;
  object-fit: contain;
}
.radial-center span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 5px;
  letter-spacing: 0.1em;
}

.radial-pulse, .radial-pulse.delay {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: radarPulse 3s linear infinite;
  pointer-events: none;
}
.radial-pulse.delay { animation-delay: 1.5s; }
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(3); opacity: 0; border-width: 0px; }
}

.radial-orbit {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px dashed rgba(18,184,212,0.3);
  animation: orbitSpin 30s linear infinite;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radial-ecosystem:hover .radial-orbit {
  animation-play-state: paused;
}
.radial-orbit::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(18,184,212,0.15);
  animation: orbitSpin 40s linear infinite reverse;
}

@keyframes orbitSpin {
  100% { transform: rotate(360deg); }
}

.radial-node {
  position: absolute;
  width: 240px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(18,184,212,0.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  /* The counter-rotation prevents the text from going upside down */
  animation: nodeCounterSpin 30s linear infinite;
  transition: transform 0.3s cubic-bezier(.17,.67,.83,.67), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.radial-ecosystem:hover .radial-node {
  animation-play-state: paused;
}
.radial-node:hover {
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(18,184,212,0.2);
  z-index: 20;
}

@keyframes nodeCounterSpin {
  100% { transform: rotate(-360deg); }
}

/* Positioning the 3 nodes at 0, 120, 240 degrees on the 500px circle (r=250px) */
/* Top */
.radial-node.node-1 { top: -60px; left: 130px; }
/* Bottom Right */
.radial-node.node-2 { bottom: 30px; right: -80px; }
/* Bottom Left */
.radial-node.node-3 { bottom: 30px; left: -80px; }

/* Inner card styles overrides */
.radial-node .platform-icon {
  width: 40px; height: 40px;
  font-size: 1.1rem;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(18,184,212,0.4);
}
.radial-node h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary-dark); }
.radial-node ul li { font-size: 0.85rem; margin-bottom: 4px; padding-left: 12px; }
.radial-node ul li::before { top: 6px; width: 4px; height: 4px; }

/* Connecting glowing data lines */
.data-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
  top: 50%; left: 50%;
  margin: -3px 0 0 -3px;
  z-index: 6;
  opacity: 0;
}
.packet-1 { animation: packetShoot1 4s cubic-bezier(.4,0,.2,1) infinite; }
.packet-2 { animation: packetShoot2 4s cubic-bezier(.4,0,.2,1) infinite 1.3s; }
.packet-3 { animation: packetShoot3 4s cubic-bezier(.4,0,.2,1) infinite 2.6s; }

/* Trajectories from center (0,0) to nodes on the 250px radius */
/* Node 1 is at top: (0, -250) */
@keyframes packetShoot1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translate(0, -250px) scale(0.5); opacity: 0; }
  100% { opacity: 0; }
}
/* Node 2 is at bottom right: (216, 125) */
@keyframes packetShoot2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translate(216px, 125px) scale(0.5); opacity: 0; }
  100% { opacity: 0; }
}
/* Node 3 is at bottom left: (-216, 125) */
@keyframes packetShoot3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  20% { opacity: 1; }
  80% { transform: translate(-216px, 125px) scale(0.5); opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 860px) {
  .radial-ecosystem { height: auto; padding: 40px 0; max-width: 100%; display: flex; flex-direction: column; gap: 20px; animation: none; transform: none; perspective: none; }
  .radial-center { position: relative; width: 120px; height: 120px; margin-bottom: 20px; }
  .radial-orbit { position: static; width: auto; height: auto; border: none; animation: none; display: flex; flex-direction: column; gap: 20px; }
  .radial-orbit::before { display: none; }
  .radial-node { position: relative; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; width: 100%; animation: none !important; }
  .data-packet { display: none; }
}

/* ==========================================================================
   COMPARE SLIDER UPGRADES (FUTURISTIC)
   ========================================================================== */
.compare-slider {
  border: 1px solid rgba(18,184,212,0.3) !important;
  box-shadow: 0 10px 40px rgba(18,184,212,0.1) !important;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background: var(--white);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.22,1,.36,1), box-shadow 0.4s ease;
  perspective: 1200px;
}
.compare-slider:hover {
  box-shadow: 0 20px 50px rgba(18,184,212,0.2) !important;
  transform: translateY(-5px);
}
.compare-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18,184,212,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(18,184,212,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Compare Old (Traditional) */
.compare-layer.compare-old {
  background: rgba(248, 250, 252, 0.9) !important;
  backdrop-filter: blur(10px);
}
.compare-layer.compare-old .compare-item {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.compare-layer.compare-old .compare-item:hover {
  transform: translateX(3px);
  border-color: rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.05);
}
.compare-layer.compare-old .compare-item i {
  color: #EF4444;
  opacity: 0.7;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.compare-layer.compare-old .compare-item:hover i {
  opacity: 1;
  transform: scale(1.15) rotate(-5deg);
}

/* Compare New (Offixo) */
.compare-layer.compare-new {
  background: linear-gradient(135deg, rgba(18,184,212,0.95), rgba(8,145,178,0.95)) !important;
  backdrop-filter: blur(10px);
}
.compare-layer.compare-new .compare-col-head {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.2);
}
.compare-layer.compare-new .compare-item {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--white) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.compare-layer.compare-new .compare-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255,255,255,0.5) !important;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.compare-layer.compare-new .compare-item i {
  color: #4ADE80;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-layer.compare-new .compare-item:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Glowing Handle & Divider */
.compare-new-clip {
  position: absolute !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-left: none !important;
  pointer-events: none;
}

/* The actual full-height handle wrapper */
.compare-handle {
  width: 50px !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 10;
}

/* The glowing dividing line */
.compare-handle::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, transparent, var(--primary), transparent) !important;
  animation: dividerGlow 3s ease-in-out infinite alternate;
  box-shadow: 0 0 15px var(--primary);
  transform: translateX(-50%);
}
@keyframes dividerGlow {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* The circular thumb */
.compare-handle i.fa-arrows-left-right, .compare-handle i:not(.fa-chevron-left):not(.fa-chevron-right) {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: var(--white) !important;
  color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(18,184,212,0.2), 0 10px 25px rgba(18,184,212,0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
}

.compare-handle i::after {
  content: 'DRAG';
  position: absolute;
  top: -30px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--primary);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px) translateX(-50%);
  left: 50%;
  transition: all 0.3s ease;
  pointer-events: none;
}
.compare-slider:hover .compare-handle i::after {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}
.compare-handle:hover i, .compare-slider.is-dragging .compare-handle i {
  transform: translate(-50%, -50%) scale(1.15) !important;
  box-shadow: 0 0 0 6px rgba(18,184,212,0.3), 0 12px 30px rgba(18,184,212,0.5) !important;
}

/* Mouse Parallax effect */
.compare-slider > * {
  transition: transform 0.1s ease-out;
}

/* Removed old hero orbs */

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-down, .anim-fade-left, .anim-fade-right,
  .anim-scale-in, .anim-clip-up {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  [data-stagger] > * { transition-delay: 0s !important; }
  .cursor-glow { display: none; }
  .hero::before, .hero::after,
  .page-hero::before, .page-hero::after { animation: none; }
  .scroll-progress { animation: none; background-size: 100% 100%; }
  .magnetic::before { display: none; }
  [data-parallax] { transform: none !important; }
  @view-transition { navigation: none; }
}
