/* Design tokens used across the whole site. */
:root {
  --ink: #101624;
  --muted: #667085;
  --blue: #4f72e8;
  --deep: #07142e;
  --paper: #ffffff;
  --ice: #eef4ff;
  --line: rgba(218, 226, 241, .9);
  --shadow: 0 28px 80px rgba(5, 14, 35, .18);
}

/* Base reset and page defaults. */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #0b0d12;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #0b0d12;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

/* Reusable icon system. Each icon gets its shape from a CSS mask below. */
.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  vertical-align: -3px;
  mask: var(--icon) center / contain no-repeat;
}

/* Inline SVG masks keep the project dependency-free and fast to host. */
.icon-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.icon-bag { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.2 11.2a2 2 0 0 0 2 1.6h7.9a2 2 0 0 0 1.9-1.4L21 7H6'/%3E%3C/svg%3E"); }
.icon-user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.icon-arrow { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.5'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E"); }
.icon-sort { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.4'%3E%3Cpath d='M7 4v16M4 7l3-3 3 3M17 20V4M14 17l3 3 3-3'/%3E%3C/svg%3E"); }
.icon-gauge { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Cpath d='M4 14a8 8 0 0 1 16 0'/%3E%3Cpath d='M12 14l4-4'/%3E%3Cpath d='M6 18h12'/%3E%3C/svg%3E"); }
.icon-star { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 3 6 7 .9-5 4.8 1.2 6.8L12 17.3 5.8 20.5 7 13.7 2 8.9 9 8l3-6Z'/%3E%3C/svg%3E"); }
.icon-zap { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-13h-7l0-7Z'/%3E%3C/svg%3E"); }
.icon-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Cpath d='M12 3 5 6v5c0 5 3 8 7 10 4-2 7-5 7-10V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-5'/%3E%3C/svg%3E"); }
.icon-car { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Cpath d='M4 13 6 7h12l2 6v6h-2v-2H6v2H4v-6Z'/%3E%3Cpath d='M6 13h12M7 17h.1M17 17h.1'/%3E%3C/svg%3E"); }
.icon-lock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.icon-card { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.3'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E"); }
.icon-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='3'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E"); }

/* The app shell wraps every rendered page. */
.site-shell {
  width: 100%;
  min-height: 100svh;
  background: var(--paper);
  overflow: clip;
}

/* Fixed header and navigation. */
.header {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(22px, 4vw, 82px);
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  backdrop-filter: blur(18px);
}

/* Brand wordmark styling. */
.brand {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #07111f;
  font-weight: 950;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand span, .footer span { color: #1556ff; }

.brand-text {
  display: inline-flex;
  gap: 0;
  align-items: baseline;
  color: #07111f !important;
  letter-spacing: 0;
}

.brand-text > span { color: #1556ff !important; }

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 9px;
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 10px rgba(21,86,255,.22));
}

/* Main navigation links and active underline. */
nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
}

nav button, .header-icons {
  border: 0;
  background: transparent;
  color: #626c7d;
}

nav button {
  min-height: 40px;
  position: relative;
  font-size: 13px;
  font-weight: 850;
  transition: color .25s ease;
}

nav button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #001039, #1b5cff);
  transform: translateX(-50%);
  transition: width .28s ease;
}

nav button:hover {
  color: #234ea8;
}

nav button:hover::after, nav button.active::after { width: 100%; }
nav button.active { color: #175cff; }

/* Search, cart, and profile buttons. */
.header-icons {
  justify-self: end;
  display: flex;
  gap: 18px;
  color: #07111f;
}

.header-icons button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  position: relative;
  background: transparent;
  color: #07111f;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.header-icons button:hover {
  color: #002a8a;
  background: transparent;
  transform: none;
}

.header-icons button:hover .icon {
  background: linear-gradient(135deg, #000a24, #0035b8 70%, #1556ff);
}

.cart-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #1556ff;
  color: white;
  font-size: 10px;
  font-weight: 900;
}

/* Shared full-screen page spacing. */
.page {
  min-height: 100svh;
  position: relative;
  padding: clamp(96px, 12vh, 140px) clamp(20px, 5vw, 82px) clamp(42px, 7vh, 78px);
}

/* Full-bleed hero layout used on the main pages. */
.hero-page {
  display: grid;
  grid-template-columns: minmax(300px, 610px) 1fr;
  align-items: end;
  gap: 28px;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

/* Hero background image and cinematic overlay. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #030712;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: cinematicZoom 9s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 7, 19, .88), rgba(2, 7, 19, .5) 45%, rgba(2, 7, 19, .12)),
    radial-gradient(circle at 70% 42%, rgba(65, 107, 255, .24), transparent 38%);
}

.hero-page.light .hero-bg::after {
  background: linear-gradient(90deg, rgba(245, 248, 255, .94), rgba(245, 248, 255, .68) 45%, rgba(245, 248, 255, .12));
}

.hero-page.light { color: var(--ink); }

/* Soft fade at the bottom of hero images. */
.hero-glass {
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  z-index: -1;
  background: linear-gradient(0deg, rgba(255,255,255,.92), transparent);
  opacity: .86;
}

/* Hero copy block. */
.hero-content {
  max-width: 650px;
  margin-bottom: 7vh;
  min-width: 0;
}

/* Small pill label used above page headings. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(229, 238, 255, .92);
  color: #1f56b8;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  width: max-content;
  max-width: 100%;
}

h1, h2, h3, p { margin-top: 0; }

/* Page-level headline treatment. */
h1 {
  margin: 24px 0 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: .92;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}

h1 strong, h2 strong { color: var(--blue); }

.hero-content p {
  max-width: 560px;
  color: rgba(235, 242, 255, .82);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
}

.light .hero-content p { color: #475467; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.btn, .vehicle-card button, .payment-form button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  background: linear-gradient(135deg, #102044 0%, #173c91 56%, #426df0 100%);
  color: white;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 22px 46px rgba(0, 22, 77, .28);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.btn:hover, .vehicle-card button:hover, .payment-form button:hover {
  transform: none;
  background: linear-gradient(135deg, #152a5a 0%, #2453be 54%, #5d82ff 100%);
  box-shadow: 0 20px 44px rgba(42, 83, 190, .24);
}

.btn.ghost {
  background: rgba(238, 245, 255, .9);
  color: #123b84;
}

/* Floating inventory stat box on hero sections. */
.hero-spec {
  position: absolute;
  right: clamp(24px, 5vw, 96px);
  bottom: clamp(26px, 6vh, 72px);
  z-index: 2;
  margin: 0;
  padding: 18px;
  width: min(100%, 320px);
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(2, 7, 19, .46);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.light .hero-spec {
  background: rgba(255,255,255,.7);
  color: var(--ink);
}

.hero-spec span {
  color: #9eb7ff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-spec b {
  display: block;
  font-size: 42px;
  line-height: .9;
}

.hero-spec p {
  margin: 12px 0 0;
  color: rgba(235,242,255,.75);
  line-height: 1.6;
}

.light .hero-spec p { color: #667085; }

/* Light editorial pages. */
.editorial, .inventory-page, .rent-page {
  background: #f5f8ff;
}

.featured-page {
  background: white;
}

.section-head {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-bottom: clamp(24px, 5vh, 48px);
}

.section-head .eyebrow {
  justify-self: start;
  width: auto;
  max-width: max-content;
}

.section-head h2 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: .9;
  text-transform: uppercase;
}

/* Home page path cards. */
.path-grid {
  min-height: 62vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.path-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 30px;
  color: white;
  text-align: left;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.path-card img, .payment-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.path-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}

.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2,7,19,.86), rgba(2,7,19,.08));
}

.path-card:hover img { transform: scale(1.12); }

.path-card span {
  position: absolute;
  left: 30px;
  bottom: 88px;
  font-size: 28px;
  font-weight: 950;
}

.path-card p {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 42px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.55;
}

.path-card .icon {
  display: none;
}

/* Featured gallery section on the home page. */
.featured-grid {
  min-height: 58vh;
  display: grid;
  grid-template-columns: 1.25fr .82fr;
  grid-template-rows: 1fr .52fr;
  gap: 22px;
}

.featured-main, .featured-side, .note-card {
  border: 0;
  text-align: left;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.featured-main {
  grid-row: 1 / 3;
  color: white;
  padding: 28px;
}

.featured-main img, .featured-side img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}

.featured-main::after, .featured-side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2,7,19,.86), rgba(2,7,19,.08));
}

.featured-main:hover img, .featured-side:hover img { transform: scale(1.08); }

.featured-main span {
  position: absolute;
  right: 22px;
  top: 22px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.featured-main h3 {
  position: absolute;
  left: 28px;
  bottom: 62px;
  font-size: clamp(24px, 2.5vw, 36px);
}

.featured-main b {
  position: absolute;
  left: 28px;
  bottom: 30px;
  font-size: 22px;
}

.featured-side {
  min-height: 270px;
  padding: 24px;
  background: #edf3ff;
}

.featured-side::after {
  background: linear-gradient(0deg, rgba(255,255,255,.94), rgba(255,255,255,.08));
}

.featured-side h3, .featured-side b {
  position: absolute;
  left: 24px;
  z-index: 2;
}

.featured-side h3 { bottom: 50px; }
.featured-side b { bottom: 24px; }

.featured-side b, .note-card small { color: #245dff; }

.note-card {
  border: 0;
  padding: 28px;
  background: #dce8ff;
  color: var(--ink);
}

.note-card b {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.note-card p {
  color: var(--muted);
}

.note-card small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

/* Inventory filters and sort controls. */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filters button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  background: #e2ebff;
  color: #2852a5;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(25, 70, 160, .06);
  transition: box-shadow .28s ease, color .28s ease, background .28s ease;
}

.filters button:hover {
  color: white;
  background: linear-gradient(135deg, #152a5a, #426df0);
  box-shadow: 0 16px 36px rgba(42, 83, 190, .2);
}

.filters button.active {
  color: #07111f;
  background: linear-gradient(135deg, #cfe0ff, #eef4ff);
  box-shadow: inset 0 0 0 1px rgba(51, 95, 255, .12), 0 16px 34px rgba(22, 73, 160, .12);
}

/* Vehicle card grids. */
.cards-grid, .rent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

/* Vehicle card shell. */
.vehicle-card {
  background: #eef4ff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(16, 36, 78, .14);
  transition: transform .35s ease, box-shadow .35s ease;
  max-width: 430px;
  width: 100%;
  justify-self: center;
}

.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 90px rgba(16, 36, 78, .22);
}

/* Vehicle image stage. All card images share this frame for consistent height. */
.vehicle-image {
  display: block;
  width: 100%;
  height: clamp(190px, 15vw, 245px);
  aspect-ratio: auto;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #5e636c, #07090e 70%);
}

/* Media wrappers keep old and new image treatments compatible. */
.media-fill, .media-fit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-fill img, .media-fit img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

.media-fill img {
  object-fit: cover;
  object-position: var(--fit-position, center);
  filter: blur(16px) brightness(.46) saturate(1.18);
  transform: scale(1.12);
}

.media-fit {
  z-index: 1;
  display: grid;
  place-items: center;
}

.media-fit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--fit-position, center);
  padding: 0;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}

.vehicle-card:hover .media-fit img { transform: scale(1.045); }

.media-fit img.image-failed {
  min-height: 100%;
  background:
    radial-gradient(circle at 45% 42%, rgba(84, 124, 255, .35), transparent 30%),
    linear-gradient(135deg, #050914, #202834);
}

/* Price pill over each image. */
.vehicle-image span {
  z-index: 3;
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #d7dce3;
  color: #152033;
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 950;
}

/* Vehicle card text and stats. */
.vehicle-body {
  padding: 22px 24px 26px;
}

.vehicle-body small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.vehicle-body h3 {
  margin: 10px 0 8px;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1;
  text-transform: uppercase;
}

.vehicle-body p {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.stats {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
}

.stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315bbb;
  font-size: 12px;
  font-weight: 900;
}

.stats .icon {
  width: 13px;
  height: 13px;
  background: #425a82;
}

/* Card actions: details button plus small cart button. */
.vehicle-card button {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 10px;
}

.vehicle-card .cart-add {
  display: inline-flex;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4ff, #dce8ff);
  color: #002a8a;
  box-shadow: none;
}

.vehicle-card .cart-add:hover {
  color: #00184f;
  background: linear-gradient(135deg, #dbe8ff, #c7dcff);
  box-shadow: 0 12px 26px rgba(22, 73, 160, .16);
  transform: none;
}

/* Inventory pagination control. */
.more-wrap {
  display: grid;
  place-items: center;
  gap: 12px;
  padding-top: clamp(34px, 5vw, 70px);
}

.more-btn {
  min-width: min(100%, 360px);
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  background: linear-gradient(135deg, #d7e6ff, #edf4ff);
  color: #31528e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.more-btn:hover:not(:disabled) {
  color: white;
  background: linear-gradient(135deg, #152a5a, #426df0);
  box-shadow: 0 18px 42px rgba(42, 83, 190, .22);
}

.more-btn:disabled {
  opacity: .55;
  cursor: default;
}

.more-wrap small {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

/* Rent benefits cards. */
.why {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why div {
  min-height: 170px;
  padding: 26px;
  background: white;
  box-shadow: 0 18px 50px rgba(16, 36, 78, .1);
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}

.why div::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% 20%;
  height: 80%;
  background: radial-gradient(circle, rgba(21, 86, 255, .22), transparent 62%);
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
}

.why div:hover {
  transform: translateY(-10px);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  box-shadow: 0 30px 80px rgba(16, 36, 78, .2);
}

.why div:hover::after {
  opacity: 1;
  transform: translateY(-16px);
}

.why .icon {
  color: var(--blue);
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  transition: transform .35s ease, background .35s ease;
}

.why div:hover .icon {
  transform: scale(1.18) rotate(-6deg);
  background: linear-gradient(135deg, #00184f, #1556ff);
}

.why b {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.why p {
  color: var(--muted);
  line-height: 1.6;
}

/* Payment page layout and background. */
.payment-page {
  display: grid;
  grid-template-columns: minmax(340px, 640px) minmax(460px, 680px);
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  justify-content: center;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.payment-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #030712;
}

.payment-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.12) contrast(1.12);
  transform: scale(1.08);
  animation: cinematicZoom 10s ease-in-out infinite alternate;
}

.payment-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 19, .88), rgba(2, 7, 19, .58) 48%, rgba(2, 7, 19, .72)),
    radial-gradient(circle at 72% 38%, rgba(45, 89, 210, .25), transparent 35%);
}

/* Checkout form panel. */
.payment-form {
  max-width: 640px;
  padding: clamp(22px, 2.6vw, 34px);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
}

.payment-page .payment-form {
  justify-self: end;
}

.payment-form h1 {
  color: white;
  font-size: clamp(34px, 4.2vw, 58px);
}

.secure {
  display: flex;
  gap: 14px;
  padding: 20px;
  margin-bottom: 20px;
  background: rgba(234, 242, 255, .88);
  color: var(--ink);
}

.secure p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #667085;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

input {
  height: 50px;
  border: 1px solid #c4ccd9;
  border-radius: 5px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
}

input.invalid {
  border-color: #d7263d;
  box-shadow: 0 0 0 4px rgba(215, 38, 61, .1);
}

.form-message {
  min-height: 24px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.form-message.error { color: #b42318; }
.form-message.success { color: #027a48; }

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

.payment-form button {
  width: 100%;
}

/* Order preview card shown beside the payment form. */
.order-card {
  background: rgba(255,255,255,.9);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(16px);
  width: min(100%, 680px);
  max-width: 680px;
  justify-self: center;
}

.order-card .vehicle-image {
  width: 100%;
  height: 320px;
}

/* Details page hero and content. */
.detail-page {
  min-height: 100svh;
  background: #f4f7ff;
  padding-top: 72px;
}

.detail-hero {
  min-height: calc(92svh - 72px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 520px) minmax(360px, 660px);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(38px, 5vw, 74px);
  color: white;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.32) saturate(1.05);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 76% 38%, rgba(79,114,232,.24), transparent 36%),
    linear-gradient(90deg, rgba(3,8,20,.9), rgba(3,8,20,.58) 54%, rgba(3,8,20,.82));
}

.detail-copy, .detail-stage {
  position: relative;
  z-index: 2;
}

.detail-copy h1 {
  max-width: 520px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .92;
}

.detail-copy p {
  max-width: 560px;
  color: rgba(235,242,255,.82);
  font-size: 16px;
  line-height: 1.65;
}

.detail-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.detail-mini-stats span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(224,235,255,.14);
  border: 1px solid rgba(224,235,255,.18);
  color: #eaf1ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-mini-stats .icon {
  width: 14px;
  height: 14px;
  background: #cfe0ff;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Large vehicle image on the details page. */
.detail-stage {
  min-height: clamp(320px, 38vw, 500px);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 34px 90px rgba(0,0,0,.3);
}

.detail-stage .media-fill,
.detail-stage .media-fit {
  position: absolute;
  inset: 0;
}

.detail-stage .media-fit img {
  object-fit: cover;
  object-position: center;
}

.detail-stage > span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(238,244,255,.96);
  color: var(--ink);
  font-weight: 950;
}

/* Details story and spec panels. */
.detail-content {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(360px, 1.05fr);
  gap: clamp(22px, 3vw, 42px);
  padding: clamp(34px, 5vw, 72px) clamp(24px, 5vw, 82px);
}

.detail-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-panels article,
.detail-story {
  background: white;
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 20px 55px rgba(16,36,78,.1);
}

.detail-panels article {
  min-height: 188px;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.detail-panels article:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #fff, #edf4ff);
  box-shadow: 0 28px 70px rgba(16,36,78,.16);
}

.detail-panels .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 22px;
  background: #1556ff;
}

.detail-panels small {
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 10px;
}

.detail-panels b {
  display: block;
  margin: 8px 0;
  font-size: clamp(22px, 2.5vw, 30px);
}

.detail-panels p,
.detail-story p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-story h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: .96;
  text-transform: uppercase;
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-list span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: #e4edff;
  color: #1f56b8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.related-section {
  padding-top: clamp(20px, 3vw, 40px);
  background: #f4f7ff;
}

/* Payment order summary typography. */
.order-card .media-fit img {
  object-fit: cover;
  padding: 0;
}

.order-card h2, .order-card p, .order-card dl, .order-card strong, .order-card small {
  margin-left: 24px;
  margin-right: 24px;
}

.order-card h2 {
  margin-top: 24px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.order-card p {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.order-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.order-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.order-card strong {
  display: block;
  margin-top: 26px;
  font-size: 30px;
}

.order-card small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 26px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #07101f;
  color: white;
}

/* Footer links and closing copy. */
.footer {
  min-height: 260px;
  padding: clamp(34px, 5vw, 74px);
  display: grid;
  grid-template-columns: 1.2fr .65fr .65fr 1fr;
  gap: 24px;
  align-items: end;
  background: #fff;
}

.footer button {
  display: block;
  border: 0;
  background: transparent;
  color: #7a8392;
  padding: 4px 0;
  text-align: left;
  transition: color .2s ease, transform .2s ease;
}

.footer button:hover {
  color: #1556ff;
  transform: translateX(4px);
}

.footer p {
  margin-bottom: 0;
  color: #7a8392;
  font-size: 13px;
  line-height: 1.65;
}

.footer strong {
  font-size: 11px;
  text-align: right;
}

/* Loading screen. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #00030a;
  color: #eaf3ff;
  overflow: hidden;
  transition: opacity .75s ease, visibility .75s ease;
}

.loader-out {
  opacity: 0;
  visibility: hidden;
}

.loader-photo {
  position: absolute;
  inset: 0;
  opacity: .22;
}

.loader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.3) contrast(1.2);
  transform: scale(1.08);
  animation: cinematicZoom 2.4s ease-in-out infinite alternate;
}

.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, rgba(18, 70, 180, .72), transparent 26%), #000712aa;
}

.scan-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(90, 150, 255, .12) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(90, 150, 255, .10) 0 1px, transparent 1px 82px);
  mask-image: radial-gradient(circle, #000 0 42%, transparent 76%);
  animation: scan 1.5s linear infinite;
}

.loader-orbit {
  width: min(64vw, 470px);
  aspect-ratio: 1;
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 40px rgba(71, 128, 255, .56));
}

.loader-orbit::before, .loader-orbit::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(139, 187, 255, .35);
  border-radius: 50%;
  animation: rotate 4.8s linear infinite;
}

.loader-orbit::after {
  inset: 21%;
  border-top-color: #fff;
  border-left-color: transparent;
  animation-duration: 1.35s;
  animation-direction: reverse;
}

.loader-orbit i {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #dcecff;
  box-shadow: 0 0 30px #5f89ff;
  animation: pulse 1.1s ease-in-out infinite;
}

.loader-orbit i:nth-child(2) { transform: translate(170px, -70px); }
.loader-orbit i:nth-child(3) { transform: translate(-150px, 115px); animation-delay: .24s; }
.loader-orbit i:nth-child(4) { transform: translate(0, -178px); animation-delay: .48s; }

.loader-core {
  width: 162px;
  height: 162px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 45%, #1d4fff, #020814 70%);
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: inset 0 0 32px rgba(255,255,255,.12), 0 0 90px rgba(32, 91, 255, .7);
}

.loader-core span {
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 2px;
}

.loader-copy {
  position: absolute;
  z-index: 4;
  bottom: 10vh;
  text-align: center;
}

.loader-copy p {
  margin: 0 0 8px;
  color: #8eb0ff;
  text-transform: uppercase;
  font-weight: 950;
  font-size: 12px;
}

.loader-copy h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 96px);
  line-height: .9;
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(77, 126, 255, .82);
}

/* Drawer system for search, cart, and profile. */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2,7,19,.45);
  backdrop-filter: blur(5px);
}

.drawer {
  position: fixed;
  right: 22px;
  top: 92px;
  z-index: 90;
  width: min(92vw, 430px);
  max-height: calc(100svh - 118px);
  overflow: auto;
  padding: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.drawer h2 {
  margin: 10px 0 18px;
  font-size: 30px;
  text-transform: uppercase;
}

.drawer-close {
  border: 0;
  background: #e7efff;
  color: #1f56b8;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
}

.drawer-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.drawer-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 10px;
  background: #eef4ff;
  text-align: left;
}

.drawer-thumb {
  position: relative;
  width: 82px;
  height: 62px;
  overflow: hidden;
  background: #07101f;
}

.drawer-thumb .media-fit img {
  padding: 6px;
}

.drawer-item img {
  width: 82px;
  height: 62px;
  object-fit: contain;
  background: #07101f;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
}

.search-row button {
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #020713, #00257e);
}

.recent-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
  align-items: center;
}

.recent-searches b {
  flex-basis: 100%;
  font-size: 12px;
  text-transform: uppercase;
}

.recent-searches button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #e7efff;
  color: #1f56b8;
  font-weight: 850;
}

.drawer-item b, .drawer-item small {
  display: block;
}

.drawer-item small {
  color: var(--muted);
  margin-top: 4px;
}

.profile-card {
  display: grid;
  gap: 6px;
  margin: 20px 0;
  padding: 18px;
  background: #eef4ff;
}

/* Shared reveal animation. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: reveal .9s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

.delay { animation-delay: 180ms; }
.delay2 { animation-delay: 320ms; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cinematicZoom {
  to { transform: scale(1.12) translate3d(-1.4%, -1%, 0); }
}

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.9); } }
@keyframes scan { to { transform: translateY(82px); } }

/* Respect users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* Tablet layout adjustments. */
@media (max-width: 1100px) {
  .hero-page {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-content {
    margin-bottom: 0;
    align-self: end;
  }

  .hero-spec {
    max-width: 420px;
    margin: 0;
  }

  .cards-grid, .rent-grid, .path-grid, .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-page {
    grid-template-columns: 1fr 1fr;
  }

  .payment-media {
    grid-column: 1 / -1;
    height: 38vh;
  }
}

/* Mid-size screens move the hero stat card out of the way. */
@media (max-width: 900px) {
  h1 {
    font-size: clamp(34px, 10vw, 56px);
    line-height: .94;
  }

  .hero-content {
    max-width: min(100%, 580px);
  }

  .hero-spec {
    top: 112px;
    right: 18px;
    bottom: auto;
    left: auto;
    width: min(38vw, 240px);
    padding: 14px;
  }

  .hero-spec span {
    font-size: 9px;
  }

  .hero-spec b {
    font-size: 32px;
  }

  .hero-spec p {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
  }
}

/* Mobile layout. */
@media (max-width: 760px) {
  .header {
    height: auto;
    min-height: 64px;
    grid-template-columns: 1fr auto;
    padding: 10px 16px 0;
  }

  nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    padding: 4px 0 10px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar { display: none; }

  nav button {
    font-size: 12px;
    padding: 0 2px;
  }

  .header-icons { gap: 12px; }

  .page {
    padding: 110px 18px 42px;
  }

  h1 {
    font-size: clamp(34px, 10.4vw, 50px);
    line-height: .96;
  }

  .section-head h2 {
    font-size: clamp(32px, 11vw, 52px);
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-page {
    min-height: calc(100svh - 104px);
    padding-top: 104px;
    padding-bottom: 34px;
  }

  .hero-content {
    padding-top: clamp(220px, 42vh, 330px);
  }

  .hero-spec {
    top: 124px;
    right: 16px;
    bottom: auto;
    left: auto;
    width: min(44vw, 210px);
    padding: 12px;
    box-shadow: 0 18px 46px rgba(0,0,0,.28);
  }

  .hero-spec span {
    font-size: 9px;
  }

  .hero-spec b {
    font-size: 28px;
  }

  .hero-spec p {
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.45;
  }

  .path-grid, .cards-grid, .rent-grid, .why, .payment-page, .two {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
    padding: 132px 18px 42px;
  }

  .detail-stage {
    min-height: 330px;
  }

  .detail-panels {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px 18px 42px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-main {
    min-height: 430px;
    grid-row: auto;
  }

  .path-card {
    min-height: 390px;
  }

  .vehicle-image {
    height: 230px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .drawer {
    right: 12px;
    left: 12px;
    top: 104px;
    width: auto;
  }

  .footer strong {
    text-align: left;
  }

  .loader-orbit {
    width: 86vw;
  }
}
