:root {
  --navy: #071a36;
  --navy-2: #0c2a50;
  --blue: #0879c9;
  --blue-dark: #0563a7;
  --lime: #91df00;
  --paper: #ffffff;
  --warm: #f3f6fa;
  --muted: #5a6b80;
  --line: #dbe3ec;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(7, 26, 54, .14);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--navy); background: var(--paper); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.shell { width: min(calc(100% - 48px), 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; background: var(--navy); color: #fff; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* header */
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 68px; height: 54px; object-fit: contain; object-position: left center; }
.brand-copy { display: grid; gap: 2px; line-height: 1; }
.brand-copy strong { font-size: .86rem; font-weight: 900; letter-spacing: .12em; }
.brand-copy small { color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .28em; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 700; color: #3b4d66; }
.desktop-nav > a:not(.nav-call):hover { color: var(--blue); }
.nav-call { padding: 11px 20px; border-radius: 999px; color: #fff; background: var(--navy); transition: background .15s; }
.nav-call:hover { background: var(--blue); }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { cursor: pointer; font-weight: 800; list-style: none; padding: 10px 4px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu > div { position: absolute; top: 44px; right: 0; min-width: 200px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.mobile-menu a { padding: 12px; border-radius: 8px; font-weight: 700; }
.mobile-menu a:hover { background: var(--warm); }

/* buttons */
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 2px solid transparent; border-radius: 12px; font-size: .95rem; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 26px rgba(8, 121, 201, .3); }
.button-primary:hover { background: var(--blue-dark); }
.button-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-ghost:hover { background: var(--navy); color: #fff; }
.button-lime { color: var(--navy); background: var(--lime); }
.button-outline-light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.button-outline-light:hover { background: #fff; color: var(--navy); }

/* hero */
.hero { color: #fff; background: radial-gradient(1000px 500px at 85% 20%, rgba(8, 121, 201, .45), transparent 60%), var(--navy); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 72px 80px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--lime); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker { color: var(--blue); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(145, 223, 0, .22); }
.hero h1 { margin: 20px 0 22px; font-size: clamp(2.8rem, 6vw, 5.4rem); font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.hero h1 em { display: block; color: var(--lime); font-style: normal; }
.hero-lede { max-width: 540px; margin: 0; color: #c8d5e6; font-size: 1.15rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .button-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .button-ghost:hover { background: #fff; color: var(--navy); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: #dbe6f4; font-size: .92rem; font-weight: 700; }
.hero-points li::before { content: "✓"; margin-right: 8px; color: var(--lime); font-weight: 900; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.hero-chip { position: absolute; left: -22px; bottom: 26px; display: grid; gap: 2px; padding: 14px 20px; color: var(--navy); background: #fff; border-left: 5px solid var(--lime); border-radius: 10px; box-shadow: var(--shadow); }
.hero-chip span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-chip strong { font-size: 1rem; }

/* inventory */
.inventory-section { padding: 84px 0 72px; background: var(--warm); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: end; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; margin-bottom: 26px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.toolbar[hidden], [hidden] { display: none !important; }
.field { display: grid; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--navy); }
.search-field { flex: 1 1 240px; }
.search-field input { width: 100%; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; font-size: .92rem; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.result-count { margin: 0 0 0 auto; align-self: center; color: var(--muted); font-size: .9rem; font-weight: 700; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.inventory-state { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed #b9c6d6; border-radius: var(--radius); background: #fff; }
.empty-state strong { color: var(--navy); font-size: 1.25rem; }
.availability-note { margin: 22px 0 0; color: var(--muted); font-size: .85rem; }

.vehicle-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vehicle-card.is-sold { opacity: .72; }
.vehicle-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.vehicle-image-wrap { position: relative; display: block; aspect-ratio: 4 / 3; background: #e7edf4; overflow: hidden; }
.vehicle-image { width: 100%; height: 100%; object-fit: cover; }
.vehicle-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: #7d8ea4; background: linear-gradient(135deg, #e9eff6, #dbe5f0); }
.vehicle-placeholder > span { font-size: 3rem; font-weight: 900; color: var(--blue); }
.vehicle-placeholder small { font-size: .78rem; font-weight: 700; }
.vehicle-status { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: var(--lime); color: var(--navy); font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.vehicle-status.sold { background: var(--navy); color: #fff; }
.vehicle-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.vehicle-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vehicle-title { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.vehicle-price { flex: none; color: var(--blue); font-size: 1.2rem; font-weight: 900; }
.vehicle-trim { color: var(--muted); font-size: .92rem; font-weight: 600; }
.vehicle-meta { color: #3b4d66; font-size: .88rem; font-weight: 600; }
.vehicle-more { margin-top: 8px; color: var(--blue); font-size: .88rem; font-weight: 800; }

/* dialog */
.vehicle-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--navy); overflow: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); }
.vehicle-dialog::backdrop { background: rgba(7, 26, 54, .65); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.dialog-image-wrap { position: relative; aspect-ratio: 16 / 9; background: #e7edf4; }
.dialog-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { display: grid; gap: 8px; padding: 24px 28px 28px; }
.dialog-body .vehicle-status { position: static; justify-self: start; }
.dialog-body h3 { margin: 4px 0 0; font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.dialog-price { margin: 0; color: var(--blue); font-size: 1.6rem; font-weight: 900; }
.vehicle-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.vehicle-facts div { padding: 10px 16px; border-radius: 10px; background: var(--warm); }
.vehicle-facts dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vehicle-facts dd { margin: 2px 0 0; font-weight: 800; }
.vehicle-description { margin: 12px 0 0; color: #3b4d66; line-height: 1.65; white-space: pre-line; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* process */
.process-section { padding: 84px 0; }
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.process-intro h2, .about-copy h2, .cta-card h2 { margin: 8px 0 14px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.process-intro p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 440px; }
.process-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.process-list li { display: flex; gap: 20px; align-items: flex-start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.process-list li > span { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--lime); font-weight: 900; }
.process-list strong { font-size: 1.1rem; }
.process-list p { margin: 4px 0 0; color: var(--muted); }

/* about */
.about-section { padding: 84px 0; background: var(--warm); }
.about-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 56px; align-items: center; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; max-width: 300px; border-radius: 28px; background: var(--navy); color: var(--lime); font-size: 7rem; font-weight: 900; letter-spacing: -.06em; }
.about-mark sup { color: var(--blue); font-size: .45em; }
.about-lead { margin: 0 0 12px; font-size: 1.2rem; font-weight: 700; }
.about-copy p:not(.section-kicker):not(.about-lead) { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 640px; }

/* cta */
.cta-section { padding: 72px 0; }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 48px; border-radius: 24px; color: #fff; background: radial-gradient(600px 240px at 90% 0, rgba(8, 121, 201, .5), transparent 70%), var(--navy); }
.cta-card .section-kicker { color: var(--lime); }
.cta-card h2 { margin: 6px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.site-footer { padding: 40px 0 0; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; }
.footer-grid p { margin: 0; color: var(--muted); }
.footer-links { display: flex; gap: 22px; font-weight: 700; font-size: .92rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* mobile action bar */
.action-bar { display: none; }

@media (max-width: 980px) {
  .hero-grid, .process-grid, .about-grid, .section-heading { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; padding-block: 48px 56px; }
  .hero-chip { left: 14px; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-mark { max-width: 180px; font-size: 4.4rem; }
}
@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), 1240px); }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .nav-shell { min-height: 66px; }
  .brand img { width: 58px; height: 46px; }
  .inventory-grid { grid-template-columns: 1fr; }
  .inventory-section, .process-section, .about-section { padding-block: 56px; }
  .cta-card { padding: 32px 24px; }
  .toolbar { padding: 14px; }
  .result-count { margin-left: 0; }
  .dialog-body { padding: 20px; }
  body { padding-bottom: 68px; }
  .action-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .2); border-top: 1px solid rgba(255, 255, 255, .2); padding-bottom: env(safe-area-inset-bottom); background-color: var(--navy); }
  .action-bar a { display: grid; place-items: center; min-height: 58px; color: #fff; font-weight: 800; font-size: .95rem; }
  .action-bar a:first-child { color: var(--navy); background: var(--lime); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
