/* styles.css - High Fidelity Samsara Inspired Design System */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Exact Samsara Brand Guidelines */
  --bg-body: #ffffff;
  --bg-secondary: #f4f6f8;
  --bg-dark-accent: #00263e; /* Daintree Deep Navy */
  
  --primary: #00263e;       /* Samsara Logo Deep Navy */
  --primary-light: #013a5e;
  --accent: #00263e;        /* Primary accent is the deep navy */
  --accent-hover: #001220;
  --accent-light: rgba(0, 38, 62, 0.05);
  --blue-brand: #005c97;    /* Secondary brand blue */
  
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  
  --text-main: #374151;     /* Gray-700 body text */
  --text-title: #00263e;    /* Daintree Navy headings */
  --text-muted: #515151;    /* Emperor Grey */
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Base resets & global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.logo-badge {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: 0.88rem;
}

nav a:hover {
  color: var(--accent);
}

/* CTA Buttons */
.btn-accent {
  background: var(--accent);
  color: var(--text-white);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  text-align: center;
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-medium);
  color: var(--text-title);
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
  display: inline-block;
  text-align: center;
}

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

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  background-color: var(--bg-body);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-title);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* High Fidelity Mockups in Hero & Sections */
.mockup-dashboard {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

.mockup-win-controls {
  display: flex;
  gap: 6px;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.win-dot.active {
  background: var(--accent);
}

.mockup-map-area {
  height: 220px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px), radial-gradient(#cbd5e1 1.5px, #f1f5f9 1.5px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* Visual road drawing inside map mockup */
.mockup-road {
  position: absolute;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-color: #cbd5e1 transparent;
  height: 40px;
  width: 120%;
  left: -10%;
  top: 45%;
  transform: rotate(-15deg);
  display: flex;
  align-items: center;
}

.mockup-truck {
  position: absolute;
  left: 45%;
  top: 36%;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-truck-pulse {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.mockup-alert-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(11, 19, 32, 0.95);
  border-left: 4px solid var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Sections */
section {
  padding: 85px 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-subtitle {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2rem;
  color: var(--text-title);
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Logo Wall Section */
.logo-wall {
  padding: 30px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.logo-wall-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.logo-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-item {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
  min-width: 150px;
}

/* ROI Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-card:nth-child(1) .stat-number {
  color: #ef4444; /* Alert Red for crash reduction */
}

.stat-card:nth-child(2) .stat-number {
  color: var(--accent); /* Emerald for insurance saving */
}

.stat-card:nth-child(3) .stat-number {
  color: var(--primary); /* Deep Slate for compliance */
}

.stat-title {
  font-size: 1.05rem;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Alternating Pillars Section */
.pillars-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.pillar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pillar-row.reverse .pillar-visual {
  order: -1;
}

.pillar-content h3 {
  font-size: 1.75rem;
  color: var(--text-title);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pillar-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pillar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-features li {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.pillar-check {
  color: var(--accent);
  font-weight: 700;
}

/* Alternating visuals styling (mockups and live assets) */
.pillar-visual {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-visual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transition: var(--transition);
}

.pillar-visual img:hover {
  transform: scale(1.02);
}

.hero-video-container {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  display: flex;
}

.hero-video-container video {
  width: 100%;
  height: auto;
  display: block;
}

.mockup-event-alert {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.driver-yawn-preview {
  height: 140px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.driver-yawn-preview::after {
  content: "DMS 红外座舱监控画面";
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.alert-tag-red {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fee2e2;
  color: #ef4444;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.mockup-report-list {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
}

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

.report-item:last-child {
  border-bottom: none;
}

.report-btn {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Joint Operations Section */
.joint-section {
  background: var(--bg-secondary);
}

.joint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.joint-text h3 {
  font-size: 1.75rem;
  color: var(--text-title);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.joint-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.joint-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.joint-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.joint-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.joint-card-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.joint-card-title {
  font-size: 0.98rem;
  color: var(--text-title);
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.joint-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact / Demo Request Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.contact-info h3 {
  font-size: 1.85rem;
  color: var(--text-title);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-meta-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
}

.contact-meta-text h4 {
  font-size: 0.9rem;
  color: var(--text-title);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.contact-meta-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 2.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  color: var(--text-title);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--text-white);
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-submit:hover {
  background: var(--accent-hover);
}

/* Footer */
footer {
  background: var(--primary);
  padding: 40px 0;
  color: #94a3b8;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.footer-logo span {
  color: var(--accent);
}

/* Keyframe animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 168, 107, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 168, 107, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .hero-grid, .pillar-row, .joint-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .pillar-row.reverse .pillar-visual {
    order: 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-layout {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
