:root {
  color-scheme: dark;
  --ground: #111216;
  --panel: #1c1e24;
  --text: #f4f1eb;
  --muted: #bebdc4;
  --line: #404149;
  --signal: #ffd08c;
  --title: 'Bricolage Grotesque', Arial, sans-serif;
  --mono: 'Consolas', 'Courier New', monospace;
  font-family: Inter, Arial, sans-serif;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--text); }
h1, h2, h3, p, figure, dl, fieldset { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
section[id] { scroll-margin-top: 24px; }
.shell { width: min(1290px, calc(100% - clamp(32px, 10vw, 140px))); margin-inline: auto; }
.skip-link { position: absolute; z-index: 3; left: 16px; top: 16px; transform: translateY(-160%); padding: 12px; background: var(--signal); color: var(--ground); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; border-bottom: 1px solid var(--line); }
.vertice-brand { display: inline-flex; align-items: center; gap: .48em; color: var(--text); font: 800 clamp(16px, 2vw, 24px)/1 var(--title); letter-spacing: .12em; white-space: nowrap; }
.brand-mark { display: block; width: .95em; height: .86em; background: var(--signal); clip-path: polygon(0 0, 25% 0, 50% 62%, 74% 0, 100% 0, 54% 100%, 46% 100%); }
.brand-motors { align-self: end; color: var(--muted); font: 400 .42em/1.3 var(--mono); letter-spacing: .06em; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: end; gap: clamp(8px, 2.8vw, 36px); font-size: 13px; }
.site-header nav a { padding-block: 12px; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--signal); }
.demo-banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 15px; color: var(--muted); font: 12px/1.5 var(--mono); }
.demo-banner a, .site-footer a, .inline-link { text-decoration: underline; text-underline-offset: 4px; }
.demo-banner a:hover, .site-footer a:hover, .inline-link:hover { color: var(--signal); }

.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr); align-items: center; gap: 24px; padding-top: clamp(20px, 4vw, 52px); padding-bottom: clamp(56px, 8vw, 114px); }
.hero-copy { position: relative; z-index: 1; container-type: inline-size; animation: enter .64s cubic-bezier(.22, .78, .25, 1) both; }
.hero h1 { font-size: clamp(41px, 18cqi, 102px); }
.eyebrow { color: var(--signal); font: 600 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--title); text-wrap: balance; }
h1 { margin-top: 18px; font-size: clamp(52px, 7.7vw, 115px); font-weight: 700; line-height: .89; letter-spacing: -.075em; }
h1 > span { color: var(--signal); }
.intro { max-width: 46ch; margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; max-width: 100%; padding: 12px 16px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 700; transition: background .22s, border-color .22s, transform .22s; }
.action:hover { transform: translateY(-2px); }
.primary { color: #231912; background: var(--signal); }
.primary:hover { background: #ffdfa9; }
.secondary { color: var(--text); border-color: #686872; background: #24262c; }
.secondary:hover { border-color: var(--signal); }
.hero-copy .action { margin-top: 28px; }
.vehicle-stage { position: relative; isolation: isolate; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse at 58% 32%, #535b70, transparent 63%), radial-gradient(ellipse at 36% 81%, #4b3a30, transparent 61%), linear-gradient(145deg, #22242e, #121317 78%); }
.vehicle-stage::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 66% 1%, #c7d9ff38, transparent 57%), linear-gradient(156deg, transparent 28%, #dce8ff19 39%, transparent 54%); }
.vehicle-stage::after { content: ''; position: absolute; z-index: -1; inset: 45% 0 0; background: linear-gradient(180deg, transparent, #65708236 41%, transparent 77%), linear-gradient(0deg, #0b0d11, transparent 76%); }
.vehicle-stage canvas { display: block; width: 100%; aspect-ratio: 5 / 3; }
.vehicle-stage figcaption { position: absolute; inset: auto 13px 12px; display: flex; align-items: center; gap: 9px; color: var(--muted); font: 12px/1.3 var(--mono); }
.vehicle-stage figcaption span:first-child { color: var(--signal); }
.vehicle-stage figcaption span:last-child { margin-left: auto; text-align: right; }
.hero-stage { box-shadow: 0 30px 68px #0005; animation: enter .74s .07s cubic-bezier(.22, .78, .25, 1) both; }
.hero-stage::before { animation: stage-light 1.2s ease-out both; }
.canvas-note { position: absolute; inset: 40% 16px auto; text-align: center; font-size: 13px; }
@keyframes enter { from { transform: translateY(12px); opacity: 0; } }
@keyframes stage-light { from { transform: translateX(-12%); opacity: .18; } to { transform: translateX(0); opacity: 1; } }

.showroom, .comparison { padding-block: 34px 68px; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .home-next h2 { margin-top: 9px; font-size: clamp(30px, 4vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.model-tile { overflow: hidden; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 8px; background: #20222b; transition: border-color .22s, transform .22s; }
.model-tile:nth-child(2) { background: #202b2a; }
.model-tile:nth-child(3) { background: #2b231f; }
.model-tile:hover { transform: translateY(-4px); border-color: var(--signal); }
.model-tile canvas { display: block; width: 100%; aspect-ratio: 25 / 12; transition: transform .32s cubic-bezier(.2,.65,.3,1); }
.model-tile:is(:hover,:focus-visible) canvas { transform: translateY(-3px) scale(1.04); }
.model-tile > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.model-tile h3, .spec-card h3 { font-size: 23px; }
.model-tile h3 span, .spec-card h3 span { color: var(--muted); font: 500 12px/1.5 Inter, sans-serif; margin-left: 3px; }
.model-tile p, .footnote { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 32px 55px; border-top: 1px solid var(--line); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 20px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.inner-page { padding-bottom: 60px; }
.inner-page > .section-heading, .inner-page section:first-of-type > .section-heading { margin-top: 24px; }
.inner-page h1 { font-size: clamp(44px, 6.5vw, 95px); }
.config-grid, .split-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); align-items: start; gap: 16px; }
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.config-grid, .split-grid { animation: enter .46s ease-out both; }
.config-stage canvas { cursor: grab; touch-action: pan-y; }
.config-stage canvas:active { cursor: grabbing; }
.rotation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding-block: 12px; color: var(--muted); font-size: 12px; }
.rotation-controls input { flex: 1 0 88px; min-width: 0; }
.rotation-controls button { min-height: 40px; min-width: 40px; padding-inline: 8px; border: 1px solid var(--line); border-radius: 5px; background: #20222a; color: var(--text); }
.rotation-controls button:hover { border-color: var(--signal); }
.panel { padding: clamp(16px, 2.4vw, 32px); min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
fieldset { min-width: 0; padding: 0 0 14px; border: 0; }
legend, .calculator-fields label, .contact-form label { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.option-row { display: flex; flex-wrap: wrap; gap: 6px; }
.option-row label { position: relative; flex: 1; }
.option-row input { position: absolute; opacity: 0; }
.option-row label > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 6px 7px; border: 1px solid #5e5e69; border-radius: 5px; color: var(--text); background: #262830; font-size: 12px; cursor: pointer; transition: border-color .22s, background .22s; }
.option-row input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.option-row input:checked + span { border-color: var(--signal); color: var(--signal); background: #312921; }
.paint-row i { width: 11px; height: 11px; flex: none; border-radius: 50%; background: var(--swatch); }
.option-hint { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.config-total, .calculator-fields { display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 14px; }
.config-total > span { color: var(--muted); font-size: 12px; }
.config-total output, .contact-price { color: var(--signal); font: 700 clamp(23px, 3vw, 33px)/1.12 var(--title); }
.comparison { margin-top: 42px; padding-bottom: 0; }
.spec-card p { margin-block: 10px 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.spec-card dl > div, .payment-summary > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }

.calculator-fields { gap: 16px; }
.calculator-fields label, .contact-form label { display: block; }
.calculator-fields output { color: var(--signal); }
input[type='range'] { accent-color: var(--signal); }
.calculator-fields input[type='range'] { width: 100%; min-height: 35px; }
select, textarea, .contact-form input { width: 100%; min-height: 42px; padding: 8px 10px; color: var(--text); border: 1px solid #656571; border-radius: 5px; background: #14151a; }
textarea { resize: vertical; }
.total-panel { display: grid; justify-items: start; gap: 10px; }
.total-panel h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -.04em; }
.payment-summary { width: 100%; margin-block: 8px; }
.payment-summary .payment-total dd { color: var(--signal); font-weight: 700; }
.contact-form { display: grid; gap: 14px; }
.contact-form label span { color: var(--muted); font-weight: 400; }
.contact-form .action { width: fit-content; }
.contact-form .action:disabled { opacity: .55; cursor: default; }
.form-result { color: var(--signal); font-size: 13px; line-height: 1.5; }
.inline-link { color: var(--muted); font-size: 12px; }

@media (max-width: 790px) {
  .hero, .config-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero { padding-top: 22px; }
  .hero-stage { max-width: 680px; }
  .model-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); }
}

@media (max-width: 560px) {
  .brand-motors { display: none; }
  .site-header { min-height: 60px; gap: 9px; }
  .site-header nav { font-size: 12px; }
  .demo-banner { font-size: 10px; gap: 7px 12px; }
  .hero { padding-bottom: 42px; }
  .hero h1 { font-size: clamp(47px, 13vw, 70px); }
  .hero-stage figcaption, .config-stage figcaption { font-size: 10px; }
  .split-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .action:hover, .model-tile:hover, .model-tile:is(:hover,:focus-visible) canvas { transform: none; }
}
