/* ════════════════════════════════════════════════════════════════════
   EXCAR — Shared stylesheet
   Design tokens + nav/footer + shared components used across all pages
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0A0F;
  --bg-elev: #13131A;
  --bg-elev-2: #1A1A24;
  --border: #2A2A35;
  --text: #E8E8ED;
  --text-secondary: #8B8B99;
  --text-tertiary: #5A5A68;
  --accent: #1E97F4;
  --accent-dim: rgba(30, 151, 244, 0.12);
  --accent-line: rgba(30, 151, 244, 0.25);
  --error: #FF6B6B;
  --success: #2ED477;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────── Nav ───────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 28px; display: block; }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}
.nav-links a { transition: color 0.2s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(30, 151, 244, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 4px;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a.active { color: var(--accent); }
.nav-mobile .nav-cta { margin-top: 14px; text-align: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }
}

/* ───────────────────────── Page header (non-home pages) ───────────────────────── */

.page-header {
  padding: 160px 0 70px;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -10%; left: 50%;
  width: 1200px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(30, 151, 244, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-header-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(30,151,244,0.5);
  animation: pulse 2s infinite;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  max-width: 760px;
}
.page-header h1 .accent { color: var(--accent); }

.page-header p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ───────────────────────── Sections shared ───────────────────────── */

section { padding: 110px 0; position: relative; }
section.tight { padding: 90px 0; }
section.compact { padding: 70px 0; }

.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-secondary); font-size: 17px; }

h2.standalone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ───────────────────────── Buttons ───────────────────────── */

.btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--bg);
  background: var(--accent);
  padding: 15px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 151, 244, 0.3);
}

.btn-secondary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  padding: 15px 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--bg-elev);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ───────────────────────── Chat bubbles (shared component) ───────────────────────── */

.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.bubble.driver {
  align-self: flex-end;
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid var(--accent-line);
  border-bottom-right-radius: 4px;
}
.bubble.excar {
  align-self: flex-start;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble.excar .who {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ───────────────────────── Cards ───────────────────────── */

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.two-col { grid-template-columns: 1fr; }
}
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

.card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.2px; }
.card p { font-size: 14.5px; color: var(--text-secondary); }

/* ───────────────────────── Status panel (roadmap-style) ───────────────────────── */

.status-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.status-col { background: var(--bg-elev); padding: 32px; }
.status-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-col.now h4 { color: var(--accent); }
.status-col.next h4 { color: var(--text-tertiary); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-col.now .status-dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(30,151,244,0.5); animation: pulse 2s infinite; }
.status-col.next .status-dot { background: var(--text-tertiary); }

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  gap: 16px;
}
.status-item:first-of-type { border-top: none; }
.status-item .label { color: var(--text); }
.status-item .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-col.now .status-item .meta { color: var(--accent); }

@media (max-width: 768px) {
  .status-panel { grid-template-columns: 1fr; }
}

/* ───────────────────────── Timeline (roadmap) ───────────────────────── */

.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}
.timeline-item.done::before { border-color: var(--accent); background: var(--accent); }
.timeline-item.active::before {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 0 rgba(30,151,244,0.5);
  animation: pulse 2s infinite;
}
.timeline-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.timeline-item.done .timeline-tag,
.timeline-item.active .timeline-tag { color: var(--accent); }
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.timeline-item p { color: var(--text-secondary); font-size: 14.5px; max-width: 560px; }
.timeline-item ul.tick-list { margin-top: 12px; }

ul.tick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
ul.tick-list li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul.tick-list li::before {
  content: '';
  flex-shrink: 0;
  width: 14px; height: 14px;
  margin-top: 3px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
}
ul.tick-list.muted li::before {
  background: transparent;
  border-color: var(--border);
}

/* ───────────────────────── Stats ───────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.stat-cell {
  background: var(--bg-elev);
  padding: 28px 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -1px;
  color: var(--accent);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
@media (max-width: 880px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ───────────────────────── Team ───────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.team-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}
.team-avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 18px;
}
.team-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.team-card p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 880px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────── Waitlist / CTA panel ───────────────────────── */

.waitlist {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  width: 800px; height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(30,151,244,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.waitlist h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
  margin-bottom: 14px;
  position: relative;
}
.waitlist p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}
.waitlist-form input {
  flex: 1;
  height: 54px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 18px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}
.waitlist-form input::placeholder { color: var(--text-tertiary); }
.waitlist-form input:focus { outline: none; border-color: var(--accent); }
.waitlist-form button {
  height: 54px;
  padding: 0 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 151, 244, 0.3);
}
.waitlist-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 18px;
  position: relative;
}

.form-message { font-size: 14px; margin-top: 16px; position: relative; display: none; }
.form-message.show { display: block; }
.form-message.success { color: var(--accent); }
.form-message.error { color: var(--error); }

@media (max-width: 600px) {
  .waitlist { padding: 48px 24px; }
  .waitlist-form { flex-direction: column; }
}

/* ───────────────────────── Footer ───────────────────────── */

footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand .footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-logo img { height: 18px; display: block; opacity: 0.85; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--text-tertiary);
  max-width: 260px;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 13px; color: var(--text-tertiary); }
.footer-bottom .footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .footer-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ───────────────────────── Animations ───────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(30,151,244,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(30,151,244,0); }
  100% { box-shadow: 0 0 0 0 rgba(30,151,244,0); }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > *, .fade-in { opacity: 1; transform: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ───────────────────────── Misc utility ───────────────────────── */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.max-w-prose { max-width: 680px; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.accent { color: var(--accent); }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}


.team-avatar-photo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  margin-bottom: 18px;
}
.team-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
