*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', sans-serif; overflow-x: hidden; }

/* Scroll progress bar */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #0066FF, #00D4AA); z-index: 9999; width: 0%; transition: width 0.1s linear; }

/* Hero background animation */
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-bg {
  background: linear-gradient(135deg, #0A1628 0%, #0e2845 40%, #0A1628 70%, #0c2240 100%);
  background-size: 600% 600%;
  animation: heroGradient 20s ease infinite;
}

/* Wave animation */
@keyframes waveFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}
.wave-shape { animation: waveFloat 6s ease-in-out infinite; }
.wave-shape-2 { animation: waveFloat 8s ease-in-out infinite reverse; }

/* Hero entrance */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-animate { animation: fadeSlideUp 0.8s ease-out forwards; opacity: 0; }
.hero-animate-delay-1 { animation-delay: 0.15s; }
.hero-animate-delay-2 { animation-delay: 0.3s; }
.hero-animate-delay-3 { animation-delay: 0.45s; }

/* CTA pulse */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  50% { box-shadow: 0 0 20px 6px rgba(0, 212, 170, 0.15); }
}
.cta-pulse { animation: ctaPulse 2.5s ease-in-out infinite; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Nav */
.nav-scrolled { background: rgba(10, 22, 40, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: #00D4AA; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link-active::after { width: 100%; }

/* FAQ */
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 !important; margin: 0 !important; }
.faq-content.open { max-height: var(--faq-height, 500px); padding: 1.5rem !important; }
.faq-chevron { transition: transform 0.3s ease; }
.faq-chevron.open { transform: rotate(180deg); }

/* Floating particles for final CTA */
@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
  25% { transform: translateY(-30px) translateX(10px) scale(1.1); opacity: 0.5; }
  50% { transform: translateY(-10px) translateX(-15px) scale(0.9); opacity: 0.4; }
  75% { transform: translateY(-40px) translateX(5px) scale(1.05); opacity: 0.3; }
}
.float-particle { animation: floatParticle 8s ease-in-out infinite; border-radius: 50%; position: absolute; background: rgba(0, 212, 170, 0.15); }

/* How it works connector */
.step-connector { position: relative; }
.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0066FF, #00D4AA);
  opacity: 0.3;
}

/* Cards */
.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card-hover-scale { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-hover-scale:hover { transform: scale(1.03); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.card-glow:hover { box-shadow: 0 0 30px rgba(0, 212, 170, 0.15); }

/* Active button press */
.btn-press:active { transform: scale(0.95); }
.btn-press { transition: transform 0.15s ease, box-shadow 0.3s ease; }

/* Mobile menu */
.mobile-menu { transform: translateX(100%); transition: transform 0.35s ease; background: rgba(10, 22, 40, 0.98); }
.mobile-menu.open { transform: translateX(0); }

/* Hamburger animation */
.hamburger span { transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Mode card glow */
.mode-card-manual:hover { box-shadow: 0 0 30px rgba(0, 102, 255, 0.12); border-color: rgba(0, 102, 255, 0.3); }
.mode-card-auto:hover { box-shadow: 0 0 30px rgba(0, 212, 170, 0.15); border-color: rgba(0, 212, 170, 0.3); }

/* Pain cards amber hover */
.pain-card:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 20px 40px rgba(245, 158, 11, 0.08); }

/* Lightbox */
.lightbox-trigger { cursor: zoom-in; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 900; pointer-events: none; transition: background 0.35s ease; }
.lightbox-overlay.active { background: rgba(0,0,0,0.85); pointer-events: all; cursor: zoom-out; }
.lightbox-img { position: fixed; z-index: 901; object-fit: contain; cursor: zoom-out; border-radius: 8px; display: none; box-shadow: 0 32px 80px rgba(0,0,0,0.5); }
