/* =============================================================================
   AI Theme - Premium Dark Mode Design System
   DataCare Solutions

   Usage: Add class "ai-theme" to <body> or any container element
   Enable:  <body class="ai-theme">
   Disable: Remove the class or the stylesheet link
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ----------------------------------------------------------------------------- */
:root {
  /* Dark Backgrounds - Rich, not pure black */
  --ai-bg-primary: #09090b;
  --ai-bg-secondary: #0f0f12;
  --ai-bg-tertiary: #18181b;
  --ai-bg-elevated: #1f1f23;
  --ai-bg-surface: #27272a;

  /* Accent - Used Sparingly (~10% of UI) */
  --ai-accent: #3b82f6;
  --ai-accent-hover: #2563eb;
  --ai-accent-subtle: rgba(59, 130, 246, 0.1);
  --ai-accent-ring: rgba(59, 130, 246, 0.4);

  /* Semantic Colors */
  --ai-success: #22c55e;
  --ai-error: #ef4444;
  --ai-warning: #f59e0b;

  /* Text - High Contrast for Readability */
  --ai-text-primary: #fafafa;
  --ai-text-secondary: #a1a1aa;
  --ai-text-muted: #71717a;
  --ai-text-subtle: #52525b;

  /* Borders */
  --ai-border: rgba(255, 255, 255, 0.06);
  --ai-border-hover: rgba(255, 255, 255, 0.12);
  --ai-border-focus: rgba(59, 130, 246, 0.5);

  /* Spacing Scale */
  --ai-space-1: 0.25rem;
  --ai-space-2: 0.5rem;
  --ai-space-3: 0.75rem;
  --ai-space-4: 1rem;
  --ai-space-5: 1.25rem;
  --ai-space-6: 1.5rem;
  --ai-space-8: 2rem;
  --ai-space-10: 2.5rem;
  --ai-space-12: 3rem;
  --ai-space-16: 4rem;
  --ai-space-20: 5rem;
  --ai-space-24: 6rem;

  /* Border Radius */
  --ai-radius-sm: 6px;
  --ai-radius-md: 10px;
  --ai-radius-lg: 14px;
  --ai-radius-xl: 18px;
  --ai-radius-full: 9999px;

  /* Shadows */
  --ai-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ai-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --ai-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --ai-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);

  /* Blur */
  --ai-blur-sm: 8px;
  --ai-blur-md: 12px;
  --ai-blur-lg: 20px;

  /* Typography */
  --ai-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ai-font-display: 'Space Grotesk', var(--ai-font-sans);

  /* Transitions */
  --ai-transition-fast: 150ms ease;
  --ai-transition-base: 200ms ease;
  --ai-transition-slow: 300ms ease;
}

/* -----------------------------------------------------------------------------
   2. BASE STYLES (Scoped to .ai-theme)
   ----------------------------------------------------------------------------- */
.ai-theme {
  font-family: var(--ai-font-sans);
  background-color: var(--ai-bg-primary);
  color: var(--ai-text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------------------------------------
   2. CSS RESET - Box Sizing
   ----------------------------------------------------------------------------- */
.ai-theme,
.ai-theme *,
.ai-theme *::before,
.ai-theme *::after {
  box-sizing: border-box;
}

/* Subtle Background Gradient - more depth */
.ai-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(99, 102, 241, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(59, 130, 246, 0.04), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Subtle Grid Pattern Overlay */
.ai-theme.with-grid::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Noise Texture Overlay */
.ai-theme.with-noise::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
.ai-theme h1,
.ai-theme h2,
.ai-theme h3,
.ai-theme h4,
.ai-theme h5,
.ai-theme h6 {
  font-family: var(--ai-font-display);
  color: var(--ai-text-primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 var(--ai-space-4) 0;
}

.ai-theme h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
.ai-theme h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ai-theme h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.ai-theme h4 { font-size: 1.25rem; }
.ai-theme h5 { font-size: 1.125rem; }
.ai-theme h6 { font-size: 1rem; }

.ai-theme p {
  color: var(--ai-text-secondary);
  margin: 0 0 var(--ai-space-4) 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.ai-theme a {
  color: var(--ai-text-secondary);
  text-decoration: none;
  transition: color var(--ai-transition-fast), text-decoration-color var(--ai-transition-fast);
}

.ai-theme a:hover {
  color: var(--ai-text-primary);
}

/* Content links (inside paragraphs) - underline for accessibility */
.ai-theme p a,
.ai-theme li a:not(.ai-btn),
.ai-theme .ai-content a {
  text-decoration: underline;
  text-decoration-color: var(--ai-text-subtle);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ai-theme p a:hover,
.ai-theme li a:not(.ai-btn):hover,
.ai-theme .ai-content a:hover {
  text-decoration-color: var(--ai-accent);
}

.ai-theme strong {
  color: var(--ai-text-primary);
  font-weight: 600;
}

/* Container */
.ai-theme .container,
.ai-theme .ai-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ai-space-6);
}

@media (max-width: 768px) {
  .ai-theme .container,
  .ai-theme .ai-container {
    padding: 0 var(--ai-space-4);
  }
}

/* -----------------------------------------------------------------------------
   3. NAVBAR
   ----------------------------------------------------------------------------- */
.ai-theme .ai-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(var(--ai-blur-md));
  -webkit-backdrop-filter: blur(var(--ai-blur-md));
  border-bottom: 1px solid var(--ai-border);
  padding: var(--ai-space-3) 0;
  transition: background var(--ai-transition-base);
}

.ai-theme .ai-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--ai-space-6);
}

.ai-theme .ai-navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--ai-space-3);
  text-decoration: none;
  transition: opacity var(--ai-transition-fast);
}

.ai-theme .ai-navbar-logo:hover {
  opacity: 0.8;
}

.ai-theme .ai-navbar-logo img {
  height: 46px;
  width: auto;
}

.ai-theme .ai-navbar-logo span {
  font-family: var(--ai-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ai-text-primary);
  letter-spacing: -0.01em;
}

.ai-theme .ai-navbar-links {
  display: flex;
  align-items: center;
  gap: var(--ai-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-theme .ai-navbar-links a {
  display: block;
  padding: var(--ai-space-2) var(--ai-space-4);
  color: var(--ai-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--ai-radius-md);
  transition: all var(--ai-transition-fast);
}

.ai-theme .ai-navbar-links a:hover {
  color: var(--ai-text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.ai-theme .ai-navbar-links a.active {
  color: var(--ai-text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Navbar Dropdown */
.ai-theme .ai-nav-dropdown {
  position: relative;
}

.ai-theme .ai-nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.6;
}

.ai-theme .ai-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  padding: var(--ai-space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--ai-transition-fast);
  box-shadow: var(--ai-shadow-lg);
}

.ai-theme .ai-nav-dropdown:hover .ai-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ai-theme .ai-dropdown-menu a {
  display: block;
  padding: var(--ai-space-3) var(--ai-space-4);
  color: var(--ai-text-secondary);
  font-size: 0.9rem;
  border-radius: var(--ai-radius-md);
}

.ai-theme .ai-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ai-text-primary);
}

.ai-theme .ai-dropdown-menu a.ai-dropdown-highlight {
  color: var(--ai-accent);
  font-weight: 500;
  background: var(--ai-accent-subtle);
}

.ai-theme .ai-dropdown-menu a.ai-dropdown-highlight:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* Mobile Menu Toggle */
.ai-theme .ai-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ai-theme .ai-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ai-text-primary);
  border-radius: 2px;
  transition: all var(--ai-transition-base);
}

.ai-theme .ai-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ai-theme .ai-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ai-theme .ai-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.ai-theme .ai-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ai-bg-primary);
  z-index: 999;
  padding: 80px var(--ai-space-6) var(--ai-space-6);
  overflow-y: auto;
}

.ai-theme .ai-mobile-menu.is-open,
.ai-theme .ai-mobile-menu.active {
  display: block;
}

.ai-theme .ai-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-theme .ai-mobile-menu > ul > li {
  border-bottom: 1px solid var(--ai-border);
}

.ai-theme .ai-mobile-menu a {
  display: block;
  padding: var(--ai-space-4) 0;
  color: var(--ai-text-primary);
  font-size: 1.125rem;
  font-weight: 500;
}

.ai-theme .ai-mobile-menu-cta {
  margin-top: var(--ai-space-4);
  padding-top: var(--ai-space-4);
  border-bottom: none !important;
}

.ai-theme .ai-mobile-menu-cta a {
  display: inline-block;
  background: var(--ai-accent);
  color: #fff !important;
  padding: var(--ai-space-4) var(--ai-space-6);
  border-radius: var(--ai-radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: background var(--ai-transition-fast);
}

.ai-theme .ai-mobile-menu-cta a:hover {
  background: var(--ai-accent-hover);
}

@media (max-width: 768px) {
  .ai-theme .ai-navbar-links {
    display: none;
  }

  .ai-theme .ai-menu-toggle {
    display: flex;
  }
}

/* -----------------------------------------------------------------------------
   4. HERO SECTION
   ----------------------------------------------------------------------------- */
.ai-theme .ai-hero {
  padding: calc(80px + var(--ai-space-24)) 0 var(--ai-space-24);
  text-align: center;
  position: relative;
}

.ai-theme .ai-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.ai-theme .ai-hero h1 {
  margin-bottom: var(--ai-space-6);
}

.ai-theme .ai-hero-subtitle {
  font-size: 1.25rem;
  color: var(--ai-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--ai-space-10);
  line-height: 1.6;
}

.ai-theme .ai-hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--ai-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--ai-space-12);
}

.ai-theme .ai-hero-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--ai-space-8);
  flex-wrap: wrap;
  color: var(--ai-text-muted);
  font-size: 0.875rem;
}

.ai-theme .ai-hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--ai-space-2);
}

.ai-theme .ai-hero-trust-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Hero AI Callout Strip */
.ai-theme .ai-hero-callout {
  display: flex;
  justify-content: center;
  gap: var(--ai-space-8);
  flex-wrap: wrap;
  margin-top: var(--ai-space-6);
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-hero-callout-item {
  display: flex;
  align-items: center;
  gap: var(--ai-space-2);
  color: var(--ai-text-secondary);
  font-size: 0.875rem;
}

.ai-theme .ai-hero-callout-item svg {
  color: var(--ai-success);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .ai-theme .ai-hero {
    padding: calc(70px + var(--ai-space-16)) 0 var(--ai-space-16);
  }

  .ai-theme .ai-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .ai-theme .ai-hero-trust {
    flex-direction: column;
    gap: var(--ai-space-4);
  }

  .ai-theme .ai-hero-callout {
    flex-direction: column;
    gap: var(--ai-space-3);
    align-items: center;
    text-align: left;
  }

  .ai-theme .ai-hero-callout-item {
    font-size: 0.8125rem;
  }
}

/* -----------------------------------------------------------------------------
   SYSTEMS CUE - Visual process flow for hero
   ----------------------------------------------------------------------------- */
.ai-theme .ai-systems-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ai-space-3);
  margin-top: var(--ai-space-12);
  flex-wrap: wrap;
}

.ai-theme .ai-systems-step {
  display: flex;
  align-items: center;
  gap: var(--ai-space-3);
  padding: var(--ai-space-3) var(--ai-space-5);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-full);
  color: var(--ai-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--ai-transition-base);
}

.ai-theme .ai-systems-step:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
  color: var(--ai-text-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.ai-theme .ai-systems-step:hover svg {
  opacity: 1;
  color: var(--ai-accent);
}

.ai-theme .ai-systems-step svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.ai-theme .ai-systems-arrow {
  color: var(--ai-text-subtle);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .ai-theme .ai-systems-cue {
    flex-direction: column;
    gap: var(--ai-space-2);
  }

  .ai-theme .ai-systems-arrow {
    transform: rotate(90deg);
  }
}

/* -----------------------------------------------------------------------------
   SIGNAL STRIP - Differentiator bar
   ----------------------------------------------------------------------------- */
.ai-theme .ai-signal-strip {
  padding: var(--ai-space-5) 0;
  background: var(--ai-bg-secondary);
  border-top: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
}

.ai-theme .ai-signal-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ai-space-8);
  flex-wrap: wrap;
}

.ai-theme .ai-signal-item {
  display: flex;
  align-items: center;
  gap: var(--ai-space-3);
  color: var(--ai-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.ai-theme .ai-signal-item svg {
  width: 18px;
  height: 18px;
  color: var(--ai-accent);
  opacity: 0.8;
}

.ai-theme .ai-signal-item strong {
  color: var(--ai-text-secondary);
}

@media (max-width: 768px) {
  .ai-theme .ai-signal-strip-inner {
    flex-direction: column;
    gap: var(--ai-space-4);
    text-align: center;
  }
}

/* -----------------------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------------------- */
/* Primary Button */
.ai-theme .ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ai-space-2);
  padding: var(--ai-space-3) var(--ai-space-6);
  font-family: var(--ai-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--ai-radius-md);
  cursor: pointer;
  transition: all var(--ai-transition-fast);
}

.ai-theme .ai-btn:focus-visible {
  outline: 2px solid var(--ai-accent);
  outline-offset: 2px;
}

.ai-theme .ai-btn-primary {
  background: var(--ai-accent);
  color: white;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}

.ai-theme .ai-btn-primary:hover {
  background: var(--ai-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.ai-theme .ai-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

/* Secondary Button */
.ai-theme .ai-btn-secondary {
  background: transparent;
  color: var(--ai-text-primary);
  border: 1px solid var(--ai-border-hover);
}

.ai-theme .ai-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ai-theme .ai-btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Ghost Button */
.ai-theme .ai-btn-ghost {
  background: transparent;
  color: var(--ai-text-secondary);
  padding: var(--ai-space-2) var(--ai-space-4);
}

.ai-theme .ai-btn-ghost:hover {
  color: var(--ai-text-primary);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.ai-theme .ai-btn-ghost:active {
  transform: translateY(0);
}

/* Large Button */
.ai-theme .ai-btn-lg {
  padding: var(--ai-space-4) var(--ai-space-8);
  font-size: 1rem;
}

/* Small Button */
.ai-theme .ai-btn-sm {
  padding: var(--ai-space-2) var(--ai-space-4);
  font-size: 0.875rem;
}

/* Full Width */
.ai-theme .ai-btn-full {
  width: 100%;
}

/* Button with Icon */
.ai-theme .ai-btn svg {
  width: 18px;
  height: 18px;
}

/* -----------------------------------------------------------------------------
   6. CARDS
   ----------------------------------------------------------------------------- */
.ai-theme .ai-card {
  background: var(--ai-bg-tertiary);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-lg);
  padding: var(--ai-space-8);
  transition: transform 100ms ease, box-shadow 100ms ease, border-color 150ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 0;
}

.ai-theme .ai-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 1px rgba(59, 130, 246, 0.15);
  transform: translateY(-3px);
}

.ai-theme .ai-card-header {
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ai-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--ai-space-4);
  color: var(--ai-text-secondary);
  transition: all 100ms ease;
}

.ai-theme .ai-card:hover .ai-card-icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ai-text-primary);
}

.ai-theme .ai-card-icon svg {
  width: 24px;
  height: 24px;
}

.ai-theme .ai-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--ai-space-3);
}

.ai-theme .ai-card p {
  color: var(--ai-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Glass Card Variant */
.ai-theme .ai-card-glass {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(var(--ai-blur-sm));
  -webkit-backdrop-filter: blur(var(--ai-blur-sm));
}

/* Featured Card */
.ai-theme .ai-card-featured {
  border-color: var(--ai-border-hover);
  position: relative;
}

.ai-theme .ai-card-featured::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ai-accent), transparent);
}

/* -----------------------------------------------------------------------------
   7. FEATURE GRID
   ----------------------------------------------------------------------------- */
.ai-theme .ai-section {
  padding: var(--ai-space-24) 0;
}

.ai-theme .ai-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--ai-space-12);
}

.ai-theme .ai-section-header h2 {
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-section-header p {
  color: var(--ai-text-muted);
  font-size: 1.125rem;
}

/* Standalone section title/subtitle (when not using ai-section-header wrapper) */
.ai-theme .ai-section-title {
  font-family: var(--ai-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ai-text-primary);
  text-align: center;
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-section-subtitle {
  font-size: 1.125rem;
  color: var(--ai-text-secondary);
  text-align: center;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto var(--ai-space-8);
}

.ai-theme .ai-grid {
  display: grid;
  gap: var(--ai-space-6);
}

.ai-theme .ai-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ai-theme .ai-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ai-theme .ai-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .ai-theme .ai-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-theme .ai-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ai-theme .ai-section {
    padding: var(--ai-space-16) 0;
  }

  .ai-theme .ai-grid-2,
  .ai-theme .ai-grid-3,
  .ai-theme .ai-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Feature Cards (specialized for capabilities) */
.ai-theme .ai-feature-card {
  text-align: center;
  padding: var(--ai-space-10) var(--ai-space-6);
}

.ai-theme .ai-feature-card .ai-card-icon {
  margin: 0 auto var(--ai-space-6);
  width: 60px;
  height: 60px;
}

.ai-theme .ai-feature-card .ai-card-icon svg {
  width: 28px;
  height: 28px;
}

.ai-theme .ai-feature-card h3 {
  font-size: 1.125rem;
}

/* -----------------------------------------------------------------------------
   8. FORMS
   ----------------------------------------------------------------------------- */
.ai-theme .ai-form-group {
  margin-bottom: var(--ai-space-5);
  width: 100%;
  min-width: 0;
}

.ai-theme .ai-form-label {
  display: block;
  margin-bottom: var(--ai-space-2);
  color: var(--ai-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.ai-theme .ai-form-input,
.ai-theme .ai-form-select,
.ai-theme .ai-form-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: var(--ai-space-4) var(--ai-space-5);
  background: var(--ai-bg-elevated);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-md);
  color: var(--ai-text-primary);
  font-family: var(--ai-font-sans);
  font-size: 1rem;
  transition: all var(--ai-transition-fast);
}

.ai-theme .ai-form-input::placeholder,
.ai-theme .ai-form-textarea::placeholder {
  color: var(--ai-text-subtle);
}

.ai-theme .ai-form-input:focus,
.ai-theme .ai-form-select:focus,
.ai-theme .ai-form-textarea:focus {
  outline: none;
  border-color: var(--ai-border-focus);
  box-shadow: 0 0 0 3px var(--ai-accent-subtle);
}

.ai-theme .ai-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.ai-theme .ai-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.ai-theme .ai-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ai-space-6);
  width: 100%;
  min-width: 0;
}

.ai-theme .ai-form-row .ai-form-group {
  margin-bottom: 0;
}

.ai-theme .ai-form-row + .ai-form-group,
.ai-theme .ai-form-row + .ai-form-row,
.ai-theme .ai-form-group + .ai-form-row {
  margin-top: var(--ai-space-5);
}

@media (max-width: 768px) {
  .ai-theme .ai-form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Messages */
.ai-theme .ai-form-message {
  padding: var(--ai-space-4);
  border-radius: var(--ai-radius-md);
  font-size: 0.9375rem;
  margin-bottom: var(--ai-space-4);
  width: 100%;
  box-sizing: border-box;
}

.ai-theme .ai-form-message-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--ai-success);
}

.ai-theme .ai-form-message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--ai-error);
}

/* Form field validation states */
.ai-theme .ai-form-input.is-invalid,
.ai-theme .ai-form-textarea.is-invalid,
.ai-theme .ai-form-select.is-invalid {
  border-color: var(--ai-error);
}

.ai-theme .ai-form-input.is-invalid:focus,
.ai-theme .ai-form-textarea.is-invalid:focus,
.ai-theme .ai-form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.ai-theme .ai-form-error {
  color: var(--ai-error);
  font-size: 0.8125rem;
  margin-top: var(--ai-space-2);
  display: block;
}

/* -----------------------------------------------------------------------------
   9. FOOTER
   ----------------------------------------------------------------------------- */
.ai-theme .ai-footer {
  background: var(--ai-bg-secondary);
  border-top: 1px solid var(--ai-border);
  padding: var(--ai-space-16) 0 var(--ai-space-8);
}

.ai-theme .ai-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--ai-space-12);
  margin-bottom: var(--ai-space-12);
}

.ai-theme .ai-footer-logo {
  display: flex;
  align-items: center;
  gap: var(--ai-space-3);
  margin-bottom: var(--ai-space-2);
}

.ai-theme .ai-footer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

.ai-theme .ai-footer-logo span {
  font-family: var(--ai-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ai-text-primary);
  opacity: 0.9;
}

.ai-theme .ai-footer-tagline {
  font-size: 0.8125rem;
  color: var(--ai-text-subtle);
  letter-spacing: 0.02em;
  margin-bottom: var(--ai-space-4);
  font-weight: 500;
}

.ai-theme .ai-footer-brand p {
  color: var(--ai-text-muted);
  font-size: 0.9375rem;
  max-width: 280px;
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-footer-contact {
  color: var(--ai-text-muted);
  font-size: 0.875rem;
  line-height: 1.8;
}

.ai-theme .ai-footer-title {
  font-family: var(--ai-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ai-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-theme .ai-footer-links li {
  margin-bottom: var(--ai-space-3);
}

.ai-theme .ai-footer-links a {
  color: var(--ai-text-muted);
  font-size: 0.9375rem;
  transition: color var(--ai-transition-fast);
}

.ai-theme .ai-footer-links a:hover {
  color: var(--ai-text-primary);
}

.ai-theme .ai-footer-bottom {
  padding-top: var(--ai-space-8);
  border-top: 1px solid var(--ai-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ai-space-4);
}

.ai-theme .ai-footer-copy {
  color: var(--ai-text-subtle);
  font-size: 0.875rem;
}

.ai-theme .ai-footer-legal {
  display: flex;
  gap: var(--ai-space-6);
}

.ai-theme .ai-footer-legal a {
  color: var(--ai-text-subtle);
  font-size: 0.875rem;
}

.ai-theme .ai-footer-legal a:hover {
  color: var(--ai-text-secondary);
}

.ai-theme .ai-footer-dot {
  color: var(--ai-text-subtle);
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .ai-theme .ai-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--ai-space-8);
  }
}

/* Mobile Footer - Hidden by default */
.ai-theme .ai-footer-mobile {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop footer on mobile */
  .ai-theme .ai-footer-desktop {
    display: none;
  }

  /* Show mobile footer */
  .ai-theme .ai-footer-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--ai-space-8) 0;
  }

  .ai-theme .ai-footer-mobile .ai-footer-logo {
    margin-bottom: var(--ai-space-4);
  }

  .ai-theme .ai-footer-mobile-tagline {
    color: var(--ai-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--ai-space-6);
    max-width: 280px;
  }

  .ai-theme .ai-footer-mobile-email {
    color: var(--ai-text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: var(--ai-space-6);
    padding: var(--ai-space-3) var(--ai-space-5);
    background: var(--ai-bg-tertiary);
    border-radius: var(--ai-radius-full);
    transition: background var(--ai-transition-fast);
  }

  .ai-theme .ai-footer-mobile-email:hover {
    background: var(--ai-bg-elevated);
  }

  .ai-theme .ai-footer-mobile-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ai-space-2);
    margin-bottom: var(--ai-space-6);
  }

  .ai-theme .ai-footer-mobile-legal a {
    color: var(--ai-text-muted);
    font-size: 0.8125rem;
    text-decoration: none;
  }

  .ai-theme .ai-footer-mobile-legal span {
    color: var(--ai-text-subtle);
  }

  .ai-theme .ai-footer-mobile-copy {
    color: var(--ai-text-subtle);
    font-size: 0.75rem;
  }

  /* Reduce footer padding on mobile */
  .ai-theme .ai-footer {
    padding: var(--ai-space-8) 0 var(--ai-space-20);
  }

  /* Hide footer columns on mobile (for service pages) */
  .ai-theme .ai-footer-links,
  .ai-theme .ai-footer-col {
    display: none;
  }

  /* Compact footer content on mobile */
  .ai-theme .ai-footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ai-theme .ai-footer-content .ai-footer-brand {
    margin-bottom: var(--ai-space-4);
  }

  .ai-theme .ai-footer-content .ai-footer-tagline {
    margin-bottom: var(--ai-space-6);
  }

  /* Simplify bottom bar on mobile */
  .ai-theme .ai-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: var(--ai-space-4);
  }

  .ai-theme .ai-footer-bottom p {
    font-size: 0.8125rem;
  }
}

/* -----------------------------------------------------------------------------
   10. CTA SECTION
   ----------------------------------------------------------------------------- */
.ai-theme .ai-cta-section {
  padding: var(--ai-space-20) 0;
  text-align: center;
  background: var(--ai-bg-secondary);
  border-top: 1px solid var(--ai-border);
  border-bottom: 1px solid var(--ai-border);
}

.ai-theme .ai-cta-section h2 {
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-cta-section p {
  max-width: 500px;
  margin: 0 auto var(--ai-space-8);
  color: var(--ai-text-muted);
}

/* -----------------------------------------------------------------------------
   11. PAGE HERO (For inner pages)
   ----------------------------------------------------------------------------- */
.ai-theme .ai-page-hero {
  padding: calc(80px + var(--ai-space-16)) 0 var(--ai-space-16);
  text-align: center;
  background: var(--ai-bg-secondary);
  border-bottom: 1px solid var(--ai-border);
}

.ai-theme .ai-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-page-hero p {
  color: var(--ai-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* -----------------------------------------------------------------------------
   12. UTILITY CLASSES
   ----------------------------------------------------------------------------- */
.ai-theme .ai-text-center { text-align: center; }
.ai-theme .ai-text-left { text-align: left; }
.ai-theme .ai-text-right { text-align: right; }

.ai-theme .ai-text-primary { color: var(--ai-text-primary); }
.ai-theme .ai-text-secondary { color: var(--ai-text-secondary); }
.ai-theme .ai-text-muted { color: var(--ai-text-muted); }
.ai-theme .ai-text-accent { color: var(--ai-accent); }

.ai-theme .ai-bg-primary { background: var(--ai-bg-primary); }
.ai-theme .ai-bg-secondary { background: var(--ai-bg-secondary); }
.ai-theme .ai-bg-tertiary { background: var(--ai-bg-tertiary); }

.ai-theme .ai-mt-0 { margin-top: 0; }
.ai-theme .ai-mb-0 { margin-bottom: 0; }
.ai-theme .ai-mt-4 { margin-top: var(--ai-space-4); }
.ai-theme .ai-mb-4 { margin-bottom: var(--ai-space-4); }
.ai-theme .ai-mt-8 { margin-top: var(--ai-space-8); }
.ai-theme .ai-mb-8 { margin-bottom: var(--ai-space-8); }

.ai-theme .ai-hidden { display: none; }
.ai-theme .ai-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   13. ANIMATIONS & ACCESSIBILITY
   ----------------------------------------------------------------------------- */
/* Fade in animation */
.ai-theme .ai-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ai-theme .ai-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .ai-theme .ai-fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Focus visible polyfill styles */
.ai-theme *:focus:not(:focus-visible) {
  outline: none;
}

.ai-theme *:focus-visible {
  outline: 2px solid var(--ai-accent);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.ai-theme .ai-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ai-accent);
  color: white;
  padding: var(--ai-space-2) var(--ai-space-4);
  z-index: 9999;
  transition: top var(--ai-transition-fast);
}

.ai-theme .ai-skip-link:focus {
  top: 0;
}

/* -----------------------------------------------------------------------------
   14. SERVICE CARDS (Specialized for pricing/services)
   ----------------------------------------------------------------------------- */
.ai-theme .ai-service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-theme .ai-service-content {
  flex-grow: 1;
}

.ai-theme .ai-service-action {
  margin-top: auto;
  padding-top: var(--ai-space-4);
}

.ai-theme .ai-service-badge {
  display: inline-block;
  padding: var(--ai-space-1) var(--ai-space-3);
  background: var(--ai-accent-subtle);
  color: var(--ai-accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--ai-radius-full);
  margin-bottom: var(--ai-space-4);
  align-self: flex-start;
}

.ai-theme .ai-service-badge-new {
  background: linear-gradient(135deg, var(--ai-accent), #8b5cf6);
  color: #fff;
}

.ai-theme .ai-service-existing {
  font-size: 0.8125rem;
  color: var(--ai-text-muted);
  margin-top: var(--ai-space-4);
  padding-top: var(--ai-space-4);
  border-top: 1px solid var(--ai-border);
  line-height: 1.5;
}

.ai-theme .ai-service-features {
  list-style: none;
  margin: var(--ai-space-6) 0;
  padding: 0;
}

.ai-theme .ai-service-features li {
  position: relative;
  padding: var(--ai-space-2) 0;
  padding-left: var(--ai-space-6);
  color: var(--ai-text-secondary);
  font-size: 0.9375rem;
}

.ai-theme .ai-service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
}

.ai-theme .ai-service-price {
  padding: var(--ai-space-4);
  background: var(--ai-bg-elevated);
  border-radius: var(--ai-radius-md);
  text-align: center;
  margin: var(--ai-space-4) 0;
}

.ai-theme .ai-service-price-amount {
  font-family: var(--ai-font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ai-text-primary);
}

.ai-theme .ai-service-price-note {
  font-size: 0.875rem;
  color: var(--ai-text-muted);
  margin-top: var(--ai-space-1);
}

.ai-theme .ai-service-card .ai-btn {
  /* Button now aligned via .ai-service-action wrapper */
}

/* -----------------------------------------------------------------------------
   15. LISTS (Styled)
   ----------------------------------------------------------------------------- */
.ai-theme .ai-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ai-theme .ai-list li {
  position: relative;
  padding: var(--ai-space-2) 0;
  padding-left: var(--ai-space-6);
  color: var(--ai-text-secondary);
}

.ai-theme .ai-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--ai-text-subtle);
  border-radius: 50%;
}

/* -----------------------------------------------------------------------------
   16. DIVIDERS
   ----------------------------------------------------------------------------- */
.ai-theme .ai-divider {
  height: 1px;
  background: var(--ai-border);
  border: none;
  margin: var(--ai-space-8) 0;
}

.ai-theme .ai-divider-accent {
  background: linear-gradient(90deg, transparent, var(--ai-accent-subtle), transparent);
}

/* -----------------------------------------------------------------------------
   17. CONTACT SECTION
   ----------------------------------------------------------------------------- */
.ai-theme .ai-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ai-space-10);
  max-width: 1000px;
  margin: 0 auto;
}

.ai-theme .ai-contact-form {
  padding: var(--ai-space-8);
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ai-theme .ai-contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--ai-space-6);
}

.ai-theme .ai-contact-card {
  text-align: center;
  padding: var(--ai-space-8);
}

.ai-theme .ai-contact-card h3 {
  margin-bottom: var(--ai-space-2);
}

.ai-theme .ai-contact-icon {
  font-size: 2rem;
  margin-bottom: var(--ai-space-4);
}

.ai-theme .ai-contact-note {
  font-size: 0.875rem;
  margin-top: var(--ai-space-2);
}

/* Mobile: Form first, contact cards below, no split columns */
@media (max-width: 768px) {
  .ai-theme .ai-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--ai-space-8);
  }

  .ai-theme .ai-contact-form {
    padding: var(--ai-space-6);
    order: 1;
  }

  .ai-theme .ai-contact-info {
    order: 2;
  }

  .ai-theme .ai-contact-card {
    padding: var(--ai-space-6);
  }

  /* Ensure submit button is always prominent on mobile */
  .ai-theme .ai-contact-form .ai-btn {
    position: sticky;
    bottom: var(--ai-space-4);
    z-index: 10;
  }
}

/* -----------------------------------------------------------------------------
   SIMPLE PAGE STYLES (Legal, Articles, Guides)
   Shared styles for content-focused pages with minimal navigation
   ----------------------------------------------------------------------------- */

/* Simple Header - Logo + Back Link */
.ai-theme .simple-header {
  background: var(--ai-bg-secondary);
  border-bottom: 1px solid var(--ai-border);
  padding: 1.25rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.ai-theme .simple-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-theme .simple-header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ai-theme .simple-header-logo img {
  height: 40px;
  width: auto;
}

.ai-theme .simple-header-logo span {
  font-family: var(--ai-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ai-text-primary);
}

.ai-theme .simple-header .back-link {
  color: var(--ai-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--ai-radius-sm);
  transition: all 150ms ease;
}

.ai-theme .simple-header .back-link:hover {
  color: var(--ai-text-primary);
  background: var(--ai-bg-tertiary);
}

/* Simple Footer - One Line */
.ai-theme .simple-footer {
  background: var(--ai-bg-secondary);
  border-top: 1px solid var(--ai-border);
  color: var(--ai-text-secondary);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  margin-top: var(--ai-space-16);
}

.ai-theme .simple-footer a {
  color: var(--ai-text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.ai-theme .simple-footer a:hover {
  color: var(--ai-text-primary);
}

/* Simple Page Content Area */
.ai-theme .simple-page {
  min-height: 100vh;
  padding-top: 80px;
}

.ai-theme .simple-content-wrapper {
  max-width: 900px;
  margin: var(--ai-space-12) auto;
  padding: 0 var(--ai-space-6);
}

.ai-theme .simple-content {
  background: var(--ai-bg-tertiary);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-radius-xl);
  padding: 3rem;
}

@media (max-width: 768px) {
  .ai-theme .simple-content {
    padding: 2rem 1.5rem;
  }
}

/* -----------------------------------------------------------------------------
   FLOATING ACTION BUTTONS (WhatsApp FAB)
   ----------------------------------------------------------------------------- */
.ai-theme .fab-whatsapp {
  position: fixed;
  bottom: 88px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  z-index: 998;
  transition: all 0.2s ease;
}

.ai-theme .fab-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: #25D366;
  transition: all 0.2s ease;
}

.ai-theme .fab-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(37, 211, 102, 0.12);
}

.ai-theme .fab-whatsapp:hover svg {
  fill: #2EE372;
  transform: scale(1.1);
}

/* FAB Tooltip */
.ai-theme .fab-tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 18, 0.95);
  color: #fafafa;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ai-theme .fab-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(15, 15, 18, 0.95);
  border-right: none;
}

.ai-theme .fab-whatsapp:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .ai-theme .fab-whatsapp {
    bottom: 100px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .ai-theme .fab-whatsapp svg {
    width: 20px;
    height: 20px;
  }

  .ai-theme .fab-tooltip {
    display: none !important;
  }
}

/* -----------------------------------------------------------------------------
   SMALL MOBILE BREAKPOINTS (375px and below)
   ----------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .ai-theme h1 { font-size: 1.75rem; }
  .ai-theme h2 { font-size: 1.5rem; }
  .ai-theme h3 { font-size: 1.25rem; }

  .ai-theme .ai-container,
  .ai-theme .container {
    padding: 0 var(--ai-space-3);
  }

  .ai-theme .ai-btn {
    padding: var(--ai-space-3) var(--ai-space-4);
    font-size: 0.875rem;
  }

  .ai-theme .ai-btn-lg {
    padding: var(--ai-space-3) var(--ai-space-6);
    font-size: 0.9375rem;
  }

  .ai-theme .ai-card {
    padding: var(--ai-space-5);
  }

  .ai-theme .ai-service-price-amount {
    font-size: 1.25rem;
  }

  .ai-theme .ai-form-input,
  .ai-theme .ai-form-textarea,
  .ai-theme .ai-form-select {
    padding: var(--ai-space-3) var(--ai-space-4);
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .ai-theme .ai-navbar-logo span {
    font-size: 1rem;
  }

  .ai-theme .ai-navbar-logo img {
    height: 36px;
  }

  .ai-theme .ai-footer-mobile-tagline {
    font-size: 0.8rem;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
  .ai-theme h1 { font-size: 1.5rem; }
  .ai-theme h2 { font-size: 1.35rem; }

  .ai-theme .ai-container,
  .ai-theme .container {
    padding: 0 var(--ai-space-2);
  }

  .ai-theme .ai-hero {
    padding: calc(70px + var(--ai-space-12)) 0 var(--ai-space-12);
  }

  .ai-theme .ai-hero-subtitle {
    font-size: 1rem;
  }

  .ai-theme .ai-section {
    padding: var(--ai-space-12) 0;
  }

  .ai-theme .ai-card {
    padding: var(--ai-space-4);
  }

  .ai-theme .ai-navbar-logo span {
    display: none; /* Hide text, show only logo on very small screens */
  }

  .ai-theme .ai-mobile-menu {
    padding: 70px var(--ai-space-4) var(--ai-space-4);
  }

  .ai-theme .ai-mobile-menu a {
    font-size: 1rem;
    padding: var(--ai-space-3) 0;
  }
}
