/* ========================================
   Bruviti Design System v2.0
   AI Operating System for the Aftermarket
   ======================================== */

/* ========================================
   1. CSS VARIABLES & RESET
   ======================================== */

:root {
  /* Color System */
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --medium-gray: #404040;
  --light-gray: #808080;
  --text-white: #ffffff;
  --accent-orange: #ff6b35;
  
  /* Color with Opacity - Orange variants */
  --accent-orange-5: rgba(255, 107, 53, 0.05);
  --accent-orange-10: var(--accent-orange-10);
  --accent-orange-15: rgba(255, 107, 53, 0.15);
  --accent-orange-20: var(--accent-orange-20);
  --accent-orange-30: var(--accent-orange-30);
  --accent-orange-40: var(--accent-orange-40);
  --accent-orange-50: rgba(255, 107, 53, 0.5);
  
  /* Text Color Variations */
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-subtle: rgba(255, 255, 255, 0.8);
  --text-bright: rgba(255, 255, 255, 0.95);
  
  /* Typography Scale */
  --font-system: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Border Radius */
  --radius-sm: 0.125rem;  /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Spacing Scale (8px base) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
  --space-6: 2rem;     /* 32px */
  --space-7: 2.5rem;   /* 40px */
  --space-8: 3rem;     /* 48px */
  --space-9: 4rem;     /* 64px */
  --space-10: 5rem;    /* 80px */
  --space-11: 6rem;    /* 96px */
  --space-12: 8rem;    /* 128px */
  --space-15: 10rem;   /* 160px */
  
  /* Section Spacing */
  --space-section-sm: 5rem;    /* 80px */
  --space-section-md: 7.5rem;  /* 120px */
  --space-section-lg: 10rem;   /* 160px */
  --space-section-mobile: 3.75rem; /* 60px */
  
  /* Container Widths - More Generous */
  --container-xs: 540px;
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1140px;
  --container-xl: 1320px;
  --container-2xl: 1536px;
  --container-3xl: 1920px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
  
  /* Sophisticated Shadow System */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 20px 40px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 40px 60px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--accent-orange-10);
  
  /* Z-index Scale */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-overlay: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ========================================
   2. RESET & BASE
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  /* DISABLED: overflow-x: hidden; /* Was interfering with mobile scroll */
  max-width: 100vw;
}

body {
  font-family: var(--font-system);
  font-size: 1.125rem; /* 18px desktop */
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-white);
  background: linear-gradient(180deg, 
    var(--primary-dark) 0%, 
    #0f0f0f 50%, 
    var(--primary-dark) 100%);
  min-height: 100vh;
  position: relative;
  /* DISABLED: overflow-x: hidden; /* Was interfering with mobile scroll */
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(255, 107, 53, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */

/* Elegant Typography with Better Spacing */
h1, .h1 {
  font-size: 4rem; /* 64px desktop */
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: var(--space-6); /* 32px */
  margin-top: 0;
  color: var(--text-white);
  position: relative;
}

h2, .h2 {
  font-size: 2.5rem; /* 40px desktop */
  line-height: 1.25;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin-bottom: var(--space-5); /* 24px */
  margin-top: var(--space-8); /* 48px top margin for separation */
  color: var(--text-white);
  position: relative;
}

h3, .h3 {
  font-size: 1.75rem; /* 28px desktop */
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: normal;
  margin-bottom: var(--space-5); /* 24px */
  margin-top: var(--space-6); /* 32px top margin */
  color: var(--text-white);
}

h4, .h4 {
  font-size: 1.5rem; /* 24px desktop */
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--text-white);
}

h5, .h5 {
  font-size: 1.25rem; /* 20px desktop */
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-white);
}

h6, .h6 {
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-gray);
}

/* Body Text */
/* Body Text with Optimal Spacing */
p {
  margin-bottom: var(--space-4); /* 16px */
  margin-top: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem; /* 18px desktop */
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* Last paragraph in a container */
p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph styling */
.lead,
.section > div > p:first-of-type,
.card > p:first-of-type {
  font-size: 1.15rem; /* 22px */
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 300;
  margin-bottom: var(--space-6); /* 32px */
  margin-top: 0;
}

/* Alternative body to CTA spacing */
.mb-cta {
  margin-bottom: 1.5rem; /* 24px body to CTA spacing */
}

.mb-cta-sm {
  margin-bottom: 1rem; /* 16px body to CTA spacing */
}

.text-large {
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  font-weight: 300;
}

.text-small {
  font-size: 1rem; /* 16px - MINIMUM */
  line-height: 1.5;
  font-weight: 400;
}

.text-xs {
  font-size: 1rem; /* 16px - MINIMUM */
  line-height: 1.4;
  font-weight: 400;
}

/* Stat Label Styles */
.stat-label {
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--light-gray);
}

.stat-label--regular {
  font-size: 1rem; /* 16px regular */
  font-weight: 300;
  text-transform: none;
  letter-spacing: normal;
  color: var(--light-gray);
}

.text-muted {
  color: var(--light-gray);
}

.text-accent {
  color: var(--accent-orange);
}

strong, b {
  font-weight: 500; /* Lighter bold */
}

em, i {
  font-style: italic;
}

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }

code {
  font-family: var(--font-mono);
  font-size: 1em; /* 16px minimum */
  background-color: var(--secondary-dark);
  padding: 0.125rem 0.25rem;
  border-radius: 0;
}

pre {
  font-family: var(--font-mono);
  font-size: 1rem; /* 16px minimum */
  background-color: var(--secondary-dark);
  padding: var(--space-4);
  overflow-x: auto;
  margin-bottom: var(--space-4);
  border: 1px solid var(--medium-gray);
}

/* ========================================
   4. LAYOUT & CONTAINERS
   ======================================== */

/* 
SCROLL NAVIGATION SYSTEM - COMMENTED OUT FOR FUTURE USE
This system provided a left-side navigation bar that required main content
to have a left margin to prevent overlap. The margin has been removed to
implement full-width layout with the new overlay navigation system.

Original functionality:
- Left margin of 220px on desktop (1200px+) to accommodate scroll nav
- Transition animation for margin changes
- Mobile-first approach with no margin on smaller screens

To restore: Uncomment the margin-left rules below and restore scroll-nav system
*/

/* Main content wrapper - now full width */
.main-content {
  margin-left: 0;
  /* transition: margin-left var(--transition-base); */
}

/* ========================================
   STANDARDIZED CONTAINER SYSTEM
   Responsive padding with 8px grid system
   ======================================== */

/* Base Container - Desktop (1024px+) */
.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

/* Container Variants with Standardized Padding */
.container-wide {
  max-width: var(--container-3xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

.container-narrow {
  max-width: var(--container-lg);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

/* Size-only containers (inherit padding from base) */
.container-xs { 
  max-width: var(--container-xs); 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

.container-sm { 
  max-width: var(--container-sm); 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

.container-md { 
  max-width: var(--container-md); 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

.container-lg { 
  max-width: var(--container-lg); 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

.container-xl { 
  max-width: var(--container-xl); 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

.container-2xl { 
  max-width: var(--container-2xl); 
  margin-left: auto; 
  margin-right: auto; 
  padding-left: var(--space-8); /* 48px desktop */
  padding-right: var(--space-8); /* 48px desktop */
}

/* Text Block Width Constraints for Optimal Reading */
.text-block {
  max-width: 720px; /* Optimal reading width */
  margin-left: auto;
  margin-right: auto;
}

.text-block-wide {
  max-width: 840px; /* Wider text block */
  margin-left: auto;
  margin-right: auto;
}

.text-block-narrow {
  max-width: 600px; /* Narrow text width */
  margin-left: auto;
  margin-right: auto;
}

/* Grid System - Improved Spacing */
.grid {
  display: grid;
  gap: var(--space-6); /* 32px default gap */
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6); /* 32px column gap */
}

/* Grid gap variants */
.gap-lg { gap: var(--space-8); } /* 48px */
.gap-xl { gap: var(--space-9); } /* 64px */

/* Grid column spans for 12-column system */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }

/* Legacy grid classes for compatibility */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Flexbox Utilities */
.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid gap utilities */
.gap-grid { gap: 1.5rem; } /* 24px desktop grid gap */
.gap-grid-mobile { gap: 1rem; } /* 16px mobile grid gap */

/* ========================================
   5. COMPONENTS
   ======================================== */

/* Clean Card Design - Minimal Gradients */
.card {
  background: var(--secondary-dark); /* Solid dark background */
  border: 1px solid rgba(64, 64, 64, 0.3);
  border-radius: 0;
  padding: var(--space-8); /* 48px */
  transition: border-color var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-6); /* 32px between cards */
}

.card:last-child {
  margin-bottom: 0;
}

/* Removed decorative card animations */

/* Removed decorative card glow effects */

/* Removed shimmer animation */

.card:hover {
  border-color: var(--accent-orange);
  transform: translateY(-4px);
}

/* Removed pulse animation and hover pseudo-elements */

.card-compact {
  padding: var(--space-6); /* 32px instead of 16px */
}

.card-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--medium-gray);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: var(--space-2);
  letter-spacing: -0.25px;
}

.card-body {
  margin-bottom: var(--space-4);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--medium-gray);
}

/* Buttons - Enterprise Grade with Better Spacing */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6); /* 16px 32px */
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.5;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.02em;
  margin-right: var(--space-4); /* Space between buttons */
  margin-bottom: var(--space-4);
}

.btn:last-child {
  margin-right: 0;
}

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

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

.btn:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  background-color: var(--medium-gray);
  border-color: var(--medium-gray);
  color: var(--light-gray);
}

.btn:disabled::before {
  display: none;
}

/* Button Variants - Professional States */
.btn-primary {
  background-color: var(--accent-orange);
  color: var(--primary-dark);
  border-color: var(--accent-orange);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 6px 12px var(--accent-orange-30);
  transform: translateY(-2px);
}

.btn-primary:active:not(:disabled) {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  opacity: 0.9;
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--medium-gray);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent-orange);
  background-color: var(--accent-orange-10);
  color: var(--accent-orange);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active:not(:disabled) {
  background-color: var(--accent-orange-20);
  transform: translateY(0);
}

.btn-minimal {
  background-color: transparent;
  color: var(--text-white);
  border-color: transparent;
  padding: var(--space-2) var(--space-3);
}

.btn-minimal:hover:not(:disabled) {
  color: var(--accent-orange);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-base); /* 16px - MINIMUM */
  font-weight: var(--font-normal);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg); /* 18px */
  font-weight: var(--font-normal);
}

/* CTA Button Standardization */
.btn-cta {
  background-color: var(--accent-orange);
  color: var(--primary-dark);
  border-color: var(--accent-orange);
  font-weight: var(--font-medium);
  letter-spacing: 0.025em;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  box-shadow: 0 6px 12px var(--accent-orange-30);
  transition: all var(--transition-base);
}

.btn-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--accent-orange-40);
}

.btn-cta:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 8px var(--accent-orange-30);
}

/* Ghost Button - outline style */
.btn-ghost {
  background-color: transparent;
  color: var(--accent-orange);
  border-color: var(--accent-orange);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--accent-orange);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--accent-orange-30);
}

/* Icon Button */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 500;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-white);
  background-color: var(--secondary-dark);
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  transition: all var(--transition-base);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--light-gray);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 0;
  border-color: var(--accent-orange);
  background-color: var(--primary-dark);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 3px var(--accent-orange-10);
  border-radius: 0;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--light-gray);
  opacity: 0.6;
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23808080' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-8);
}

.form-checkbox,
.form-radio {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--medium-gray);
  background-color: var(--secondary-dark);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--space-2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-checkbox {
  border-radius: 0;
}

.form-radio {
  border-radius: 0; /* Sharp edges for enterprise look */
}

.form-checkbox:hover,
.form-radio:hover {
  border-color: var(--light-gray);
  box-shadow: 0 0 0 3px var(--accent-orange-10);
}

.form-checkbox:focus,
.form-radio:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
  border-radius: 0;
}

.form-checkbox:checked,
.form-radio:checked {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.form-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--primary-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-radio:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 0; /* Sharp square indicator */
  background-color: var(--primary-dark);
}

.form-error {
  color: var(--accent-orange);
  font-size: 1rem; /* 16px - MINIMUM */
  margin-top: var(--space-2);
}

/* ========================================
   STANDARDIZED CARD COMPONENTS
   ======================================== */

/* Card Variations */
.card-solution {
  background: var(--secondary-dark);
  border: 1px solid var(--medium-gray);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.card-solution:hover {
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-resource {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--medium-gray);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

.card-resource:hover {
  border-color: var(--light-gray);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-platform {
  background: var(--primary-dark);
  border: 2px solid var(--accent-orange-30);
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
}

.card-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-orange);
}

/* ========================================
   TEXT HIERARCHY SYSTEM
   ======================================== */

/* Headings */
.text-heading-xl {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-white);
}

.text-heading-lg {
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--text-white);
}

.text-heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-white);
}

.text-heading-sm {
  font-size: var(--text-2xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-snug);
  color: var(--text-white);
}

/* Body Text */
.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-subtle);
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-subtle);
}

.text-body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-subtle);
}

/* Utility Text Classes */
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-bright { color: var(--text-bright); }
.text-accent { color: var(--accent-orange); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Navigation */
.nav {
  background-color: var(--secondary-dark);
  border-bottom: 1px solid var(--medium-gray);
  padding: var(--space-4) 0;
}

/* .nav-container moved to navigation.css for better organization */

/* Breadcrumb Navigation - Consolidated from multiple files */
.breadcrumb-nav {
  padding: var(--space-4) var(--space-6);
  background-color: var(--primary-dark);
  border-bottom: 1px solid var(--medium-gray);
  margin-top: 72px;
  font-size: 1rem; /* Using larger size from navigation.css */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.breadcrumb-link {
  color: var(--light-gray);
  text-decoration: none;
  font-weight: 300;
  transition: color var(--transition-fast, 0.2s ease);
}

.breadcrumb-link:hover {
  color: var(--accent-orange);
}

.breadcrumb-separator {
  color: var(--medium-gray);
  margin: 0 var(--space-1);
}

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 400;
}

.main-content.has-breadcrumbs {
  margin-top: 120px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 400;
  transition: all var(--transition-base);
  padding: var(--space-2) 0;
  display: block;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.nav-link:hover {
  color: var(--accent-orange);
  opacity: 1;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--accent-orange);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-orange);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* ========================================
   6. UTILITIES
   ======================================== */

/* Spacing */
.m-0 { margin: var(--space-0); }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-0 { margin-left: var(--space-0); }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-5 { margin-left: var(--space-5); }
.ml-6 { margin-left: var(--space-6); }
.ml-8 { margin-left: var(--space-8); }

.mr-0 { margin-right: var(--space-0); }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-5 { margin-right: var(--space-5); }
.mr-6 { margin-right: var(--space-6); }
.mr-8 { margin-right: var(--space-8); }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: var(--space-0); margin-bottom: var(--space-0); }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }

.p-0 { padding: var(--space-0); }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.pt-0 { padding-top: var(--space-0); }
.pt-1 { padding-top: var(--space-1); }
.pt-2 { padding-top: var(--space-2); }
.pt-3 { padding-top: var(--space-3); }
.pt-4 { padding-top: var(--space-4); }
.pt-5 { padding-top: var(--space-5); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-0 { padding-bottom: var(--space-0); }
.pb-1 { padding-bottom: var(--space-1); }
.pb-2 { padding-bottom: var(--space-2); }
.pb-3 { padding-bottom: var(--space-3); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-5 { padding-bottom: var(--space-5); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

.pl-0 { padding-left: var(--space-0); }
.pl-1 { padding-left: var(--space-1); }
.pl-2 { padding-left: var(--space-2); }
.pl-3 { padding-left: var(--space-3); }
.pl-4 { padding-left: var(--space-4); }
.pl-5 { padding-left: var(--space-5); }
.pl-6 { padding-left: var(--space-6); }
.pl-8 { padding-left: var(--space-8); }

.pr-0 { padding-right: var(--space-0); }
.pr-1 { padding-right: var(--space-1); }
.pr-2 { padding-right: var(--space-2); }
.pr-3 { padding-right: var(--space-3); }
.pr-4 { padding-right: var(--space-4); }
.pr-5 { padding-right: var(--space-5); }
.pr-6 { padding-right: var(--space-6); }
.pr-8 { padding-right: var(--space-8); }

.px-0 { padding-left: var(--space-0); padding-right: var(--space-0); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-0 { padding-top: var(--space-0); padding-bottom: var(--space-0); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; } /* Restored center alignment */
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Section-specific text alignments */
.section-align-left,
.section-align-left .container,
.section-align-left .container-xl,
.section-align-left .container-2xl,
.section-align-left .card,
.section-align-left .grid { 
  text-align: left !important; 
}

.section-align-left h1,
.section-align-left h2,
.section-align-left h3,
.section-align-left h4,
.section-align-left h5,
.section-align-left h6,
.section-align-left p,
.section-align-left ul,
.section-align-left ol,
.section-align-left li,
.section-align-left figcaption,
.section-align-left .text-large,
.section-align-left .text-small { 
  text-align: left !important; 
}

/* Font Weight - duplicates removed (already defined at line 315-317) */
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }

/* Background Colors */
.bg-primary { background-color: var(--primary-dark); }
.bg-secondary { background-color: var(--secondary-dark); }
.bg-accent { background-color: var(--accent-orange); }
.bg-transparent { background-color: transparent; }

/* Border */
.border { border: 1px solid var(--medium-gray); }
.border-t { border-top: 1px solid var(--medium-gray); }
.border-b { border-bottom: 1px solid var(--medium-gray); }
.border-l { border-left: 1px solid var(--medium-gray); }
.border-r { border-right: 1px solid var(--medium-gray); }
.border-none { border: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Z-index */
.z-0 { z-index: var(--z-base); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* ========================================
   7. SECTIONS & HEROES - Modern Treatments
   ======================================== */

.section {
  padding: var(--space-section-sm) 0; /* 80px top/bottom desktop */
  position: relative;
  z-index: 1;
}

.section-md {
  padding: var(--space-section-md) 0; /* 120px top/bottom */
}

.section-lg {
  padding: var(--space-section-lg) 0; /* 160px top/bottom */
}

.section-compact {
  padding: var(--space-9) 0; /* 64px top/bottom */
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, 
      transparent 0%, 
      rgba(255, 107, 53, 0.01) 50%, 
      transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.section-compact {
  padding: 6rem 0; /* 96px top/bottom desktop */
}

/* Alternating section backgrounds */
.section:nth-child(even) {
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(26, 26, 26, 0.6) 50%,
    rgba(10, 10, 10, 0.4) 100%);
}

.section:nth-child(odd) {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 10, 10, 0.2) 50%,
    transparent 100%);
}

.section-hero {
  padding: 6rem 0; /* 96px top/bottom desktop */
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-8) var(--space-8); /* Standardized desktop padding */
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: var(--space-5);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--light-gray);
  margin-bottom: var(--space-6);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========================================
   8. TABLES
   ======================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--secondary-dark);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--medium-gray);
}

.table th {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem; /* 16px - MINIMUM */
  letter-spacing: 0.1em;
  color: var(--light-gray);
  background-color: var(--primary-dark);
}

.table tr {
  transition: all var(--transition-fast);
}

.table tr:hover {
  background-color: rgba(255, 107, 53, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   9. BADGES & TAGS
   ======================================== */

.badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background-color: var(--secondary-dark);
  color: var(--text-white);
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-fast);
}

.badge:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-orange);
}

.badge-primary {
  background-color: var(--accent-orange);
  color: var(--primary-dark);
  border-color: var(--accent-orange);
}

.badge-secondary {
  background-color: var(--medium-gray);
  color: var(--text-white);
  border-color: var(--medium-gray);
}

/* ========================================
   10. MODALS & OVERLAYS
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
}

.modal {
  background-color: var(--secondary-dark);
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-6);
  position: relative;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.modal-header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--medium-gray);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.5px;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: transparent;
  border: none;
  color: var(--light-gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-white);
}

/* ========================================
   11. RESPONSIVE DESIGN
   ======================================== */

/* ========================================
   RESPONSIVE CONTAINER PADDING
   Standardized spacing across all breakpoints
   ======================================== */

/* Tablet (768px - 1023px): 32px left/right padding */
@media (min-width: 768px) and (max-width: 1023px) {
  .container,
  .container-wide,
  .container-narrow,
  .container-xs,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-2xl,
  .hero-content {
    padding-left: var(--space-6); /* 32px tablet */
    padding-right: var(--space-6); /* 32px tablet */
  }
}

/* ========================================
   MOBILE STYLES (320px - 767px)
   Mobile-first approach with touch-friendly sizing
   ======================================== */
@media (max-width: 767px) {
  .container,
  .container-wide,
  .container-narrow,
  .container-xs,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-2xl,
  .hero-content {
    padding-left: var(--space-4); /* 16px mobile */
    padding-right: var(--space-4); /* 16px mobile */
  }
  
  .container-80 {
    padding-left: var(--space-4); /* 16px mobile */
    padding-right: var(--space-4); /* 16px mobile */
  }
  
  /* Text block mobile width - make it responsive */
  .text-block {
    max-width: 100%; /* Full width on mobile */
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  
  .text-block-narrow {
    max-width: 100%; /* Full width on mobile */
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
  
  /* Mobile grid - 4 columns */
  .grid-12 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem; /* 16px mobile column gap */
  }
  
  /* Mobile grid utilities */
  .grid {
    gap: 1rem; /* 16px mobile gap */
  }
  
  /* Section spacing mobile - maintain generous spacing */
  .section {
    padding: 4rem 0; /* 64px top/bottom mobile */
  }
  
  .section-large {
    padding: 5rem 0; /* 80px top/bottom mobile */
  }
  
  .section-xl {
    padding: 6rem 0; /* 96px top/bottom mobile */
  }
  
  .section-hero {
    padding: 4rem 0; /* 64px top/bottom mobile */
  }
  
  /* Body text - 16px mobile with overflow prevention */
  body {
    font-size: 1rem; /* 16px mobile */
    line-height: 1.5;
    overflow-x: hidden; /* Prevent horizontal scroll */
    word-wrap: normal; /* Only break extremely long words */
    overflow-wrap: normal; /* Only break extremely long words */
    hyphens: none; /* Disable hyphenation */
    -webkit-hyphens: none; /* Disable hyphenation Safari */
    -ms-hyphens: none; /* Disable hyphenation IE/Edge */
    word-break: normal; /* Prevent breaking normal words */
  }
  
  /* H1 - Responsive mobile sizing without hyphenation */
  h1, .h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3rem); /* Dynamic responsive sizing */
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    word-wrap: normal; /* Only break extremely long words */
    overflow-wrap: normal; /* Only break extremely long words */
    hyphens: none; /* Disable hyphenation */
    -webkit-hyphens: none; /* Disable hyphenation Safari */
    -ms-hyphens: none; /* Disable hyphenation IE/Edge */
    word-break: normal; /* Prevent breaking normal words */
  }
  
  /* H2 - Responsive mobile sizing without hyphenation */
  h2, .h2 {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem); /* Dynamic responsive sizing */
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: -0.25px;
    margin-bottom: 1.25rem;
    word-wrap: normal; /* Only break extremely long words */
    overflow-wrap: normal; /* Only break extremely long words */
    hyphens: none; /* Disable hyphenation */
    -webkit-hyphens: none; /* Disable hyphenation Safari */
    -ms-hyphens: none; /* Disable hyphenation IE/Edge */
    word-break: normal; /* Prevent breaking normal words */
  }
  
  /* H3 - Responsive mobile sizing without hyphenation */
  h3, .h3 {
    font-size: clamp(1.25rem, 3vw + 0.25rem, 1.5rem); /* Dynamic responsive sizing */
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 1rem;
    word-wrap: normal; /* Only break extremely long words */
    overflow-wrap: normal; /* Only break extremely long words */
    hyphens: none; /* Disable hyphenation */
    -webkit-hyphens: none; /* Disable hyphenation Safari */
    -ms-hyphens: none; /* Disable hyphenation IE/Edge */
    word-break: normal; /* Prevent breaking normal words */
  }
  
  /* H4 */
  h4, .h4 {
    font-size: 1.25rem; /* 20px mobile */
    font-weight: 400;
  }
  
  /* H5 */
  h5, .h5 {
    font-size: 1.125rem; /* 18px mobile */
    font-weight: 400;
  }
  
  /* Body paragraphs - ensure readability without hyphenation */
  p {
    font-size: 1rem; /* 16px mobile */
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 1.25rem;
    word-wrap: normal; /* Only break extremely long words */
    overflow-wrap: normal; /* Only break extremely long words */
    hyphens: none; /* Disable hyphenation */
    -webkit-hyphens: none; /* Disable hyphenation Safari */
    -ms-hyphens: none; /* Disable hyphenation IE/Edge */
    word-break: normal; /* Prevent breaking normal words */
  }
  
  /* Text sizes */
  .text-large {
    font-size: 1.125rem; /* 18px mobile */
    line-height: 1.4;
  }
  
  .text-small {
    font-size: 1rem; /* 16px - MINIMUM */ /* 14px mobile */
  }
  
  /* Grid system adjustments for mobile */
  .grid {
    gap: var(--space-5); /* 24px mobile gap */
  }
  
  .grid-12 {
    gap: var(--space-5); /* 24px gap on mobile */
  }
  
  /* Mobile column spans for 4-column system */
  .col-span-1 { grid-column: span 1 / span 1; }
  .col-span-2 { grid-column: span 2 / span 2; }
  .col-span-3 { grid-column: span 3 / span 3; }
  .col-span-4 { grid-column: span 4 / span 4; }
  
  /* Desktop spans become full width on mobile */
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-9,
  .col-span-10,
  .col-span-11,
  .col-span-12 {
    grid-column: span 4 / span 4;
  }
}

/* ========================================
   ADDITIONAL MOBILE RESPONSIVE ENHANCEMENTS
   ======================================== */
@media (max-width: 768px) {
  /* Responsive Grid System */
  .grid-12 {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: var(--space-4); /* Consistent spacing */
  }
  
  /* Force all columns to full width on mobile */
  [class*="col-span-"] {
    grid-column: 1 / -1 !important;
  }
  
  /* Mobile Navigation */
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--secondary-dark);
    width: 100%;
    text-align: left;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--medium-gray);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  /* Grid Responsive */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5,
  .grid-cols-6 {
    grid-template-columns: 1fr;
  }
  
  /* Button Groups */
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  /* Tables */
  .table {
    font-size: 1rem; /* 16px - MINIMUM */
  }
  
  .table th,
  .table td {
    padding: var(--space-2);
  }
  
  /* Cards - Mobile optimized */
  .card {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }
  
  /* Forms - Touch-friendly sizing */
  .form-input,
  .form-select,
  .form-textarea {
    min-height: 48px; /* iOS minimum touch target */
    padding: var(--space-3) var(--space-3);
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .form-checkbox,
  .form-radio {
    width: 24px;
    height: 24px;
    margin-right: var(--space-3);
  }
  
  /* Touch-friendly form labels */
  .form-label {
    padding-bottom: var(--space-2);
    cursor: pointer;
  }
  
  /* Sections */
  /* .section is defined above in Layout Components */
  
  .section-hero {
    padding: var(--space-10) 0;
    min-height: 60vh;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet Grid */
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5,
  .grid-cols-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  /* Desktop Grid */
  .grid-cols-5,
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   SMALL MOBILE SCREENS (320px - 480px)
   Extra care for smallest devices
   ======================================== */
@media (max-width: 480px) {
  /* Extra small mobile typography - prevent overflow */
  h1, .h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem); /* Dynamic sizing */
    font-weight: 300;
    letter-spacing: -0.25px;
    padding: 0 var(--space-2); /* Add padding to prevent edge touching */
  }
  
  h2, .h2 {
    font-size: 1.75rem; /* 28px small mobile */
    font-weight: 300;
    letter-spacing: -0.25px;
  }
  
  h3, .h3 {
    font-size: 1.375rem; /* 22px small mobile */
    font-weight: 400;
  }
  
  /* Grid collapses to single column on smallest screens */
  .grid-12 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Full width text blocks on smallest screens */
  .text-block,
  .text-block-narrow {
    max-width: 100%;
  }
  
  /* Buttons remain readable and tappable */
  .btn {
    font-size: 1rem; /* 16px */
    min-height: 44px; /* iOS minimum touch target */
    padding: var(--space-3) var(--space-4);
  }
  
  /* Prevent horizontal overflow globally */
  * {
    max-width: 100vw;
  }
  
  /* Container overflow prevention */
  .container,
  .container-wide,
  .container-narrow,
  .container-xl,
  .container-2xl {
    max-width: 100%;
    overflow-x: hidden;
  }
}

/* Integration Tiles - Professional Styling */
.integration-tile {
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.integration-tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-orange);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.integration-tile:hover {
  background-color: var(--primary-dark);
  border-color: var(--accent-orange);
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.integration-tile:hover::after {
  transform: scaleX(1);
}

.integration-tile:focus-within {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 0;
}

/* Responsive column spans for integrations */
@media (min-width: 1024px) {
  /* Desktop: 4 per row (3 columns each in 12-column grid) */
  .col-span-3 { grid-column: span 3 / span 3; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet: 3 per row (4 columns each in 12-column grid) */
  .col-span-4 { grid-column: span 4 / span 4; }
}

@media (max-width: 767px) {
  /* Mobile: 2 per row (6 columns each in 12-column grid) */
  .col-span-6 { grid-column: span 6 / span 6; }
}

/* ========================================
   12. ANIMATIONS - Modern Micro-interactions
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-10deg) scale(0.9);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--accent-orange-20);
  }
  50% {
    box-shadow: 0 0 40px var(--accent-orange-40);
  }
}

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

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out both;
}

.animate-slideInUp {
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-slideInRight {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-scaleIn {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Stagger animation delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Intersection Observer Animation Triggers */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effects */
.parallax-slow {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-medium {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.parallax-fast {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   13. ACCESSIBILITY
   ======================================== */

/* Enterprise Focus States */
*:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
  border-radius: 0;
}

/* Skip to Content */
.skip-to-content {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: var(--space-3) var(--space-4);
  background-color: var(--accent-orange);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.skip-to-content:focus {
  left: 50%;
  transform: translateX(-50%);
  top: var(--space-4);
}

/* Screen Reader Only */
.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;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-input,
  .form-select,
  .form-textarea {
    border-width: 2px;
  }
}

/* ========================================
   14. PRINT STYLES
   ======================================== */

@media print {
  body {
    background-color: var(--text-white);
    color: var(--primary-dark);
  }
  
  .nav,
  .nav-toggle,
  .modal,
  .btn,
  .no-print {
    display: none !important;
  }
  
  a {
    color: var(--primary-dark);
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
  }
}

/* ========================================
   15. VIDEO STYLES
   ======================================== */

/* Hero Background Video */
.hero-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: var(--primary-dark);
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Hide video controls completely */
.hero-background-video::-webkit-media-controls {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-panel {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-play-button {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-timeline {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-current-time-display {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-mute-button {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-volume-slider {
  display: none !important;
}

.hero-background-video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

/* Hero section styles moved to hero-enhanced.css for better organization */

/* Video loading and fallback styles */
.hero-background-video[poster] {
  background-image: url('/images/hero/Bruviti_HeroImage1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Ensure video doesn't interfere with content */
.hero-background-video {
  filter: none;
  opacity: 1;
  /* DEBUG: Make video more visible for testing */
  min-height: 100vh !important;
  min-width: 100vw !important;
}

/* Section Video Styles */
.section-video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border: none;
  background: transparent;
  border-radius: 0;
}

/* Lazy loading video styles */
.section-video[data-lazy-video="true"] {
  /* Ensure consistent dimensions to prevent layout shift */
  min-height: 300px;
  width: 100%;
  height: auto;
  background: var(--bg-primary);
  display: block;
}

/* Video loading state */
.section-video.video-loading {
  opacity: 0.8;
  filter: blur(1px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Video loaded state */
.section-video.video-loaded {
  opacity: 1;
  filter: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Ensure poster image displays properly during loading */
.section-video[data-lazy-video="true"]:not(.video-loaded) {
  background-image: url('/images/hero/email_video_thumbnail.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: var(--bg-primary) !important;
}

/* Override hero-enhanced.css conflicts for lazy loading video */
.aip-section-with-image .video-container .section-video[data-lazy-video="true"]:not(.video-loaded) {
  background-image: url('/images/hero/email_video_thumbnail.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: var(--bg-primary) !important;
}

/* Ensure video poster displays properly */
.section-video[data-lazy-video="true"]:not(.video-loaded) img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

/* Force poster display for lazy loading video */
.section-video[data-lazy-video="true"]:not(:has(source)) {
  background-image: url('/images/hero/email_video_thumbnail.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: var(--bg-primary) !important;
}

/* Fallback for browsers that don't support :has() */
.section-video[data-lazy-video="true"]:not(.video-loaded) {
  background-image: url('/images/hero/email_video_thumbnail.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: var(--bg-primary) !important;
}

/* Video Loading Indicator */
.video-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0, 0, 0, 0.8);
  padding: var(--space-4);
  border-radius: 8px;
  z-index: 10;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

.video-loading-indicator .loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--accent-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.video-loading-indicator .loading-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced video transition states */
.section-video[data-lazy-video="true"].video-loading {
  opacity: 0.9;
  filter: blur(0.5px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.section-video[data-lazy-video="true"].video-loaded {
  opacity: 1;
  filter: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

/* Smooth thumbnail to video transition */
.section-video[data-lazy-video="true"] {
  transition: background-image 0.3s ease, opacity 0.5s ease;
}

/* Ensure video container can hold loading indicator */
.video-container {
  position: relative;
}

/* Video Caption Styling */
.video-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  margin-top: var(--space-3);
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* Responsive video caption */
@media (max-width: 768px) {
  .video-caption {
    font-size: 0.75rem;
    margin-top: var(--space-2);
    letter-spacing: 0.05em;
  }
}

@media (max-width: 480px) {
  .video-caption {
    font-size: 0.6875rem;
    margin-top: var(--space-2);
    padding: 0 var(--space-2);
  }
}

/* Figure with video */
.section-diagram video {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
}


/* Video controls styling */
.section-video::-webkit-media-controls {
  background-color: rgba(0, 0, 0, 0.3);
}

.section-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Responsive video container */
@media (max-width: 768px) {
  .hero-background-video {
    height: 100vh;
    object-position: center;
    object-fit: cover;
  }
  
  .section-video {
    max-height: 400px;
  }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
  .hero-background-video {
    height: 100vh;
    object-position: center center;
    object-fit: cover;
  }
}

/* ========================================
   Embedded Engineers Section
   ======================================== */
.embedded-engineers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.embedded-engineers-content {
  padding-right: var(--space-4);
}

.engineer-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.engineer-item {
	display: flex;
	flex-direction: column;
	align-items: center; /* Centers both image and text consistently */
  }
  
  .engineer-image {
	width: 75%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background-color: var(--secondary-dark);
	/* Remove text-align dependency */
  }
  
  .engineer-subtitle {
	margin-top: var(--space-2);
	margin-bottom: 0;
	text-align: center;
	line-height: 1.3;
	width: 75%;
	/* Remove margin-left/right auto - flexbox handles centering */
  }

.engineer-image-placeholder {
  width: 75%;
  aspect-ratio: 1;
  background-color: var(--secondary-dark);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-white);
  text-transform: uppercase;
}



.engineer-name {
  display: block;
  color: var(--text-white);
  font-size: 1.15rem; /* 18.4px */
  font-weight: 600; /* 50 more than 400 base weight */
  margin-bottom: var(--space-1); /* 4px spacing between name and title */
  text-align: center;
}

.engineer-title {
  display: block;
  color: var(--text-white);
  font-size: 1rem; /* 16px - MINIMUM */
  font-weight: 400; /* Base weight */
  margin-bottom: 0;
  text-align: center;
}

/* Responsive behavior */
@media (max-width: 1023px) {
  .embedded-engineers-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .engineer-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .engineer-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

/* ========================================
   16. PLATFORM & RESOURCE SPECIFIC STYLES
   Replacing inline styles for compliance
   ======================================== */

/* Platform Architecture Diagram Placeholder */
.platform-diagram-placeholder {
  background: var(--secondary-dark);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  color: var(--light-gray);
}

.platform-diagram-title {
  margin: 0;
  font-size: 1.125rem;
}

.platform-diagram-description {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Form Input Constraints */
.form-input-newsletter {
  max-width: 300px;
}

/* ========================================
   17. VIDEO THUMBNAIL COMPONENTS
   Professional B2B video thumbnail styling
   ======================================== */

/* Email Demo Section */
.email-demo-section {
  background: linear-gradient(180deg, 
    var(--primary-dark) 0%, 
    rgba(26, 26, 26, 0.8) 50%, 
    var(--primary-dark) 100%);
  position: relative;
}

.email-demo-content {
  position: relative;
  z-index: 2;
}

/* Video Thumbnail Container */
.video-thumbnail-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-6);
}

.video-thumbnail-link {
  display: block;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-thumbnail-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.video-thumbnail-link:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 4px;
  border-radius: 0;
}

.video-thumbnail-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--secondary-dark);
  border: 1px solid var(--medium-gray);
  border-radius: 0;
}

.video-thumbnail-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-base);
  max-width: 600px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.video-thumbnail-link:hover .video-thumbnail-image {
  transform: scale(1.05);
}

/* Video Play Overlay */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  opacity: 1;
  visibility: visible;
}

.video-thumbnail-link:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.play-button {
  width: 80px;
  height: 80px;
  background: var(--accent-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  transition: all var(--transition-base);
  box-shadow: 0 8px 24px var(--accent-orange-30);
}

.video-thumbnail-link:hover .play-button {
  transform: scale(1.1);
  box-shadow: 0 12px 32px var(--accent-orange-40);
}

.play-icon {
  width: 24px;
  height: 24px;
  color: var(--text-white);
  margin-left: 2px; /* Slight offset for visual centering */
}

.play-text {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Video Info Section */
.video-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.video-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.5px;
}

.video-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  font-weight: 300;
}

/* Video Stats */
.video-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: var(--space-1);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Email Demo Video Container */
.email-demo-video-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

/* Video Modal Styles */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
}

.video-modal {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  background: var(--secondary-dark);
  border: 1px solid var(--medium-gray);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: var(--text-white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
  border-radius: 0;
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  color: var(--accent-orange);
}

.video-modal-content {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-modal-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: var(--primary-dark);
}

/* Demo Video Container (Email Automation Page) */
.demo-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Responsive Design for Video Thumbnails */
@media (max-width: 768px) {
  .video-thumbnail-image {
    max-width: 100%;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-icon {
    width: 20px;
    height: 20px;
  }
  
  .play-text {
    font-size: 0.875rem;
  }
  
  .video-title {
    font-size: 1.5rem;
  }
  
  .video-description {
    font-size: 1rem;
  }
  
  .video-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .email-demo-video-container {
    gap: var(--space-6);
  }
  
  .video-modal {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .video-modal-close {
    top: var(--space-2);
    right: var(--space-2);
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 769px) {
  .email-demo-video-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
  }
  
  .video-thumbnail-container {
    margin-bottom: 0;
  }
  
  .video-info {
    text-align: left;
  }
  
  .video-stats {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .video-thumbnail-image {
    max-width: 500px;
  }
  
  .video-modal {
    max-width: 80vw;
    max-height: 80vh;
  }
}

/* ========================================
   13. FOOTER STYLES
   Professional CTA Footer for B2B Conversion
   ======================================== */

.footer {
  background: var(--secondary-dark);
  border-top: 1px solid var(--medium-gray);
  padding: var(--space-6) 0 var(--space-10) 0; /* Reduced top padding for seamless flow */
  position: relative;
  overflow: hidden;
}

/* Footer gradient overlay for depth */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 107, 53, 0.02) 0%, 
    transparent 50%, 
    rgba(255, 107, 53, 0.01) 100%);
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 1;
}

.footer-content {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.footer-title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-white);
  margin-bottom: var(--space-4);
}

.footer-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--light-gray);
  margin-bottom: var(--space-8);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--medium-gray);
  margin: var(--space-6) 0 var(--space-4) 0;
  opacity: 0.3;
}

/* Unified Footer Layout */
.footer-unified {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-4) 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  align-items: flex-end;
}

.footer-copyright {
  color: var(--light-gray);
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.3;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.footer-link {
  color: var(--light-gray);
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.3;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* Footer Navigation */
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
}

.footer-nav-link {
  color: var(--light-gray);
  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.3;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.footer-nav-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

/* Compact CTA Section for Main Pages */
.cta-section-compact {
  padding: var(--space-8) 0 var(--space-4) 0 !important; /* Reduced bottom padding for seamless flow */
}
.cta-section-compact .h2 {
  font-size: 2rem !important; /* Reduced from 2.5rem */
  margin-bottom: var(--space-3) !important; /* Reduced from space-4 */
}
.cta-section-compact .text-large {
  font-size: 1.125rem !important; /* Reduced from 1.25rem */
  margin-bottom: var(--space-6) !important; /* Reduced from space-8 */
}
.cta-section-compact .mb-8 {
  margin-bottom: var(--space-6) !important;
}
.cta-section-compact .mb-4 {
  margin-bottom: var(--space-3) !important;
}

/* Compact Footer CTA for Homepage */
.footer-content-compact {
  padding: var(--space-8) 0 var(--space-6) !important; /* Reduced padding */
}
.footer-content-compact .footer-title {
  font-size: 2rem !important; /* Reduced from 2.5rem */
  margin-bottom: var(--space-3) !important;
}
.footer-content-compact .footer-subtitle {
  font-size: 1.125rem !important; /* Reduced from larger size */
  margin-bottom: var(--space-5) !important;
}

/* Mobile adjustments for compact CTA */
@media (max-width: 768px) {
  .cta-section-compact {
    padding: var(--space-6) 0 var(--space-3) 0 !important; /* Reduced bottom padding for seamless flow on mobile */
  }
  .cta-section-compact .h2 {
    font-size: 1.5rem !important;
  }
  .cta-section-compact .text-large {
    font-size: 1rem !important;
    margin-bottom: var(--space-5) !important;
  }
  
  /* Compact Footer CTA for Homepage on mobile */
  .footer-content-compact {
    padding: var(--space-6) 0 var(--space-5) !important;
  }
  .footer-content-compact .footer-title {
    font-size: 1.5rem !important;
  }
  .footer-content-compact .footer-subtitle {
    font-size: 1rem !important;
    margin-bottom: var(--space-4) !important;
  }
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: var(--space-4) 0 var(--space-6) 0; /* Reduced top padding for seamless flow on mobile */
  }
  
  .footer-title {
    font-size: 1.875rem;
  }
  
  .footer-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--space-4);
  }
  
  .footer-cta {
    flex-direction: column;
    width: 100%;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }
  
  .footer-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-unified {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
    padding: var(--space-3) 0;
  }
  
  .footer-left {
    align-items: center;
    gap: var(--space-1);
  }
  
  .footer-right {
    align-items: center;
    gap: var(--space-1);
  }
  
  .footer-nav-links {
    align-items: center;
    gap: var(--space-1);
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-divider {
    margin: var(--space-6) 0 var(--space-3) 0;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-title {
    font-size: 2.25rem;
  }
}

/* Large desktop */
@media (min-width: 1440px) {
  .footer {
    padding: var(--space-6) 0 var(--space-8) 0; /* Reduced top padding for seamless flow on large desktop */
  }
  
  .footer-title {
    font-size: 3rem;
  }
  
  .footer-subtitle {
    font-size: 1.375rem;
  }
}