/* ============================================================
   DriverLink.app — Design System v2
   Palette: Deep Navy #0B1829, Steel Blue #1A3A5C,
            Safety Orange #F05A28, Light Gray #F4F6F9
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #0B1829;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
p  { color: #4A5568; }

/* ── Container ── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: #F05A28;
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(240,90,40,0.32);
}
.btn.primary:hover { background: #D94E1F; box-shadow: 0 4px 18px rgba(240,90,40,0.42); }
.btn.secondary {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn.secondary:hover { background: rgba(255,255,255,0.12); border-color: #FFFFFF; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0B1829;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.logo span { font-size: 1.25rem; font-weight: 800; color: #FFFFFF; letter-spacing: -0.02em; }
.logo span em { color: #F05A28; font-style: normal; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover, .nav a.active { color: #FFFFFF; background: rgba(255,255,255,0.1); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0B1829 0%, #1A3A5C 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 32px;
  gap: 48px;
}
.hero-text { flex: 1; max-width: 580px; }
.hero-text h1 { color: #FFFFFF; margin-bottom: 20px; }
.hero-text h1 span { color: #F05A28; }
.hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; max-width: 520px; }
.hero-image img {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.35);
  /* Performance: hint browser to use GPU layer */
  will-change: transform;
}

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, #0B1829 0%, #1A3A5C 100%);
  padding: 80px 32px;
  text-align: center;
}
.page-hero h1 { color: #FFFFFF; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.125rem; max-width: 640px; margin: 0 auto; }

/* ── Section Base ── */
section { padding: 80px 32px; }

/* ── Benefits / Cards ── */
.benefits { background: #F4F6F9; text-align: center; }
.benefits h2 { margin-bottom: 48px; color: #0B1829; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: left;
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(11,24,41,0.1); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(240,90,40,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; color: #0B1829; }
.card p  { font-size: 0.9375rem; }

/* ── How it Works ── */
.how-it-works { background: #FFFFFF; text-align: center; }
.how-it-works h2 { margin-bottom: 48px; color: #0B1829; }
.steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; max-width: 1100px; margin: 0 auto; }
.step { flex: 0 1 180px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step > span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #F05A28;
  color: #FFFFFF;
  font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; flex-shrink: 0;
}
.step h3 { margin-bottom: 6px; font-size: 1rem; color: #0B1829; }
.step p  { font-size: 0.875rem; }

/* ── Feature list ── */
.driver-features { background: #F4F6F9; text-align: center; }
.driver-features h2 { margin-bottom: 40px; color: #0B1829; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.feature-item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #1A3A5C;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #E2E8F0;
}
.feature-item::before {
  content: '';
  width: 20px; height: 20px; min-width: 20px;
  background: #F05A28;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* ── CTA ── */
.cta { background: linear-gradient(135deg, #0B1829 0%, #1A3A5C 100%); text-align: center; padding: 80px 32px; }
.cta h2 { color: #FFFFFF; margin-bottom: 14px; }
.cta p  { color: rgba(255,255,255,0.75); font-size: 1.0625rem; margin-bottom: 36px; }
.store-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store-buttons img {
  height: 52px; width: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.store-buttons img:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* ── About ── */
.about-section { padding: 80px 32px; }
.about-section.gray { background: #F4F6F9; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-grid img { width: 100%; border-radius: 16px; box-shadow: 0 16px 48px rgba(11,24,41,0.12); }
.about-grid h2 { margin-bottom: 16px; }
.about-grid p  { margin-bottom: 14px; }
.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; max-width: 1100px; margin: 48px auto 0;
}
.problem-card {
  background: #FFFFFF; border-radius: 14px; padding: 32px 28px;
  border-left: 4px solid #F05A28;
  box-shadow: 0 2px 12px rgba(11,24,41,0.06);
}
.problem-card h3 { margin-bottom: 10px; color: #0B1829; }
.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; max-width: 900px; margin: 40px auto 0;
}
.benefit-item {
  background: #F4F6F9; border-radius: 10px; padding: 16px 20px;
  font-weight: 500; color: #1A3A5C;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #E2E8F0;
}
.benefit-item::before {
  content: ''; width: 20px; height: 20px; min-width: 20px;
  background: #F05A28; border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.trust-section {
  background: linear-gradient(135deg, #0B1829 0%, #1A3A5C 100%);
  padding: 80px 32px; text-align: center;
}
.trust-section h2 { color: #FFFFFF; margin-bottom: 20px; }
.trust-section p  { color: rgba(255,255,255,0.75); max-width: 680px; margin: 0 auto 14px; font-size: 1.0625rem; }

/* ── Contact ── */
.contact-section { background: #F4F6F9; padding: 80px 32px; }
.contact-container {
  display: grid; grid-template-columns: 1fr 400px;
  gap: 40px; max-width: 1100px; margin: 0 auto;
}
.contact-form-box, .contact-info-box {
  background: #FFFFFF; border-radius: 16px; padding: 40px;
  border: 1px solid #E2E8F0;
}
.contact-form-box h2, .contact-info-box h2 { margin-bottom: 24px; color: #0B1829; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: #0B1829; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid #D1D9E6; border-radius: 8px;
  font-size: 0.9375rem; font-family: inherit;
  color: #0B1829; background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: #F05A28;
  box-shadow: 0 0 0 3px rgba(240,90,40,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.contact-info-box p { margin-bottom: 24px; font-size: 0.9375rem; }
.contact-info-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #F0F4F8; }
.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-info-item h3 { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #F05A28; margin-bottom: 4px; }
.contact-info-item p  { color: #4A5568; font-size: 0.9375rem; margin: 0; }
.faq-section { background: #FFFFFF; padding: 80px 32px; text-align: center; }
.faq-section h2 { margin-bottom: 48px; color: #0B1829; }
.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto; text-align: left;
}
.faq-item { background: #F4F6F9; border-radius: 12px; padding: 28px 24px; border: 1px solid #E2E8F0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 10px; color: #0B1829; }
.faq-item p  { font-size: 0.9rem; }

/* ── Legal ── */
.legal-content { padding: 72px 32px; background: #FFFFFF; }
.legal-container { max-width: 760px; margin: 0 auto; }
.legal-container h2 {
  font-size: 1.25rem; color: #0B1829;
  margin: 40px 0 12px; padding-top: 12px;
  border-top: 1px solid #E2E8F0;
}
.legal-container h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.legal-container p  { color: #4A5568; margin-bottom: 14px; }
.legal-container ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.legal-container ul li { color: #4A5568; margin-bottom: 6px; }

/* ── Footer ── */
.footer {
  background: #0B1829; padding: 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer p { color: rgba(255,255,255,0.5); font-size: 0.875rem; margin: 0; }
.footer div { display: flex; gap: 20px; }
.footer a { color: rgba(255,255,255,0.5); font-size: 0.875rem; font-weight: 500; transition: color 0.15s; }
.footer a:hover { color: #FFFFFF; }

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 24px; min-height: auto; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-text p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image { max-width: 360px; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid img { max-width: 420px; margin: 0 auto; }
  .contact-container { grid-template-columns: 1fr; }
  .contact-info-box { order: -1; }
}

/* ── Responsive: Mobile ── */
@media (max-width: 640px) {
  .header { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #0B1829;
    flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; font-size: 1rem; }
  section, .about-section, .faq-section, .trust-section, .legal-content, .contact-section { padding: 56px 20px; }
  .page-hero, .cta { padding: 60px 20px; }
  .contact-form-box, .contact-info-box { padding: 28px 24px; }
  .cards { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .hero-image { display: none; }
  .hero { min-height: 70vh; }
  .footer { flex-direction: column; text-align: center; padding: 28px 20px; }
  .footer div { justify-content: center; }
}

@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  .btn { padding: 11px 22px; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
