/* ===================================
   CodeZero Landing Page Styles
   Modern, Responsive, Performance-Optimized
   =================================== */

/* CSS Variables for easy theming and consistency */
:root {
  /* Colors - Unique Color Scheme */
  --color-primary: #000000; /* Black */
  --color-primary-dark: #000000;
  --color-primary-light: #333333;
  --color-secondary: #FF0000; /* Red - adds vibrancy */
  --color-secondary-dark: #CC0000;
  --color-accent: #FF3333; /* Light red - complementary to black and red */
  --color-accent-light: #FF6666;
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-light: #94A3B8;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F8FAFC;
  --color-bg-tertiary: #F1F5F9;
  --color-bg-dark: #1E293B;
  --color-bg-accent: #F0FDF4; /* Light green for subtle accents */
  --color-border: #E2E8F0;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* Gradients - More unique and vibrant */
  --gradient-primary: linear-gradient(135deg, #000000 0%, #333333 50%, #FF0000 100%);
  --gradient-secondary: linear-gradient(135deg, #FF3333 0%, #FF6666 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-hero: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-accent: linear-gradient(135deg, #F0FDF4 0%, #E0F2FE 100%);
  --gradient-text: linear-gradient(135deg, #000000 0%, #FF0000 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   Reset & Base Styles
   =================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent horizontal scrolling */
  overflow-x: hidden;
  width: 100%;
  /* Disable elastic overscroll effect */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* Prevent pull-to-refresh on mobile */
  overscroll-behavior-y: contain;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
  width: 100%;
  /* Disable elastic overscroll effect */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  /* Prevent touch actions that cause scrolling issues */
  touch-action: pan-y;
  /* Prevent user from selecting and dragging content */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: text;
  /* Fix for iOS Safari bounce */
  position: relative;
  min-height: 100vh;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100vh;
  touch-action: none;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

strong {
  font-weight: 600;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   Container & Layout
   =================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-4xl) 0;
  position: relative;
}

/* Add unique transition effect between sections */
.section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 60%);
  z-index: 1;
}

/* Remove transition effect for last section */
.cta::after,
.footer::after {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

/* Add unique underline effect to section titles */
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-secondary {
  background: var(--color-bg-accent);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-light);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: white;
  transform: translateY(-2px);
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

.btn:active {
  transform: translateY(0);
}

/* ===================================
   Navigation
   =================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg) 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text-primary);
  text-decoration: none;
  position: relative;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Add unique underline effect to active nav link */
.nav-link.active {
  position: relative;
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
  padding: var(--spacing-4xl) 0;
  overflow: hidden;
  position: relative;
}

/* Add unique geometric shapes in the background */
.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 0, 0, 0.1) 100%);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  z-index: 0;
  animation: morph 15s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  50% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  75% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

.hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  max-width: 800px;
  text-align: center;
  position: relative;
}

/* Add animated underline to hero title */
.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 4px;
  background: var(--gradient-text);
  border-radius: 2px;
  animation: expandWidth 2s ease-out forwards;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 50%;
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  justify-content: center;
  flex-wrap: wrap;
}

/* Add unique button animation for hero */
.hero-cta .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero-cta .btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.hero-cta .btn-primary:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(100, 100);
    opacity: 0;
  }
}


.hero-stats {
  display: flex;
  gap: var(--spacing-2xl);
  padding-top: var(--spacing-2xl);
  border-top: 1px solid var(--color-border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.stat span {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.hero-visual {
  position: relative;
  height: 500px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 50%;
  right: 10%;
  animation-delay: 0.5s;
}

.floating-card.card-3 {
  bottom: 10%;
  left: 20%;
  animation-delay: 1s;
}

.card-icon {
  font-size: var(--font-size-3xl);
}

.card-text {
  font-weight: 600;
  color: var(--color-text-primary);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ===================================
   Features Section
   =================================== */

.features {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Add unique diagonal pattern to features section */
.features::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.feature-card:hover::before {
  transform: translateX(0);
}

/* Add icon animation on hover */
.feature-icon {
  margin-bottom: var(--spacing-lg);
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

/* Add unique text effect to feature titles */
.feature-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.feature-card:hover .feature-title::after {
  width: 100%;
}

.feature-description {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===================================
   Modules Section
   =================================== */

.modules {
  background: var(--color-bg-secondary);
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.module-item {
  display: flex;
  gap: var(--spacing-2xl);
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.module-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-slow);
}

.module-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(8px);
}

.module-item:hover::before {
  transform: scaleY(1);
}

/* Add animation to module number */
.module-number {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 80px;
  transition: transform var(--transition-base);
}

.module-item:hover .module-number {
  transform: scale(1.05);
}

.module-number {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 80px;
}

.module-content {
  flex: 1;
}

.module-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

/* Add unique text effect to module titles */
.module-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--gradient-primary);
  opacity: 0.2;
  border-radius: 4px;
  z-index: -1;
}

.module-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.module-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.module-topics li {
  color: var(--color-text-secondary);
  padding-left: var(--spacing-lg);
  position: relative;
}

.module-topics li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

/* ===================================
   Benefits Section
   =================================== */

.benefits {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Add unique visual elements to benefits section */
.benefits::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--gradient-secondary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.1;
  z-index: 0;
  animation: morph 20s ease-in-out infinite;
}

.benefits-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Add unique visual elements to benefit items */
.benefit-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
  position: relative;
}

.benefit-item::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  opacity: 0.1;
  z-index: -1;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.benefit-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-success);
}

.benefit-item h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.benefit-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

.benefits-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
}

.stat-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-6xl);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

/* ===================================
   Learning Outcomes Section
   =================================== */

.learning-outcomes {
  background: var(--color-bg-secondary);
  position: relative;
  overflow: hidden;
}

/* Add unique wave pattern to outcomes section */
.learning-outcomes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
  background-size: cover;
  z-index: 1;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-4xl);
}

.outcome-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid var(--color-secondary);
}

.outcome-icon {
  margin-bottom: var(--spacing-lg);
}

.outcome-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.outcome-description {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* Trust Indicators */
.trust-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-2xl);
  padding: var(--spacing-3xl);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 2px solid var(--color-secondary);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
}

.trust-item svg {
  flex-shrink: 0;
}

.trust-item p {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

.trust-item strong {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
}

@media (max-width: 768px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .trust-indicators {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl);
  }
}

@media (max-width: 480px) {
  .trust-indicators {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   FAQ Section
   =================================== */

.faq {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Add unique geometric pattern to FAQ section */
.faq::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

/* Create unique alternating layout for FAQ items */
.faq-item:nth-child(odd) {
  margin-right: 20px;
}

.faq-item:nth-child(even) {
  margin-left: 20px;
}

/* Add unique hover effect that resets the alternating layout */
.faq-item:hover {
  margin-left: 0;
  margin-right: 0;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item[open] {
  box-shadow: var(--shadow-lg);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  transition: all var(--transition-base);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--spacing-xl) var(--spacing-lg);
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */

.cta {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Add unique visual elements to CTA section */
.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
  animation: morph 15s ease-in-out infinite;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: white;
  margin-bottom: var(--spacing-lg);
}

.cta-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-2xl);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--color-primary);
}

.cta-buttons .btn-primary:hover {
  background: var(--color-bg-secondary);
}

.cta-buttons .btn-outline {
  border-color: white;
  color: white;
}

.cta-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cta-note {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Footer
   =================================== */

.footer {
  background: linear-gradient(180deg, var(--color-text-primary) 0%, #0a0f1a 100%);
  color: var(--color-text-light);
  padding: var(--spacing-4xl) 0 var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

/* Add subtle geometric pattern overlay */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.15) 0%, transparent 50%);
  z-index: 0;
}

/* Add animated accent line at top */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 350px;
  position: relative;
}

/* Add subtle glow effect to brand section */
.footer-brand::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.footer-logo {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, #ff6666 70%, #ff3333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-base);
  padding: 2px 4px;
}

.footer-logo:hover {
  transform: translateX(5px);
}

.footer-tagline {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: white;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.5px;
}

.footer-description {
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.7;
  font-size: var(--font-size-sm);
}

.footer-links {
  display: contents;
}

.footer-column {
  position: relative;
}

.footer-title {
  color: white;
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
}

/* Add subtle underline to footer titles */
.footer-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.footer-column:hover .footer-title::after {
  width: 100%;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-list li {
  position: relative;
}

.footer-list a {
  color: var(--color-text-light);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  position: relative;
  padding-left: 0;
}

.footer-list a::before {
  content: '→';
  color: var(--color-secondary);
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-base);
  font-size: 0.875rem;
}

.footer-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-list a:hover {
  color: white;
  padding-left: var(--spacing-md);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-xl);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.footer-bottom p {
  margin: 0;
  color: var(--color-text-light);
}

/* Add social links or additional info section to footer bottom */
.footer-social {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.footer-social a {
  color: var(--color-text-light);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  color: white;
  border-color: var(--color-secondary);
  background: rgba(255, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  :root {
    --font-size-6xl: 2.5rem;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 400px;
  }

  .benefits-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-4xl: 3rem;
    --spacing-3xl: 2rem;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: var(--z-modal);
    position: relative;
  }

  /* Position the hamburger button properly when menu is open */
  .mobile-menu-toggle.active {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    flex-direction: column;
    background: white;
    padding: var(--spacing-3xl) var(--spacing-xl);
    padding-top: 80px; /* Space for close button */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-fixed);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    /* Ensure menu scrolls properly */
    overscroll-behavior: contain;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    margin-bottom: var(--spacing-md);
  }

  .nav-menu .nav-link {
    display: block;
    padding: var(--spacing-md);
    font-size: var(--font-size-lg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu .btn {
    width: 100%;
    margin-top: var(--spacing-lg);
  }

  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    /* Don't extend to the right edge - leave space for the menu */
    right: 280px; /* Width of the menu */
    bottom: 0;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: rgba(0, 0, 0, 0.1); /* Reduced opacity to make it less dim */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: calc(var(--z-fixed) - 1);
    /* Remove blur effects that cause the dim and blurry appearance */
    /* backdrop-filter: blur(2px); */
    /* -webkit-backdrop-filter: blur(2px); */
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Animate hamburger to X */
  .mobile-menu-toggle.active .hamburger {
    background: transparent;
  }

  .mobile-menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .mobile-menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .module-item {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .module-number {
    font-size: var(--font-size-3xl);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: var(--font-size-3xl);
  }

  .cta-subtitle {
    font-size: var(--font-size-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-6xl: 2rem;
    --font-size-5xl: 1.5rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: var(--font-size-base);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }
}

/* ===================================
   Animations & Keyframes
   =================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Utility class for fade-in animation */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .navbar,
  .cta,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
