/* ===== CARVACH AI PLATFORM STYLES ===== */

/* ===== CSS VARIABLES (Based on CarVach Logo Colors) ===== */
:root {
  /* Primary Colors from CarVach Logo */
  --primary-blue: #2589BD;
  --accent-red: #D64933;
  --dark-gray: #374151;
  
  /* Extended Enterprise Color Palette */
  --primary-light: #3B9FDB;
  --primary-dark: #1F6B92;
  --secondary-blue: #1E40AF;
  --accent-red-light: #EF4444;
  --accent-red-dark: #B91C1C;
  
  /* Neutral Colors */
  --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;
  
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-dark: #0F172A;
  --bg-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  --bg-gradient-light: linear-gradient(135deg, #EBF8FF 0%, #DBEAFE 100%);
  
  /* Text Colors */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  --text-white: #FFFFFF;
  --text-accent: var(--primary-blue);
  
  /* Border Colors */
  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  --border-dark: var(--gray-400);
  
  /* Shadow Values */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-primary);
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --element-spacing: 2rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-dark);
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 1px;
}

.nav-cta .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--transition-normal);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text-white);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--text-white);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-outline-small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}

.btn-outline-small:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-primary-small {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  background: var(--primary-blue);
  color: var(--text-white);
}

.btn-primary-small:hover {
  background: var(--primary-dark);
  color: var(--text-white);
}

.btn-full {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-gradient-light);
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.element {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 137, 189, 0.1);
  animation: float 6s ease-in-out infinite;
}

.element-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation-delay: -2s;
}

.element-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation-delay: -4s;
}

.element-3 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 30%;
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ===== AI DASHBOARD PREVIEW ===== */
.ai-dashboard-preview {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.dashboard-header {
  background: var(--bg-gradient);
  color: var(--text-white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-title {
  font-weight: 600;
  font-size: 1.125rem;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
}

.status-indicator.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.dashboard-content {
  padding: 1.5rem;
}

.ai-agent-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.ai-agent-card:last-of-type {
  margin-bottom: 1.5rem;
}

.agent-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-blue);
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.agent-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.agent-info p {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.alert-badge {
  background: var(--accent-red);
  color: var(--text-white);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.live-data-stream {
  background: var(--gray-900);
  color: #10B981;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
}

.data-point {
  opacity: 0;
  animation: typewriter 3s steps(60) infinite;
}

.data-point:nth-child(1) { animation-delay: 0s; }
.data-point:nth-child(2) { animation-delay: 1s; }
.data-point:nth-child(3) { animation-delay: 2s; }

@keyframes typewriter {
  0% { opacity: 0; width: 0; }
  50% { opacity: 1; width: 100%; }
  100% { opacity: 0; width: 100%; }
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== AI PLATFORM SECTION ===== */
.ai-platform {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.platform-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 1rem 0;
}

.flow-step {
  flex: 0 0 220px;
  min-width: 220px;
  max-width: 220px;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.flow-step:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-gradient);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem auto;
}

.flow-step h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.flow-step p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.step-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.flow-arrow {
  font-size: 1.25rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== AI AGENTS SECTION ===== */
.ai-agents {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.agent-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.agent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.agent-icon-large {
  width: 60px;
  height: 60px;
  background: var(--bg-gradient);
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.agent-header h3 {
  margin: 0;
  color: var(--text-primary);
}

.agent-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.agent-status.running {
  background: #DCFCE7;
  color: #166534;
}

.agent-description {
  margin-bottom: 1.5rem;
}

.agent-description p {
  color: var(--text-secondary);
  margin: 0;
}

.agent-metrics {
  margin-bottom: 1.5rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.metric:last-child {
  border-bottom: none;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.metric-value {
  font-weight: 600;
  color: var(--text-primary);
}

.metric-value.highlight {
  color: var(--accent-red);
}

.agent-actions {
  display: flex;
  gap: 0.75rem;
}

/* ===== INTEGRATIONS SECTION ===== */
.integrations {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.integration-ready {
  display: flex;
  justify-content: center;
  align-items: center;
}

.integration-highlight {
  text-align: center;
  max-width: 800px;
  padding: 3rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.integration-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-gradient);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 2rem auto;
}

.integration-highlight h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.integration-highlight p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.integration-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  text-align: left;
}

.integration-features .feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.integration-features .feature-item i {
  color: var(--accent-green);
  font-size: 1.125rem;
  flex-shrink: 0;
}

.integration-features .feature-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== PRICING SECTION ===== */
.pricing {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.pricing-structure {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-components {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-gradient);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem auto;
}

.pricing-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.pricing-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-style: italic;
}

.pricing-note i {
  color: var(--primary-blue);
}

.roi-calculator {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.roi-calculator h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.75rem;
}

.roi-calculator p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.input-group input:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.calculator-results {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.result-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.result-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.result-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.125rem;
}

.roi-highlight {
  color: var(--accent-green);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  padding: 6rem 0 4rem 0;
  background: var(--bg-primary);
  min-height: 70vh;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-light);
}

.legal-header h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: italic;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 3rem;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-section h2 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}

.legal-section h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.legal-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-section ul {
  color: var(--text-secondary);
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.contact-info {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* ===== SITEMAP STYLES ===== */
.sitemap-content {
  max-width: 1000px;
  margin: 0 auto;
}

.sitemap-section {
  margin-bottom: 3rem;
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sitemap-section h2 {
  color: var(--primary-blue);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sitemap-section h2 i {
  font-size: 1.5rem;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.sitemap-column h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.sitemap-column ul {
  list-style: none;
  padding: 0;
}

.sitemap-column li {
  margin-bottom: 0.75rem;
}

.sitemap-column a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.sitemap-column a:hover {
  color: var(--accent-red);
}

.quick-links {
  background: var(--bg-gradient);
  padding: 3rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 2rem;
}

.quick-links h2 {
  color: var(--text-white);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline:hover {
  background: var(--text-white);
  color: var(--primary-blue);
}

/* ===== ANALYTICS SECTION ===== */
.analytics {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.analytics-dashboard {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.dashboard-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-primary);
  color: var(--primary-blue);
  border-bottom: 2px solid var(--primary-blue);
}

.tab-btn:hover:not(.active) {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.tab-content {
  padding: 2rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.analytics-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.analytics-card h4 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.score-display {
  text-align: center;
  margin-bottom: 2rem;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-blue) 87%, var(--border-light) 87%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: 50%;
}

.score-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  z-index: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  z-index: 1;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.breakdown-item span:first-child {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breakdown-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 40px;
  text-align: right;
}

.progress-bar {
  flex: 2;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 4px;
  transition: width var(--transition-slow);
}

.alert-chart {
  display: flex;
  align-items: end;
  gap: 1rem;
  height: 200px;
  margin-bottom: 1rem;
}

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

.chart-bar {
  width: 100%;
  background: var(--primary-blue);
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  transition: height var(--transition-slow);
}

.chart-item span:first-of-type {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.chart-item span:last-of-type {
  font-weight: 600;
  color: var(--text-primary);
}

.prediction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--border-light);
  margin-bottom: 1rem;
}

.prediction-item.high-priority {
  border-left-color: var(--accent-red);
}

.prediction-item.high-priority i {
  color: var(--accent-red);
}

.prediction-item.medium-priority {
  border-left-color: #F59E0B;
}

.prediction-item.medium-priority i {
  color: #F59E0B;
}

.prediction-item.low-priority {
  border-left-color: var(--primary-blue);
}

.prediction-item.low-priority i {
  color: var(--primary-blue);
}

.prediction-details {
  flex: 1;
}

.prediction-component {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.prediction-count {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.prediction-timeframe {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.confidence-score {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 0.875rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--section-padding);
  background: var(--bg-gradient);
  color: var(--text-white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cta-section .btn-primary {
  background: var(--text-white);
  color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-blue);
}

.cta-section .btn-secondary {
  background: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.cta-section .btn-secondary:hover {
  background: var(--text-white);
  color: var(--primary-blue);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.feature-item i {
  color: #10B981;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.contact-info p {
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item i {
  width: 48px;
  height: 48px;
  background: var(--bg-gradient);
  color: var(--text-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-item h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.contact-item p {
  margin: 0;
  color: var(--text-secondary);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
  background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--accent-red);
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--text-white);
  padding: 3rem 0 1.5rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--text-white);
}

.footer-column ul {
  list-style: none;
  /* List items have margin-bottom in .footer-column li */
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright p {
  color: var(--gray-400);
  margin: 0 0 0.5rem 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-legal a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--primary-blue);
}

.footer-legal span {
  color: var(--gray-600);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  color: var(--gray-400);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-blue);
  color: var(--text-white);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .platform-flow {
    flex-direction: column;
    gap: 1rem;
    overflow-x: visible;
  }
  
  .flow-step {
    flex: 1 1 auto;
    min-width: 280px;
    max-width: 100%;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .pricing-components {
    grid-template-columns: 1fr;
  }
  
  .calculator-inputs {
    grid-template-columns: 1fr;
  }
  
  .sitemap-links {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
  }
  
  .integration-categories {
    grid-template-columns: 1fr;
  }
  
  .dashboard-tabs {
    flex-direction: column;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
  }
  
  .agent-card {
    padding: 1.5rem;
  }
  
  .integration-logos {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .nav-toggle,
  .back-to-top,
  .floating-elements {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding-top: 0;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* ===== ENHANCED ANALYTICS STYLES ===== */

/* Prediction Accuracy Trends */
.trend-chart {
  position: relative;
  height: 120px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  overflow: hidden;
}

.trend-line {
  position: relative;
  width: 100%;
  height: 100%;
}

.trend-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary-blue);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.trend-point:hover,
.trend-point.active {
  background: var(--accent-red);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(37, 137, 189, 0.3);
}

.trend-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trend-insight {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--accent-green);
  font-weight: 500;
}

/* Component Predictions */
.component-predictions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prediction-component-new {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.component-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.component-header i {
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.text-red { color: var(--accent-red); }
.text-orange { color: #f59e0b; }
.text-blue { color: var(--primary-blue); }
.text-green { color: var(--accent-green); }

.prediction-count-new {
  background: var(--primary-blue);
  color: var(--text-white);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.time-distribution {
  margin-bottom: 1rem;
}

.time-bar {
  display: flex;
  height: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.time-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
}

.time-segment.urgent {
  background: var(--accent-red);
}

.time-segment.warning {
  background: #f59e0b;
}

.time-segment.normal {
  background: var(--accent-green);
}

.confidence-display {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Fleet Risk Assessment */
.risk-overview {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.risk-gauge {
  position: relative;
  width: 120px;
  height: 120px;
}

.gauge-arc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-red) 0deg,
    #f59e0b 72deg,
    var(--accent-green) 144deg,
    var(--bg-tertiary) 144deg
  );
  padding: 8px;
}

.gauge-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-center {
  text-align: center;
}

.gauge-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gauge-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.risk-breakdown {
  flex: 1;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.risk-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.low-risk .risk-indicator {
  background: var(--accent-green);
}

.medium-risk .risk-indicator {
  background: #f59e0b;
}

.high-risk .risk-indicator {
  background: var(--accent-red);
}

.risk-count-new {
  margin-left: auto;
  font-weight: 600;
}

/* Cost Analysis Styles */
.cost-summary {
  grid-column: 1 / -1;
}

.cost-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.cost-metric {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  position: relative;
}

.cost-metric i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cost-metric.savings i {
  color: var(--accent-green);
}

.cost-metric.prevented i {
  color: var(--primary-blue);
}

.cost-metric.efficiency i {
  color: #f59e0b;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.metric-change {
  font-size: 0.875rem;
  font-weight: 600;
}

.metric-change.positive {
  color: var(--accent-green);
}

/* Cost Breakdown Chart */
.cost-breakdown-chart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.breakdown-item {
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.component-name {
  font-weight: 600;
  color: var(--text-primary);
}

.component-cost {
  font-weight: 700;
  color: var(--primary-blue);
}

.breakdown-bar {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary-blue);
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.breakdown-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ROI Performance */
.roi-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.roi-display {
  position: relative;
  width: 140px;
  height: 140px;
}

.roi-circle {
  position: relative;
  width: 100%;
  height: 100%;
}

.roi-progress {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent-green) calc(var(--progress) * 3.6deg),
    var(--bg-tertiary) 0deg
  );
  padding: 8px;
}

.roi-center {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.roi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-green);
}

.roi-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.roi-breakdown {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.roi-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.roi-metric {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.roi-value-text {
  font-weight: 600;
  color: var(--text-primary);
}

/* AI Performance Styles */
.agent-performance {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.agent-metric {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.agent-header i {
  font-size: 1.25rem;
  color: var(--primary-blue);
}

.agent-header span:first-of-type {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.accuracy-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
}

.accuracy-badge.excellent {
  background: var(--accent-green);
}

.accuracy-badge.high {
  background: var(--primary-blue);
}

.accuracy-badge.good {
  background: #f59e0b;
}

.performance-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Training Progress */
.training-progress {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.training-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.training-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat-label-train {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.training-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 24px;
  width: 2px;
  height: calc(100% + 1rem);
  background: var(--border-light);
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-item.completed .timeline-marker {
  background: var(--accent-green);
}

.timeline-item.active .timeline-marker {
  background: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(37, 137, 189, 0.3);
}

.timeline-content h5 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.timeline-content p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* System Performance */
.system-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-name {
  min-width: 120px;
  font-weight: 500;
  color: var(--text-primary);
}

.metric-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-normal);
}

.metric-fill.excellent {
  background: var(--accent-green);
}

.metric-fill.good {
  background: var(--primary-blue);
}

.metric-value-sys {
  min-width: 80px;
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}

.performance-summary {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-green);
  font-weight: 500;
}

/* Responsive Analytics */
@media (max-width: 768px) {
  .risk-overview {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .roi-metrics {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cost-metrics {
    grid-template-columns: 1fr;
  }
  
  .roi-breakdown {
    grid-template-columns: 1fr;
  }
  
  .training-overview {
    grid-template-columns: 1fr;
  }
}
