/* Base Styles */
:root {
  /* Primary colors */
  --color-primary: #8B5CF6; /* ClockPlan Purple */
  --color-primary-light: #C4B5FF;
  --color-primary-dark: #7C3AED;
  --color-primary-glow: rgba(139, 92, 246, 0.5); /* For neon glow effects */
  --color-primary-rgb: 139, 92, 246; /* RGB values for rgba() functions */
  
  /* Light Mode Colors */
  --color-background: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-surface-elevated: #FFFFFF;
  --color-surface-glass: rgba(255, 255, 255, 0.85);
  --color-border: #E2E8F0;
  --color-text-primary: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-tertiary: #94A3B8;
  --color-text-inverse: #FFFFFF; /* For text on dark backgrounds */
  
  /* RGB versions for rgba usage */
  --surface-rgb: 248, 250, 252;
  --surface-elevated-rgb: 255, 255, 255;
  --primary-rgb: 139, 92, 246;
  --color-border-rgb: 226, 232, 240;
  
  /* Dark Mode Colors */
  --color-dark-background: #0F172A;
  --color-dark-surface: #1E293B;
  --color-dark-surface-elevated: #334155;
  --color-dark-surface-glass: rgba(30, 41, 59, 0.85);
  --color-dark-border: #475569;
  --color-dark-text-primary: #F1F5F9;
  --color-dark-text-secondary: #CBD5E1;
  --color-dark-text-tertiary: #94A3B8;
  
  /* Functional colors */
  --color-success: #25C770;
  --success-rgb: 37, 199, 112;
  --color-warning: #FFB114;
  --color-error: #FF4A55;
  --color-info: #4ABEFF;
  
  /* Project Color Palette */
  --color-project-purple: #8B5CF6;
  --color-project-orange: #F97316;
  --color-project-red: #EF4444;
  --color-project-green: #10B981;
  --color-project-blue: #3B82F6;
  --color-project-pink: #EC4899;
  --color-project-yellow: #F59E0B;
  --color-project-indigo: #6366F1;
  
  /* Font families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;
  
  /* Font Sizes */
  --text-display-large: 2.5rem;   /* 40px */
  --text-display-medium: 2rem;    /* 32px */
  --text-display-small: 1.75rem;  /* 28px */
  --text-heading-1: 1.5rem;       /* 24px */
  --text-heading-2: 1.25rem;      /* 20px */
  --text-heading-3: 1rem;         /* 16px */
  --text-body-large: 1rem;        /* 16px */
  --text-body-medium: 0.875rem;   /* 14px */
  --text-body-small: 0.75rem;     /* 12px */
  --text-label: 0.75rem;          /* 12px */
  --text-timer-small: 1.5rem;     /* 24px */
  --text-timer-medium: 2.5rem;    /* 40px */
  --text-timer-large: 3.5rem;     /* 56px */
  
  /* Line Heights */
  --line-display-large: 3rem;     /* 48px */
  --line-display-medium: 2.5rem;  /* 40px */
  --line-display-small: 2.25rem;  /* 36px */
  --line-heading-1: 2rem;         /* 32px */
  --line-heading-2: 1.75rem;      /* 28px */
  --line-heading-3: 1.5rem;       /* 24px */
  --line-body-large: 1.5rem;      /* 24px */
  --line-body-medium: 1.25rem;    /* 20px */
  --line-body-small: 1rem;        /* 16px */
  --line-label: 1rem;             /* 16px */
  --line-timer-small: 2rem;       /* 32px */
  --line-timer-medium: 3rem;      /* 48px */
  --line-timer-large: 4rem;       /* 64px */
  
  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;
  
  /* Box 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 70px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

/* Theme Settings */
html.dark {
  --color-background: var(--color-dark-background);
  --color-surface: var(--color-dark-surface);
  --color-surface-elevated: var(--color-dark-surface-elevated);
  --color-surface-glass: var(--color-dark-surface-glass);
  --color-border: var(--color-dark-border);
  --color-text-primary: var(--color-dark-text-primary);
  --color-text-secondary: var(--color-dark-text-secondary);
  --color-text-tertiary: var(--color-dark-text-tertiary);
  
  /* Update RGB values for dark mode */
  --surface-rgb: 30, 41, 59;
  --surface-elevated-rgb: 51, 65, 85;
  --color-border-rgb: 71, 85, 105;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--weight-regular);
  font-size: var(--text-body-medium);
  line-height: var(--line-body-medium);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  margin-bottom: var(--space-sm);
  color: var(--color-neutral-900);
}

h1 {
  font-size: var(--text-heading-1);
  font-weight: var(--weight-bold);
  line-height: var(--line-heading-1);
}

h2 {
  font-size: var(--text-heading-2);
  font-weight: var(--weight-bold);
  line-height: var(--line-heading-2);
}

h3 {
  font-size: var(--text-heading-3);
  font-weight: var(--weight-semibold);
  line-height: var(--line-heading-3);
}

h4 {
  font-size: var(--text-body-large);
  font-weight: var(--weight-semibold);
  line-height: var(--line-body-large);
}

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

button {
  cursor: pointer;
  font-family: var(--font-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 15px 0 rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
  box-shadow: 0 0 25px 0 var(--color-primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px 0 rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.btn-text {
  background-color: transparent;
  color: var(--color-primary);
  padding: 0;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.btn-text:hover {
  color: var(--color-primary-dark);
}

.btn-text:hover::after {
  width: 100%;
}

.btn-large {
  padding: var(--space-sm) var(--space-lg);
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  background-color: var(--color-surface-glass);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

.light-logo {
  display: block;
}

.dark-logo {
  display: none;
}

html.dark .light-logo {
  display: none;
}

html.dark .dark-logo {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.mobile-nav-buttons {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
  left: 0;
}

.main-nav a.active::after {
  width: 100%;
  left: 0;
  box-shadow: 0 0 8px 0 var(--color-primary-glow);
}

.header-buttons {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: var(--space-sm);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--color-primary);
  background-color: rgba(139, 92, 246, 0.1);
}

.theme-toggle i {
  transition: transform 0.5s ease;
}

.theme-toggle:hover i {
  transform: rotate(30deg);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  z-index: 101;
  padding: 8px;
}

.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  background-color: var(--color-text-primary);
  height: 2px;
  width: 24px;
  transition: all var(--transition-normal);
  position: relative;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Active state for the hamburger menu button */
.mobile-menu-toggle.active .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--color-primary);
}

.mobile-menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: var(--color-primary);
}

/* Mobile menu toggle active state */
.mobile-menu-toggle.active .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--color-primary);
}

.mobile-menu-toggle.active .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
  background-color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: 0;
  animation: pulse 10s infinite alternate ease-in-out;
}

/* Light mode - stronger gradient */
html:not(.dark) .hero::before {
  background: radial-gradient(circle, rgba(139,92,246,0.4) 0%, rgba(196,181,255,0.25) 70%, transparent 100%);
}

/* Dark mode - original gradient */
html.dark .hero::before {
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(196,181,255,0.08) 70%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  z-index: 0;
  animation: pulse 8s infinite alternate-reverse ease-in-out;
}

/* Light mode - stronger gradient */
html:not(.dark) .hero::after {
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, rgba(196,181,255,0.2) 60%, transparent 100%);
}

/* Dark mode - original gradient */
html.dark .hero::after {
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, rgba(196,181,255,0.06) 60%, transparent 100%);
}

@keyframes pulse {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: var(--space-md);
  font-size: var(--text-display-large);
  line-height: var(--line-display-large);
  position: relative;
  display: inline-block;
  color: var(--color-text-secondary); /* Use secondary color for more subtle appearance */
}

html.dark .hero h1 {
  color: var(--color-dark-text-primary);
}

.hero p {
  font-size: var(--text-body-large);
  line-height: var(--line-body-large);
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
}

.time-demo {
  margin-bottom: var(--space-lg);
  display: inline-flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: glow 3s infinite alternate ease-in-out;
  
  /* Both light and dark theme use the same styling for consistency */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white; /* Explicitly set to white for better visibility in both themes */
  box-shadow: 0 10px 25px -5px var(--color-primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* We've moved the dark theme styling to the main selector to keep it consistent across themes */

@keyframes glow {
  0% {
    box-shadow: 0 10px 25px -5px var(--color-primary-glow);
  }
  100% {
    box-shadow: 0 15px 35px -5px var(--color-primary-glow);
  }
}

.time-demo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  animation: shimmer 8s infinite linear;
}

@keyframes shimmer {
  0% {
    transform: rotate(45deg) translateY(100%);
  }
  100% {
    transform: rotate(45deg) translateY(-100%);
  }
}

.time-demo .time-display {
  margin-bottom: var(--space-xs);
  position: relative;
  /* Inherit color from parent .time-demo which has theme-specific colors */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.time-demo .time-label {
  margin-bottom: 0;
  font-size: var(--text-body-medium);
  line-height: var(--line-body-medium);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--weight-medium);
  color: white; /* Explicitly set to white for better visibility in both themes */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Add text shadow to improve readability */
}

/* Consistent styles for both light and dark modes */
.time-demo .time-display {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.time-demo .time-label {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.time-controls {
  display: flex;
  align-items: center;
  margin-top: var(--space-xs);
}

.time-control-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-xs);
  cursor: pointer;
  border: none;
  font-size: 12px;
  backdrop-filter: blur(5px);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  
    background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.time-control-btn:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.25);
}

.time-control-btn:active {
  transform: translateY(0);
}

.time-control-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.time-control-btn:hover::after {
  opacity: 1;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: none;
  transition: transform 0.3s ease;
  transform: perspective(1000px) rotateY(-5deg);
  border: none;
  position: relative;
  z-index: 2;
  max-width: 100%;
  height: auto;
}

.light-img {
  display: block;
}

.dark-img {
  display: none;
}

html.dark .light-img {
  display: none;
}

html.dark .dark-img {
  display: block;
}

.hero-img:hover {
  transform: perspective(1000px) rotateY(-2deg) translateY(-10px);
  box-shadow: none;
}

.hero-image {
  position: relative;
}

.hero-image-dots {
  position: absolute;
  width: 180px;
  height: 180px;
  bottom: -50px;
  right: -50px;
  background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
  background-size: 12px 12px;
  z-index: 1;
  opacity: 0.3;
  border-radius: 20px;
}

.hero-image-glow {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  opacity: 0.5;
  animation: pulse 5s infinite alternate ease-in-out;
}

.shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(120% + 1.3px); /* Wider SVG for more coverage */
  height: 80px;  /* Taller SVG for more pronounced curve */
  transform: rotateX(180deg) translateX(-10%); /* Flip vertically and center */
}

.shape-divider .shape-fill {
  fill: var(--color-background);
  transition: fill 0.3s ease;
}

/* Social Proof */
.social-proof {
  padding-top: var(--space-xxl); /* Match features section padding */
  padding-bottom: var(--space-lg);
  background-color: var(--color-background);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html.dark .social-proof {
  background-color: var(--dark-background);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
  border-top: 1px solid rgba(var(--primary-rgb), 0.05);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
}

.social-proof::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  top: 0;
  left: 0;
}

.social-proof p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.social-proof p .highlight {
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    text-shadow: 0 0 0px rgba(var(--primary-rgb), 0);
  }
  50% {
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
  }
  100% {
    text-shadow: 0 0 0px rgba(var(--primary-rgb), 0);
  }
}

.logo-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.logo-carousel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse, var(--color-primary-glow) 0%, transparent 80%);
  opacity: 0.1;
  filter: blur(20px);
  z-index: -1;
}

.logo-carousel img {
  height: 30px;
  opacity: 0.6;
  transition: all var(--transition-normal);
  filter: grayscale(100%);
}

html.dark .logo-carousel img {
  filter: grayscale(100%) brightness(1.8); /* Brighten logos in dark mode for visibility */
}

.logo-carousel img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

html.dark .logo-carousel img:hover {
  filter: grayscale(0) brightness(1.2);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(var(--primary-rgb), 0.2);
}

.logo-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.logo-item:nth-child(2) {
  animation-delay: 0.2s;
}

.logo-item:nth-child(3) {
  animation-delay: 0.4s;
}

.logo-item:nth-child(4) {
  animation-delay: 0.6s;
}

.logo-item:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.6;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.section-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-full);
}

/* Features Section */
.features {
  padding: var(--space-xxl) 0;
  background-color: var(--color-background);
  position: relative;
  overflow: hidden;
}

/* Applications Section */
.applications {
  padding: var(--space-xxl) 0;
  background-color: var(--color-background-alt);
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(var(--primary-rgb), 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(var(--primary-rgb), 0.04) 0%, transparent 30%);
}

.applications::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.08) 0%, transparent 25%),
    radial-gradient(circle at 90% 20%, rgba(var(--primary-rgb), 0.07) 0%, transparent 30%),
    radial-gradient(circle at 15% 90%, rgba(var(--primary-rgb), 0.06) 0%, transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(var(--primary-rgb), 0.08) 0%, transparent 25%);
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.applications::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

.application-card {
  background-color: rgba(var(--surface-rgb), 0.75);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  box-shadow: 
    var(--shadow-md),
    0 20px 40px -20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(var(--color-border-rgb), 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.application-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg, 
    rgba(var(--primary-rgb), 0.2),
    rgba(var(--primary-rgb), 0) 30%,
    rgba(var(--primary-rgb), 0.1) 70%
  );
  opacity: 0.3;
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset -1px -1px 1px rgba(0, 0, 0, 0.05);
}

.application-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(
    circle at 70% 20%,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.application-card:hover, .application-card[data-hovered="true"] {
  transform: translateY(-12px) scale(1.03) rotateX(5deg) rotateY(-2deg) !important;
  box-shadow: 
    0 25px 50px -15px var(--color-primary-glow),
    0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--primary-rgb), 0.5);
  z-index: 3;
}

.application-card:hover::before, .application-card[data-hovered="true"]::before {
  opacity: 1;
  transform: scale(1.01);
}

.application-card:hover::after, .application-card[data-hovered="true"]::after {
  opacity: 0.7;
  transform: translateZ(10px);
}

.application-card.featured-app {
  background-color: rgba(var(--surface-elevated-rgb), 0.95); /* Increased opacity to reduce shade bleeding */
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  background-clip: padding-box;
  transform: scale(1.05) translateZ(40px);
  box-shadow: 
    0 20px 40px -12px var(--color-primary-glow),
    0 0 25px rgba(var(--primary-rgb), 0.3),
    0 8px 16px -8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
}

.application-card.featured-app::before {
  background: linear-gradient(
    135deg, 
    rgba(var(--primary-rgb), 0.3),
    rgba(var(--primary-rgb), 0.05) 50%,
    rgba(var(--primary-rgb), 0.15) 80%
  );
  opacity: 0.85; /* Reduced opacity to minimize color shading in light theme */
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.application-card.featured-app::after {
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  opacity: 0.6; /* Reduced opacity for more subtle highlight effect */
  height: 100%;
}

.application-card.featured-app:hover, .application-card.featured-app[data-hovered="true"] {
  transform: translateY(-16px) scale(1.06) rotateX(6deg) rotateY(-3deg) !important;
  box-shadow: 
    0 30px 60px -15px var(--color-primary-glow),
    0 0 35px rgba(var(--primary-rgb), 0.4),
    0 15px 25px -15px rgba(0, 0, 0, 0.2);
  animation-play-state: paused !important;
}

.application-card.featured-app.animated {
  animation: featuredAppFadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Specific light theme styles to fix the extra color shade */
html:not(.dark) .application-card.featured-app {
  background-color: rgba(var(--surface-elevated-rgb), 0.98); /* Almost solid to prevent shade bleed */
}

html:not(.dark) .application-card.featured-app::before {
  opacity: 0.7;
  background: linear-gradient(
    135deg, 
    rgba(var(--primary-rgb), 0.2),
    rgba(var(--primary-rgb), 0.03) 50%,
    rgba(var(--primary-rgb), 0.1) 80%
  );
}

/* Fix for hover effect on animated cards */
.application-card.animated:hover, .application-card.animated[data-hovered="true"] {
  animation-play-state: paused !important;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  pointer-events: auto !important;
}

/* Ensure hover effects take precedence even after animation */
.application-card:hover, .application-card[data-hovered="true"] {
  animation: none !important;
}

@keyframes featuredAppFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
}

.application-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), var(--color-primary-dark));
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: white;
  font-size: 1.8rem;
  box-shadow: 
    0 12px 24px -5px rgba(var(--primary-rgb), 0.5),
    0 0 20px rgba(var(--primary-rgb), 0.3),
    inset 0 2px 10px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateZ(15px);
  animation: gradientShift 8s ease infinite;
}

.application-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shimmer 4s infinite;
  opacity: 0.6;
  transition: opacity 0.5s ease;
  border-radius: calc(var(--radius-lg) / 1.25);
}

.application-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(225deg, rgba(255,255,255,0.5), transparent 70%);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.application-card:hover .application-icon, .application-card[data-hovered="true"] .application-icon {
  transform: translateZ(25px) translateY(-8px) !important;
  box-shadow: 
    0 18px 30px -8px rgba(var(--primary-rgb), 0.6),
    0 0 25px rgba(var(--primary-rgb), 0.4),
    inset 0 2px 15px rgba(255, 255, 255, 0.4);
  animation: pulseGlow 3s infinite alternate ease-in-out !important;
}

.application-card:hover .application-icon::before, .application-card[data-hovered="true"] .application-icon::before {
  animation: shimmer 2.5s infinite;
  opacity: 0.9;
}

.application-card:hover .application-icon::after, .application-card[data-hovered="true"] .application-icon::after {
  opacity: 0.7;
}

.application-card:hover .application-icon {
  transform: translateZ(20px) scale(1.05);
  box-shadow: 
    0 15px 25px -5px rgba(var(--primary-rgb), 0.5),
    0 0 20px rgba(var(--primary-rgb), 0.3);
}

/* Application features styling */
.application-card ul {
  list-style-type: none;
  padding: 0;
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.application-card ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  padding-left: var(--space-xs);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.application-card ul li i {
  color: var(--color-text-secondary);
  margin-top: 0.15rem;
  font-size: 0.85rem;
  transition: transform 0.4s ease, color 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  opacity: 0.7;
}

.application-card:hover ul li, .application-card[data-hovered="true"] ul li {
  transform: translateZ(15px);
}

.application-card:hover ul li:nth-child(1), .application-card[data-hovered="true"] ul li:nth-child(1) { transition-delay: 0.05s; }
.application-card:hover ul li:nth-child(2), .application-card[data-hovered="true"] ul li:nth-child(2) { transition-delay: 0.1s; }
.application-card:hover ul li:nth-child(3), .application-card[data-hovered="true"] ul li:nth-child(3) { transition-delay: 0.15s; }
.application-card:hover ul li:nth-child(4), .application-card[data-hovered="true"] ul li:nth-child(4) { transition-delay: 0.2s; }

.application-card:hover ul li i, .application-card[data-hovered="true"] ul li i {
  transform: scale(1.2);
  color: var(--color-success);
  filter: drop-shadow(0 2px 4px rgba(var(--success-rgb), 0.5));
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.application-card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-heading);
  font-size: 1.25rem;
}

.application-card p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.feature-list {
  margin: var(--space-md) 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.feature-list li {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  color: var(--color-text);
}

.feature-list li i {
  color: var(--color-success);
  margin-right: var(--space-xs);
}

.app-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md); /* Increase gap for better spacing */
  margin-top: var(--space-lg);
  perspective: 500px;
  max-width: 320px; /* Set max width for container */
  margin-left: auto;
  margin-right: auto;
}

.store-badge {
  height: 44px;
  width: 150px; /* Set a consistent width for both badges */
  object-fit: contain; /* Preserve aspect ratio */
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transform: translateZ(5px);
}

.store-badge:hover {
  transform: translateZ(10px) scale(1.08);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.app-badge {
  margin-top: var(--space-lg);
  text-align: center;
  perspective: 300px;
}

.status-badge {
  background-color: rgba(var(--primary-rgb), 0.15);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  transform: translateZ(5px);
  transition: all 0.3s ease;
}

.application-card:hover .status-badge {
  box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.25);
  transform: translateZ(10px) translateY(-2px);
  background-color: rgba(var(--primary-rgb), 0.2);
}

/* Dark Mode - Applications Section */
html.dark .applications {
  background-color: var(--dark-background-alt);
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(var(--primary-rgb), 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(var(--primary-rgb), 0.06) 0%, transparent 30%);
}

html.dark .applications::before {
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.06) 0%, transparent 20%),
    radial-gradient(circle at 90% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 25%),
    radial-gradient(circle at 15% 90%, rgba(var(--primary-rgb), 0.05) 0%, transparent 25%),
    radial-gradient(circle at 70% 80%, rgba(var(--primary-rgb), 0.06) 0%, transparent 20%);
}

html.dark .applications::after {
  opacity: 0.15;
}

html.dark .application-card {
  background-color: rgba(var(--dark-surface-rgb), 0.75);
  border-color: rgba(var(--primary-rgb), 0.2);
  box-shadow: 
    0 15px 30px -15px rgba(0, 0, 0, 0.5),
    0 5px 15px rgba(0, 0, 0, 0.3);
}

html.dark .application-card.featured-app {
  background-color: rgba(var(--dark-surface-elevated-rgb), 0.8);
  border-color: rgba(var(--color-primary-dark-rgb), 0.6);
  box-shadow: 
    0 15px 30px -10px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(var(--primary-rgb), 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

html.dark .application-card:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(var(--primary-rgb), 0.25);
}

html.dark .application-card.featured-app:hover {
  box-shadow: 
    0 25px 50px -15px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(var(--primary-rgb), 0.4);
}

html.dark .application-card:hover::before {
  opacity: 0.7;
}

html.dark .application-icon {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(var(--primary-rgb), 0.3),
    inset 0 1px 5px rgba(255, 255, 255, 0.1);
}

html.dark .application-card:hover .application-icon {
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.5),
    0 0 25px rgba(var(--primary-rgb), 0.4),
    inset 0 1px 10px rgba(255, 255, 255, 0.15);
}

html.dark .application-card ul li i {
  color: var(--color-dark-text-tertiary);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
  opacity: 0.6;
}

html.dark .application-card:hover ul li i {
  color: var(--color-success);
  filter: drop-shadow(0 3px 8px rgba(var(--success-rgb), 0.5));
  opacity: 1;
}

html.dark .status-badge {
  background-color: rgba(var(--primary-rgb), 0.25);
  color: var(--color-primary-light);
}

.features::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, rgba(196,181,255,0.02) 60%, transparent 100%);
  z-index: 0;
}

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

.feature-card {
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px var(--color-primary-glow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, 
                             rgba(139, 92, 246, 0.1) 0%, 
                             transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: white;
  font-size: 1.5rem;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 10px 20px -5px var(--color-primary-glow);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 15px 25px -5px var(--color-primary-glow);
}

.feature-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
}

.feature-card:nth-child(1) .feature-icon {
  background-color: var(--color-project-purple);
}

.feature-card:nth-child(2) .feature-icon {
  background-color: var(--color-project-blue);
}

.feature-card:nth-child(3) .feature-icon {
  background-color: var(--color-project-green);
}

.feature-card:nth-child(4) .feature-icon {
  background-color: var(--color-project-orange);
}

.feature-card:nth-child(5) .feature-icon {
  background-color: var(--color-project-indigo);
}

.feature-card:nth-child(6) .feature-icon {
  background-color: var(--color-project-pink);
}

.feature-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

/* How It Works Section */
.how-it-works {
  padding: var(--space-xxl) 0;
  background-color: var(--color-neutral-100);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.how-it-works-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.how-it-works-cta p {
  color: var(--color-neutral-600);
  margin-top: var(--space-xs);
}

/* Solutions Section */
.solutions {
  padding: var(--space-xxl) 0;
  background-color: var(--color-background);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solutions::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, rgba(196,181,255,0.02) 70%, transparent 100%);
  z-index: 0;
}

.solutions-tabs {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tab-headers {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.tab-header {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
}

.tab-header.active {
  color: var(--color-primary);
}

.tab-header.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px 0 var(--color-primary-glow);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.check-list {
  margin-bottom: var(--space-lg);
}

.check-list li {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.check-list li i {
  color: var(--color-success);
  margin-right: var(--space-xs);
  text-shadow: 0 0 5px rgba(37, 199, 112, 0.3);
}

.tab-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

.tab-image img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px -10px var(--color-primary-glow);
}

/* Testimonials Section */
.testimonials {
  padding: var(--space-xxl) 0;
  background-color: var(--color-surface);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, rgba(196,181,255,0.03) 60%, transparent 100%);
  z-index: 0;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.testimonial {
  background-color: var(--color-surface-elevated);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.testimonial.animated {
  animation: scaleUp 0.6s ease forwards;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.1;
  line-height: 1;
  z-index: 0;
}

.testimonial-content {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.author-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-primary-light);
  box-shadow: 0 5px 15px -5px var(--color-primary-glow);
  transition: all 0.3s ease;
}

.testimonial:hover .author-img {
  transform: scale(1.05);
  border-color: var(--color-primary);
}

.author-info h4 {
  margin-bottom: 0;
  color: var(--color-text-primary);
}

.author-info p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonial-prev, .testimonial-next {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-prev::after, .testimonial-next::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-prev:hover::after, .testimonial-next:hover::after {
  opacity: 1;
}

.testimonial-prev:hover, .testimonial-next:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 5px 15px -5px var(--color-primary-glow);
  transform: translateY(-2px);
}

/* Pricing Section */
.pricing {
  padding: var(--space-xxl) 0;
  background-color: var(--color-background);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, rgba(196,181,255,0.02) 70%, transparent 100%);
  z-index: 0;
  animation: pulse 15s infinite alternate-reverse ease-in-out;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: var(--transition-normal);
  border-radius: 34px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--color-surface-elevated);
  transition: var(--transition-normal);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.discount {
  background-color: var(--color-success);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-left: var(--space-xxs);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Force exactly 3 columns of equal width */
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
  padding-top: 30px; /* Increased padding for badge visibility */
  margin-top: 10px; /* Additional margin to create space */
  align-items: stretch; /* Ensure grid items stretch to match height */
  grid-auto-rows: 1fr; /* Force all rows to be the same height */
}

/* Responsive styling for smaller screens */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: auto;
    gap: var(--space-lg); /* Increased gap for better spacing on smaller screens */
  }
  
  .pricing-card.featured {
    margin-top: 0;
    margin-bottom: 0;
    padding: var(--space-lg); /* Reset padding to match other cards */
  }
}

.pricing-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  overflow: visible; /* Changed from hidden to visible to allow badge to be shown outside card */
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure all cards have the same height */
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px var(--color-primary-glow);
  border-color: var(--color-primary-light);
}

.pricing-card.featured {
  background-color: var(--color-surface-elevated);
  border: 2px solid var(--color-primary);
  margin-top: -10px; /* Use margin instead of transform to keep the grid cell height consistent */
  margin-bottom: -10px; /* Compensate for the margin-top to maintain proper spacing */
  box-shadow: 0 10px 25px -5px var(--color-primary-glow);
  z-index: 2; /* Ensure featured card appears above others */
  padding-top: calc(var(--space-lg) + 5px); /* Add extra padding to compensate */
  padding-bottom: calc(var(--space-lg) + 5px); /* Add extra padding to compensate */
}

.pricing-card.featured:hover {
  transform: translateY(-5px); /* Keep hover effect consistent with other cards */
  box-shadow: 0 20px 40px -10px var(--color-primary-glow);
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::after {
  opacity: 1;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
  animation: badgePulse 2s infinite alternate ease-in-out;
  letter-spacing: 0.5px;
  line-height: 1;
  z-index: 10;
  white-space: nowrap;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
  }
  100% {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.8);
  }
}

/* Add a pseudo-element to create extra space above the badge */
.pricing-card.featured::before {
  content: '';
  display: block;
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 25px;
  background: transparent;
}

.pricing-header {
  text-align: center;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  transition: border-color 0.3s ease;
  height: auto; /* Let it size naturally */
}

.pricing-card h3 {
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.pricing-card p {
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.price {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 500;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  transition: color 0.3s ease;
}

.currency {
  font-size: 1.5rem;
  margin-right: 4px;
  align-self: flex-start;
}

.period {
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  transition: color 0.3s ease;
}

.pricing-features {
  margin-bottom: var(--space-lg);
  flex: 1; /* Make this section expand to fill available space */
}

.pricing-features ul {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-features ul li {
  margin-bottom: var(--space-xs);
  padding: var(--space-xxs) 0;
  display: flex;
  align-items: center;
}

.pricing-features ul li i {
  color: var(--color-success);
  margin-right: var(--space-xs);
}

.pricing-cta {
  margin-top: auto; /* Push CTA to bottom of card */
  padding-top: var(--space-md); /* Consistent padding */
}

.annual-price {
  display: none;
}

.enterprise-cta {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.enterprise-cta:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.2);
}

.enterprise-sales-btn {
  white-space: nowrap;
  min-width: 150px;
  padding: 0.65rem 1.25rem;
}

.enterprise-content h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
  transition: color 0.3s ease;
}

.enterprise-content p {
  margin-bottom: 0;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

/* CTA Section */
.cta {
  padding: var(--space-xxl) 0;
  color: white;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  
  /* Light theme styling by default */
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.7) 0%, rgba(var(--color-primary-rgb), 0.8) 100%);
  box-shadow: 0 5px 15px -5px rgba(var(--color-primary-rgb), 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dark theme styling */
html.dark .cta {
  background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.5) 0%, rgba(var(--color-primary-rgb), 0.6) 100%);
  box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.15);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.15);
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 60%, transparent 100%);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 60%, transparent 100%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: white;
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  opacity: 0.85;
  font-weight: 300;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta .btn-primary {
  background-color: white;
  color: var(--color-primary);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

.cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: white;
}

/* Footer */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  
  /* Light theme styling by default */
  background-color: var(--color-surface);
  color: var(--color-text-secondary);
}

/* Dark theme styling */
html.dark .footer {
  background-color: var(--color-dark-background);
  color: var(--color-dark-text-secondary);
}

.footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  animation: pulse 15s infinite alternate ease-in-out;
}

/* Light mode decorative elements */
html:not(.dark) .footer::before {
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, rgba(139,92,246,0.02) 60%, transparent 100%);
}

/* Dark mode decorative elements */
html.dark .footer::before {
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, rgba(139,92,246,0.03) 60%, transparent 100%);
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  animation: pulse 12s infinite alternate-reverse ease-in-out;
  z-index: 0;
}

/* Light mode decorative elements */
html:not(.dark) .footer::after {
  background: radial-gradient(circle, rgba(139,92,246,0.03) 0%, rgba(139,92,246,0.01) 60%, transparent 100%);
}

/* Dark mode decorative elements */
html.dark .footer::after {
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, rgba(139,92,246,0.02) 60%, transparent 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand p {
  margin-bottom: var(--space-md);
  /* Inherit color from parent to adapt to theme */
  transition: color 0.3s ease;
}

/* Light mode specific styling */
html:not(.dark) .footer-brand p {
  color: var(--color-text-primary);
}

.footer-logo {
  height: 40px;
  margin-bottom: var(--space-sm);
  object-fit: contain;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* Light mode social icons */
html:not(.dark) .social-icon {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
}

/* Dark mode social icons */
html.dark .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.social-icon:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(var(--color-primary-rgb), 0.3);
}

.footer h4 {
  margin-bottom: var(--space-md);
  font-size: var(--text-heading-3);
  transition: color 0.3s ease;
}

/* Light mode headings */
html:not(.dark) .footer h4 {
  color: var(--color-text-primary);
}

/* Dark mode headings */
html.dark .footer h4 {
  color: var(--color-dark-text-primary);
}

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

.footer-links ul li a {
  transition: color var(--transition-normal);
}

/* Light mode links */
html:not(.dark) .footer-links ul li a {
  color: var(--color-text-secondary);
}

/* Dark mode links */
html.dark .footer-links ul li a {
  color: var(--color-dark-text-tertiary);
}

.footer-links ul li a:hover {
  color: var(--color-primary);
}

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

.newsletter-form {
  display: flex;
  gap: var(--space-xs);
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

/* Light mode newsletter input */
html:not(.dark) .newsletter-form input {
  background-color: rgba(var(--color-primary-rgb), 0.05);
  color: var(--color-text-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

html:not(.dark) .newsletter-form input:focus {
  background-color: rgba(var(--color-primary-rgb), 0.08);
  border-color: rgba(var(--color-primary-rgb), 0.3);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

/* Dark mode newsletter input */
html.dark .newsletter-form input {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

html.dark .newsletter-form input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
  opacity: 0.6;
}

/* Light mode placeholder */
html:not(.dark) .newsletter-form input::placeholder {
  color: var(--color-text-tertiary);
}

/* Dark mode placeholder */
html.dark .newsletter-form input::placeholder {
  color: var(--color-dark-text-tertiary);
}

/* Newsletter form button */
.newsletter-form .btn-primary {
  white-space: nowrap;
}

/* Light mode button */
html:not(.dark) .newsletter-form .btn-primary {
  background-color: var(--color-primary);
  color: white;
}

/* Dark mode button */
html.dark .newsletter-form .btn-primary {
  background-color: var(--color-primary);
  color: white;
}

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

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  color: var(--color-neutral-400);
}

.footer-bottom-links a:hover {
  color: white;
}

/* Time Display */
.time-display {
  font-family: var(--font-mono);
  font-size: var(--text-timer-large);
  line-height: var(--line-timer-large);
  font-weight: var(--weight-medium);
}

.time-display-medium {
  font-family: var(--font-mono);
  font-size: var(--text-timer-medium);
  line-height: var(--line-timer-medium);
  font-weight: var(--weight-medium);
}

.time-display-small {
  font-family: var(--font-mono);
  font-size: var(--text-timer-small);
  line-height: var(--line-timer-small);
  font-weight: var(--weight-medium);
}

/* Numeric data */
.numeric {
  font-family: var(--font-mono);
}

/* Application animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 
      0 15px 25px -8px rgba(var(--primary-rgb), 0.5),
      0 0 20px rgba(var(--primary-rgb), 0.3),
      inset 0 2px 10px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 
      0 18px 30px -5px rgba(var(--primary-rgb), 0.6),
      0 0 30px rgba(var(--primary-rgb), 0.5),
      inset 0 2px 15px rgba(255, 255, 255, 0.4);
  }
}

@keyframes floatCard {
  0% {
    transform: translateY(0) translateZ(40px) scale(1.05);
  }
  50% {
    transform: translateY(-8px) translateZ(40px) scale(1.05);
  }
  100% {
    transform: translateY(0) translateZ(40px) scale(1.05);
  }
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Special keyframes for featured card to maintain scale */
@keyframes featuredCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
    box-shadow: 0 0 15px 0 var(--color-primary-glow);
  }
  50% {
    box-shadow: 0 0 25px 5px var(--color-primary-glow);
  }
  100% {
    transform: rotate(360deg);
    box-shadow: 0 0 15px 0 var(--color-primary-glow);
  }
}

.animated {
  animation: fadeIn 0.6s ease forwards;
}

/* Special animation for featured pricing card to preserve scale */
.pricing-card.featured.animated {
  animation: featuredCardFadeIn 0.6s ease forwards;
}

.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-500 {
  animation-delay: 500ms;
}

/* Media Queries */
@media (min-width: 769px) {
  /* Desktop styles to ensure proper layout */
  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    height: auto;
    width: auto;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
  }
  
  .mobile-nav-buttons {
    display: none !important;
  }
}

@media (max-width: 992px) {
  /* Tablet: 95% of defined scale as per typography guidelines */
  html {
    font-size: 15.2px; /* 95% of 16px base */
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
  }
  
  .hero-img {
    width: 80%;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .tab-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-brand {
    grid-column: span 2;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Mobile: 90% of defined scale as per typography guidelines */
  html {
    font-size: 14.4px; /* 90% of 16px base */
  }
  
  /* Fix pricing card spacing for mobile */
  .pricing-grid {
    gap: var(--space-xl);
    padding: 0 var(--space-sm);
  }
  
  .pricing-card {
    margin-bottom: var(--space-md);
  }
  
  .pricing-card.featured {
    margin-top: 0;
    margin-bottom: var(--space-md);
    transform: none;
    padding: var(--space-lg); /* Reset to standard padding */
    box-shadow: 0 5px 15px -5px var(--color-primary-glow);
  }
  
  .pricing-card.featured:hover {
    transform: none;
  }
  
  /* Mobile navigation */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-surface-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    padding-top: calc(var(--header-height) + 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column;
  }
  
  .main-nav.active {
    display: flex !important; /* Use !important to override desktop styles */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
  }
  
  .main-nav a {
    font-size: 1.2rem;
    padding: var(--space-sm) 0;
  }
  
  .mobile-nav-buttons {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: var(--space-xl);
    width: 100%;
    gap: var(--space-lg);
  }
  
  .main-nav.active .mobile-nav-buttons {
    display: flex;
  }
  
  .mobile-nav-buttons .theme-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    background-color: rgba(var(--color-primary-rgb), 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .mobile-action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 80%;
    max-width: 300px;
  }
  
  .mobile-action-buttons .btn {
    width: 100%;
    padding: var(--space-sm) 0;
    font-size: 1.1rem;
  }
  
  /* Hide desktop header buttons */
  .header .header-buttons {
    display: none;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    z-index: 101;
  }
  
  .step {
    grid-template-columns: 60px 1fr;
  }
  
  .step-img {
    grid-column: span 2;
  }
  
  .enterprise-cta {
    flex-direction: column;
    text-align: center;
  }

  .enterprise-sales-btn {
    margin-top: var(--space-md);
    white-space: normal;
    min-width: 180px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    grid-column: 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* SEO Content Section */
.seo-content {
  padding: var(--space-xl) 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.seo-content h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.seo-content-item {
  padding: var(--space-md);
}

.seo-content-item h3 {
  font-size: var(--text-heading-3);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.seo-content-item p {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.seo-cta {
  text-align: center;
  margin-top: var(--space-lg);
}

.seo-cta p {
  margin-bottom: var(--space-md);
  font-size: var(--text-body-large);
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Dark mode styles for SEO content */
html.dark .seo-content {
  background-color: var(--color-dark-surface);
  border-color: var(--color-dark-border);
}

html.dark .seo-content h2,
html.dark .seo-content-item h3 {
  color: var(--color-dark-text-primary);
}

html.dark .seo-content-item p,
html.dark .seo-cta p {
  color: var(--color-dark-text-secondary);
}

/* Highlighted words in the tagline */
.highlight-word {
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
}

/* Add underline to highlighted words */
.highlight-word::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px 0 var(--color-primary-glow);
}

h1 .highlight-word {
  font-size: 1.1em;
}

/* Make underline more prominent for h1 highlighted words */
h1 .highlight-word::after {
  bottom: -6px;
  height: 4px;
  box-shadow: 0 0 10px 0 var(--color-primary-glow);
}

/* Two-line tagline styling */
.hero-content h1 {
  line-height: 1.3;
}

.footer-brand p {
  line-height: 1.5;
}

/* Dark mode adjustments */
html.dark .highlight-word {
  color: var(--color-primary-light);
}

html.dark .highlight-word::after {
  background: linear-gradient(90deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}
