/* =========================================================
   GOBIND COACH BUILDERS — Design System
   ========================================================= */

:root {
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-dark: #0284c7;
  --bg: #0f172a;
  --bg-alt: #0b1220;
  --card: #1e293b;
  --card-hover: #24334a;
  --border: #334155;
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(14, 165, 233, 0.4), 0 20px 40px rgba(14, 165, 233, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font-heading: "Outfit", "Segoe UI", Arial, Helvetica, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-alt: #e9edf3;
  --card: #ffffff;
  --card-hover: #f1f5f9;
  --border: #dde3ec;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 0 1px rgba(14, 165, 233, 0.25), 0 20px 40px rgba(14, 165, 233, 0.12);
}

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

/* No CSS smooth-scroll: it breaks GSAP ScrollTrigger's measurements.
   Smooth scrolling comes from Lenis (see script.js) instead. */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Scroll-driven text (built by script.js) ---------- */
.sw-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.sw { display: inline-block; will-change: transform; }
.hw { transition: none; }

/* Horizontal pinned track for "Why Choose GC Bus" */
.h-scroll-active {
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 40px;
}
.h-scroll-active > .container { width: 100%; }
.h-scroll-active .features-grid {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 24px;
}
.h-scroll-active .feature-card {
  flex: 0 0 auto;
  width: min(360px, 78vw);
}
/* "Why Choose GC Bus" cards: a real photo, the hard number, then the detail */
.feature-card.why-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.why-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.why-body { padding: 20px 24px 26px; }
.why-stat {
  display: block;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.why-card h3 { margin-bottom: 8px; }
.why-card p { line-height: 1.6; }
/* Always the dark GC blue, whatever the theme, so the invite stands out */
.feature-card.why-card--cta,
.bg-photo .feature-card.why-card--cta {
  --text: #ffffff;
  --text-muted: #d6e4f0;
  color: var(--text);
  justify-content: center;
  border-color: var(--primary);
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.3), transparent 60%),
    linear-gradient(160deg, rgba(3, 105, 161, 0.92), rgba(11, 47, 77, 0.95));
}
.why-card--cta .btn-outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }
.why-card--cta .why-stat,
.h-scroll-active .why-card--cta .why-stat { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.feature-card.why-card--cta h3 { font-size: 24px; line-height: 1.2; }
.why-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.why-actions .btn { width: 100%; justify-content: center; text-align: center; }
.h-scroll-active .why-card { width: min(380px, 80vw); }
.h-scroll-active .section-header { margin-bottom: 28px; }

/* The pinned track has to fit on one phone screen */
@media (max-width: 640px), (max-height: 820px) {
  .h-scroll-active { padding-top: calc(var(--header-h) + 12px); padding-bottom: 20px; }
  .h-scroll-active .section-header { margin-bottom: 18px; }
  .h-scroll-active .section-title { margin-bottom: 8px; }
  .h-scroll-active .section-subtitle { font-size: 15px; }
  .h-scroll-active .why-photo { aspect-ratio: 2 / 1; }
  .h-scroll-active .why-body { padding: 14px 18px 18px; }
  .h-scroll-active .why-stat { font-size: 25px; margin-bottom: 4px; }
  .h-scroll-active .why-card p { font-size: 13.5px; line-height: 1.5; }
  .h-scroll-active .h-scroll-progress { margin-top: 20px; }
}

.h-scroll-progress {
  height: 3px;
  margin-top: 36px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.h-scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform-origin: left center;
  transform: scaleX(0);
}

.hero-video-bg { translate: 0 var(--hero-shift, 0%); }

/* ---------- Photo & logo section backgrounds ----------
   Each section is a window onto a screen-sized photo that stays put while the
   content scrolls over it (position:fixed layer, clipped to the section by
   clip-path). Keeping the photo viewport-sized means its GC logo stays in
   frame even in very tall sections; --bg-focus aims the crop at the logo on
   narrow screens. A theme-coloured wash on ::after keeps text readable.
   Images only load once .bg-ready is added as the section approaches. */
.bg-photo, .bg-logo {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
/* Clipped 2px inside the box (wash solid for 4px): the fixed photo and its wash round to different
   sub-pixels, which otherwise leaves a hairline of raw photo at the section edge. */
.bg-photo { clip-path: inset(2px 0); }
.bg-photo::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: var(--bg-focus, center);
  transform: scale(var(--bg-zoom, 1));
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  pointer-events: none;
}
.bg-photo.bg-ready::before { opacity: 1; }
.bg-photo::after {
  content: "";
  position: absolute;
  inset: -2px 0;
  z-index: -1;
  pointer-events: none;
  /* Composited like the fixed photo beneath it, so both get clipped by the
     section with the same rounding and no photo row peeks out at the edge. */
  transform: translateZ(0);
  background:
    linear-gradient(to bottom, var(--ov, var(--bg)) 0, var(--ov, var(--bg)) 4px, transparent 260px, transparent calc(100% - 260px), var(--ov, var(--bg)) calc(100% - 4px), var(--ov, var(--bg)) 100%),
    rgba(11, 18, 32, 0.6);
  background:
    linear-gradient(to bottom, var(--ov, var(--bg)) 0, var(--ov, var(--bg)) 4px, color-mix(in srgb, var(--ov, var(--bg)) 70%, transparent) 90px, color-mix(in srgb, var(--ov, var(--bg)) 30%, transparent) 180px, transparent 260px, transparent calc(100% - 260px), color-mix(in srgb, var(--ov, var(--bg)) 30%, transparent) calc(100% - 180px), color-mix(in srgb, var(--ov, var(--bg)) 70%, transparent) calc(100% - 90px), var(--ov, var(--bg)) calc(100% - 4px), var(--ov, var(--bg)) 100%),
    color-mix(in srgb, var(--ov, var(--bg)) 60%, transparent);
}
/* Headings sit straight on the photo, so give them a soft shadow for contrast */
.bg-photo .section-header .section-title,
.bg-photo .section-header .section-subtitle { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
:root[data-theme="light"] .bg-photo .section-header .section-title,
:root[data-theme="light"] .bg-photo .section-header .section-subtitle { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.7); }

/* About runs a long paragraph across a bright white bus on phones; a deeper wash
   there keeps every line readable while the photo still shows through */
@media (max-width: 640px) {
  .bg-photo--about::after {
    background:
      linear-gradient(to bottom, var(--bg) 0, var(--bg) 4px, transparent 260px, transparent calc(100% - 260px), var(--bg) calc(100% - 4px), var(--bg) 100%),
      rgba(11, 18, 32, 0.76);
    background:
      linear-gradient(to bottom, var(--bg) 0, var(--bg) 4px, transparent 260px, transparent calc(100% - 260px), var(--bg) calc(100% - 4px), var(--bg) 100%),
      color-mix(in srgb, var(--bg) 76%, transparent);
  }
}

/* Cards over a photo turn to frosted glass so the GC logo behind still reads through */
.bg-photo :is(.model-card, .feature-card, .testimonial-card, .contact-info-card, .contact-form,
  .job-card, .apply-form-wrap, .spider-preview, .spider-config-panel) {
  background: color-mix(in srgb, var(--card) 74%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
}

/* Specifications: the table turns see-through so the shop-floor photo behind it shows */
.bg-photo--specs { --bg-focus: 72% 50%; }
.bg-photo--specs::after {
  background:
    linear-gradient(to bottom, var(--bg) 0, var(--bg) 4px, transparent 260px, transparent calc(100% - 260px), var(--bg) calc(100% - 4px), var(--bg) 100%),
    rgba(11, 18, 32, 0.55);
  background:
    linear-gradient(to bottom, var(--bg) 0, var(--bg) 4px, transparent 260px, transparent calc(100% - 260px), var(--bg) calc(100% - 4px), var(--bg) 100%),
    color-mix(in srgb, var(--bg) 55%, transparent);
}
.bg-photo--specs .spec-table-wrap {
  background: rgba(30, 41, 59, 0.45);
  background: color-mix(in srgb, var(--card) 45%, transparent);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.bg-photo--specs .spec-table th,
.bg-photo--specs .spec-table td:first-child {
  background: color-mix(in srgb, var(--bg-alt) 50%, transparent);
}
.bg-photo--specs .spec-table td:last-child { color: var(--text); }
.bg-photo--models { --bg-focus: 60% 45%; }
.bg-photo--features { --bg-focus: 47% 45%; }
.bg-photo--customize { --bg-focus: 50% 60%; }
.bg-photo--about { --bg-focus: 42% 32%; }
.bg-photo--testimonials { --bg-focus: 25% 40%; }
.bg-photo--gcgram { --bg-focus: 42% 40%; }
.bg-photo--cta { --bg-focus: 50% 55%; }
.bg-photo--contact { --bg-focus: 64% 48%; }
.bg-photo--blog-hero { --bg-focus: 54% 48%; }
.bg-photo--careers-hero { --bg-focus: 52% 45%; }
.bg-photo--careers-why { --bg-focus: 56% 40%; }
.bg-photo--careers-apply { --bg-focus: 58% 34%; }

.bg-photo--specs.bg-ready::before { background-image: url("../images/backgrounds/specs.jpg"); }
.bg-photo--models.bg-ready::before { background-image: url("../images/backgrounds/models.jpg"); }
.bg-photo--features.bg-ready::before { background-image: url("../images/backgrounds/features.jpg"); }
.bg-photo--customize.bg-ready::before { background-image: url("../images/backgrounds/customize.jpg"); }
.bg-photo--about.bg-ready::before { background-image: url("../images/backgrounds/about.jpg"); }
.bg-photo--testimonials.bg-ready::before { background-image: url("../images/backgrounds/testimonials.jpg"); }
.bg-photo--gcgram.bg-ready::before { background-image: url("../images/backgrounds/gcgram.jpg"); }
.bg-photo--cta.bg-ready::before { background-image: url("../images/backgrounds/cta.jpg"); }
.bg-photo--contact.bg-ready::before { background-image: url("../images/backgrounds/contact.jpg"); }
.bg-photo--blog-hero.bg-ready::before { background-image: url("../images/backgrounds/blog-hero.jpg"); }
.bg-photo--careers-hero.bg-ready::before { background-image: url("../images/backgrounds/careers-hero.jpg"); }
.bg-photo--careers-why.bg-ready::before { background-image: url("../images/backgrounds/careers-why.jpg"); }
.bg-photo--careers-apply.bg-ready::before { background-image: url("../images/backgrounds/careers-apply.jpg"); }

/* The hero and CTA are always dark, whatever the theme, so their wash is fixed
   dark/blue and lighter than the content sections' to let the bus show through. */
.hero.bg-photo::after {
  background:
    linear-gradient(to bottom, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0.9)),
    linear-gradient(90deg, rgba(11, 18, 32, 0.7), rgba(11, 18, 32, 0.25));
}
.cta.bg-photo::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(135deg, rgba(3, 105, 161, 0.72), rgba(11, 47, 77, 0.6));
}

/* Big GC watermark that turns slowly as the section scrolls past */
.bg-logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -6%;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  background: var(--primary-light);
  -webkit-mask: url("../images/logo-white.png") center / contain no-repeat;
  mask: url("../images/logo-white.png") center / contain no-repeat;
  opacity: 0.07;
  transform: translateY(-50%) rotate(var(--logo-spin, 0deg));
  pointer-events: none;
}
.bg-logo--left::before { right: auto; left: -6%; }

/* Smooth cross-fade between index / blog / careers in browsers that support it
   (Chromium 126+); no-op elsewhere, so this is pure progressive enhancement. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: viewFadeOut 200ms var(--ease-out) both;
}

::view-transition-new(root) {
  animation: viewFadeIn 250ms var(--ease-out) both;
}

@keyframes viewFadeOut {
  to { opacity: 0; }
}

@keyframes viewFadeIn {
  from { opacity: 0; }
}

* {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Crect x='1' y='9' width='27' height='13' rx='3' fill='%230ea5e9' stroke='%23051019' stroke-width='1.2'/%3E%3Crect x='1' y='9' width='27' height='2' fill='%2338bdf8'/%3E%3Crect x='4' y='12' width='5' height='5' fill='%23e0f2fe'/%3E%3Crect x='11' y='12' width='5' height='5' fill='%23e0f2fe'/%3E%3Crect x='18' y='12' width='5' height='5' fill='%23e0f2fe'/%3E%3Ccircle cx='8' cy='23' r='2.6' fill='%230f172a' stroke='%2394a3b8' stroke-width='1'/%3E%3Ccircle cx='21' cy='23' r='2.6' fill='%230f172a' stroke='%2394a3b8' stroke-width='1'/%3E%3C/svg%3E") 16 16, auto;
}

input, textarea, select {
  cursor: auto;
}

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

/* Whole-screen rumble while the ignition's engine-start sound plays. */
@keyframes engineVibrate {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-1px, 1px) rotate(-0.1deg); }
  20% { transform: translate(1px, -1px) rotate(0.1deg); }
  30% { transform: translate(-1.5px, 0) rotate(0deg); }
  40% { transform: translate(1px, 1px) rotate(0.1deg); }
  50% { transform: translate(-1px, -1.5px) rotate(-0.1deg); }
  60% { transform: translate(1.5px, 0) rotate(0deg); }
  70% { transform: translate(-1px, 1px) rotate(-0.1deg); }
  80% { transform: translate(1px, -1px) rotate(0.1deg); }
  90% { transform: translate(-1px, 0) rotate(0deg); }
}

body.engine-vibrating {
  animation: engineVibrate 90ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  body.engine-vibrating { animation: none; }
}

h1, h2, h3, h4, h5, h6, .logo-text {
  font-family: var(--font-heading);
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin-bottom: 48px;
}

.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }

section { padding: 100px 0; position: relative; }

/* ---------- Brands We Worked With (auto-scrolling logo marquee) ---------- */
.brands-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.brands-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: brandsScroll 28s linear infinite;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.brand-logo-card {
  flex: 0 0 auto;
  width: 180px;
  height: 90px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.brand-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.25);
}
.brand-logo-card.on-dark { background: linear-gradient(135deg, #14243d, #0b1526); border-color: #2a3a52; }

.brand-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

@media (max-width: 640px) {
  .brand-logo-card { width: 130px; height: 68px; padding: 10px 14px; }
  .brands-track { gap: 18px; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.btn:active::after {
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #051019;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn-pulse {
  animation: btnPulseGlow 2.4s ease-in-out infinite;
}

@media (hover: hover) and (pointer: fine) {
  .btn-pulse:hover { animation-play-state: paused; }
}

@keyframes btnPulseGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35), 0 0 0 0 rgba(56, 189, 248, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35), 0 0 0 12px rgba(56, 189, 248, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(14, 165, 233, 0.5);
  }
}

.btn-primary:active {
  transform: scale(0.97);
  transition: transform 160ms var(--ease-out);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-3px);
  }
}

.btn-outline:active {
  transform: scale(0.97);
  transition: transform 160ms var(--ease-out);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 13px; min-height: 40px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

/* Blur lives on a pseudo-element (not .site-header itself) so a
   position:fixed descendant like .nav-menu isn't accidentally
   re-anchored to the header's own box instead of the viewport —
   filter/backdrop-filter on an ancestor creates a containing block. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
}

.site-header.scrolled::before {
  background: rgba(15, 23, 42, 0.95);
}

:root[data-theme="light"] .site-header::before {
  background: rgba(244, 246, 249, 0.8);
}

:root[data-theme="light"] .site-header.scrolled::before {
  background: rgba(244, 246, 249, 0.96);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 100ms linear;
}

.scroll-progress-bus {
  position: absolute;
  top: 50%;
  right: 0;
  width: 22px;
  height: auto;
  color: var(--primary-light);
  filter: drop-shadow(0 1px 3px rgba(14, 165, 233, 0.6));
  transform: translate(50%, -50%);
  animation: busBob 0.5s ease-in-out infinite alternate;
}

@keyframes busBob {
  from { transform: translate(50%, calc(-50% - 2px)); }
  to { transform: translate(50%, calc(-50% + 1px)); }
}

.scroll-progress-wheel {
  fill: var(--bg);
  transform-box: fill-box;
  transform-origin: center;
  animation: busWheelSpin 0.4s linear infinite;
}

@keyframes busWheelSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bus,
  .scroll-progress-wheel {
    animation: none;
  }
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav.container {
  max-width: 2040px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fafc, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
  flex-shrink: 0;
  padding: 3px;
}

.logo-mark {
  perspective: 400px;
}

/* Two-sided flip: a "back" face pre-rotated 180deg sits behind the
   front face, so whichever side is toward the viewer always reads
   as a normal, unmirrored logo — a plain single-image rotateY would
   show a mirror image for the second half of every spin. */
.logo-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: logoRevolve 4.5s linear infinite;
}

.logo-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo-face-back {
  transform: rotateY(180deg);
}

@keyframes logoRevolve {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.logo-text,
.logo-text small {
  background: linear-gradient(
    100deg,
    var(--text) 0%,
    var(--text) 38%,
    #7dd3fc 50%,
    var(--text) 62%,
    var(--text) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logoShine 3.2s ease-in-out infinite;
}

@keyframes logoShine {
  0% { background-position: 180% 0; }
  100% { background-position: -80% 0; }
}

.logo-text small {
  display: inline;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-menu li a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-menu li a:not(.btn)::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url("../images/alloy-wheel.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(var(--wheel-spin, 0deg));
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-menu li a:not(.btn):hover::before { transform: rotate(calc(var(--wheel-spin, 0deg) + 25deg)); }

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width var(--transition);
}

.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.active-link { color: var(--text); }
.nav-menu a.active-link::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* ---------- Desktop menu (1280px+): links in a frosted capsule ---------- */
@media (min-width: 1280px) {
  .nav.container { gap: 24px; }
  .nav-menu {
    gap: 2px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
  }
  :root[data-theme="light"] .nav-menu { background: rgba(255, 255, 255, 0.6); }
  .nav-menu li a:not(.btn) {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    gap: 6px;
    transition: background-color 200ms ease, color 200ms ease;
  }
  .nav-menu li a:not(.btn)::before,
  .nav-menu a::after { display: none; }
  .nav-menu li a.active-link { background: rgba(14, 165, 233, 0.16); color: var(--primary-light); }
  :root[data-theme="light"] .nav-menu li a.active-link { color: var(--primary-dark); }
  /* The header's own Enquire Now button covers Contact, and Beta stays in the drawer */
  .nav-menu li:has(> a.btn),
  .nav-menu li:has(> a[href$="#contact"]) { display: none; }
  .nav-menu .beta-badge { display: none; }
}
/* Laptops: tighter links and a slightly smaller wordmark so everything fits one row */
@media (min-width: 1280px) and (max-width: 1599px) {
  .nav.container { gap: 16px; }
  .nav-menu li a:not(.btn) { padding: 8px 11px; font-size: 13.5px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo-mark { width: 38px; height: 38px; }
  .nav-actions { gap: 14px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav-menu li a:not(.btn) { padding: 8px 9px; }
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .nav-menu li a:not(.btn):hover { background: rgba(148, 163, 184, 0.14); color: var(--text); }
}

/* ---------- Theme switch (sliding Light / Dark pill) ---------- */
.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  flex-shrink: 0;
  height: 32px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  font: 600 12px/1 var(--font-body);
  cursor: pointer;
}

:root[data-theme="light"] .theme-toggle { background: var(--bg-alt); }

.theme-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
  transition: transform 240ms var(--ease-in-out);
}

/* Dark is the default theme, so the thumb rests under "Dark" */
:root:not([data-theme="light"]) .theme-thumb { transform: translateX(100%); }

.theme-opt {
  position: relative;
  padding: 0 10px;
  text-align: center;
  color: var(--text-muted);
  transition: color 200ms ease;
}

:root[data-theme="light"] .theme-opt:nth-child(2),
:root:not([data-theme="light"]) .theme-opt:nth-child(3) { color: #fff; }

.theme-toggle:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* ---------- Horn button (just for fun) ---------- */
/* ---------- Ignition key button (turns + plays a start-up sound) ---------- */
.ignition-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a2332, #0c1220);
  border: 1px solid #2a3a52;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  color: #6b7a91;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.ignition-btn:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.ignition-key {
  transition: transform 150ms ease;
}

.ignition-btn.cranking {
  color: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ignition-btn.cranking .ignition-key {
  transform: rotate(70deg);
}

.ignition-btn.running {
  color: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ignition-btn.running .ignition-key {
  transform: rotate(70deg);
}

@keyframes ignitionShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-1.5px) translateY(0.5px); }
  40% { transform: translateX(1.5px) translateY(-0.5px); }
  60% { transform: translateX(-1px) translateY(0.5px); }
  80% { transform: translateX(1px); }
}

.ignition-btn.cranking {
  animation: ignitionShake 120ms linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ignition-btn.cranking { animation: none; }
}

:root[data-theme="light"] .ignition-btn {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-color: #b8c2d0;
  color: #94a3b8;
}

.horn-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a2332, #0c1220);
  border: 1px solid #2a3a52;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  color: #6b7a91;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.horn-btn:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.horn-btn.honking {
  color: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
}

:root[data-theme="light"] .horn-btn {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-color: #b8c2d0;
  color: #94a3b8;
}

/* ---------- Hazard indicator button (blinks + ticks) ---------- */
.hazard-btn {
  width: 46px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #1a2332, #0c1220);
  border: 1px solid #2a3a52;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 6px;
  transition: var(--transition);
}

.hazard-arrow {
  width: 15px;
  height: 15px;
  color: #4b5a70;
  transition: color 0.1s linear, filter 0.1s linear;
}

.hazard-btn.hazard-on .hazard-arrow {
  color: #f59e0b;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.hazard-btn:hover .hazard-arrow { color: var(--primary-light); }
.hazard-btn.active:hover .hazard-arrow { color: #4b5a70; }
.hazard-btn.active.hazard-on:hover .hazard-arrow { color: #f59e0b; }

:root[data-theme="light"] .hazard-btn {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-color: #b8c2d0;
}

:root[data-theme="light"] .hazard-arrow { color: #94a3b8; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 1200;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* On phones these controls shrink to ~25px; an invisible larger hit area keeps
   them easy to tap without changing how they look. */
.ignition-btn, .horn-btn, .hazard-btn, .hamburger { position: relative; }
.ignition-btn::after, .theme-toggle::after, .horn-btn::after, .hazard-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 52px;
  transform: translate(-50%, -50%);
}
.hamburger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
}

/* ---------- Hero ---------- */
.hero {
  /* The hero always sits on a dark video/gradient regardless of the
     site theme, so its text tokens are pinned to light values here —
     they'd otherwise flip dark in light mode and vanish against it. */
  --text: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(2, 132, 199, 0.3), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #0f2540 45%, #0f172a 100%);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  transform: scale(1.15);
  animation: heroZoomOut 3s var(--ease-out) both;
}

@keyframes heroZoomOut {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.32), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(2, 132, 199, 0.22), transparent 50%),
    linear-gradient(160deg, rgba(11, 18, 32, 0.76) 0%, rgba(15, 37, 64, 0.66) 45%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease 0.15s forwards;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--primary-light), #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  opacity: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.45s forwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gauge {
  width: 86px;
  height: auto;
  overflow: visible;
  margin-bottom: 2px;
}

.gauge-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.16);
  stroke-width: 5;
  stroke-linecap: round;
}

.gauge-fill {
  fill: none;
  stroke: var(--primary-light);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.55));
}

.gauge-ticks .tick {
  stroke: rgba(148, 163, 184, 0.4);
  stroke-width: 1.4;
}

.gauge-ticks .tick.major {
  stroke: rgba(226, 232, 240, 0.65);
  stroke-width: 1.8;
}

.gauge-needle-group .needle-pointer,
.gauge-needle-group .needle-tail {
  stroke: #f87171;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.gauge-needle-group .needle-tail { opacity: 0.55; }

.gauge-needle-status .needle-pointer,
.gauge-needle-status .needle-tail {
  stroke: #4ade80;
}

.gauge-hub {
  fill: #e2e8f0;
  stroke: rgba(15, 23, 42, 0.7);
  stroke-width: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gauge-needle-group { transition: none; }
}

.hero-stat strong {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.hero-stat strong.count-pop {
  animation: countPop 420ms var(--ease-out);
}

@keyframes countPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat strong.count-pop { animation: none; }
}

.hero-stat span {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2.2s infinite;
  z-index: 2;
}

.scroll-indicator .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--primary-light), transparent);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ---------- Trust marquee (continuous ticker, load-once decorative motion) ---------- */
.trust-marquee {
  position: relative;
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt) 35%, var(--bg-alt) 65%, var(--bg));
  overflow: hidden;
  padding: 16px 0;
}

.trust-marquee-bus {
  position: absolute;
  top: 50%;
  left: -60px;
  width: 34px;
  height: auto;
  color: var(--primary-light);
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(14, 165, 233, 0.35));
  animation: marqueeBusDrive 9s linear infinite;
}

@keyframes marqueeBusDrive {
  from { transform: translate(0, -50%); }
  to { transform: translate(calc(100vw + 60px), -50%); }
}

.trust-marquee-wheel {
  fill: var(--bg-alt);
  transform-box: fill-box;
  transform-origin: center;
  animation: busWheelSpin 0.35s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee-bus,
  .trust-marquee-wheel {
    animation: none;
    display: none;
  }
}

.trust-marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 26s linear infinite;
}

.trust-marquee-item {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: reduce) {
  .trust-marquee-track { animation-play-state: paused; }
}

/* ---------- Reveal on scroll ----------
   The transition lives on the two-class `.reveal.in-view` selector (not
   bare `.reveal`) so its specificity beats single-class component rules
   like `.model-card { transition: var(--transition) }` that are declared
   later in this file — otherwise the shorthand collision silently drops
   our duration/curve/stagger-delay in favour of the component's own.
   Once the entrance finishes, script.js strips both classes so the
   component's native transition (e.g. a snappier hover) takes back over. */
.reveal {
  opacity: 0;
  transform: translateY(36px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* Flagship product cards get a bigger, punchier entrance (drop + scale-pop)
   than the generic content fade above. Three-class specificity beats the
   two-class .reveal.in-view rule so it wins without touching the shared default. */
.model-card.reveal {
  transform: translateY(64px) scale(0.9);
}

.model-card.reveal.in-view {
  transform: translateY(0) scale(1);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Model Cards ---------- */
.models-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.model-card {
  background: linear-gradient(180deg, var(--card), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  flex: 1 1 270px;
  max-width: 420px;
}

@media (hover: hover) and (pointer: fine) {
  .model-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
  }
}

.model-card:active {
  transform: scale(0.985);
  transition: transform 160ms var(--ease-out);
}

.model-card.tab-hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.model-media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 84px;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.35), transparent 60%),
    linear-gradient(135deg, #14243d, #0b1526);
  position: relative;
  transition: var(--transition);
}

.model-card:hover .model-media { transform: scale(1.04); }

/* Every card photo sits in the same 4:3 frame and fills it edge to edge,
   so no card shows empty bands beside a narrower photo. */
.model-media.has-photo {
  padding: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #14243d, #0b1526);
}

.model-media.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-media.js-view-gallery-media { cursor: pointer; }
.model-media.js-view-gallery-media:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }

.model-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.model-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.model-name {
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.model-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }

.model-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.model-meta--stack { flex-direction: column; align-items: flex-start; gap: 6px; }
.model-meta .seats { font-size: 13px; color: var(--text-muted); }
.model-meta .price { font-size: 18px; font-weight: 800; color: var(--primary-light); }

.model-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.model-features span {
  font-size: 11px;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
}

.model-body .btn { margin-top: auto; }

.gallery-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 0;
  margin-top: auto;
  margin-bottom: 10px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.gallery-link-btn:hover {
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.model-body .gallery-link-btn + .btn { margin-top: 0; }

/* ---------- Feature / Why Choose Cards ---------- */
/* Arriving at index.html#contactForm from another page: stop below the header */
#contactForm { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- FAQ (native details/summary accordion) ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 200ms ease;
}

.faq-item[open] { border-color: rgba(14, 165, 233, 0.45); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  min-height: 56px;
  font: 600 16px/1.4 var(--font-heading);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Plus sign that turns into a cross when the answer is open */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-light);
  font: 500 20px/1 var(--font-body);
  transition: transform 200ms var(--ease-out);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; border-radius: var(--radius); }

.faq-answer { padding: 0 22px 20px; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; }
.faq-answer a { color: var(--primary-light); }

@media (max-width: 640px) {
  .faq-item summary { padding: 16px 16px; font-size: 15px; }
  .faq-answer { padding: 0 16px 18px; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(14, 165, 233, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover::before { opacity: 1; }
}

.feature-card > * { position: relative; z-index: 1; }

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    background: var(--card-hover);
    box-shadow: var(--shadow);
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(2, 132, 199, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.3);
  margin-bottom: 20px;
  transition: var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }
}

/* Scoped behind .reveal (not just .feature-card) because the reveal observer
   strips .reveal and .in-view together once the entrance settles, handing
   control back to the element's own styling — the hidden state and the
   animation trigger must disappear at that same moment, or the icon would be
   left permanently invisible instead of returning to its plain, visible default. */
.feature-card.reveal .feature-icon { opacity: 0; transform: scale(0.4) rotate(-25deg); }

.feature-card.reveal.in-view .feature-icon {
  animation: featureIconPop 600ms var(--ease-out) forwards;
  animation-delay: 150ms;
}

.features-grid .feature-icon { animation: featureIconGlow 2.6s ease-in-out infinite; }

@keyframes featureIconPop {
  0% { opacity: 0; transform: scale(0.4) rotate(-25deg); }
  60% { opacity: 1; transform: scale(1.15) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes featureIconGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
  50% { box-shadow: 0 0 18px 3px rgba(14, 165, 233, 0.3); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card.reveal .feature-icon { opacity: 1; transform: none; animation: none; }
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Gallery ---------- */
.gallery-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.filter-btn:hover { color: var(--text); border-color: var(--primary-light); }

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-color: transparent;
  color: #051019;
}

/* ---------- Flagship showcase + "who are you?" model guide ---------- */
.model-guide-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 6px;
}
.model-guide-sub { margin: 0 0 18px; font-size: 15px; color: var(--text-muted); }
.flagship-showcase { margin-bottom: 56px; }
.flagship-showcase .model-guide-title { margin-bottom: 18px; }

.flagship-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.flagship-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.18), 0 18px 40px rgba(2, 8, 23, 0.35);
}
.flagship-media { position: relative; overflow: hidden; }
.flagship-media.js-view-gallery-media { cursor: pointer; }
.flagship-media.js-view-gallery-media:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }
.flagship-media img { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .flagship-media.js-view-gallery-media:hover img { transform: scale(1.04); }
}
.flagship-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.flagship-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.spotlight-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
}
.flagship-name {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.flagship-line { font-size: 15px; line-height: 1.55; color: var(--text-muted); margin: 0 0 14px; }
.flagship-body .model-features { margin-bottom: 18px; }
.flagship-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.flagship-actions .btn { flex: 1 1 150px; }

.gallery-filters.guide-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.filter-btn.guide-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  text-transform: none;
  letter-spacing: 0;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.guide-option-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text);
}
.guide-option-for { font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--text-muted); }
.filter-btn.guide-option.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}
.filter-btn.guide-option.active .guide-option-name,
.filter-btn.guide-option.active .guide-option-for { color: #051019; }

.model-guide-result { margin: 0 0 24px; font-size: 14.5px; color: var(--text-muted); }
.model-guide-result strong { color: var(--text); }
.guide-jump {
  font: inherit;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.model-flag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1a1203;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.model-card--pulse { animation: modelPulse 1.6s var(--ease-out) 1; }
@keyframes modelPulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.75); }
  100% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); }
}

/* Below desktop the flagships become a swipeable row: one big card with the next peeking in */
@media (max-width: 960px) {
  .flagship-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -24px;
    padding: 4px 24px 8px;
    scroll-padding: 0 24px;
  }
  .flagship-track::-webkit-scrollbar { display: none; }
  .flagship-card { flex: 0 0 min(84%, 420px); scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .model-guide-title { font-size: 21px; }
  .flagship-name { font-size: 26px; }
  .gallery-filters.guide-options { grid-template-columns: 1fr 1fr; }
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text);
  background: var(--bg-alt);
  font-size: 26px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: var(--transition);
  z-index: 3;
}

.lightbox-close:hover { border-color: var(--primary-light); color: var(--primary-light); }

.lightbox-back {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--text);
  background: var(--bg-alt);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: var(--transition);
  z-index: 3;
}

.lightbox-back:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ---------- Per-Model Photo & Video Gallery ---------- */
.model-gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-out);
  padding: 24px;
}

.model-gallery-modal.active { opacity: 1; visibility: visible; }

.model-gallery-modal-inner {
  position: relative;
  width: min(900px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 76px 40px 40px;
  transform: scale(0.95);
  transition: transform 250ms var(--ease-out);
}

.model-gallery-modal.active .model-gallery-modal-inner { transform: scale(1); }

.model-gallery-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.factory-gallery-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 120px 40px 40px;
  min-height: 420px;
  isolation: isolate;
}

@media (max-width: 640px) {
  .factory-gallery-wrap { padding: 80px 20px 24px; min-height: 320px; }
}

.factory-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 650ms ease;
}

.factory-video-bg.loop-fade { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .factory-video-bg { transition: none; }
}

.factory-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.2) 0%, rgba(11, 18, 32, 0.35) 40%, rgba(15, 23, 42, 0.78) 78%, rgba(15, 23, 42, 0.85) 100%);
}

.factory-gallery-content {
  position: relative;
  z-index: 2;
}

.factory-gallery-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-light);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.factory-gallery-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
  max-width: 480px;
  width: fit-content;
  transition: color 200ms ease;
}

.factory-gallery-location:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.factory-gallery-location svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-light);
}

.model-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

.gallery-slot.gallery-slot-clickable { cursor: zoom-in; }
.gallery-slot.gallery-slot-clickable:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }
.gallery-slot.gallery-slot-clickable::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.35);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.gallery-slot.gallery-slot-clickable::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%) scale(0.7);
  background: rgba(15, 23, 42, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center/18px no-repeat;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-slot.gallery-slot-clickable:hover::before { opacity: 1; }
  .gallery-slot.gallery-slot-clickable:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.gallery-slot img,
.gallery-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slot-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.gallery-slot.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.gallery-slot.empty::before {
  content: "📷";
  font-size: 32px;
  opacity: 0.35;
  margin-bottom: 10px;
}

.gallery-slot.video-slot.empty::before { content: "🎬"; }

.gallery-slot.video-slot.gallery-slot-clickable { cursor: pointer; }
.gallery-slot.video-slot.gallery-slot-clickable:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -2px; }
.gallery-slot.video-slot.gallery-slot-clickable::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, 0.3);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.gallery-slot.video-slot.gallery-slot-clickable::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/20px no-repeat;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-slot.video-slot.gallery-slot-clickable:hover::after { transform: translate(-50%, -50%) scale(1.1); }
}

.gallery-slot.empty .gallery-slot-label {
  position: static;
  background: none;
  color: var(--text-dim);
  text-align: center;
  padding: 0 16px;
}

.photo-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  background: rgba(2, 6, 23, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-out);
  padding: 24px;
}
.photo-lightbox-modal.active { opacity: 1; visibility: visible; }
.photo-lightbox-img {
  max-width: min(1100px, 90vw);
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 250ms var(--ease-out);
}
.photo-lightbox-modal.active .photo-lightbox-img { transform: scale(1); }
.photo-lightbox-video { display: none; background: #000; }
.photo-lightbox-modal.video-mode .photo-lightbox-img:not(.photo-lightbox-video) { display: none; }
.photo-lightbox-modal.video-mode .photo-lightbox-video { display: block; }
.photo-lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 20px;
  white-space: nowrap;
  max-width: calc(100vw - 48px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.photo-lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.photo-lightbox-nav:disabled { opacity: 0.25; cursor: default; }
.photo-lightbox-nav:disabled:hover { background: rgba(255, 255, 255, 0.1); }
.photo-lightbox-prev { left: 20px; }
.photo-lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .photo-lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
  .photo-lightbox-prev { left: 8px; }
  .photo-lightbox-next { right: 8px; }
}

.gallery-slot.empty::after {
  content: "Coming Soon";
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ---------- Customization Tool ---------- */
.customizer-field { margin-bottom: 26px; }

.customizer-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.spider-config-panel select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: var(--transition);
}

.spider-config-panel select:focus { outline: none; border-color: var(--primary-light); }

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25); }

.color-options { display: flex; flex-wrap: wrap; gap: 12px; }
.color-options .swatch:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 3px; }
#spiderColorLabel strong { color: var(--primary-light); text-transform: none; letter-spacing: 0; }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.checkbox-pill:hover { border-color: var(--primary-light); }
.checkbox-pill input { accent-color: var(--primary); width: 16px; height: 16px; }
.checkbox-pill.checked { border-color: var(--primary); background: rgba(14, 165, 233, 0.08); }

.price-summary { list-style: none; margin: 4px 0 0; }

.price-summary li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.price-note { font-size: 12px; color: var(--text-dim); margin-bottom: 24px; }

/* ---------- Spider Live Configurator ---------- */
.spider-config {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.spider-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.spider-canvas-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}

.spider-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.15s ease;
}

#spiderCanvasFade {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  #spiderCanvasFade { transition: none; }
}

#modelPreviewPhoto {
  width: 100%;
  aspect-ratio: 1400 / 933;
  object-fit: cover;
  display: block;
}

#modelPreviewEmoji {
  width: 100%;
  aspect-ratio: 1400 / 933;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: min(20vw, 160px);
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.35), transparent 60%),
    linear-gradient(135deg, #14243d, #0b1526);
}

.spider-view-gallery-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: var(--transition);
}

.spider-view-gallery-btn:hover {
  background: rgba(14, 165, 233, 0.85);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .spider-view-gallery-btn { left: 12px; bottom: 12px; padding: 8px 12px; font-size: 11px; }
}

.spider-livery-name {
  position: absolute;
  left: 52%;
  top: 51%;
  width: 33%;
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-weight: 700;
  font-size: clamp(18px, 6vw, 70px);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 2px 5px #000000;
  white-space: nowrap;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: rotate(-3deg);
  transform-origin: left center;
}

/* ---------- Revolver colour picker (overlaid on the Spider photo) ---------- */
.revolver {
  position: absolute;
  right: 5%;
  bottom: 5%;
  width: clamp(88px, 20%, 140px);
  aspect-ratio: 1;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.revolver-hub {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #4b5768, #171d29 72%);
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 -2px 8px rgba(0, 0, 0, 0.4);
}

.revolver-pointer {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 11px solid var(--primary-light);
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.85));
  z-index: 3;
}

.revolver-cylinder {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  transition: transform 700ms var(--ease-out);
}

.revolver-cylinder .swatch {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: 22%;
  margin: -11% 0 0 -11%;
  transform: rotate(calc(var(--n, 0) * 45deg)) translateY(-155%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.4);
}

.revolver-cylinder .swatch:hover {
  transform: rotate(calc(var(--n, 0) * 45deg)) translateY(-155%) scale(1.18);
}

.revolver-cylinder .swatch.active {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary-light), 0 0 12px rgba(56, 189, 248, 0.85);
}

.revolver-cylinder .swatch:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .revolver { right: 4%; bottom: 4%; width: clamp(72px, 24%, 100px); }
}

.spider-config-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.spider-config-panel .customizer-field { margin-bottom: 24px; }

.spider-config-panel input[type="text"],
.spider-config-panel input[type="tel"],
.spider-config-panel input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.spider-config-panel input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.spider-config-panel .form-group.error input { border-color: var(--danger); }

.chassis-bg {
  position: absolute;
  right: -30px;
  bottom: -10px;
  width: min(50vw, 620px);
  aspect-ratio: 700 / 654;
  background-image: url("../images/chassis-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero .chassis-bg {
  right: 20px;
  bottom: 70px;
  width: min(36vw, 440px);
}

/* ---------- Specifications Table ---------- */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.spec-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.spec-table th, .spec-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}

.spec-table th {
  background: var(--bg-alt);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--primary-light);
  position: sticky;
  top: 0;
}

.spec-table tbody tr:hover { background: var(--card-hover); }
.spec-table td:first-child, .spec-table th:first-child {
  color: var(--text-muted);
  font-weight: 700;
  position: sticky;
  left: 0;
  background: var(--bg-alt);
}
.spec-table tbody tr:hover td:first-child { background: var(--card-hover); }
.spec-table tr:last-child td { border-bottom: none; }

/* ---------- Testimonials ---------- */
.testimonial-carousel {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
}

/* Customer cards: their actual GC bus on one side, who they are on the other */
.testimonial-carousel:has(.customer-card) { max-width: 980px; }
.testimonial-card.customer-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  text-align: left;
}
.customer-photo { position: relative; min-height: 100%; background: #0b1526; }
.customer-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.customer-photo--mark {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(135deg, #0b3a5c, #0b1526);
}
.customer-photo--mark span {
  font-family: "Dancing Script", cursive;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.customer-body { display: flex; flex-direction: column; justify-content: center; padding: 32px 30px; }
.customer-card .stars { margin-bottom: 12px; font-size: 18px; }
.customer-card .testimonial-quote { font-size: 17px; line-height: 1.6; margin-bottom: 18px; }
.customer-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 4px;
}
@media (max-width: 760px) {
  .testimonial-card.customer-card { grid-template-columns: 1fr; }
  .customer-body { padding: 20px 22px 24px; }
  .customer-name { font-size: 20px; }
  .customer-card .testimonial-quote { font-size: 15.5px; }
}

.stars { color: var(--warning); font-size: 20px; letter-spacing: 4px; margin-bottom: 20px; }

.testimonial-quote {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 26px;
}

.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.carousel-arrow:hover { border-color: var(--primary-light); color: var(--primary-light); }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.carousel-dots button.active { width: 24px; border-radius: 4px; background: var(--primary-light); }
/* The dots stay small to look at but get a finger-sized tap area */
.carousel-dots button { position: relative; }
.carousel-dots button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; transform: translate(-50%, -50%); }

/* ---------- CTA ---------- */
.cta {
  /* Fixed dark blue banner regardless of theme — pin text tokens
     so section-title etc. stay light instead of flipping dark. */
  --text: #ffffff;
  --text-muted: #cbd5e1;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.25), transparent 55%),
    linear-gradient(135deg, var(--primary-dark), #0b2f4d);
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: 1240px;
  padding: 72px 40px;
  text-align: center;
}

.cta .section-title { margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.85); font-size: 17px; margin-bottom: 36px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: fit-content;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-of-type { border-bottom: none; }

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item strong { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-info-item span { font-size: 13px; color: var(--text-muted); }

.contact-info-item span a:hover { color: var(--primary-light); text-decoration: underline; }

.social-row { display: flex; gap: 12px; margin-top: 24px; }

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-row a:hover { border-color: var(--primary-light); background: rgba(14, 165, 233, 0.1); transform: translateY(-3px); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: var(--danger); }

.field-error {
  display: none;
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
}

.form-group.error .field-error { display: block; }

.checkbox-line { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.checkbox-line input { width: 16px; height: 16px; accent-color: var(--primary); }
.checkbox-line label { font-size: 13px; color: var(--text-muted); margin: 0; text-transform: none; letter-spacing: 0; font-weight: 500; }

.beta-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1a1203;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: none;
  vertical-align: middle;
}
.beta-badge--sm { margin-left: 0; padding: 2px 7px; font-size: 10px; letter-spacing: 1px; }
.beta-note { margin-top: 12px; max-width: 620px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.beta-note strong { color: #f59e0b; }

.btn:disabled { opacity: 0.7; cursor: progress; }

.form-fallback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.form-fallback a { color: var(--primary-light); font-weight: 700; text-decoration: underline; }

.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  padding: 18px 20px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.form-success.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

@starting-style {
  .form-success.show {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-success.show { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt) 220px);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 18px 0 22px; max-width: 280px; }
.footer-insta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: color 200ms var(--ease-out);
}
.footer-insta:hover { color: var(--primary-light); }
a.section-tag:hover, a.gc-gram-username:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
}

/* =========================================================
   BLOG PAGE
   ========================================================= */
.nav-menu li a.active-link { color: var(--primary-light); }

/* The menu's link colours, padding and divider must not repaint its CTA button */
.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover,
.nav-menu li a.btn-primary.active-link { color: #051019; }
.nav-menu a.btn {
  padding: 14px 30px;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 800;
}

.blog-card { text-decoration: none; color: inherit; display: block; }
.blog-thumb {
  display: block;
  width: calc(100% + 56px);
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -32px -28px 22px;
  border-bottom: 1px solid var(--border);
}
.blog-card h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.blog-readmore { color: var(--primary-light); font-weight: 600; font-size: 14px; }

/* Newest article spans the full row; photo left, text right on wide screens */
.blog-card--featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .blog-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }
  .blog-card--featured .blog-thumb {
    width: calc(100% + 28px);
    height: calc(100% + 64px);
    margin: -32px 0 -32px -28px;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .blog-card--featured h3 { font-size: 24px; }
  .blog-card--featured p { font-size: 15.5px; }
}

.blog-body p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 22px;
}
.blog-body strong { color: var(--text); }
.legal-page h3 { margin: 30px 0 8px; font-size: 19px; color: var(--text); }
.legal-page a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   CAREERS PAGE
   ========================================================= */
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .job-card:hover { border-color: var(--primary); transform: translateY(-2px); }
}
.job-card h3 { font-size: 19px; margin-bottom: 8px; }
.job-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-muted); font-size: 13.5px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-list { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }

.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  flex: 1 1 240px;
  max-width: 300px;
  text-align: center;
  padding: 30px 20px;
}
.value-card .feature-icon { margin: 0 auto 16px; }
.value-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }

.apply-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
  margin: 40px auto 0;
}

/* =========================================================
   GC GRAM (Instagram feed)
   ========================================================= */
.gc-gram-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.gc-gram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 44px;
}

.gc-gram-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gc-gram-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.gc-gram-tile:active { transform: scale(0.97); }

.gc-gram-grid-4 .gc-gram-tile { aspect-ratio: 9 / 16; }

.gc-gram-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gc-gram-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease, transform var(--transition);
}

.gc-gram-video.is-playing { opacity: 1; }

/* ---- Reel chrome: badge (top-right), username (bottom-left), action icons (bottom-right) ---- */
.gc-gram-grid-4 .gc-gram-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 55%, rgba(2, 6, 23, 0.75) 100%);
  pointer-events: none;
  z-index: 1;
}

.gc-gram-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  padding-left: 2px;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.gc-gram-sound {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
  padding: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.gc-gram-sound svg { width: 13px; height: 13px; }
.gc-gram-sound .icon-muted { display: none; }
.gc-gram-sound.is-muted .icon-unmuted { display: none; }
.gc-gram-sound.is-muted .icon-muted { display: block; }

.gc-gram-username {
  position: absolute;
  left: 12px;
  max-width: calc(100% - 58px);
  bottom: 12px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gc-gram-actions {
  position: absolute;
  right: 10px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

@media (hover: hover) and (pointer: fine) {
  .gc-gram-tile:hover img,
  .gc-gram-tile:hover .gc-gram-video { transform: scale(1.04); }
}

/* ---------- GC Gram full-screen reel viewer ---------- */
.reel-viewer-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-out);
  padding: 24px;
}

.reel-viewer-modal.active { opacity: 1; visibility: visible; }

.reel-viewer-frame {
  position: relative;
  width: min(92vw, 420px);
  height: min(78vh, 746px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  transform: scale(0.95);
  transition: transform 250ms var(--ease-out);
  box-shadow: var(--shadow);
}

.reel-viewer-modal.active .reel-viewer-frame { transform: scale(1); }

.reel-viewer-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Bus-door reveal: the video is boarded like a passenger, doors slide open
   once the frame has settled in place (staggered after its own scale-in). */
.bus-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  transition: transform 1000ms var(--ease-drawer);
  transition-delay: 150ms;
}

.bus-door::before {
  content: "";
  position: absolute;
  top: 16%;
  height: 30%;
  left: 14%;
  right: 14%;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.4), rgba(14, 165, 233, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

.bus-door-left { left: 0; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.bus-door-right { right: 0; border-left: 1px solid rgba(255, 255, 255, 0.1); }

.reel-viewer-modal.active .bus-door-left { transform: translateX(-100%); }
.reel-viewer-modal.active .bus-door-right { transform: translateX(100%); }

@media (prefers-reduced-motion: reduce) {
  .bus-door { transition: none; }
}

.reel-viewer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.reel-viewer-close:hover { background: rgba(255, 255, 255, 0.2); }

.reel-viewer-back {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.reel-viewer-back:hover { background: rgba(255, 255, 255, 0.2); }

.reel-viewer-prev, .reel-viewer-next { z-index: 6; }
.reel-viewer-prev { left: 20px; }
.reel-viewer-next { right: 20px; }
.reel-viewer-modal.single-reel .reel-viewer-prev,
.reel-viewer-modal.single-reel .reel-viewer-next { display: none; }

@media (max-width: 640px) {
  .reel-viewer-prev { left: 8px; }
  .reel-viewer-next { right: 8px; }
}

.reel-viewer-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 30-second lead popup ---------- */
.lead-popup-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-out);
  padding: 20px;
}

.lead-popup-modal.active { opacity: 1; visibility: visible; }

.lead-popup-inner {
  position: relative;
  width: min(92vw, 460px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transform: scale(0.94) translateY(10px);
  transition: transform 250ms var(--ease-out);
}

.lead-popup-modal.active .lead-popup-inner { transform: scale(1) translateY(0); }

.lead-popup-inner .contact-form { padding: 0; border: none; background: none; }

.lead-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.lead-popup-close:hover { background: var(--border); }

.lead-popup-back {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.lead-popup-back:hover { background: var(--border); }

.lead-popup-title {
  font-size: 24px;
  font-weight: 800;
  margin: 14px 0 10px;
}

.lead-popup-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .lead-popup-inner { padding: 28px 22px; }
  .lead-popup-title { font-size: 20px; }
}

.footer-bottom .legal-links { display: flex; gap: 24px; }
.footer-bottom .legal-links a:hover { color: var(--text-muted); }

/* ---------- Newsletter (footer) ---------- */
.newsletter-form { display: flex; gap: 10px; margin-top: 16px; }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary-light); }

/* ---------- Back to top ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: var(--transition);
}

.whatsapp-btn-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
  }
}

.whatsapp-btn:active {
  transform: scale(0.95);
  transition: transform 160ms var(--ease-out);
}

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #051019;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .back-to-top:hover { transform: translateY(-4px); }
}

.back-to-top:active {
  transform: scale(0.9);
  transition: transform 160ms var(--ease-out);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
  .customizer { grid-template-columns: 1fr; }
  .price-panel { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spider-config { grid-template-columns: 1fr; }
}

/* Below 1280px the links don't fit beside the logo, so the nav
   collapses into the hamburger drawer. */
@media (max-width: 1279px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 40px 28px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 400ms var(--ease-drawer);
    overflow-y: auto;
  }

  .nav-menu.active { transform: translateX(0); }
  .nav-menu a { padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav-menu a::after { display: none; }

  /* Links cascade in once the drawer has settled, not during its slide */
  .nav-menu li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
    transition-delay: 0ms;
  }

  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active li:nth-child(1) { transition-delay: 120ms; }
  .nav-menu.active li:nth-child(2) { transition-delay: 155ms; }
  .nav-menu.active li:nth-child(3) { transition-delay: 190ms; }
  .nav-menu.active li:nth-child(4) { transition-delay: 225ms; }
  .nav-menu.active li:nth-child(5) { transition-delay: 260ms; }
  .nav-menu.active li:nth-child(6) { transition-delay: 295ms; }
  .nav-menu.active li:nth-child(7) { transition-delay: 330ms; }
  .nav-menu.active li:nth-child(8) { transition-delay: 365ms; }
  .nav-menu.active li:nth-child(9) { transition-delay: 400ms; }
  .nav-menu.active li:nth-child(10) { transition-delay: 435ms; }
  .nav-menu.active li:nth-child(11) { transition-delay: 470ms; }

  .nav-actions .btn-primary { display: none; }
  .nav-menu .btn-primary { display: inline-flex; margin-top: 20px; }

  .hamburger { display: flex; }
}

@media (max-width: 900px) {
  .gc-gram-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { justify-content: space-between; gap: 20px; }
  .chassis-bg { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Body Specifications table → stacked cards. A wide two-column table
     forces sideways scrolling to read a single row's long description;
     below tablet width each row becomes its own card instead. */
  .spec-table-wrap { overflow-x: visible; }

  .spec-table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .spec-table thead { display: none; }

  .spec-table tbody { display: block; }

  .spec-table tr {
    display: block;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
  }

  .spec-table tr:last-child { border-bottom: none; }

  .spec-table td {
    display: block;
    padding: 0;
    border: none;
    white-space: normal;
    position: static;
    background: none !important;
  }

  .spec-table td:first-child {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 6px;
  }

  .spec-table td:last-child {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
  }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; }
  .customizer { padding: 26px; }
  .contact-form { padding: 26px; }
  .gc-gram-grid { grid-template-columns: repeat(2, 1fr); }
}

/* The labelled Light/Dark switch is wider than the old lever, so the header
   buttons go compact a step earlier and the menu button never leaves the screen */
@media (max-width: 720px) {
  .nav-actions { gap: 6px; }
  .theme-toggle { height: 26px; font-size: 10.5px; padding: 2px; }
  .theme-thumb { top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); }
  .theme-opt { padding: 0 6px; }
  .ignition-btn { width: 28px; height: 28px; }
  .ignition-key { width: 15px; height: 15px; }
  .horn-btn { width: 28px; height: 28px; }
  .horn-btn svg { width: 15px; height: 15px; }
  .hazard-btn { width: 32px; height: 28px; padding: 0 3px; }
  .hazard-arrow { width: 12px; height: 12px; }
  .hamburger { width: 24px; }
}

/* Ignition, horn and hazard sit in a small frosted stack at the right edge,
   just above the back-to-top button (script.js moves them there), so the
   header keeps only the menu and the Light/Dark switch. The visitor can
   close the stack with its × for the rest of the visit. */
.fun-dock {
  position: fixed;
  right: 30px;
  bottom: 92px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.78);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.fun-dock.is-hidden { display: none; }
.fun-dock .ignition-btn,
.fun-dock .horn-btn { width: 36px; height: 36px; }
.fun-dock .ignition-key,
.fun-dock .horn-btn svg { width: 17px; height: 17px; }
.fun-dock .hazard-btn { width: 36px; height: 30px; padding: 0 4px; }
.fun-dock .hazard-arrow { width: 12px; height: 12px; }
.fun-dock-close {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-muted);
  font: 600 16px/1 var(--font-body);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
/* Small to look at, finger-sized to tap */
.fun-dock-close::after { content: ""; position: absolute; inset: -9px; }
.fun-dock-close:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .fun-dock-close:hover { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
}
@media (max-width: 500px) {
  .fun-dock .ignition-btn,
  .fun-dock .horn-btn { width: 32px; height: 32px; }
  .fun-dock .ignition-key,
  .fun-dock .horn-btn svg { width: 16px; height: 16px; }
  .fun-dock .hazard-btn { width: 32px; height: 28px; padding: 0 3px; }
  .fun-dock .hazard-arrow { width: 11px; height: 11px; }
}

/* With the three buttons docked, the switch has room to be easier to read */
@media (max-width: 720px) {
  .nav-actions .theme-toggle { height: 28px; font-size: 11.5px; padding: 2px; }
  .nav-actions .theme-opt { padding: 0 8px; }
}

@media (max-width: 640px) {
  /* Full "Gobind Coach Builders" wordmark stays on screen at every
     width — shrink the logo and the nav buttons instead of hiding
     any part of the name. */
  .nav.container { padding-left: 14px; padding-right: 14px; }
  .logo { gap: 6px; font-size: 14px; }
  .logo-mark { width: 32px; height: 32px; padding: 2px; }
  .nav-actions { gap: 6px; }
  .theme-toggle { height: 26px; font-size: 10.5px; padding: 2px; }
  .theme-thumb { top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); }
  .theme-opt { padding: 0 6px; }
  .ignition-btn { width: 28px; height: 28px; }
  .ignition-key { width: 15px; height: 15px; }
  .horn-btn { width: 28px; height: 28px; }
  .horn-btn svg { width: 15px; height: 15px; }
  .hazard-btn { width: 32px; height: 28px; padding: 0 3px; }
  .hazard-arrow { width: 12px; height: 12px; }
  .hamburger { width: 24px; }
}

@media (max-width: 400px) {
  .nav.container { padding-left: 10px; padding-right: 10px; }
  .logo { gap: 4px; font-size: 12px; }
  .logo-mark { width: 26px; height: 26px; }
  .nav-actions { gap: 4px; }
  .theme-toggle { height: 24px; font-size: 10px; }
  .theme-opt { padding: 0 5px; }
  .ignition-btn { width: 25px; height: 25px; }
  .ignition-key { width: 13px; height: 13px; }
  .horn-btn { width: 25px; height: 25px; }
  .horn-btn svg { width: 13px; height: 13px; }
  .hazard-btn { width: 28px; height: 25px; padding: 0 2px; }
  .hazard-arrow { width: 10px; height: 10px; }
}

/* =========================================================
   FEATURES REPLAY BUTTON + INTERACTIVE FEATURE TOUR
   ========================================================= */
.features-tour-btn {
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #1a2332, #0c1220);
  border: 1px solid #2a3a52;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.features-tour-btn:hover { color: var(--primary-light); border-color: var(--primary-light); transform: translateY(-1px); }
:root[data-theme="light"] .features-tour-btn {
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  border-color: #b8c2d0;
  color: #475569;
}

@keyframes featuresBtnPulse {
  0%, 100% { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 0 0 0 rgba(56, 189, 248, 0.55); }
  50% { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 0 0 6px rgba(56, 189, 248, 0); }
}
.features-tour-btn.attention { animation: featuresBtnPulse 1.8s ease-out 3; }

.feature-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.feature-tour-overlay.active { opacity: 1; visibility: visible; }

.tour-spotlight {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(3, 8, 18, 0.74);
  outline: 2px solid var(--primary-light);
  outline-offset: 4px;
  pointer-events: none;
  z-index: 2601;
  transition: top 0.4s var(--ease-out), left 0.4s var(--ease-out), width 0.4s var(--ease-out), height 0.4s var(--ease-out);
  animation: tourSpotlightGlow 1.6s ease-in-out infinite;
}
@keyframes tourSpotlightGlow {
  0%, 100% { outline-color: var(--primary-light); }
  50% { outline-color: var(--primary); }
}

.tour-tooltip {
  position: fixed;
  z-index: 2602;
  width: 260px;
  max-width: calc(100vw - 32px);
  background: var(--card);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-glow);
  transition: top 0.4s var(--ease-out), left 0.4s var(--ease-out);
}
.tour-step-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tour-tooltip h4 { font-family: var(--font-heading); font-size: 16px; margin: 0 0 6px; color: var(--text); }
.tour-tooltip p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0 0 14px; }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-skip {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.tour-skip:hover { color: var(--text-muted); }
.tour-next {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tour-next:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35); }

.tour-nav-btns { display: flex; align-items: center; gap: 8px; }
.tour-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tour-back:hover { color: var(--primary-light); border-color: var(--primary-light); }
.tour-back:disabled { opacity: 0.35; cursor: default; }
.tour-back:disabled:hover { color: var(--text-muted); border-color: var(--border); }

.tour-tooltip-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--card);
  border: 1px solid var(--primary-light);
  transform: rotate(45deg);
}
.tour-tooltip.arrow-top .tour-tooltip-arrow { top: -8px; left: 24px; border-right: none; border-bottom: none; }
.tour-tooltip.arrow-bottom .tour-tooltip-arrow { bottom: -8px; left: 24px; border-left: none; border-top: none; }

@media (max-width: 640px) {
  .features-tour-btn span { display: none; }
  .features-tour-btn { width: 32px; height: 28px; padding: 0; }
  .tour-tooltip { width: 220px; padding: 14px; }
}
