:root {
  --bg: #0b0f14;
  --bg-2: #10151b;
  --panel: #151b22;
  --panel-2: #1d242d;
  --line: rgba(241, 245, 249, 0.15);
  --line-strong: rgba(241, 245, 249, 0.28);
  --text: #f8fafc;
  --muted: #9aa6b2;
  --soft: #d7dde3;
  --accent: #dc2626;
  --accent-hover: #ef4444;
  --amber: #ffb020;
  --ink: #07090d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 0%, rgba(220, 38, 38, 0.16), transparent 30%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
  color: var(--text);
  font-family: "Space Grotesk", "Inter Tight", Arial, sans-serif;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 80;
  transform: translateY(-140%);
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.62);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 0 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.brand small,
.kicker,
.console-eyebrow,
.card-meta,
dt,
.service-card span,
.stage-readout span,
.stage-readout small,
.quick-actions span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: white;
}

.nav-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-action:hover,
.primary-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-shell,
.content-section,
.quick-actions,
.site-footer {
  scroll-margin-top: 104px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(520px, 1.22fr);
  gap: 18px;
  max-width: 1500px;
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 28px 34px 22px;
}

.search-console,
.vehicle-stage,
.quick-actions a,
.vehicle-card,
.dark-form,
.service-card,
.finance-panel,
.trust-grid {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(21, 27, 34, 0.94);
}

.search-console {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.console-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.console-eyebrow strong {
  color: var(--accent);
}

.kicker {
  margin: 26px 0 12px;
  color: var(--accent);
}

.search-console h1,
.section-copy h2,
.finance-panel h2 {
  margin: 0;
  max-width: 760px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead,
.section-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.vehicle-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 28px;
}

.vehicle-search .primary-button {
  grid-column: 1 / -1;
}

.vehicle-search label,
.dark-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.vehicle-search select,
.dark-form input,
.dark-form select,
.dark-form textarea {
  width: 100%;
  min-height: 47px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--ink);
  color: var(--text);
  padding: 12px;
}

.dark-form textarea {
  min-height: 104px;
  resize: vertical;
}

.vehicle-stage {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 46%, rgba(248, 250, 252, 0.09), transparent 34%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.14), transparent 42%),
    var(--ink);
}

.vehicle-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.48), transparent 38%),
    linear-gradient(0deg, rgba(7, 9, 13, 0.78), transparent 34%),
    radial-gradient(circle at 78% 42%, rgba(220, 38, 38, 0.14), transparent 26%);
  pointer-events: none;
}

.vehicle-stage img {
  position: absolute;
  inset: 124px 18px 82px;
  width: calc(100% - 36px);
  height: calc(100% - 206px);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.72) contrast(1.08) brightness(0.94);
  transform: none;
}

.stage-readout {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border: 1px solid rgba(248, 250, 252, 0.18);
  border-radius: 5px;
  background: rgba(7, 9, 13, 0.67);
  backdrop-filter: blur(12px);
}

.stage-readout strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.stage-badges,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-badges {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.stage-badges span,
.proof-row span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 176, 32, 0.62);
  border-radius: 4px;
  background: rgba(7, 9, 13, 0.76);
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 34px 44px;
}

.quick-actions a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.quick-actions a:hover {
  border-color: rgba(220, 38, 38, 0.8);
  background: rgba(29, 36, 45, 0.98);
  transform: translateY(-2px);
}

.quick-actions span {
  color: var(--accent);
  font-weight: 700;
}

.quick-actions strong {
  font-size: 20px;
}

.quick-actions small,
.card-meta,
.service-card p,
.trust-grid span,
.site-footer p {
  color: var(--muted);
}

.content-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 76px 34px;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 860px;
  margin-bottom: 28px;
}

.inventory-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vehicle-card {
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease;
}

.vehicle-card:hover {
  border-color: rgba(220, 38, 38, 0.72);
  transform: translateY(-2px);
}

.plate {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 238px;
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(248, 250, 252, 0.17), transparent 26%),
    linear-gradient(135deg, rgba(148, 163, 184, 0.22), transparent 46%),
    var(--ink);
}

.plate-red {
  background:
    radial-gradient(circle at 78% 28%, rgba(248, 250, 252, 0.17), transparent 26%),
    linear-gradient(135deg, rgba(220, 38, 38, 0.42), transparent 46%),
    var(--ink);
}

.plate-amber {
  background:
    radial-gradient(circle at 78% 28%, rgba(248, 250, 252, 0.17), transparent 26%),
    linear-gradient(135deg, rgba(255, 176, 32, 0.34), transparent 46%),
    var(--ink);
}

.vehicle-photo {
  min-height: 254px;
  padding: 0;
}

.vehicle-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.14) brightness(0.68);
  transform: scale(1.02);
}

.vehicle-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.04), rgba(7, 9, 13, 0.78)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.55), transparent 54%);
}

.vehicle-photo.plate-red::after {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.04), rgba(7, 9, 13, 0.78)),
    linear-gradient(135deg, rgba(220, 38, 38, 0.46), transparent 56%);
}

.vehicle-photo.plate-amber::after {
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.06), rgba(7, 9, 13, 0.8)),
    linear-gradient(135deg, rgba(255, 176, 32, 0.34), transparent 56%);
}

.plate-label {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 254px;
  padding: 18px;
}

.plate span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.plate strong {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
}

.plate small {
  margin-top: 8px;
  color: var(--muted);
}

.card-body {
  padding: 19px;
}

.card-meta,
.rate-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-meta span:first-child {
  color: var(--amber);
}

.vehicle-card h3,
.service-card h3 {
  margin: 15px 0;
  font-size: 25px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 18px 0;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.vehicle-card a,
.service-card a,
.site-footer a {
  color: var(--accent-hover);
  font-weight: 800;
}

.split-section,
.finance-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.proof-row {
  margin-top: 22px;
}

.dark-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  padding: 22px;
}

.service-card span {
  color: var(--amber);
}

.service-card p {
  margin: 0;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  width: fit-content;
  margin-top: auto;
}

.finance-panel {
  padding: 28px;
}

.rate-line {
  border-top: 1px solid var(--line);
  padding: 16px 0 10px;
}

.bar {
  height: 9px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.bar.muted span {
  background: var(--amber);
}

.monthly {
  margin: 22px 0;
  color: var(--accent-hover);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 42px;
  font-weight: 700;
}

.monthly small {
  color: var(--muted);
  font-family: "Space Grotesk", "Inter Tight", Arial, sans-serif;
  font-size: 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.trust-grid div {
  padding: 26px;
  background: var(--panel);
}

.trust-grid strong {
  display: block;
  color: var(--amber);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 38px;
}

.wide {
  min-height: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-shell,
  .split-section,
  .finance-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .vehicle-stage {
    min-height: 500px;
  }

  .vehicle-stage img {
    inset: 112px 18px 76px;
    height: calc(100% - 188px);
  }

  .quick-actions,
  .inventory-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar,
  .hero-shell,
  .content-section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    min-height: 74px;
  }

  .brand small {
    display: none;
  }

  .nav-action {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero-shell {
    padding-top: 18px;
    min-height: auto;
  }

  .search-console {
    padding: 22px;
  }

  .search-console h1,
  .section-copy h2,
  .finance-panel h2 {
    font-size: 36px;
  }

  .lead,
  .section-copy p {
    font-size: 16px;
  }

  .vehicle-search,
  .quick-actions,
  .inventory-grid,
  .service-grid,
  .trust-grid,
  dl,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .vehicle-stage {
    min-height: 390px;
  }

  .stage-readout {
    display: block;
  }

  .vehicle-stage img {
    inset: 124px 12px 70px;
    width: calc(100% - 24px);
    height: calc(100% - 194px);
  }
}
