/* ============================================
   Sea Wolf Solver - Modern SaaS Styles
   Premium Blue-Indigo Theme
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS Custom Properties - Color System
   ============================================ */
:root {
  /* Primary Colors - Indigo */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  /* Accent Colors - Sky Blue */
  --accent-400: #38bdf8;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
  --accent-700: #0369a1;

  /* Secondary Colors - Violet */
  --secondary-500: #8b5cf6;
  --secondary-600: #7c3aed;
  --secondary-700: #6d28d9;

  /* Pink Accent */
  --pink-500: #ec4899;
  --pink-600: #db2777;

  /* Dark Colors */
  --dark-800: #1e293b;
  --dark-900: #0f172a;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Glow Effects */
  --glow-primary: 0 0 30px rgba(99, 102, 241, 0.6);
  --glow-accent: 0 0 30px rgba(14, 165, 233, 0.6);
  --glow-secondary: 0 0 30px rgba(139, 92, 246, 0.6);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Navigation Bar - Glassmorphism
   ============================================ */
.nav-glass {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.nav-logo-container {
  transition: all 0.3s ease;
}

.nav-logo-container:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-600), var(--secondary-600));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Menu Animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 500px;
}

/* ============================================
   Hero Section - Gradient Background
   ============================================ */
.hero-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--primary-600) 100%);
  position: relative;
  overflow: hidden;
}

/* Animated Gradient Orbs */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
  will-change: transform;
}

.gradient-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-400), transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--secondary-500), transparent);
  top: 50%;
  right: -175px;
  animation-delay: 7s;
}

.gradient-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-500), transparent);
  bottom: -150px;
  left: 30%;
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--primary-600), var(--secondary-600), var(--pink-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Badge with Glassmorphism */
.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Product Image Glow */
.product-image-glow {
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.product-image-glow:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.4);
}

/* ============================================
   Feature Cards - Glassmorphism
   ============================================ */
.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.85);
}

.feature-card img {
  transition: all 0.3s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

/* ============================================
   CTA Buttons - Glow Effects
   ============================================ */
.cta-button {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--secondary-700) 100%);
}

.cta-button-secondary {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ============================================
   Advantage Section - Dark with Glow
   ============================================ */
.advantage-card {
  background: linear-gradient(135deg, var(--dark-800) 0%, var(--dark-900) 100%);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.advantage-card:hover {
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

/* ============================================
   Comparison Table Enhancement
   ============================================ */
.comparison-table {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
  background: linear-gradient(to right, var(--primary-900), var(--primary-700), var(--primary-600));
}

.comparison-table tbody tr {
  transition: all 0.3s ease;
}

.comparison-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
  transform: scale(1.005);
}

.checkmark-icon {
  display: inline-flex;
  animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.comparison-badge {
  transition: all 0.3s ease;
}

.comparison-badge:hover {
  transform: scale(1.05);
}

/* ============================================
   Phase Breakdown Circles
   ============================================ */
.phase-circle {
  transition: all 0.3s ease;
}

.phase-circle:hover {
  transform: scale(1.1) rotate(5deg);
}

.phase-circle-active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.6);
  }
}

/* ============================================
   Social Proof Section
   ============================================ */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.stat-number {
  background: linear-gradient(to right, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonial-card {
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.testimonial-card:hover {
  border-left-color: var(--primary-600);
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.animate-fade-in.animate-in {
  opacity: 1;
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.animate-in > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.animate-in > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.animate-in > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.animate-in > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.animate-in > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.animate-in > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Counter Animation
   ============================================ */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Floating Badge Animation
   ============================================ */
.floating-badge {
  animation: floating 3s ease-in-out infinite;
}

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

/* ============================================
   Mesh Gradient Background
   ============================================ */
.mesh-gradient {
  background: 
    radial-gradient(at 27% 37%, var(--primary-500) 0px, transparent 50%),
    radial-gradient(at 97% 21%, var(--secondary-500) 0px, transparent 50%),
    radial-gradient(at 52% 99%, var(--pink-500) 0px, transparent 50%),
    radial-gradient(at 10% 29%, var(--accent-500) 0px, transparent 50%),
    radial-gradient(at 90% 85%, var(--primary-600) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: meshMove 15s ease infinite;
}

@keyframes meshMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ============================================
   Icon Animations
   ============================================ */
.icon-bounce:hover {
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(-5px);
  }
  75% {
    transform: translateY(-7px);
  }
}

.icon-spin-hover:hover {
  animation: spin 0.6s ease-in-out;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
  .gradient-orb {
    filter: blur(60px);
    opacity: 0.3;
  }
  
  .feature-card:hover {
    transform: translateY(-4px);
  }
  
  .comparison-table tbody tr:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Loading State
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-300) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.blur-backdrop {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .nav-glass,
  .cta-button,
  .gradient-orb,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}
