:root {
  color-scheme: dark;
  --page: #101312;
  --panel: #1a201c;
  --line: #383f38;
  --text: #f2f5ef;
  --muted: #b2bcb2;
  --accent: #39ff14;
  font: 16px/1.6 Inter, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1190px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: -65px; left: 15px; background: var(--accent); color: var(--page); padding: 10px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.055em; }
.brand > img { width: 288px; height: auto; }
.brand strong { font-weight: 800; }
.green { color: var(--accent); }
.bubble { display: inline-grid; place-items: center; width: 31px; height: 28px; border: 1.5px solid var(--accent); border-radius: 11px; color: var(--accent); font-size: .84em; font-weight: 750; position: relative; }
.bubble::after { content: ''; position: absolute; left: 3px; bottom: -3px; width: 6px; height: 6px; background: var(--page); border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: skewY(-28deg); }
.header-inner nav { display: flex; gap: 25px; align-items: center; color: var(--muted); font-size: .84rem; }
.header-inner nav a:hover, .footer a:hover { color: var(--accent); }
.header-contact { padding: 7px 12px; border: 1px solid #526650; border-radius: 6px; color: var(--text); white-space: nowrap; }
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 74% 48%, #223422 0%, #101312 63%); }
.hero-inner { min-height: 510px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 4vw, 65px); padding-block: 60px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 17px; font-size: .71rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.eyebrow > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 2px; background: var(--accent); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1 { font-size: clamp(2.7rem, 5.2vw, 4.7rem); font-weight: 730; letter-spacing: -.068em; }
h1 em { color: var(--accent); font-style: normal; display: inline-block; }
.hero-lead { margin: 23px 0 29px; color: var(--muted); max-width: 39ch; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-media { overflow: hidden; border-radius: 17px; border: 1px solid #526650; background: #101412; }
.hero-media img { width: 100%; aspect-ratio: 1.42; object-fit: cover; }
.hero-media figcaption { padding: 6px 12px; color: var(--muted); font-size: .68rem; text-align: right; }
.hero-mark { min-height: 310px; display: grid; place-items: center; background: radial-gradient(ellipse, #283a25 0%, transparent 67%); }
.hero-mark .bubble { width: 200px; height: 174px; border: 2px solid #526c4c; border-radius: 65px; font-size: 7rem; color: #b9d6ad; }
.hero-mark .bubble::after { height: 25px; width: 25px; left: 20px; bottom: -12px; background: #1d291a; border: 0; border-left: 2px solid #526c4c; border-bottom: 2px solid #526c4c; }
.primary, .secondary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 17px; border: 1px solid transparent; border-radius: 7px; font-size: .84rem; font-weight: 650; }
.primary { background: var(--accent); color: #11200e; }
.primary:hover:not(:disabled) { background: #82ff68; }
.secondary { background: transparent; color: var(--text); border-color: #63715f; }
.secondary:hover:not(:disabled), .secondary[aria-pressed=true] { color: var(--accent); border-color: var(--accent); }
.catalogue-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding-top: 65px; }
.catalogue-intro h2, .about h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.catalogue-intro > p { max-width: 36ch; color: var(--muted); font-size: .92rem; }
.category-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin-block: 27px; }
.category-links a { padding: 15px 13px; min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text); background: #1d281c; border: 1px solid #3a5235; border-radius: 7px; font-size: .84rem; font-weight: 650; }
.category-links a:hover { border-color: var(--accent); }
.nav-count { white-space: nowrap; font-size: .77rem; font-weight: 500; color: #acd29f; }
.nav-count span { color: var(--accent); margin-left: 3px; }
.catalogue-tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #171d18; }
.search-field { width: min(100%, 420px); }
.search-field label, .compare-tools p { display: block; margin-bottom: 5px; font-size: .82rem; font-weight: 600; }
.search-field input { display: block; width: 100%; min-height: 42px; border: 1px solid #586455; border-radius: 7px; background: #101611; color: var(--text); padding: 8px 12px; font-size: .88rem; }
.search-field input::placeholder { color: #a5b0a4; }
#search-status { min-height: 1em; margin-top: 5px; color: var(--muted); font-size: .76rem; }
.compare-tools { text-align: right; }
.catalogue-group { padding-top: 51px; }
.group-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; }
.group-heading h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.group-heading p { margin-top: 8px; max-width: 68ch; color: var(--muted); font-size: .88rem; }
.model-count { white-space: nowrap; color: #bad1b7; border: 1px solid #435040; border-radius: 5px; margin-top: 3px; padding: 4px 9px; font-size: .75rem; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.vehicle-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.vehicle-photo {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.vehicle-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#byd-dolphin .vehicle-photo { aspect-ratio: 2 / 1; }
#byd-atto-2-ev .vehicle-photo img { object-position: center 38%; }
#bmw-i7 .vehicle-photo img { object-position: right center; }
.vehicle-content { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.vehicle-content h3 { margin: 5px 0 10px; font-size: clamp(1.25rem, 2vw, 1.52rem); letter-spacing: -.04em; }
.body-type { color: #a5d09a; font-size: .74rem; font-weight: 650; }
.vehicle-note { flex: 1; margin-bottom: 17px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.vehicle-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.vehicle-actions a { color: var(--muted); font-size: .76rem; text-decoration: underline; text-underline-offset: .22em; }
.vehicle-actions a:hover { color: var(--accent); }
.vehicle-actions .ask-vehicle { color: var(--accent); font-weight: 650; text-decoration: none; }
.vehicle-actions .ask-vehicle:hover { text-decoration: underline; }
.vehicle-actions button { min-height: 36px; padding: 6px 10px; font-size: .75rem; }
.empty { margin-top: 25px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.about { margin-top: 55px; padding-block: 40px 34px; border-top: 1px solid var(--line); }
.about > p:last-child { margin-top: 14px; max-width: 65ch; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(15px,4vw,54px); padding: 29px; margin-bottom: 42px; border: 1px solid #475b42; border-radius: 12px; background: #1a261a; }
.contact h2 { font-size: clamp(2rem,4vw,3rem); letter-spacing: -.05em; }
.contact-copy > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: .94rem; max-width: 49ch; }
.contact-copy > .referral-note { border-left: 2px solid #779b6a; padding-left: 11px; margin-block: 20px 0; font-size: .8rem; }
.contact-panel { display: grid; align-content: start; gap: 7px; min-width: 0; }
.contact-panel label { font-size: .84rem; font-weight: 650; }
.contact-panel label span { color: var(--muted); font-weight: 400; }
.contact-panel select, .contact-panel textarea { width: 100%; border: 1px solid #61785b; border-radius: 7px; background: #121a13; color: var(--text); padding: 9px 12px; font-size: .88rem; }
.contact-panel textarea { resize: vertical; }
.contact-panel textarea::placeholder { color: #9ea99d; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.contact-detail { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.back-to-top { justify-self: end; }
.social-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.social-links a:hover { border-color: var(--accent); }
.social-links svg { width: 20px; height: 20px; }
dialog { width: min(680px, calc(100% - 28px)); max-height: 85vh; padding: 24px; border: 1px solid #566950; border-radius: 12px; color: var(--text); background: #181f19; }
dialog::backdrop { background: #070c08cf; backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.dialog-header h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .82rem; }
.compare-table th, .compare-table td { text-align: left; border: 1px solid #485445; padding: 9px; overflow-wrap: anywhere; }
.compare-table th:first-child { width: 23%; }
.compare-table a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero-inner { min-height: 430px; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-links a { font-size: .76rem; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 112px; }
  .shell { width: calc(100% - 32px); }
  .header-inner { flex-direction: column; min-height: 0; gap: 0; padding-bottom: 8px; }
  .header-inner nav { gap: 18px; font-size: .75rem; }
  .brand > img { width: 232px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 45px 27px; gap: 20px; }
  .hero-media { max-width: 500px; }
  .hero-mark { display: none; }
  .hero-lead { font-size: .93rem; margin-block: 18px 21px; }
  .hero-actions { gap: 8px; }
  .hero-actions a { padding-inline: 11px; }
  .catalogue-intro { padding-top: 42px; display: block; }
  .catalogue-intro > p { margin-top: 12px; }
  .category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 21px; }
  .category-links a { min-height: 54px; padding: 9px 11px; }
  .catalogue-tools { display: block; padding: 15px; }
  .search-field { width: 100%; }
  .compare-tools { text-align: left; margin-top: 14px; }
  .catalogue-group { padding-top: 34px; }
  .group-heading { gap: 8px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .model-count { font-size: .66rem; padding: 3px 6px; }
  .contact { grid-template-columns: 1fr; padding: 19px; gap: 22px; }
  .footer { grid-template-columns: 1fr auto; }
  .footer .social-links { grid-column: 1 / -1; grid-row: 1; }
  dialog { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
