:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --text: #101828;
  --muted: #667085;
  --line: #d9e2f2;
  --blue: #155eef;
  --blue-dark: #123c9c;
  --navy: #08142f;
  --red: #e63846;
  --green: #109a62;
  --orange: #d97b0f;
  --shadow: 0 22px 55px rgba(12, 25, 54, .12);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.login-body { min-height: 100vh; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.section-pad { padding: 92px 0; }

.access-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, .22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(230, 56, 70, .16), transparent 36%),
    linear-gradient(135deg, #f8fbff, #edf3ff 48%, #ffffff);
}
.access-bg {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: .8;
  pointer-events: none;
}
.access-bg-one {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, #155eef, #7b61ff);
  top: -180px;
  right: -150px;
}
.access-bg-two {
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, #e63846, #ffb650);
  left: -160px;
  bottom: -130px;
}
.access-card {
  width: min(520px, 100%);
  position: relative;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 42px;
  box-shadow: var(--shadow);
}
.brand-mark,
.logo-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), #0d1b46 70%, var(--red));
  color: #fff;
  font-weight: 900;
  letter-spacing: -.06em;
}
.access-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: .94;
  letter-spacing: -.075em;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.access-copy {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}
.access-form label,
.filter-box label span {
  display: block;
  color: #344054;
  font-weight: 750;
  font-size: .9rem;
  margin-bottom: 8px;
}
.access-input-row {
  display: flex;
  gap: 10px;
}
.access-input-row input,
.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.access-input-row input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: rgba(21, 94, 239, .7);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, .12);
}
.access-input-row button {
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  min-width: 150px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.form-error {
  margin: 12px 0 0;
  color: #b42318;
  font-weight: 700;
}
.access-note {
  color: var(--muted);
  font-size: .9rem;
  margin: 24px 0 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(217,226,242,.72);
  backdrop-filter: blur(18px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: .88rem;
}
.logo strong { display: block; letter-spacing: -.035em; }
.logo small { display: block; color: var(--muted); font-size: .78rem; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #344054;
  font-weight: 750;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: #edf3ff; color: var(--blue-dark); }
.logout-link { background: var(--navy); color: #fff !important; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 112px;
}
.hero-gradient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: .58;
  filter: blur(12px);
}
.hero-gradient-one {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(21,94,239,.3), transparent 62%);
  top: -260px;
  right: -170px;
}
.hero-gradient-two {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(230,56,70,.14), transparent 60%);
  bottom: -180px;
  left: -160px;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr);
  gap: 54px;
  align-items: center;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(21,94,239,.22);
  background: rgba(255,255,255,.72);
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 850;
  font-size: .88rem;
}
.hero h1,
.section-heading h2 {
  margin: 18px 0 18px;
  line-height: .96;
  letter-spacing: -.08em;
  color: var(--navy);
}
.hero h1 { font-size: clamp(3.2rem, 8vw, 7rem); max-width: 750px; }
.hero p,
.section-heading p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
  max-width: 650px;
}
.hero-actions,
.filter-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  min-height: 48px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0b2d79);
  box-shadow: 0 16px 35px rgba(21,94,239,.25);
}
.btn-secondary { background: #0f172a; color: #fff; }
.btn-light { background: #edf3ff; color: var(--blue-dark); }
.hero-panel {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(8,20,47,.95), rgba(18,60,156,.92)),
    radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 36%);
  box-shadow: 0 35px 80px rgba(8,20,47,.28);
  color: #fff;
  overflow: hidden;
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -90px -110px auto;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  background: rgba(230,56,70,.35);
  filter: blur(22px);
}
.panel-topline,
.spec-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.panel-topline span { color: rgba(255,255,255,.7); font-weight: 700; }
.panel-topline strong { font-size: 2.2rem; }
.mini-chart {
  position: relative;
  z-index: 1;
  height: 260px;
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 60px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.mini-chart span {
  flex: 1;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #8fc7ff, #155eef 70%, #06142f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.floating-card {
  position: absolute;
  z-index: 2;
  min-width: 145px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.floating-card span { display: block; color: var(--muted); font-size: .82rem; font-weight: 750; }
.floating-card strong { font-size: 1.8rem; }
.card-a { top: 96px; right: 34px; }
.card-b { bottom: 96px; left: 34px; }
.spec-strip {
  margin-top: 28px;
  flex-wrap: wrap;
}
.spec-strip span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  color: rgba(255,255,255,.84);
  font-size: .83rem;
  font-weight: 750;
}

.trust-strip { padding: 0 0 36px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(12, 25, 54, .06);
}
.trust-grid div { padding: 14px; }
.trust-grid strong { display: block; margin-bottom: 5px; }
.trust-grid span { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.section-heading { text-align: center; margin-bottom: 34px; }
.section-heading.left { text-align: left; margin-bottom: 0; }
.section-heading h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.section-heading p { margin-inline: auto; }
.section-heading.left p { margin-inline: 0; }

.filter-box {
  padding: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 20px 55px rgba(12,25,54,.08);
  backdrop-filter: blur(14px);
}
.filter-main,
.filter-more {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.filter-more { margin-top: 14px; }
.filter-actions { margin-top: 18px; }
.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
}
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--text); }
.view-toggle {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: #e9eef8;
}
.view-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 850;
}
.view-toggle button.active { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(12,25,54,.1); }
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.vehicle-grid.list-view { grid-template-columns: 1fr; }
.vehicle-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(12,25,54,.07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(21,94,239,.34);
}
.vehicle-grid.list-view .vehicle-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
}
.vehicle-image {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, #dbe8ff, #ffffff);
}
.vehicle-grid.list-view .vehicle-image { min-height: 100%; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; }
.status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--green);
  font-weight: 900;
  font-size: .78rem;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.status.reserved { color: var(--orange); }
.vehicle-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.vehicle-title { margin: 0; font-size: 1.25rem; letter-spacing: -.035em; color: var(--navy); }
.vehicle-version { margin: 5px 0 14px; color: var(--muted); line-height: 1.45; }
.price { margin: 0 0 16px; color: var(--blue); font-size: 1.55rem; font-weight: 950; letter-spacing: -.045em; }
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.spec {
  padding: 10px;
  border-radius: 14px;
  background: #f4f7fc;
}
.spec small { display: block; color: var(--muted); font-size: .73rem; font-weight: 750; }
.spec strong { display: block; margin-top: 3px; color: #1d2939; font-size: .9rem; }
.vehicle-desc { color: var(--muted); line-height: 1.55; margin: 0 0 18px; font-size: .94rem; }
.card-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.card-actions .btn { min-height: 42px; padding: 10px 13px; font-size: .9rem; }
.empty-state {
  text-align: center;
  padding: 54px 22px;
  border: 1px dashed #b7c3d7;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255,255,255,.62);
}
.empty-state h3 { color: var(--navy); margin-top: 0; }

.muted-section { background: linear-gradient(180deg, #f5f7fb, #eef4ff); }
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 44px;
  align-items: start;
}
.about-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(12,25,54,.08);
}
.about-card p { color: var(--muted); line-height: 1.75; margin-top: 0; }
.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #344054;
  font-weight: 700;
}
.check-list li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16,154,98,.12);
  color: var(--green);
  flex: 0 0 auto;
}
.contact-card h3 { margin-top: 0; font-size: 1.45rem; letter-spacing: -.04em; }
.contact-card dl { margin: 0; display: grid; gap: 14px; }
.contact-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2fa;
}
.contact-card dt { color: var(--muted); font-weight: 700; }
.contact-card dd { margin: 0; font-weight: 850; text-align: right; }
.small-note { color: var(--muted); line-height: 1.6; font-size: .9rem; margin-bottom: 0; }

.footer {
  padding: 46px 0 24px;
  background: #08142f;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr .9fr;
  gap: 28px;
}
.footer p,
.footer a {
  color: rgba(255,255,255,.68);
  line-height: 1.6;
}
.footer span,
.footer strong { display: block; margin-bottom: 10px; color: #fff; }
.footer a { display: block; margin: 6px 0; }
.copyright {
  width: min(var(--container), calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,20,47,.72);
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  margin: 34px auto;
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 68px);
  overflow: auto;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
}
.modal-close {
  position: sticky;
  z-index: 3;
  top: 14px;
  left: calc(100% - 58px);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}
.modal-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
}
.modal-gallery {
  background: #eef4ff;
  padding: 24px;
}
.modal-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  object-fit: cover;
  background: #fff;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  width: 92px;
  aspect-ratio: 4 / 3;
}
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 28px; }
.modal-info h2 { margin: 0 0 6px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.065em; color: var(--navy); }
.modal-info .vehicle-version { font-size: 1rem; }
.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.detail-block { margin-top: 22px; }
.detail-block h3 { margin: 0 0 12px; letter-spacing: -.035em; }
.equipment-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.equipment-list li {
  padding: 8px 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--blue-dark);
  font-weight: 750;
  font-size: .86rem;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .modal-layout { grid-template-columns: 1fr; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-main { grid-template-columns: repeat(2, 1fr); }
  .filter-more { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-panel { min-height: 430px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 66px 0; }
  .site-header { padding: 12px 14px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #edf3ff;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { text-align: center; }
  .hero { padding-top: 74px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero-panel { min-height: 360px; padding: 18px; }
  .mini-chart { height: 190px; margin-top: 40px; }
  .floating-card { min-width: 116px; padding: 13px; }
  .card-a { top: 74px; right: 18px; }
  .card-b { bottom: 74px; left: 18px; }
  .filter-main,
  .filter-more,
  .vehicle-grid,
  .trust-grid,
  .footer-grid,
  .detail-specs { grid-template-columns: 1fr; }
  .vehicle-grid.list-view .vehicle-card { grid-template-columns: 1fr; }
  .results-bar { align-items: flex-start; flex-direction: column; }
  .access-card { padding: 28px; }
  .access-input-row { flex-direction: column; }
  .access-input-row button { min-height: 48px; }
  .contact-card dl div { flex-direction: column; gap: 5px; }
  .contact-card dd { text-align: left; }
}
