/* 
 * AI - Main Stylesheet
 * Last updated: May 7, 2025
 * Innovative cutting-edge design
 */

/* ===== ROOT VARIABLES ===== */
:root {
  /* Core colors - innovative cyberpunk palette */
  --color-primary: #00E5FF;
  --color-secondary: #FF00E5;
  --color-accent: #FFE500;
  --color-dark: #0B0D1B;
  --color-darker: #05071A;
  --color-light: #F0F5FF;
  
  /* UI Elements */
  --color-background: var(--color-dark);
  --color-text: var(--color-light);
  --color-header: rgba(5, 7, 26, 0.7);
  --color-border: var(--color-primary);
  
  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, #00E5FF 0%, #00A3FF 50%, #0051FF 100%);
  --gradient-accent: linear-gradient(135deg, #FF00E5 0%, #8A00FF 50%, #0051FF 100%);
  --gradient-dark: linear-gradient(135deg, rgba(5, 7, 26, 0.95) 0%, rgba(11, 13, 27, 0.95) 100%);
  
  /* Typography */
  --font-primary: 'Rajdhani', sans-serif;
  --font-secondary: 'JetBrains Mono', monospace;
  --font-size-base: clamp(16px, 1.8vw, 18px);
  --line-height-base: 1.6;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-medium: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  --transition-slow: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  
  /* Spacing */
  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1rem);
  --space-md: clamp(1.5rem, 3vw, 2rem);
  --space-lg: clamp(2.5rem, 5vw, 4rem);
  --space-xl: clamp(4rem, 8vw, 6rem);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-small: 0 2px 10px rgba(0, 229, 255, 0.15);
  --shadow-medium: 0 4px 20px rgba(0, 229, 255, 0.2);
  --shadow-large: 0 10px 40px rgba(0, 229, 255, 0.3);
  
  /* Z-indexes */
  --z-header: 100;
  --z-menu: 200;
  --z-modal: 300;
  --z-top: 1000;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-dark);
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-dark);
  background-image: radial-gradient(circle at top right, rgba(0, 229, 255, 0.15), transparent 70%),
                    radial-gradient(circle at bottom left, rgba(255, 0, 229, 0.1), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--transition-medium);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  margin-bottom: var(--space-md);
}

.code-text {
  font-family: var(--font-secondary);
  color: var(--color-primary);
}

/* ===== CUTTING-EDGE HEADER ===== */
.cutting-edge-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 7, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  transition: none; /* Removed transitions */
  will-change: auto; /* Removed will-change */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* Matrix network background */
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
}

/* Remove transition class since we don't want animations */
.header-hidden {
  transition: none;
}

.header-scrolled {
  background: rgba(5, 7, 26, 0.95);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  /* Keep the matrix pattern on scroll */
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
}

.mobile-optimized {
  /* Reduce backdrop-filter for better performance on mobile */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Slightly more opaque background for better readability on mobile */
  background: rgba(5, 7, 26, 0.3);
  /* Keep the matrix pattern on mobile */
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.1) 1px, transparent 1px);
  background-size: 15px 15px; /* Smaller grid for mobile */
  background-position: center center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--space-md);
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.ai-logo-square {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 0;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.ai-logo-square::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.ai-logo-square:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.ai-logo-square:hover::before {
  opacity: 0.2;
}

.ai-logo-square span {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-primary);
  transition: color var(--transition-medium);
}

.ai-logo-square:hover span {
  color: var(--color-light);
}

/* Beta Tag */
.beta-tag {
  display: inline-block;
  padding: 2px 6px;
  background: var(--color-secondary);
  color: var(--color-dark);
  font-family: var(--font-secondary);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  margin-left: var(--space-xs);
  letter-spacing: 0.05em;
  transform: translateY(-10px);
  box-shadow: 0 2px 8px rgba(255, 0, 229, 0.4);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-item {
  position: relative;
}

.nav-item a {
  position: relative;
  display: inline-block;
  color: var(--color-light);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.nav-item a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
}

.nav-item a:hover {
  color: var(--color-primary);
}

.nav-item a:hover::after {
  width: 100%;
}

/* Mobile touch state for simpler mobile interactions */
.nav-item.touch-active a {
  color: var(--color-primary);
  transform: scale(1.05);
}

.nav-item.touch-active a::after {
  width: 100%;
}

/* Mobile specific styles */
.is-mobile .menu-trigger {
  /* Larger touch target on mobile */
  padding: 8px;
}

.is-mobile .nav-item a {
  font-size: 1.2rem; /* Larger text for easier tapping */
  padding: 12px 8px; /* Larger touch target */
}

.is-mobile.menu-open {
  overflow: hidden; /* Prevent scrolling when menu is open */
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  color: var(--color-primary);
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -1px 0 var(--color-secondary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -1px 0 var(--color-accent);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(27px, 9999px, 54px, 0);
  }
  4% {
    clip: rect(62px, 9999px, 64px, 0);
  }
  8% {
    clip: rect(81px, 9999px, 36px, 0);
  }
  12% {
    clip: rect(8px, 9999px, 5px, 0);
  }
  16% {
    clip: rect(75px, 9999px, 46px, 0);
  }
  20% {
    clip: rect(25px, 9999px, 57px, 0);
  }
  24% {
    clip: rect(76px, 9999px, 84px, 0);
  }
  28% {
    clip: rect(36px, 9999px, 33px, 0);
  }
  32% {
    clip: rect(68px, 9999px, 16px, 0);
  }
  36% {
    clip: rect(81px, 9999px, 71px, 0);
  }
  40% {
    clip: rect(25px, 9999px, 81px, 0);
  }
  44% {
    clip: rect(20px, 9999px, 64px, 0);
  }
  48% {
    clip: rect(45px, 9999px, 62px, 0);
  }
  52% {
    clip: rect(89px, 9999px, 73px, 0);
  }
  56% {
    clip: rect(21px, 9999px, 45px, 0);
  }
  60% {
    clip: rect(82px, 9999px, 48px, 0);
  }
  64% {
    clip: rect(30px, 9999px, 14px, 0);
  }
  68% {
    clip: rect(37px, 9999px, 31px, 0);
  }
  72% {
    clip: rect(50px, 9999px, 42px, 0);
  }
  76% {
    clip: rect(41px, 9999px, 11px, 0);
  }
  80% {
    clip: rect(57px, 9999px, 14px, 0);
  }
  84% {
    clip: rect(84px, 9999px, 43px, 0);
  }
  88% {
    clip: rect(8px, 9999px, 42px, 0);
  }
  92% {
    clip: rect(53px, 9999px, 82px, 0);
  }
  96% {
    clip: rect(13px, 9999px, 23px, 0);
  }
  100% {
    clip: rect(34px, 9999px, 46px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(78px, 9999px, 39px, 0);
  }
  4% {
    clip: rect(47px, 9999px, 15px, 0);
  }
  8% {
    clip: rect(37px, 9999px, 82px, 0);
  }
  12% {
    clip: rect(62px, 9999px, 11px, 0);
  }
  16% {
    clip: rect(80px, 9999px, 68px, 0);
  }
  /* ...continue with different values... */
  100% {
    clip: rect(83px, 9999px, 11px, 0);
  }
}

/* Menu Trigger */
.menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: var(--z-menu);
  margin-left: var(--space-sm);
}

.menu-trigger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-trigger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-trigger.active span:nth-child(2) {
  opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-xl) 0;
  padding-top: calc(var(--space-xl) + 70px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-md);
  color: var(--color-light);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0; /* Changed from 0.8 to 0 to completely hide it */
  display: none; /* Added to ensure it's completely hidden and doesn't take up resources */
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
  color: var(--color-darker);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.2);
  color: var(--color-light);
}

/* ===== SECTIONS ===== */
section {
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-md);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== FEATURES SECTION ===== */
.features {
  background: var(--color-darker);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 229, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: rgba(11, 13, 27, 0.6);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--gradient-primary);
  transition: height var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(0, 229, 255, 0.3);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: all var(--transition-medium);
}

.feature-card:hover .feature-icon {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: scale(1.1);
}

/* Feature Icons */
.icon-brain::before,
.icon-fingerprint::before,
.icon-evolution::before {
  display: inline-block;
  content: "";
  width: 32px;
  height: 32px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.icon-brain::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z'/%3E%3Cpath d='M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z'/%3E%3C/svg%3E");
}

.icon-fingerprint::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12C2 6.5 6.5 2 12 2a10 10 0 0 1 8 4'/%3E%3Cpath d='M5 19.5C5.5 18 6 15 6 12c0-1.34.22-2.64.64-3.84'/%3E%3Cpath d='M17.71 11.18A10 10 0 0 0 17 6'/%3E%3Cpath d='M7.92 7.32A7.5 7.5 0 0 1 12 6a7.5 7.5 0 0 1 6.58 11.15'/%3E%3Cpath d='M12.5 6.5a5 5 0 0 1 5 5 5 5 0 0 1-.13 1.14'/%3E%3Cpath d='M7.2 13a5 5 0 0 0 9.47 1.18'/%3E%3Cpath d='M22 12c0 1.34-.22 2.64-.64 3.84'/%3E%3Cpath d='M19 19.5c-.5-1.5-1-4.5-1-7.5'/%3E%3Cpath d='M7.6 12.5a2.5 2.5 0 0 1 4.99-.64'/%3E%3C/svg%3E");
}

.icon-evolution::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v5'/%3E%3Cpath d='m19.071 4.929-3.535 3.535'/%3E%3Cpath d='M22 12h-5'/%3E%3Cpath d='m19.071 19.071-3.535-3.535'/%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M7.464 15.536 3.93 19.07'/%3E%3Cpath d='M2 12h5'/%3E%3Cpath d='M7.464 8.464 3.93 4.93'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.feature-card:hover .icon-brain::before,
.feature-card:hover .icon-fingerprint::before,
.feature-card:hover .icon-evolution::before {
  filter: brightness(0) invert(1);
}

.feature-title {
  margin-bottom: var(--space-xs);
  font-size: 1.4rem;
}

/* ===== INTERACTIVE STEPS ===== */
.interactive-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: rgba(11, 13, 27, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 229, 255, 0.1);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.step-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: var(--shadow-small);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-primary);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-medium);
}

.step-item:hover .step-number {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: scale(1.1);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
  color: var(--color-primary);
}

/* ===== PRINCIPLE METER ===== */
.principle-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.principle-meter {
  width: 100%;
  height: 6px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== CONTACT FORM STAGES ===== */
.form-stages {
  margin-bottom: var(--space-md);
}

.stage-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--space-md);
  position: relative;
}

.stage-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 229, 255, 0.1);
  transform: translateY(-50%);
  z-index: 0;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.stage-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(11, 13, 27, 0.6);
  color: var(--color-text);
  border: 2px solid rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  transition: all var(--transition-medium);
}

.stage.active .stage-number {
  background: var(--color-primary);
  color: var(--color-dark);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.stage-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition-medium);
}

.stage.active .stage-label {
  color: var(--color-primary);
  font-weight: 600;
}

.form-stage-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-medium);
}

.form-stage-content.hidden {
  display: none;
}

/* ===== FLOATING LABELS ===== */
.floating-label {
  position: relative;
  margin-bottom: var(--space-md);
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: var(--space-sm);
  padding-top: calc(var(--space-sm) + 10px);
  background: rgba(5, 7, 26, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
  color: var(--color-light);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.floating-label label {
  position: absolute;
  top: 50%;
  left: var(--space-sm);
  transform: translateY(-50%);
  color: rgba(240, 245, 255, 0.6);
  pointer-events: none;
  transition: all var(--transition-fast);
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label input:not(:placeholder-shown),
.floating-label textarea:not(:placeholder-shown) {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2);
  padding-top: calc(var(--space-sm) + 10px);
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 25%;
  font-size: 0.75rem;
  color: var(--color-primary);
}

.floating-label textarea {
  min-height: 150px;
  resize: vertical;
}

.floating-label textarea + label {
  top: var(--space-sm);
  transform: none;
}

.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: 15%;
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium);
}

.floating-label input:focus ~ .focus-border,
.floating-label textarea:focus ~ .focus-border {
  width: 100%;
}

/* ===== INTEREST SELECTOR ===== */
.interest-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.interest-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  background: rgba(11, 13, 27, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
}

.interest-option:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: var(--shadow-small);
}

.interest-option.selected {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.interest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 50%;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: all var(--transition-medium);
}

.interest-option:hover .interest-icon,
.interest-option.selected .interest-icon {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: scale(1.1);
}

.interest-option span {
  font-weight: 500;
  transition: all var(--transition-fast);
}

.interest-option:hover span,
.interest-option.selected span {
  color: var(--color-primary);
}

/* ===== CONSENT OPTION ===== */
.consent-option {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: var(--space-xs) 0;
}

.consent-option input[type="checkbox"] {
  position: relative;
  width: 20px;
  height: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: rgba(11, 13, 27, 0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.consent-option input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.consent-option input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-dark);
  font-size: 0.9rem;
  font-weight: bold;
}

.consent-option label {
  font-size: 0.9rem;
  cursor: pointer;
}

/* ===== FORM BUTTONS ===== */
.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-darker);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  position: relative;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.footer-column h4 {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 229, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-dark);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
  }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  .interest-selector {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .stage-indicator {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 768px) {
  .stage-label {
    display: none;
  }
  
  .interest-selector {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .form-buttons button {
    width: 100%;
  }
  
  .step-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .step-number {
    margin-bottom: var(--space-xs);
  }
}

@media (max-width: 576px) {
  .interest-selector {
    grid-template-columns: 1fr;
  }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shine 3s infinite linear;
  -webkit-background-clip: text;
  background-clip: text;
}

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

@media (max-width: 992px) {
  .main-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(5, 7, 26, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(0, 229, 255, 0.1);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
  }
  
  .is-mobile .main-navigation {
    /* Faster transition on mobile for better touch responsiveness */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .main-navigation.active {
    transform: translateX(0);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-xl);
  }
  
  .nav-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(var(--i, 0) * 0.05s);
  }
  
  .main-navigation.active .nav-item {
    opacity: 1;
    transform: translateY(0);
  }
  
  .menu-trigger {
    display: block;
    position: relative;
    width: 30px;
    height: 22px;
    z-index: 1002;
    cursor: pointer;
  }
  
  .menu-trigger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-light);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
  }
  
  .menu-trigger span:nth-child(1) {
    top: 0px;
  }
  
  .menu-trigger span:nth-child(2) {
    top: 10px;
  }
  
  .menu-trigger span:nth-child(3) {
    top: 20px;
  }
  
  .menu-trigger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
    background: var(--color-primary);
  }
  
  .menu-trigger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }
  
  .menu-trigger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
    background: var(--color-primary);
  }
}

@media (max-width: 576px) {
  .main-navigation {
    width: 85%;
  }
  
  .is-mobile .nav-list {
    gap: var(--space-lg); /* Increased spacing for better touch interaction */
  }
  
  .is-mobile .nav-item a {
    font-size: 1.25rem; /* Even larger text on small mobile devices */
    padding: 15px 10px; /* Larger touch target */
  }
  
  /* Reduce animation complexity on small screens */
  .is-mobile .glitch-text::before,
  .is-mobile .glitch-text::after {
    animation-duration: 4s; /* Slower animations use less CPU */
  }
}

/* ===== COMPARISON SECTION ===== */
.comparison {
  padding: var(--space-xl) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.comparison-table {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-large);
  background: rgba(15, 20, 40, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.1);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-header {
  background: rgba(0, 0, 0, 0.3);
}

.comparison-cell {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comparison-feature {
  border-right: 1px solid rgba(0, 229, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.comparison-memorial {
  border-right: 1px solid rgba(0, 229, 255, 0.1);
  position: relative;
}

.comparison-memorial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(150, 150, 150, 0.05);
  z-index: -1;
}

.comparison-agentic {
  position: relative;
}

.comparison-agentic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 229, 255, 0.05);
  z-index: -1;
}

.comparison-icon {
  margin-bottom: var(--space-sm);
  font-size: 2rem;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
}

.comparison-memorial .comparison-icon {
  color: #aaa;
  background: rgba(100, 100, 100, 0.1);
  border: 1px solid rgba(150, 150, 150, 0.3);
}

.comparison-agentic .comparison-icon {
  color: var(--color-primary);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.comparison-cell h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.comparison-cell .subtitle {
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.comparison-memorial h3 {
  color: #ddd;
}

.comparison-agentic h3 {
  color: var(--color-primary);
}

.comparison-feature h4 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-light);
}

.feature-indicator {
  height: 6px;
  width: 100%;
  margin-top: var(--space-xs);
  border-radius: var(--radius-full);
  background: rgba(50, 50, 50, 0.3);
  position: relative;
  overflow: hidden;
}

.feature-indicator.limited::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #888, #aaa);
  border-radius: var(--radius-full);
}

.feature-indicator.advanced::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 90%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

.comparison-cta {
  text-align: center;
  margin: var(--space-xl) 0 var(--space-md);
}

.comparison-cta p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

@media (max-width: 768px) {
  .comparison-row {
    grid-template-columns: 1fr;
  }
  
  .comparison-feature, 
  .comparison-memorial {
    border-right: none;
    border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  }
  
  .comparison-feature {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-sm);
  }
  
  .comparison-cell h3 {
    font-size: 1.3rem;
  }
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: var(--space-xl) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.pricing-card {
  background: rgba(15, 20, 40, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.1);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-large);
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-header {
  padding: var(--space-md);
  text-align: center;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.pricing-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-size: 2rem;
  color: var(--color-primary);
}

.pricing-card.featured .pricing-icon {
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.6);
}

.pricing-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: var(--color-light);
}

.pricing-header .subtitle {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: var(--space-sm);
}

.availability-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.availability-tag.available {
  background: rgba(0, 200, 83, 0.15);
  border: 1px solid rgba(0, 200, 83, 0.3);
  color: #00c853;
}

.availability-tag.coming-soon {
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #ffc107;
}

.pricing-price {
  padding: var(--space-md);
  text-align: center;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.pricing-price .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1.2;
}

.pricing-price .type {
  font-size: 0.9rem;
  opacity: 0.7;
}

.pricing-features {
  padding: var(--space-md);
}

.pricing-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pricing-features li {
  padding: var(--space-xs) 0;
  display: flex;
  align-items: flex-start;
  line-height: 1.4;
}

.pricing-features li i {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-right: var(--space-xs);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-action {
  padding: var(--space-md);
  text-align: center;
}

.pricing-note {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.note-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  margin-right: var(--space-md);
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.pricing-note p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 992px) {
  .pricing-tiers {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .pricing-card.featured {
    transform: scale(1);
    order: 3;
  }
  
  .pricing-card:nth-child(1) {
    order: 1;
  }
  
  .pricing-card:nth-child(2) {
    order: 2;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
}

/* ===== CASE STUDIES ===== */
.case-studies {
  margin: var(--space-lg) 0;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: rgba(15, 20, 40, 0.7);
  margin-bottom: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: var(--shadow-medium);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  padding: var(--space-md);
}

.case-study-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

.case-study-icon {
  display: inline-block;
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.case-study-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.case-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  align-self: flex-start;
}

.case-study-content h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  color: var(--color-light);
}

.case-study-content p {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.case-study-content strong {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .case-study-card {
    text-align: left;
  }
  
  .case-tag {
    align-self: flex-start;
  }
}

/* ===== POLICY MODALS ===== */
.policy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 26, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
    overflow-y: auto;
    padding: var(--space-md);
}

.policy-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: var(--color-darker);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.policy-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.policy-text {
    margin-top: var(--space-md);
}

.policy-text h3 {
    color: var(--color-primary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

.policy-text p {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .modal-content {
        padding: var(--space-md);
    }
    
    .policy-text h3 {
        font-size: 1.1rem;
    }
    
    .policy-text p {
        font-size: 0.9rem;
    }
}

/* ===== Fixed FAQ Accordion Styles ===== */
.faq-item {
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-medium);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: var(--space-md);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-medium);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-medium);
}

.faq-item.active .faq-question {
    background-color: rgba(0, 229, 255, 0.1);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium), padding var(--transition-medium);
}

.faq-item.active .faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== WAITLIST FORM ===== */
.waitlist-form {
    margin-top: var(--space-md);
}

.package-selector {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xs);
}

.package-option {
    flex: 1;
    position: relative;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.package-option:hover {
    border-color: var(--color-primary);
    background: rgba(0, 229, 255, 0.05);
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.package-option label {
    display: block;
    cursor: pointer;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.package-option input[type="radio"]:checked + label {
    color: var(--color-primary);
}

.package-option input[type="radio"]:checked ~ .package-option {
    border-color: var(--color-primary);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--shadow-small);
}

.waitlist-success {
    text-align: center;
    padding: var(--space-md);
}

.waitlist-success .success-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 200, 83, 0.15);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: #00c853;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
}

.hidden {
    display: none;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-dark);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3), 0 0 0 2px rgba(0, 229, 255, 0.1);
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  outline: none;
  overflow: hidden;
}

.scroll-top-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 229, 255, 0.8), rgba(45, 160, 240, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-top-btn i {
  position: relative;
  z-index: 2;
  font-size: 1.7rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn i::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--color-dark);
  border-left: 3px solid var(--color-dark);
  transform: translateY(0px) rotate(45deg);
}

.scroll-top-btn:hover::before {
  opacity: 1;
}

.scroll-top-btn:hover i {
  transform: translateY(-5px);
  animation: float-arrow 1.5s infinite alternate ease-in-out;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes float-arrow {
  0% { transform: translateY(-2px); }
  100% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3), 0 0 0 2px rgba(0, 229, 255, 0.1); }
  100% { box-shadow: 0 4px 20px rgba(0, 229, 255, 0.5), 0 0 0 4px rgba(0, 229, 255, 0.2); }
}

@media (max-width: 768px) {
  .scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* ===== 3D SCROLL EFFECTS ===== */
.mobile-3d-section {
  transform-style: preserve-3d;
  perspective: 1500px; /* Increased from 1000px for more dramatic effect */
  will-change: transform, opacity;
  transform-origin: center bottom;
  overflow: visible !important;
  z-index: 1;
  position: relative;
}

.mobile-3d-section:not(.glided-in) {
  transform: translateZ(-150px) translateY(30px) rotateX(12deg); /* Enhanced values for more dramatic effect */
  opacity: 0.4; /* Reduced from 0.6 for more contrast */
  filter: blur(2px); /* Added blur for depth perception */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2); /* Added shadow for 3D feel */
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-3d-section.glided-in {
  transform: translateZ(0) translateY(0) rotateX(0deg);
  opacity: 1;
  filter: blur(0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Additional styling for smoother transitions on adjacent sections */
.mobile-3d-section + .mobile-3d-section {
  transition-delay: 0.1s;
}

/* Add a subtle glowing effect when a section appears */
.mobile-3d-section.glided-in::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, transparent 50%, rgba(255, 0, 229, 0.1) 100%);
  opacity: 0;
  pointer-events: none;
  animation: section-glow 1.5s ease-out forwards;
}

@keyframes section-glow {
  0% { opacity: 0; }
  50% { opacity: 0.8; }
  100% { opacity: 0; }
} 