@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: #07090e;
  color: #e2e8f0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-display {
  font-family: var(--font-display);
}

/* Mouse Follower Glow (Only on desktop devices with hover) */
#cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, rgba(129, 140, 248, 0.08) 35%, rgba(99, 102, 241, 0.02) 60%, transparent 75%);
  filter: blur(45px);
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.1s ease-out;
  opacity: 0;
  will-change: left, top;
}

@media (hover: none) and (pointer: coarse) {
  #cursor-glow {
    display: none !important;
  }
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Background Gradients & Breathing Glows */
.bg-mesh {
  background-image: 
    radial-gradient(at 15% 15%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 85% 20%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 60%, rgba(14, 165, 233, 0.1) 0px, transparent 60%),
    radial-gradient(at 80% 85%, rgba(99, 102, 241, 0.12) 0px, transparent 50%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orb-breathe 8s ease-in-out infinite alternate;
}

.glow-orb-secondary {
  animation: orb-breathe-alt 10s ease-in-out infinite alternate;
}

@keyframes orb-breathe {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
  100% { transform: scale(0.95) translate(-15px, 15px); opacity: 0.6; }
}

@keyframes orb-breathe-alt {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  50% { transform: scale(1.2) translate(-25px, 20px); opacity: 0.9; }
  100% { transform: scale(0.9) translate(15px, -15px); opacity: 0.6; }
}

/* Floating Animations */
.float-gentle {
  animation: float 4s ease-in-out infinite;
}

.float-delayed {
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

/* Immediate Hero Load Entrance Animation */
@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-enter-1 { animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.hero-enter-2 { animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-enter-3 { animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both; }
.hero-enter-4 { animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
.hero-enter-5 { animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both; }

/* Hero Sweeping Light Beam */
@keyframes lightBeamSweep {
  0% { transform: translateX(-100%) rotate(30deg); opacity: 0; }
  25% { opacity: 0.2; }
  50% { opacity: 0.2; }
  100% { transform: translateX(200%) rotate(30deg); opacity: 0; }
}

.hero-light-beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, transparent 40%, rgba(129, 140, 248, 0.15) 50%, transparent 60%);
  animation: lightBeamSweep 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Dynamic Rotating Headline Word */
#hero-rotating-word {
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
  will-change: opacity, transform;
}

.word-out {
  opacity: 0;
  transform: translateY(-10px);
}

.word-in {
  opacity: 1;
  transform: translateY(0);
}

/* Radar Pulse for Status Badge */
.radar-ring {
  position: relative;
}
.radar-ring::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background-color: #34d399;
  animation: radar-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 0;
}
@keyframes radar-pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: rgba(24, 34, 61, 0.82);
  border-color: rgba(129, 140, 248, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -10px rgba(99, 102, 241, 0.25);
}

/* Equal size Pricing Cards with Hover Expansion */
.pricing-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  height: 100%;
}

@media (hover: hover) {
  .pricing-card:hover {
    transform: translateY(-8px) scale(1.035);
    border-color: rgba(129, 140, 248, 0.7);
    background: rgba(22, 32, 58, 0.95);
    box-shadow: 0 20px 45px -12px rgba(99, 102, 241, 0.35), 0 0 25px rgba(168, 85, 247, 0.15);
    z-index: 20;
  }
}

@media (hover: none) {
  .pricing-card:active {
    transform: scale(0.98);
  }
}

.glass-nav {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradient-shift 5s ease infinite alternate;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Grid pattern */
.bg-grid-pattern {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Shimmer on CTA Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 20%, rgba(255, 255, 255, 0.15) 50%, transparent 80%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.75s ease;
}

.btn-shimmer:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* Scroll Entrance Animations (Lively feel) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Accordion transition */
.faq-content {
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-item.active .faq-content {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Micro-interaction on card hover */
.glass-panel:hover .icon-hover-bounce {
  transform: scale(1.15) rotate(4deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07090e;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
