/* ================================================================
   front-page.css — Full scroll experience
   Palette: #050505, #fff, rgba(255,255,255,*), #ffffff (gold accent)
   Fonts: Outfit (display), Space Mono (body/labels)
   ================================================================ */

/* ── Global FP Reset ─────────────────────────────────────────── */
.fp {
  position: fixed; inset: 0; z-index: 10000;
  /* Background is the cinematic space scene mounted as a fixed canvas at z-index
     0 behind the document. Keep .fp transparent so it shows through every
     section. Falls back to near-black before space-bg.js mounts. */
  background: transparent;
  overflow-y: auto; overflow-x: hidden;
  scroll-behavior: smooth;
}
/* Pre-boot fallback: if JS hasn't mounted the space-bg yet, body bg keeps the
   page from flashing white/system-default while we wait. */
html, body { background: #020203; }

/* ── Scroll Progress Bar ─────────────────────────────────────── */
.fp-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: #fff; z-index: 10001; pointer-events: none;
}

/* ── Back to Top ─────────────────────────────────────────────── */
.fp-btt {
  position: fixed; bottom: 32px; right: 32px; z-index: 10001;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4); font-size: 16px; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: all 0.3s ease;
}
.fp-btt--visible { opacity: 1; pointer-events: auto; }
.fp-btt:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Animation Classes ───────────────────────────────────────── */
.fp-anim {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fp-anim--visible { opacity: 1; transform: translateY(0); }
.fp-anim-line { width: 0; transition: width 0.8s ease-out; }
.fp-anim-line--visible { width: 100%; }

@keyframes fp-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Shared Typography ───────────────────────────────────────── */
.fp-label {
  display: block;
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.4em; color: rgba(255,255,255,0.3);
  text-transform: uppercase; margin-bottom: 16px;
}
.fp-heading {
  font: 700 clamp(32px, 5vw, 48px) 'Outfit', sans-serif;
  color: #fff; letter-spacing: -0.5px; margin: 0 0 24px;
  line-height: 1.1;
}
.fp-sub {
  font: 400 14px 'Space Mono', monospace;
  color: rgba(255,255,255,0.4); margin: 0 0 32px;
  max-width: 500px;
}
.fp-body {
  font: 400 14px 'Space Mono', monospace;
  color: rgba(255,255,255,0.5); line-height: 1.8;
  margin: 0 0 16px;
}
.fp-muted { font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.15); margin-top: 12px; }
.fp-center { text-align: center; margin-top: 40px; }
.fp-bottom-stat {
  font: 400 11px 'Space Mono', monospace;
  color: rgba(255,255,255,0.25); letter-spacing: 0.2em;
  text-align: center; margin-top: 32px;
}

/* ── Shared Link ─────────────────────────────────────────────── */
.fp-link {
  font: 400 12px 'Space Mono', monospace;
  color: rgba(255,255,255,0.5); text-decoration: none;
  position: relative; display: inline-block;
}
.fp-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: #fff;
  transition: width 0.3s ease;
}
.fp-link:hover { color: #fff; }
.fp-link:hover::after { width: 100%; }

/* ── Shared Button ───────────────────────────────────────────── */
.fp-btn {
  font: 400 11px 'Space Mono', monospace;
  letter-spacing: 0.3em; text-transform: uppercase;
  padding: 16px 40px; border-radius: 0; cursor: pointer;
  transition: all 0.3s ease; text-decoration: none;
  display: inline-block;
}
/* Primary = SOLID white fill = the one loudest action (high contrast on dark) */
.fp-btn--primary {
  background: #fff; color: var(--c-text-inv);
  border: 1px solid #fff; font-weight: 700;
}
.fp-btn--primary:hover {
  background: rgba(255,255,255,0.88);
  letter-spacing: 0.35em;
  box-shadow: 0 0 36px rgba(255,255,255,0.18);
  transform: translateY(-1px);
}
/* Ghost = quiet outline = clearly secondary */
.fp-btn--ghost {
  background: transparent; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.14);
}
.fp-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
/* Gold = SOLID gold = the premium / money signal (Pro upsell, buy) — now actually gold */
.fp-btn--gold {
  background: var(--c-active); color: var(--c-text-inv);
  border: 1px solid var(--c-active); font-weight: 700;
  box-shadow: 0 0 24px var(--c-active-glow);
}
.fp-btn--gold:hover {
  background: var(--c-active);
  border-color: var(--c-active);
  letter-spacing: 0.35em;
  box-shadow: 0 0 36px var(--c-active-dim);
  transform: translateY(-1px);
}

/* ── Shared Section ──────────────────────────────────────────── */
.fp-section {
  max-width: 1100px; margin: 0 auto;
  padding: 100px 48px;
  text-align: center;
}
.fp-section--narrow { max-width: 900px; }
.fp-section--compact { padding: 80px 48px; }

/* ── Shared Card ─────────────────────────────────────────────── */
.fp-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 32px; text-align: left;
  transition: all 0.25s ease; position: relative;
}
.fp-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ── Shared Mockup ───────────────────────────────────────────── */
.fp-mockup {
  aspect-ratio: 16/9; border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.fp-mockup span {
  font: 400 10px 'Space Mono', monospace;
  color: rgba(255,255,255,0.25); letter-spacing: 0.3em;
}

/* ═══════════════════════════════════════════════════════════════
   S1: HERO
   ═══════════════════════════════════════════════════════════════ */
.fp-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center;
}
/* Fixed full-viewport video background — sits behind .fp (z-index 10000) so
   every section scrolls over it. Body has #020203 fallback before video paints. */
.fp-bg-video {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.fp-bg-tint {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.20), rgba(0,0,0,0.55) 75%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.45) 50%, rgba(5,5,5,0.65) 100%);
  z-index: 2;
  pointer-events: none;
}
/* When the user has navigated away from the landing (or it never showed),
   hide the bg video so it isn't burning GPU behind the configurator. */
body:not(.landing-active) .fp-bg-video,
body:not(.landing-active) .fp-bg-tint { display: none; }
.fp-hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}
.fp-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.02), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.fp-hero__content { position: relative; z-index: 2; }

/* When the 3D hero scene is mounted, hide the CSS-only placeholders so the
   canvas is visible. The fp-hero--3d-active class is added by hero-3d.js. */
.fp-hero--3d-active .fp-hero__dots,
.fp-hero--3d-active .fp-hero__glow { display: none; }
.fp-hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  /* lighten composites the M4 over the space-bg behind it: bright pixels of
     the M4 win, dark hero pixels become transparent and reveal the stars. */
  mix-blend-mode: lighten;
}
.fp-hero__title {
  font: 800 clamp(48px, 10vw, 120px) 'Outfit', sans-serif;
  color: #fff; letter-spacing: 0.2em; margin: 0 0 20px;
}
.fp-hero__sub {
  font: 300 clamp(16px, 2vw, 20px) 'Outfit', sans-serif;
  color: rgba(255,255,255,0.5); margin: 0 0 40px;
  max-width: 500px; display: inline-block;
}
.fp-hero__btns { display: flex; gap: 16px; justify-content: center; }
.fp-hero__scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 400 9px 'Space Mono', monospace;
  letter-spacing: 0.4em; color: rgba(255,255,255,0.2);
  animation: fp-scroll-bob 2s ease-in-out infinite;
}
@keyframes fp-scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══ S2: TICKER ═══ */
.fp-ticker {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  padding: 24px 0;
}
.fp-ticker__inner {
  display: flex; align-items: center; justify-content: center;
  max-width: 1100px; margin: 0 auto; gap: 0;
}
.fp-ticker__stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 40px; position: relative;
}
.fp-ticker__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #ffffff; position: absolute; top: 4px; left: 20px;
}
.fp-ticker__num {
  font: 600 32px 'Outfit', sans-serif; color: #fff;
}
.fp-ticker__label {
  font: 400 9px 'Space Mono', monospace;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.3);
  margin-top: 4px;
}
.fp-ticker__sep {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.06);
}

/* ═══ S3: ABOUT ═══ */
.fp-about__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; text-align: left; align-items: center;
}

/* ═══ S4: HOW IT WORKS ═══ */
.fp-how__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px; position: relative;
}
.fp-how__line {
  height: 1px; background: rgba(255,255,255,0.06);
  margin: 0 auto 0; max-width: 800px;
}
.fp-card__num {
  position: absolute; top: 16px; right: 20px;
  font: 800 48px 'Outfit', sans-serif;
  color: rgba(255,255,255,0.04);
}
.fp-card__icon { color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.fp-card__title { font: 600 18px 'Outfit', sans-serif; color: #fff; margin: 0 0 10px; }
.fp-card__desc { font: 400 12px 'Space Mono', monospace; color: rgba(255,255,255,0.4); line-height: 1.7; }

/* ═══ S5: BRANDS ═══ */
/* Section bg is now a soft dark scrim over the space scene rather than an
   opaque panel — the asteroids + stars stay subtly visible behind. */
.fp-brands-section { background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); max-width: none; width: 100%; }
.fp-brands-section .fp-heading,
.fp-brands-section .fp-label,
.fp-brands-section .fp-sub { max-width: 1100px; margin-left: auto; margin-right: auto; }
.fp-brands-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; max-width: 1100px; margin: 0 auto;
}
.fp-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; height: 70px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px; transition: all 0.2s ease;
}
.fp-brand:hover {
  border-color: rgba(255,255,255,0.12);
  border-left: 2px solid #ffffff;
}
.fp-brand__name { font: 500 14px 'Outfit', sans-serif; color: #fff; flex: 1; }
.fp-brand__cat { font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.3); flex: 1; }
.fp-brand__count { font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.2); }

/* ── Scrolling brand marquee ────────────────────────────────── */
.fp-marquee {
  overflow: hidden;
  margin: 32px 0 24px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.fp-marquee__track {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: fp-marquee-scroll 40s linear infinite;
  width: max-content;
}
.fp-marquee__item {
  font: 500 18px 'Outfit', sans-serif;
  color: rgba(255,255,255,0.5);
  padding: 0 20px;
  transition: color 0.3s;
}
.fp-marquee__dot {
  color: rgba(255,255,255,0.12);
  font-size: 20px;
}
.fp-marquee:hover .fp-marquee__track { animation-play-state: paused; }
.fp-marquee:hover .fp-marquee__item { color: rgba(255,255,255,0.7); }
@keyframes fp-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══ S6: CARS ═══ */

/* Search box */
.fp-car-search-wrap {
  position: relative;
  max-width: 560px;
  margin: 32px 0 20px;
}
.fp-car-search-wrap svg {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}
.fp-car-search {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 13px 20px 13px 42px;
  color: #fff;
  font: 400 13px 'Space Mono', monospace;
  letter-spacing: 0.02em;
  outline: none;
  transition: all 0.25s ease;
}
.fp-car-search::placeholder {
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}
.fp-car-search:focus {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
}

/* Brand filter tabs */
.fp-car-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 28px;
  max-width: 1200px;
}
.fp-car-tab {
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  cursor: pointer; transition: all 0.25s ease;
  white-space: nowrap;
}
.fp-car-tab:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.12);
}
.fp-car-tab--active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

/* Car grid */
.fp-cars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 8px; max-width: 1200px;
}

/* Car card — image on top, text box below */
.fp-car {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden;
  transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.fp-car:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Image area */
.fp-car__img {
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.015);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* Text box below image — NOT an overlay */
.fp-car__text {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
}
.fp-car__name {
  font: 600 13px 'Outfit', sans-serif;
  color: #fff; display: block;
  line-height: 1.3;
  margin-bottom: 4px;
}
.fp-car__year {
  font: 400 10px 'Space Mono', monospace;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}
.fp-car__hp {
  font: 700 9px 'JetBrains Mono', monospace;
  color: #E05C5C;
  background: rgba(224,92,92,0.1);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}
.fp-car__engine {
  font: 700 8px 'JetBrains Mono', monospace;
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
}

/* Pagination controls */
.fp-car-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 36px;
  max-width: 1200px;
}
.fp-page-btn {
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.25s ease;
}
.fp-page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.fp-page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.fp-page-info {
  font: 400 11px 'Space Mono', monospace;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  min-width: 200px; text-align: center;
}

/* Empty state */
.fp-car-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  font: 400 13px 'Space Mono', monospace;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

/* ═══ S7: FEATURES ═══ */
.fp-features-bg { background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.55), rgba(0,0,0,0.7)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); max-width: none; width: 100%; padding: 120px 48px; }
.fp-feat {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; text-align: left;
  max-width: 1100px; margin: 0 auto 80px;
}
.fp-feat--reverse { direction: rtl; }
.fp-feat--reverse > * { direction: ltr; }
.fp-feat__title { font: 600 24px 'Outfit', sans-serif; color: #fff; margin: 0 0 12px; }
.fp-feat__desc { font: 400 13px 'Space Mono', monospace; color: rgba(255,255,255,0.45); line-height: 1.8; margin: 0 0 16px; }
.fp-feat__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-feat__tags span {
  font: 400 10px 'Space Mono', monospace;
  padding: 4px 12px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; color: rgba(255,255,255,0.35);
}
.fp-tag--pro {
  color: #ffffff !important; border-color: rgba(255,255,255,0.3) !important;
}

/* ═══ S8: PRICING ═══ */
.fp-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.fp-price {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 40px; text-align: left;
  position: relative;
}
.fp-price--pro { border-color: rgba(255,255,255,0.3); }
.fp-price__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font: 400 9px 'Space Mono', monospace; letter-spacing: 0.2em;
  color: #ffffff; border: 1px solid rgba(255,255,255,0.3);
  padding: 3px 14px; border-radius: 20px;
  background: #050505;
}
.fp-price__name { font: 600 20px 'Outfit', sans-serif; color: #fff; margin: 0 0 8px; }
.fp-price__amount { margin-bottom: 24px; }
.fp-price__amount span:first-child { font: 700 36px 'Outfit', sans-serif; color: #fff; }
.fp-price__period { font: 400 14px 'Space Mono', monospace; color: rgba(255,255,255,0.3); margin-left: 4px; }
.fp-price__list {
  list-style: none; padding: 0; margin: 0 0 24px;
  font: 400 12px 'Space Mono', monospace; color: rgba(255,255,255,0.45);
  line-height: 2.2;
}
.fp-price__list li::before { content: '\2713  '; color: rgba(255,255,255,0.3); }
.fp-price__cta { width: 100%; text-align: center; }

/* ═══ S9: COMMUNITY ═══ */
.fp-community-bg { background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); max-width: none; width: 100%; padding: 120px 48px; }
.fp-builds-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 1100px; margin: 0 auto;
}
.fp-build {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden;
  transition: all 0.25s ease;
}
.fp-build:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.fp-build__img {
  aspect-ratio: 16/9; background: rgba(255,255,255,0.01);
  display: flex; align-items: center; justify-content: center;
}
.fp-build__img span {
  font: 400 9px 'Space Mono', monospace;
  color: rgba(255,255,255,0.08); letter-spacing: 0.3em;
}
.fp-build__user { display: block; padding: 12px 14px 0; font: 400 12px 'Space Mono', monospace; color: rgba(255,255,255,0.4); }
.fp-build__title { display: block; padding: 4px 14px 0; font: 500 15px 'Outfit', sans-serif; color: #fff; }
.fp-build__meta { display: block; padding: 4px 14px 0; font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.25); }
.fp-build__engage {
  display: flex; gap: 16px; padding: 10px 14px 14px;
  font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.2);
}

/* Coming-soon build card placeholder state */
.fp-build--coming-soon { opacity: 0.6; pointer-events: none; }
.fp-build__img--placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 4px,
    transparent 4px,
    transparent 12px
  );
}

/* ═══ S10: TESTIMONIALS ═══ */
.fp-testimonials { display: flex; flex-direction: column; gap: 24px; text-align: left; }
.fp-testimonial {
  background: rgba(255,255,255,0.02);
  border-left: 2px solid rgba(255,255,255,0.08);
  padding: 32px; transition: border-color 0.3s;
}
.fp-testimonial:hover { border-left-color: rgba(255,255,255,0.2); }
.fp-testimonial__quote {
  font: 400 16px 'Outfit', sans-serif; color: rgba(255,255,255,0.6);
  font-style: italic; line-height: 1.7; margin: 0 0 16px;
}
.fp-testimonial__name { font: 600 14px 'Outfit', sans-serif; color: #fff; display: block; }
.fp-testimonial__detail { font: 400 11px 'Space Mono', monospace; color: rgba(255,255,255,0.25); }

/* ═══ S11: FAQ ACCORDION ═══ */
.fp-faq {
  max-width: 700px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden;
}
.fp-faq__item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fp-faq__item:last-child { border-bottom: none; }
.fp-faq__q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 24px;
  background: none; border: none;
  color: #fff; cursor: pointer;
  font: 500 14px 'Outfit', sans-serif;
  text-align: left;
  transition: background 0.2s;
  -webkit-font-smoothing: antialiased;
}
.fp-faq__q:hover { background: rgba(255,255,255,0.02); }
.fp-faq__icon {
  flex-shrink: 0; opacity: 0.3;
  transition: transform 0.3s ease, opacity 0.3s;
}
.fp-faq__item.open .fp-faq__icon {
  transform: rotate(180deg); opacity: 0.6;
}
.fp-faq__a {
  max-height: 0; overflow: hidden;
  padding: 0 24px;
  font: 400 13px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  transition: max-height 0.35s ease, padding 0.35s ease;
  -webkit-font-smoothing: antialiased;
}
.fp-faq__item.open .fp-faq__a {
  max-height: 200px;
  padding: 0 24px 18px;
}

/* ═══ S12: ROADMAP ═══ */
.fp-roadmap {
  max-width: 600px; margin: 0 auto;
  display: flex; flex-direction: column;
  position: relative;
  padding-left: 28px;
}
.fp-roadmap::before {
  content: '';
  position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 100%);
}
.fp-roadmap__item {
  position: relative;
  padding: 0 0 32px;
}
.fp-roadmap__item:last-child { padding-bottom: 0; }
.fp-roadmap__dot {
  position: absolute; left: -28px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
}
.fp-roadmap__item--done .fp-roadmap__dot {
  background: #fff;
  border-color: #fff;
}
.fp-roadmap__item--active .fp-roadmap__dot {
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 8px rgba(255,255,255,0.15);
}
.fp-roadmap__header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.fp-roadmap__status {
  font: 600 9px 'Barlow', sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
  padding: 2px 8px; border-radius: 3px;
}
.fp-roadmap__item--done .fp-roadmap__status {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}
.fp-roadmap__item--active .fp-roadmap__status {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.fp-roadmap__date {
  font: 400 10px 'Space Mono', monospace;
  color: rgba(255,255,255,0.2);
}
.fp-roadmap__title {
  font: 600 16px 'Outfit', sans-serif;
  color: #fff; margin: 0 0 4px;
  -webkit-font-smoothing: antialiased;
}
.fp-roadmap__item:not(.fp-roadmap__item--done):not(.fp-roadmap__item--active) .fp-roadmap__title {
  color: rgba(255,255,255,0.5);
}
.fp-roadmap__desc {
  font: 400 12px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.3);
  line-height: 1.6; margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ═══ NEWSLETTER ═══ */
.fp-newsletter {
  display: flex; gap: 0; max-width: 460px; margin: 0 auto;
}
.fp-newsletter__input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-right: none; color: #fff;
  font: 400 12px 'Space Mono', monospace; outline: none;
}
.fp-newsletter__input:focus { border-color: rgba(255,255,255,0.2); }
.fp-newsletter__input::placeholder { color: rgba(255,255,255,0.15); }
.fp-newsletter__btn { border-left: none; }
.fp-newsletter__status {
  margin: 10px auto 0; min-height: 1em;
  font: 400 12px 'Space Mono', monospace; color: rgba(255,255,255,0.55);
}
.fp-newsletter__status:empty { display: none; }
.fp-newsletter__status--ok { color: rgba(255,255,255,0.8); }
.fp-newsletter__status--error { color: #f8a4a4; }

/* ═══ S12: FOOTER ═══ */
.fp-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1100px; margin: 0 auto;
  padding: 60px 48px 40px;
}
.fp-footer__cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.fp-footer__logo {
  font: 700 18px 'Outfit', sans-serif; letter-spacing: 0.15em; color: #fff;
  display: block; margin-bottom: 8px;
}
.fp-footer__tagline { font: 400 11px 'Space Mono', monospace; color: rgba(255,255,255,0.3); margin: 0 0 12px; }
.fp-footer__copy { font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.15); margin: 0; }
.fp-footer__heading {
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.2);
  display: block; margin-bottom: 16px;
}
.fp-footer__link {
  font: 400 12px 'Space Mono', monospace; color: rgba(255,255,255,0.4);
  text-decoration: none; display: block; margin-bottom: 10px;
  transition: color 0.2s; position: relative;
}
.fp-footer__link:hover { color: #fff; }
.fp-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 20px;
  font: 400 10px 'Space Mono', monospace; color: rgba(255,255,255,0.12);
}

/* ═══ S13: FLOATING NAV ═══ */
.fp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10002;
  background: rgba(5,5,5,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.fp-nav--visible { transform: translateY(0); opacity: 1; }
.fp-nav__inner {
  max-width: 1200px; margin: 0 auto;
  height: 60px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 32px;
}
.fp-nav__logo {
  font: 700 14px 'Outfit', sans-serif;
  letter-spacing: 0.15em; color: #fff;
}
.fp-nav__links { display: flex; gap: 28px; }
.fp-nav__link {
  font: 400 11px 'Space Mono', monospace;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4);
  text-decoration: none; transition: color 0.2s;
}
.fp-nav__link:hover { color: #fff; }
.fp-nav__cta {
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.2em; color: #fff;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px; cursor: pointer;
  transition: all 0.2s;
}
.fp-nav__actions {
  display: flex; align-items: center; gap: 10px;
}
.fp-nav__icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent; color: rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.2s;
}
.fp-nav__icon-btn:hover {
  color: #fff; border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}
/* Signed-in profile pill — shows the user's initial so the front page always
   tells you you're logged in. */
.fp-nav__icon-btn--signed-in {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}
.fp-nav__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  font-size: 13px; font-weight: 800; line-height: 1;
  color: #fff; letter-spacing: 0;
}
.fp-nav__cta:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* ═══ LANDING ACTIVE (hide configurator completely) ═══ */
.landing-active #app {
  display: none !important;
}
.landing-active .navbar,
.landing-active .left-panel,
.landing-active .right-panel,
.landing-active .viewer__overlay,
.landing-active .viewer__tools,
.landing-active .viewer__bottombar,
.landing-active .nav-cube-wrap,
.landing-active .panel-toggle,
.landing-active .left-panel-expand,
.landing-active .viewer__hud,
.landing-active .scene-ambient-glow,
.landing-active #navbar-slot,
.landing-active .search-box,
.landing-active .category-box,
.landing-active .panel-fixed,
.landing-active .panel-scroll,
.landing-active .vehicle-summary,
.landing-active .tabs {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1199px) {
  .fp-brands-grid { grid-template-columns: repeat(3, 1fr); }
  .fp-about__inner { grid-template-columns: 1fr; }
  .fp-feat { grid-template-columns: 1fr; }
  .fp-feat--reverse { direction: ltr; }
  .fp-cars-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .fp-section { padding: 60px 24px; }
  .fp-hero__btns { flex-direction: column; gap: 12px; }
  .fp-how__grid, .fp-brands-grid, .fp-builds-grid { grid-template-columns: 1fr; }
  .fp-cars-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-car-tabs { gap: 4px; }
  .fp-car-tab { padding: 5px 10px; font-size: 9px; }
  .fp-pricing-grid { grid-template-columns: 1fr; }
  .fp-ticker__inner { flex-wrap: wrap; gap: 24px; }
  .fp-ticker__sep { display: none; }
  .fp-footer__cols { grid-template-columns: 1fr 1fr; }
  .fp-nav__links { display: none; }
  .fp-newsletter { flex-direction: column; }
  .fp-newsletter__input { border-right: 1px solid rgba(255,255,255,0.08); }
}

/* ================================================================
   Garage Door Transition — cinematic reveal before configurator
   ================================================================ */
/* Container is TRANSPARENT — so the configurator (z-index lower) shows
   through the moment the door slides up. The closed door image is the
   only opaque layer, blocking the view until it animates away. */
.garage-transition {
  display: none; position: fixed; inset: 0; z-index: 10003;
  background: transparent;
  align-items: center; justify-content: center;
  pointer-events: none;          /* never block clicks behind the door */
}
.garage-transition.visible { display: flex; pointer-events: auto; }
/* Once the door has finished opening, fully release the layer so the
   user can interact with the configurator immediately. */
.garage-transition.door-opened { pointer-events: none; }

/* Vignette — only visible BEFORE the door opens, fades out as door rises */
.garage-transition::after {
  content: '';
  position: absolute; inset: 0; z-index: 10;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.6s ease 0.4s;
}
.garage-transition.door-opened::after { opacity: 0; }

/* Scene — zoom/dolly container */
.garage-transition__scene {
  position: absolute; inset: 0;
  transform-origin: center 60%;
  transition: transform 2.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform: scale(1);
}
.garage-transition__scene.zoomed { transform: scale(1.08); }

/* "Behind the door" layer — TRANSPARENT so the actual configurator/car
   shows through as the door slides up. (Used to be a static garage-interior
   image which made the reveal feel fake. Now it's just empty space.) */
.garage-transition__open {
  position: absolute; inset: 0;
  background: transparent;
  pointer-events: none;
}

/* Closed door (slides up) */
.garage-transition__door {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
  transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0%);
  will-change: transform;
}
.garage-transition__door.open { transform: translateY(-98%); }

/* Door panel grooves (CSS fallback when no image) */
.garage-transition__door::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg,
      transparent 0px, transparent 18%,
      rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.3) 18.5%,
      transparent 18.5%
    ),
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
}
/* Door handle */
.garage-transition__door::after {
  content: '';
  position: absolute;
  bottom: 8%; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* Frame shadow — visible while door is closed; fades as door opens
   so the revealed car isn't darkened by an inset vignette. */
.garage-transition__frame {
  position: absolute; inset: 0; z-index: 6;
  pointer-events: none;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.6);
  transition: box-shadow 1.4s ease 0.4s;
}
.garage-transition.door-opened .garage-transition__frame {
  box-shadow: inset 0 0 0 rgba(0,0,0,0);
}

/* Loading text */
.garage-transition__text {
  position: absolute;
  bottom: 10%; left: 50%; transform: translateX(-50%);
  z-index: 8;
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.5s ease;
}
.garage-transition.door-opened .garage-transition__text { opacity: 0; }

/* Loading bar — positioned just below the loading text. Fills 0→100% over
   the 5-second hold (CSS animation kicks in once .visible is added).
   Fades out as soon as the door starts opening. */
.garage-transition__bar {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  max-width: 60vw;
  height: 2px;
  z-index: 8;
  background: rgba(255,255,255,0.07);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}
.garage-transition.visible .garage-transition__bar { opacity: 1; }
.garage-transition.door-opened .garage-transition__bar { opacity: 0; transition-delay: 0s; }

.garage-transition__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.85) 0%,
    var(--c-active) 50%,
    rgba(255,255,255,0.85) 100%);
  box-shadow: 0 0 8px rgba(255,255,255,0.55);
  border-radius: 1px;
}
/* When the overlay becomes visible, animate the fill from 0% to 100% over
   the 5s hold so the user sees a clear progress indicator before the door
   starts to open. */
.garage-transition.visible .garage-transition__bar-fill {
  animation: garageBarFill 5s linear forwards;
}
@keyframes garageBarFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}
/* Once door is opening, lock the bar at 100% (no need to keep animating) */
.garage-transition.door-opened .garage-transition__bar-fill {
  animation: none;
  width: 100%;
}

/* Subtle shimmer that runs along the bar while it fills, for a touch of
   life — matches the loading-text rhythm. */
.garage-transition__bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; height: 100%; width: 60px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  transform: translateX(-100px);
  pointer-events: none;
}
.garage-transition.visible .garage-transition__bar::after {
  animation: garageBarShimmer 1.6s ease-in-out infinite;
}
@keyframes garageBarShimmer {
  0%   { transform: translateX(-100px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(calc(60vw + 100px)); opacity: 0; }
}

/* ================================================================
   Car Picker — vehicle selection before configurator
   ================================================================ */
.car-picker {
  display: none; position: fixed; inset: 0; z-index: 10002;
  align-items: center; justify-content: center;
}
.car-picker.visible { display: flex; }

.car-picker__backdrop {
  position: absolute; inset: 0;
  background: #000;
}

.car-picker__content {
  position: relative; z-index: 1;
  width: min(900px, 94vw); max-height: 90vh;
  display: flex; flex-direction: column;
  animation: ag-enter 0.35s ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.car-picker__header {
  text-align: center; margin-bottom: 32px;
}
.car-picker__label {
  display: block;
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.2em; color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}
.car-picker__title {
  font: 700 28px 'Outfit', sans-serif;
  color: #fff; margin: 0 0 10px;
}
.car-picker__sub {
  font: 400 13px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.35); margin: 0;
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.car-picker__toolbar {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 16px;
}
.car-picker__search-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.car-picker__search-wrap:hover {
  border-color: rgba(255,255,255,0.12);
  background: #161616;
}
.car-picker__search-wrap:focus-within {
  border-color: rgba(255,255,255,0.3);
  background: #161616;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06);
}
.car-picker__search {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font: 400 13px 'Barlow', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.car-picker__search::placeholder { color: rgba(255,255,255,0.25); }

.car-picker__filters {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.car-picker__filter {
  padding: 6px 12px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: rgba(255,255,255,0.5);
  font: 400 11px 'Barlow', sans-serif;
  outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-font-smoothing: antialiased;
}
.car-picker__filter:hover { border-color: rgba(255,255,255,0.15); background: #181818; color: rgba(255,255,255,0.7); }
.car-picker__filter:focus { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 2px rgba(255,255,255,0.06); }
.car-picker__filter option { background: #0a0a0a; color: #ccc; }

.car-picker__empty {
  grid-column: 1 / -1;
  text-align: center; padding: 48px 20px;
  font: 400 14px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.2);
}

/* ── Car grid ───────────────────────────────────────────────── */
.car-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  gap: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 320px);
  padding-bottom: 8px;
  padding-right: 4px;
}
.car-picker__grid::-webkit-scrollbar { width: 4px; }
.car-picker__grid::-webkit-scrollbar-track { background: transparent; }
.car-picker__grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.car-picker__card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  display: flex; flex-direction: column;
  padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
  font: inherit; color: inherit;
  width: 100%; box-sizing: border-box;
}

.car-picker__card--available:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

.car-picker__card--soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.car-picker__card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: radial-gradient(ellipse at 60% 40%, #1e1e1e 0%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.card-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: card-spin 0.8s linear infinite;
}

/* No 3D preview available (missing/failed GLB) — a calm placeholder, never an
   eternal spinner. The car name beneath the image still identifies it. */
.car-picker__card-img--nopreview::after {
  content: "";
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.14);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2l-1.6-5.3A2 2 0 0 0 17.5 10H6.5a2 2 0 0 0-1.9 1.7L3 17h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2l-1.6-5.3A2 2 0 0 0 17.5 10H6.5a2 2 0 0 0-1.9 1.7L3 17h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E") center/contain no-repeat;
}
@keyframes card-spin { to { transform: rotate(360deg); } }

.car-picker__card-info {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
}
.car-picker__card-name {
  font: 600 13px 'Outfit', sans-serif;
  color: #fff;
  display: block;
  line-height: 1.3;
  margin-bottom: 3px;
}
.car-picker__card-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 10px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.3);
}
.car-picker__card-hp {
  font: 700 9px 'JetBrains Mono', monospace;
  color: var(--c-hp, #E05C5C);
  background: rgba(224,92,92,0.08);
  border: 1px solid rgba(224,92,92,0.15);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.car-picker__card-engine {
  font: 700 8px 'JetBrains Mono', monospace;
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.car-picker__card-drive {
  font: 600 8px 'Barlow Condensed', sans-serif;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.car-picker__card-drive--rwd {
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.15);
}
.car-picker__card-drive--awd {
  color: #60a5fa;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.15);
}
.car-picker__card-drive--fwd {
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.15);
}

/* ── Footer ─────────────────────────────────────────────────── */
.car-picker__footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  gap: 16px;
}
.car-picker__back {
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  font: 600 12px 'Barlow', sans-serif;
  cursor: pointer; transition: color 0.2s;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.car-picker__back:hover { color: #ffffff; }

.car-picker__pagination {
  display: flex; align-items: center; gap: 16px;
  margin-left: auto;
}
.car-picker__page-btn {
  font: 400 10px 'Space Mono', monospace;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.2s ease;
}
.car-picker__page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}
.car-picker__page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.car-picker__count {
  font: 400 11px 'Space Mono', monospace;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  min-width: 240px; text-align: center;
}

@media (max-width: 1100px) {
  .car-picker__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .car-picker__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Auth Gate Modal — shown before launching configurator
   ================================================================ */
.auth-gate {
  display: none; position: fixed; inset: 0; z-index: 10002;
  align-items: center; justify-content: center;
}
.auth-gate.visible { display: flex; }

.auth-gate__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
}

.auth-gate__panel {
  position: relative; z-index: 1;
  width: min(420px, 90vw);
  background: #181818;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px 36px 32px;
  text-align: center;
  animation: ag-enter 0.35s ease-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@keyframes ag-enter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-gate__close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: rgba(255,255,255,0.3);
  font-size: 24px; cursor: pointer; transition: color 0.2s;
}
.auth-gate__close:hover { color: #fff; }

.auth-gate__icon {
  margin: 0 auto 20px;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
}

.auth-gate__title {
  font: 700 20px 'Outfit', sans-serif;
  color: #fff; margin: 0 0 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-gate__sub {
  font: 400 13px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.4);
  line-height: 1.6; margin: 0 0 28px;
  -webkit-font-smoothing: antialiased;
}

.auth-gate__buttons {
  display: flex; flex-direction: column; gap: 10px;
}

.auth-gate__btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 13px 20px;
  border-radius: 8px; font: 600 12px 'Barlow', sans-serif;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s ease; border: none;
  -webkit-font-smoothing: antialiased;
}

.auth-gate__btn--primary {
  background: #fff; color: #0a0a0a;
}
.auth-gate__btn--primary:hover {
  background: rgba(255,255,255,0.9); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.auth-gate__btn--secondary {
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.auth-gate__btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}

.auth-gate__btn--ghost {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.06);
}
.auth-gate__btn--ghost:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.12);
}

/* ── Social login buttons ─────────────────────────────────── */
.auth-gate__social {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 20px;
}
.auth-gate__social-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 11px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.7);
  font: 500 12px 'Barlow', sans-serif;
  cursor: pointer; transition: all 0.2s;
  -webkit-font-smoothing: antialiased;
}
.auth-gate__social-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.auth-gate__divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px; color: rgba(255,255,255,0.15);
  font: 400 10px 'Space Mono', monospace; text-transform: uppercase;
}
.auth-gate__divider::before,
.auth-gate__divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.06);
}

.auth-gate__guest {
  width: 100%; padding: 11px;
  background: transparent; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; color: rgba(255,255,255,0.35);
  font: 500 12px 'Barlow', sans-serif; letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.2s;
  -webkit-font-smoothing: antialiased;
}
.auth-gate__guest:hover {
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
}

.auth-gate__disclaimer {
  margin: 18px 0 0; font: 400 10px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.15);
  -webkit-font-smoothing: antialiased;
}

/* ── Guest confirmation overlay ─────────────────────────────── */
.auth-gate__confirm {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.auth-gate__confirm-panel {
  width: min(360px, 85vw);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 32px 28px 24px;
  text-align: center;
  animation: ag-enter 0.25s ease-out;
}
.auth-gate__confirm-icon { margin: 0 auto 16px; }
.auth-gate__confirm-title {
  font: 700 18px 'Outfit', sans-serif;
  color: #fff; margin: 0 0 10px;
  -webkit-font-smoothing: antialiased;
}
.auth-gate__confirm-text {
  font: 400 13px 'Barlow', sans-serif;
  color: rgba(255,255,255,0.4);
  line-height: 1.6; margin: 0 0 24px;
  -webkit-font-smoothing: antialiased;
}
.auth-gate__confirm-btns {
  display: flex; gap: 10px;
}
.auth-gate__confirm-btns .auth-gate__btn { flex: 1; }
