/* =================================================
   MODERN SAAS DESIGN SYSTEM
   ================================================= */

:root {
  /* Primary Brand Colors - Automotive Dark */
  --primary-50: #f8fafc;
  --primary-100: #f1f5f9;
  --primary-200: #e2e8f0;
  --primary-300: #cbd5e1;
  --primary-400: #94a3b8;
  --primary-500: #64748b;
  --primary-600: #475569;
  --primary-700: #334155;
  --primary-800: #1e293b;
  --primary-900: #0f172a;
  
  /* Accent Colors - Automotive Orange/Red */
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --accent-700: #c2410c;
  
  /* Neutral Palette */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Glassmorphism */
  --glass-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  
  /* Shadows - SaaS Style */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-colored: 0 20px 40px -12px rgba(37, 99, 235, 0.2);
  
  /* Spacing System */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* =================================================
   BASE STYLES
   ================================================= */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =================================================
   TYPOGRAPHY
   ================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =================================================
   UTILITY CLASSES - Compatibility
   ================================================= */

.text-navy { color: var(--primary-700); }
.bg-navy { background-color: var(--primary-700); }
.bg-navy-dark { background-color: var(--primary-800); }
.bg-navy-light { background-color: var(--primary-500); }
.border-navy { border-color: var(--primary-700); }

/* =================================================
   BUTTONS - SaaS Style
   ================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #b91c1c, #991b1b);
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: white;
  box-shadow: 0 20px 40px -12px rgba(239, 68, 68, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.4);
}

.btn-ghost {
  background: white;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

/* =================================================
   CARDS - Modern SaaS
   ================================================= */

.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lg {
  padding: 2rem;
  border-radius: var(--radius-2xl);
}

.card-hover {
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-200);
}

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

.hero-gradient {
  background: linear-gradient(135deg, 
    var(--primary-50) 0%, 
    var(--primary-100) 50%, 
    white 100%
  );
  position: relative;
}

.hero-overlay {
  background: linear-gradient(180deg, 
    rgba(2, 6, 23, 0.75) 0%, 
    rgba(2, 6, 23, 0.4) 50%,
    rgba(2, 6, 23, 0.6) 100%
  );
}

/* Animated Background Gradient */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-animated {
  background: linear-gradient(
    270deg,
    var(--primary-600),
    var(--primary-700),
    var(--primary-800)
  );
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* =================================================
   GLASSMORPHISM EFFECTS
   ================================================= */

.glass {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* =================================================
   FORMS - Modern Input Design
   ================================================= */

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-family: inherit;
}

input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-400);
}

/* =================================================
   IMAGE EFFECTS
   ================================================= */

.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-xl);
  position: relative;
}

.img-hover-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-hover-zoom:hover::after {
  opacity: 1;
}

.img-hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  width: 100%;
  height: auto;
}

.img-hover-zoom:hover img {
  transform: scale(1.08);
}

/* =================================================
   BADGES & TAGS
   ================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-accent {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.badge-dark {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: white;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

/* =================================================
   SECTION DIVIDERS
   ================================================= */

.section-divider {
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-600));
  border-radius: var(--radius-full);
  margin: 0 auto;
}

/* =================================================
   NAVBAR ENHANCEMENTS
   ================================================= */

header {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(30, 58, 138, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

header a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-500);
  transition: width 0.3s ease;
}

header a:hover::after {
  width: 100%;
}

/* =================================================
   FAQ ACCORDION
   ================================================= */

.faq-question {
  background: transparent;
  border: none;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.faq-question:hover {
  background: var(--gray-50);
}

.faq-answer {
  transition: all 0.3s ease;
}

/* =================================================
   ANIMATIONS
   ================================================= */

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

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

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

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

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

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

/* =================================================
   SCROLLBAR STYLING
   ================================================= */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-400), var(--primary-600));
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
}

/* =================================================
   RESPONSIVE UTILITIES
   ================================================= */

/* =================================================
   RESPONSIVE MOBILE OPTIMIZATIONS
   ================================================= */

@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
  }
  
  /* Header mobile fixes */
  header nav {
    flex-wrap: wrap;
  }
  
  header .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  header h1 {
    font-size: 1.25rem !important;
  }
  
  header p {
    font-size: 0.65rem !important;
  }
  
  header svg.w-12 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
  
  header .space-x-3 {
    gap: 0.5rem !important;
  }
  
  /* Top bar mobile */
  .bg-gradient-to-r.from-gray-900.text-white {
    font-size: 0.75rem;
  }
  
  .bg-gradient-to-r.from-gray-900 .space-x-6 {
    gap: 0.75rem !important;
  }
  
  .bg-gradient-to-r.from-gray-900 .space-x-4 {
    gap: 0.5rem !important;
  }
  
  /* Hero section mobile fixes */
  section .text-xl,
  section .md\:text-2xl {
    font-size: 1rem !important;
  }
  
  section .min-h-\[700px\] {
    min-height: 500px !important;
  }
  
  /* Button spacing mobile */
  .flex-wrap {
    gap: 0.75rem !important;
  }
  
  /* Consistent spacing */
  section { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-24 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-20 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-16 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-12 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  /* Padding adjustments */
  .p-12 { padding: 1.5rem !important; }
  .p-14 { padding: 1.5rem !important; }
  .p-20 { padding: 1.5rem !important; }
  .px-6 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
  
  /* Card adjustments */
  .card {
    padding: 1rem !important;
  }
  
  .glass-card {
    padding: 1.25rem !important;
  }
  
  /* Grid adjustments */
  .grid { gap: 1rem !important; }
  .gap-8 { gap: 1rem !important; }
  .gap-12 { gap: 1.25rem !important; }
  .gap-16 { gap: 1.5rem !important; }
  
  /* Margin adjustments */
  .mb-16 { margin-bottom: 2rem !important; }
  .mb-12 { margin-bottom: 1.5rem !important; }
  .mb-8 { margin-bottom: 1rem !important; }
  
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  header .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  header h1 {
    font-size: 1.1rem !important;
  }
  
  section { 
    padding-top: 2.5rem !important; 
    padding-bottom: 2.5rem !important; 
  }
}

/* =================================================
   ACCESSIBILITY
   ================================================= */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--primary-600);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
}

.skip-to-content:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
}

/* Focus visible for better accessibility */
*:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 2px;
}

/* =================================================
   PRINT STYLES
   ================================================= */

@media print {
  header, footer, .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* =================================================
   HELPER CLASSES
   ================================================= */

.rounded-2xl { border-radius: var(--radius-2xl); }
.backdrop-blur-sm { backdrop-filter: blur(6px); }
.shadow-glow { box-shadow: 0 0 40px rgba(249, 115, 22, 0.2); }
.text-gradient {
  background: linear-gradient(135deg, #f97316, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Automotive patterns */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(249, 115, 22, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: linear-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.metal-texture {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  position: relative;
}

.metal-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
}

