:root {
  /* Background layers - O. Washington inspired */
  --color-bg-primary: #0a1628;
  --color-bg-secondary: #0d1e36;
  --color-bg-tertiary: #112444;
  --color-bg-elevated: #132a4d;
  --color-bg-dark: #0a1628;
  --color-bg-darker: #060d17;

  /* Accent colors - Enhanced liquid gradient palette */
  --color-blue-electric: #2d5ff7;
  --color-purple: #8b5cf6;
  --color-pink: #ec4899;
  --color-cyan: #06b6d4;
  --color-primary: var(--color-blue-electric);
  --color-primary-light: #4d7dff;
  --color-primary-dark: #1f4fd8;
  --color-secondary: var(--color-purple);
  --color-secondary-light: #a78bfa;

  /* Text colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.72);
  --color-text-tertiary: rgba(255, 255, 255, 0.5);
  --color-text-disabled: rgba(255, 255, 255, 0.32);

  /* Gradients & glows - Enhanced liquid gradients */
  --gradient-primary: linear-gradient(135deg, #2d5ff7 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 0% 0%, #8b5cf610 0%, transparent 55%),
    radial-gradient(at 100% 0%, #0ea5e910 0%, transparent 55%),
    radial-gradient(at 100% 100%, #8b5cf610 0%, transparent 55%),
    radial-gradient(at 0% 100%, #0ea5e910 0%, transparent 55%);

  --glass-bg: rgba(26, 26, 26, 0.6);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: 24px;
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  --glow-primary: 0 0 20px rgba(14, 165, 233, 0.5), 0 0 40px rgba(14, 165, 233, 0.3),
    0 0 60px rgba(14, 165, 233, 0.12);
  --glow-secondary: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tighter: -0.04em;
  --tracking-tight: -0.02em;
  --tracking-wide: 0.04em;

  /* Layout scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

[data-theme='light'] {
  --color-bg-primary: #f8fafc;
  --color-bg-secondary: #e2e8f0;
  --color-bg-tertiary: #cbd5f5;
  --color-bg-elevated: #ffffff;
  --color-text-primary: #0f172a;
  --color-text-secondary: rgba(15, 23, 42, 0.72);
  --color-text-tertiary: rgba(15, 23, 42, 0.5);
  --color-text-disabled: rgba(15, 23, 42, 0.32);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
}

p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 4px;
}

.page-transition {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(14, 165, 233, 0.1), transparent 55%),
    var(--color-bg-primary);
}

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

/* ==========================================
   Mobile Navigation & Responsive Styles
   ========================================== */

/* Hide/show based on screen size */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  
  /* Ensure readable text - prevents iOS zoom */
  body {
    font-size: 16px;
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger animation when open */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-content a {
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s;
}

.mobile-menu-content a:hover {
  color: var(--color-primary);
}

.mobile-menu-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Full-width buttons on mobile */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }
  
  .pricing-card .btn {
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* Better touch targets */
.btn {
  min-height: 44px;
  padding: 0.875rem 2rem;
  touch-action: manipulation;
}
