/* ==========================================================================
   VANGUARD MISSION — AERA Government-Style Stylesheet
   Inspired by nasa.gov/artemis — professional, authoritative, authentic
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-dark: #0b1226;
  --color-bg-section: #f4f5f7;
  --color-navy: #0b1226;
  --color-blue: #1a4480;
  --color-blue-light: #2672de;
  --color-accent: #e86c2a;
  --color-accent-hover: #d35b1a;
  --color-text: #1b1b1b;
  --color-text-light: #565c65;
  --color-text-inverse: #f0f0f0;
  --color-border: #dfe1e2;
  --color-surface: #ffffff;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --max-width: 1200px;

  /* structure / motion */
  --banner-h: 34px;
  --header-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 1px 2px rgba(11,18,38,.05), 0 6px 18px rgba(11,18,38,.06);
  --shadow-md: 0 16px 48px rgba(11,18,38,.14);

  /* restrained type scale */
  --fs-eyebrow: 12px;
  --fs-h2: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h3: 1.0625rem;
  --fs-body: 16px;
  --fs-sm: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--banner-h) + var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   DEMO BANNER — scrolling marquee (on-brand, matches sibling sites)
   ========================================================================== */

.demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--banner-h);
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.demo-banner__viewport { width: 100%; overflow: hidden; }

.demo-banner__track {
  display: inline-flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 44s linear infinite;
}

.demo-banner:hover .demo-banner__track { animation-play-state: paused; }

.demo-banner__chunk {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.demo-banner__sep {
  margin: 0 18px;
  font-size: 8px;
  opacity: 0.7;
  transform: translateY(-1px);
}

.demo-banner-icon { margin-right: 8px; }

.demo-banner__static { display: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-banner__viewport { display: none; }
  .demo-banner { justify-content: center; }
  .demo-banner__static {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    padding: 0 16px;
  }
}

/* ==========================================================================
   HEADER — Government-style top nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--color-navy);
  border-bottom: 3px solid var(--color-accent);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.site-header.scrolled {
  background: rgba(11,18,38,0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.header-logo {
  height: 44px;
  width: auto;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 4px;
}

.header-text {
  display: flex;
  flex-direction: column;
}

.header-agency {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.3px;
}

.header-mission-label {
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a:not(.nav-login) {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.header-nav a:not(.nav-login)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width .25s var(--ease);
}

.header-nav a:not(.nav-login):hover { color: #fff; }
.header-nav a:not(.nav-login):hover::after { width: 100%; }

.nav-login {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}

.nav-login:hover {
  background: var(--color-accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232,108,42,0.35);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

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

.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  margin-top: calc(var(--banner-h) + var(--header-h)); /* banner + fixed header */
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,18,38,0.3) 0%,
    rgba(11,18,38,0.5) 40%,
    rgba(11,18,38,0.85) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-patch {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ==========================================================================
   KEN BURNS EFFECT
   ========================================================================== */

.ken-burns {
  animation: kenBurns 25s ease-in-out infinite alternate;
}

.ken-burns-slow {
  animation: kenBurnsSlow 35s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1.5%); }
}

@keyframes kenBurnsSlow {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(0.5%, -0.5%); }
}

/* ==========================================================================
   MISSION STATUS TICKER — integrated telemetry strip beneath the hero
   ========================================================================== */

.status-ticker {
  background: #060b18;
  border-top: 1px solid rgba(232,108,42,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 46px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.status-ticker__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  background: var(--color-accent);
  color: #0b1226;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.status-ticker__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b1226;
  animation: statusPulse 2s infinite;
}

.status-ticker__viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.status-ticker__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 50s linear infinite;
}

.status-ticker:hover .status-ticker__track { animation-play-state: paused; }

.status-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 28px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(255,255,255,0.55);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.status-ticker__item b {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}

.status-ticker__val {
  color: #34d399;
  font-weight: 600;
  letter-spacing: 1px;
}

.status-ticker__val--accent { color: var(--color-accent); }

.status-ticker__static { display: none; }

@media (prefers-reduced-motion: reduce) {
  .status-ticker__track { animation: none; }
  .status-ticker__viewport { justify-content: flex-start; overflow-x: auto; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
  padding: 92px 24px;
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 52px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(232,108,42,0.16);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  margin-top: 14px;
  max-width: 640px;
  line-height: 1.6;
}

/* ==========================================================================
   SCROLL REVEAL — subtle, with reduced-motion guard
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ken-burns, .ken-burns-slow { animation: none; }
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.65);
}

/* ==========================================================================
   OVERVIEW
   ========================================================================== */

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}

.overview-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.overview-objectives {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-bg-section);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
}

.overview-objectives h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.overview-objectives li {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 8px;
  margin-left: 20px;
}

.overview-patch {
  text-align: center;
}

.patch-image {
  width: 100%;
  max-width: 320px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
}

.overview-patch {
  overflow: hidden;
  border-radius: 12px;
}

.patch-caption {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 16px;
  font-style: italic;
}

/* ==========================================================================
   VEHICLE
   ========================================================================== */

.vehicle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.vehicle-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.vehicle-image {
  width: 100%;
  display: block;
}

.vehicle-details p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.vehicle-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-item {
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.spec-item:hover {
  transform: translateY(-2px);
  border-color: rgba(232,108,42,0.5);
  background: rgba(255,255,255,0.07);
}

.spec-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.spec-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   CREW
   ========================================================================== */

.crew-feature {
  margin-bottom: 48px;
}

.crew-feature-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  max-height: 480px;
}

.crew-feature-image {
  width: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.crew-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.crew-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,108,42,0.5);
  box-shadow: var(--shadow-md);
}

.crew-card-image-wrap {
  height: 200px;
  overflow: hidden;
  background: var(--color-navy);
}

.crew-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.crew-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #0b1226 0%, #1a2a4a 100%);
}

.crew-card-info {
  padding: 20px;
}

.crew-card-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.crew-role {
  display: block;
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.crew-card-info p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ==========================================================================
   MISSION CONTROL
   ========================================================================== */

.mc-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-height: 500px;
}

.mc-image {
  width: 100%;
  object-fit: cover;
}

.mc-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mc-card {
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease);
}

.mc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,108,42,0.45);
  background: rgba(255,255,255,0.06);
}

.mc-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.mc-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* ==========================================================================
   MISSION CONTROL SLIDESHOW
   ========================================================================== */

.mc-slideshow {
  position: relative;
}

.mc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.mc-slide.active {
  opacity: 1;
  position: relative; /* keeps the wrapper sized to first image */
}

.mc-slideshow .mc-slide:not(.active) {
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   LAUNCH COUNTDOWN
   ========================================================================== */

.launch-countdown {
  margin-top: 36px;
  display: inline-block;
  background: rgba(11, 18, 38, 0.75);
  border: 1px solid rgba(232, 108, 42, 0.5);
  border-radius: 8px;
  padding: 16px 28px;
  backdrop-filter: blur(6px);
}

.countdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.countdown-blocks {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #050a15;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.footer-logo {
  height: 40px;
  width: auto;
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 4px;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 80px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-legal {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-legal p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ==========================================================================
   CHAT WIDGET — Lower Left Popup
   ========================================================================== */

.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-navy);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.chat-fab-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-panel {
  display: none;
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 8001;
  width: 400px;
  height: 520px;
  background: var(--color-navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.chat-panel.active {
  display: flex;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 8px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent);
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chat-tier-toggle { flex-shrink: 0; }

.tier-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
}

.tier-label input[type="checkbox"] {
  accent-color: var(--color-accent);
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 22px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.chat-close:hover { color: #ef4444; }

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message { max-width: 90%; }
.chat-message.assistant { align-self: flex-start; }
.chat-message.user { align-self: flex-end; }

.message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.assistant .message-content {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.user .message-content {
  background: var(--color-accent);
  color: #fff;
  font-weight: 500;
}

.message-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  padding: 0 4px;
}

/* Chat input */
.chat-input-area {
  display: flex;
  padding: 10px 12px;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}

#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}

#chat-input:focus {
  border-color: var(--color-accent);
}

#chat-input::placeholder { color: rgba(255,255,255,0.35); }

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-send-btn:hover { background: var(--color-accent-hover); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Typing indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 1024px) {
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .mc-details { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { height: 70vh; min-height: 500px; }
  .hero-stats { gap: 24px; }
  .crew-grid { grid-template-columns: 1fr; }
  .vehicle-specs { grid-template-columns: 1fr; }
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
    height: 65vh;
  }
  .footer-links { flex-direction: column; gap: 32px; }
}
