/* ============================================
   ENTERPRISE-GRADE DESIGN SYSTEM
   OBDAssistant - World-Class Automotive AI
   ============================================ */

:root {
  /* Brand Colors - Enterprise Grade */
  --brand-primary: #3b82f6;
  --brand-primary-dark: #2563eb;
  --brand-primary-light: #60a5fa;
  --brand-accent: #06b6d4;
  --brand-accent-dark: #0891b2;
  --brand-glow: #8b5cf6;
  --brand-glow-dark: #7c3aed;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-dark: #059669;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Surfaces - Layered Depth */
  --surface-base: #030305;
  --surface-raised: rgba(20, 20, 30, 0.6);
  --surface-overlay: rgba(10, 10, 15, 0.95);
  --surface-glass: rgba(255, 255, 255, 0.03);
  
  /* Text Hierarchy */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  
  /* Spacing Scale (8px grid) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.075rem + 0.25vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);
  
  /* Shadows - Depth System */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 35px 60px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 30px rgba(59, 130, 246, 0.3);
  --shadow-glow-accent: 0 0 30px rgba(6, 182, 212, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  
  /* Animations */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-in-out: cubic-bezier(0.4, 0, 0.6, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hero-enterprise {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg);
}

.hero-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-background-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-content-wrapper {
  max-width: 1200px;
  text-align: center;
  z-index: 10;
  animation: fadeInUp 0.8s var(--ease-smooth);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  color: var(--brand-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  animation: float 3s ease-in-out infinite;
}

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

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(to bottom, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-animated {
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-glow), var(--brand-primary), var(--brand-accent));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  font-weight: 900;
}

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

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

/* ============================================
   ENTERPRISE BUTTONS
   ============================================ */

.btn-primary-enterprise {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-glow));
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-glow-primary);
  overflow: hidden;
}

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

.btn-primary-enterprise:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-glow-purple), var(--shadow-xl);
}

.btn-primary-enterprise:hover::before {
  left: 100%;
}

.btn-primary-enterprise:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary-enterprise {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: var(--text-base);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  backdrop-filter: blur(10px);
}

.btn-secondary-enterprise:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   SOCIAL PROOF STATS
   ============================================ */

.hero-social-proof {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-item strong {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(to right, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   ENHANCED CARDS
   ============================================ */

.card-enterprise {
  position: relative;
  background: var(--surface-raised);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-smooth);
  overflow: hidden;
}

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

.card-enterprise:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(6, 182, 212, 0.15);
}

.card-enterprise:hover::before {
  left: 100%;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonial-card {
  background: var(--surface-raised);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.testimonial-card .stars {
  color: #fbbf24;
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.testimonial-card p {
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-card .author img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-medium);
}

.testimonial-card .author strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial-card .author span {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.trust-badge svg,
.trust-badge i {
  color: var(--success);
  font-size: 1.25rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero-enterprise {
    min-height: 90vh;
    padding: var(--space-xl) var(--space-md);
  }
  
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-lg);
  }
  
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary-enterprise,
  .btn-secondary-enterprise {
    width: 100%;
    justify-content: center;
  }
  
  .hero-social-proof {
    gap: var(--space-lg);
  }
  
  .stat-item strong {
    font-size: var(--text-2xl);
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration for smooth animations */
.hero-enterprise,
.card-enterprise,
.btn-primary-enterprise,
.btn-secondary-enterprise {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
