/* ===========================================================================
   MERIDIAN — global stylesheet
   Dark, coachbuilt luxury aesthetic. Gold accent, warm charcoal grounds.
   =========================================================================== */

:root {
  --bg: #0c0c0e;
  --bg-2: #121215;
  --panel: #16161b;
  --panel-2: #1c1c22;
  --panel-3: #232329;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --gold: #c9a25e;
  --gold-2: #e3c489;
  --gold-soft: rgba(201, 162, 94, 0.14);
  --orange: #e07a32;

  --text: #ececee;
  --muted: #9a9aa2;
  --muted-2: #6f6f78;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1320px;

  --head: "Saira", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--head);
  font-size: 0.74rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border: none; border-radius: 4px;
  font-family: var(--head); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #14110a;
  box-shadow: 0 10px 30px -12px rgba(201, 162, 94, 0.7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(201, 162, 94, 0.85); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-block { width: 100%; justify-content: center; }
.btn-arrow svg { width: 16px; height: 16px; }

/* ===========================================================================
   HEADER / NAV
   =========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.logo { display: flex; align-items: baseline; gap: 2px; }
.logo .mark {
  font-family: var(--script); font-size: 2.1rem; line-height: 1;
  color: var(--text); padding-right: 2px;
}
.logo .sub {
  font-family: var(--head); font-size: 0.58rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); align-self: flex-end;
  padding-bottom: 6px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-mobile-cta { display: none; }
.flag { width: 26px; height: 17px; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 78px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: auto 100%; background-position: 72% center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,0.94) 0%, rgba(8,8,10,0.7) 38%, rgba(8,8,10,0.25) 70%, rgba(8,8,10,0.55) 100%),
    linear-gradient(0deg, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0) 45%);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; padding: 60px 0; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase;
  font-weight: 600; margin: 18px 0 6px;
}
.hero h1 .gold { color: var(--gold-2); display: block; font-weight: 400; }
.hero p.lead { color: var(--muted); max-width: 460px; margin: 22px 0 34px; font-size: 1.02rem; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.play {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text);
}
.play .circle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.play:hover .circle { border-color: var(--gold); background: var(--gold-soft); }
.play svg { width: 14px; height: 14px; fill: var(--gold-2); }

/* ---------- features strip ---------- */
.features {
  position: relative; z-index: 3; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature {
  display: flex; align-items: center; gap: 16px; padding: 30px 26px;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature .ico { color: var(--gold); flex: none; }
.feature .ico svg { width: 30px; height: 30px; }
.feature h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.feature p { font-size: 0.8rem; color: var(--muted); }

/* ===========================================================================
   SECTION primitives
   =========================================================================== */
.section { padding: 96px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem); text-transform: uppercase;
}
.section-head p { color: var(--muted); max-width: 460px; }

/* ---------- models grid ---------- */
.models-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.model-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); transition: transform .3s, border-color .3s;
  display: block;
}
.model-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.model-card .ph {
  aspect-ratio: 4/3; background: #000; background-size: cover; background-position: center;
}
.finish-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.finish-grid .model-card .ph { aspect-ratio: 1920/693; }
.model-card .meta { padding: 16px 16px 20px; }
.model-card .badge {
  position: absolute; top: 12px; left: 12px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold-2);
  font-family: var(--head); font-size: 0.85rem; background: rgba(0,0,0,0.45);
}
.model-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.model-card .from { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.model-card .from b { color: var(--gold-2); font-weight: 600; }

/* ---------- panoramic car images (1920×693) ---------- */
.panoramic-frame {
  aspect-ratio: 1920/693;
  background: radial-gradient(circle at 50% 40%, #1a1a1f, #050506 70%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.panoramic-frame img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}

/* ---------- showcase band ---------- */
.band {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--panel);
  min-height: 400px;
  display: flex; align-items: center;
}
.band-showcase .band-bg {
  position: absolute; inset: 0; z-index: 0;
  background-repeat: no-repeat;
  background-size: auto 105%;
  background-position: right center;
}
.band-showcase::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--panel) 0%,
    var(--panel) 32%,
    rgba(8, 8, 10, 0.88) 48%,
    rgba(8, 8, 10, 0.35) 70%,
    rgba(8, 8, 10, 0.05) 100%
  );
}
.band .copy { position: relative; z-index: 2; padding: 56px; max-width: 520px; }
.band .copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); text-transform: uppercase; margin-bottom: 16px; }
.band .copy p { color: var(--muted); margin-bottom: 26px; }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 46px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .ico { color: var(--gold); margin-bottom: 12px; }
.stat .ico svg { width: 28px; height: 28px; }
.stat .num { font-family: var(--head); font-size: 2.4rem; font-weight: 600; }
.stat .lbl { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; }
.footer h4 { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer ul { list-style: none; }
.footer li { color: var(--muted); margin-bottom: 12px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.footer li svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.footer .qr {
  width: 110px; height: 110px; border-radius: 8px; background: #fff; padding: 8px;
}
.footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted-2); font-size: 0.8rem;
}

/* ===========================================================================
   CONFIGURATOR
   =========================================================================== */
.config-shell { padding-top: 78px; }
.config-footer { padding: 28px 0 24px; }
.config-top { padding: 30px 0 10px; }
.config-top .eyebrow { display: block; }
.config-top h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; margin-top: 6px; }

/* stepper */
.stepper { display: flex; align-items: center; margin: 28px 0 36px; }
.step { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; }
.step .dot {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
  font-family: var(--head); font-size: 0.85rem; color: var(--muted);
  background: var(--panel); transition: .25s;
}
.step .txt { font-family: var(--head); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.step .bar { flex: 1; height: 1px; background: var(--line); margin: 0 10px; }
.step:last-child .bar { display: none; }
.step.done .dot, .step.active .dot { border-color: var(--gold); color: #14110a; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.step.active .txt, .step.done .txt { color: var(--text); }

/* preview stage */
.config-grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 24px; align-items: start; }
.config-grid.model-step { grid-template-columns: 1fr; }
.stage-col { display: flex; flex-direction: column; gap: 18px; }
.stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: radial-gradient(circle at 50% 40%, #1a1a1f, #050506 70%);
}
.stage-img { aspect-ratio: 1920/693; width: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #1a1a1f, #050506 70%); }
.stage-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; display: block; }
.stage-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.3);
}
.stage-foot .name { font-family: var(--head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.92rem; }
.stage-foot .expand { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; font-size: 0.78rem; }

/* price card */
.price-card {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.22); padding: 10px 14px;
}
.price-card .lbl { font-family: var(--head); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); flex: none; }
.price-card .val { font-family: var(--head); font-size: 1.25rem; font-weight: 600; color: var(--gold-2); margin-left: auto; }
.price-card .vat { font-size: 0.58rem; color: var(--muted-2); flex: none; white-space: nowrap; }

/* option panels */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-grid { display: grid; grid-template-columns: 168px 1fr; }
.tabs { background: var(--bg-2); border-right: 1px solid var(--line); }
.tab {
  width: 100%; text-align: left; background: none; border: none; color: var(--muted);
  padding: 15px 18px; font-family: var(--head); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; border-left: 2px solid transparent; transition: .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: var(--panel); border-left-color: var(--gold); }
.tab-body { padding: 22px; }
.tab-body h3 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* swatch grid */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-group {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.swatch-group:first-of-type { margin-top: 0; }
.swatches .chip {
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer; position: relative;
  border: 1px solid rgba(255,255,255,0.14); transition: transform .15s;
}
.swatches .chip-split { display: flex; padding: 0; overflow: hidden; }
.swatches .chip-split .chip-decal,
.swatches .chip-split .chip-base { flex: 1; height: 100%; }
.swatches .chip:hover { transform: scale(1.08); }
.swatches .chip.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.swatches .chip .dot { position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.4); }
.chip-name { margin-top: 14px; font-family: var(--head); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }
.chip-name span { color: var(--muted); font-size: 0.78rem; }

/* option list (wheels, extras) */
.opt-list { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); cursor: pointer; transition: .2s;
}
.opt:hover { border-color: var(--line-strong); }
.opt.active { border-color: var(--gold); background: var(--gold-soft); }
.opt .on { font-family: var(--head); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.opt .oa { color: var(--gold-2); font-size: 0.82rem; font-family: var(--head); }
.opt .check { width: 18px; height: 18px; color: var(--gold); opacity: 0; }
.opt.active .check { opacity: 1; }

/* performance cards */
.perf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.perf-head h3 { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.perf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perf {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; background: var(--bg-2); cursor: pointer; transition: .2s;
}
.perf:hover { border-color: var(--line-strong); }
.perf.active { border-color: var(--gold); background: var(--gold-soft); }
.perf .pn { font-family: var(--head); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; color: var(--gold-2); }
.perf .pp { font-family: var(--head); font-size: 1.7rem; font-weight: 600; margin: 8px 0 2px; }
.perf .ps { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.perf .pnote { font-size: 0.74rem; color: var(--muted); margin-top: 10px; }
.perf .add { font-size: 0.74rem; color: var(--gold-2); margin-top: 8px; font-family: var(--head); }
.perf .check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; color: var(--gold); opacity: 0; }
.perf.active .check { opacity: 1; }

.config-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px; margin-bottom: 40px;
}
.config-nav .help { color: var(--muted); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 8px; }
.config-nav .help svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.config-nav .grp { display: flex; gap: 12px; }

/* model picker (step 0 - full width) */
.model-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mp {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); cursor: pointer; transition: .25s;
}
.mp:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.mp.active { border-color: var(--gold); }
.mp .ph { aspect-ratio: 1920/693; background-color: #050506; background-size: contain; background-position: center; background-repeat: no-repeat; }
.mp .mm { padding: 22px 24px 26px; }
.mp .mfam { color: var(--gold); font-family: var(--head); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.mp h3 { font-size: 1.4rem; text-transform: uppercase; margin: 8px 0; }
.mp .mstats { display: flex; gap: 24px; margin-top: 16px; }
.mp .mstats div { font-size: 0.72rem; color: var(--muted); }
.mp .mstats b { display: block; font-family: var(--head); font-size: 1.1rem; color: var(--text); }

/* summary */
.summary { display: grid; gap: 12px; }
.summary .row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.summary .row .k { color: var(--muted); font-size: 0.84rem; letter-spacing: 0.06em; }
.summary .row .v { font-family: var(--head); letter-spacing: 0.04em; }
.summary .row .v small { color: var(--gold-2); display: block; text-align: right; font-family: var(--body); }

/* ===========================================================================
   GALLERY
   =========================================================================== */
.gallery-filters { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.filter {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 30px; background: var(--panel);
  font-family: var(--head); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); transition: .2s;
}
.filter:hover { color: var(--text); }
.filter.active { color: #14110a; background: var(--gold); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gitem {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1a1a1f, #050506 70%); cursor: pointer;
}
.gitem .ph {
  aspect-ratio: 16/10; min-height: 240px;
  display: flex; align-items: center; justify-content: center; padding: 12px 8px;
}
.gitem .ph img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s; }
.gitem:hover .ph img { transform: scale(1.04); }
.gitem .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  display: flex; align-items: center; justify-content: space-between;
}
.gitem .cap .gn { font-family: var(--head); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.gitem .cap .gd { display: flex; gap: 5px; }
.gitem .cap .gd i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255,255,255,0.3); }
.gitem .cap .gd-split i { border-radius: 2px; width: 10px; height: 12px; }
.gitem .cap .gd-split i:first-child { border-radius: 2px 0 0 2px; }
.gitem .cap .gd-split i:last-child { border-radius: 0 2px 2px 0; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(4,4,6,0.92);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .lclose { position: absolute; top: 26px; right: 30px; color: #fff; background: none; border: none; }
.lightbox .lclose svg { width: 30px; height: 30px; }
.lightbox .lcap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; font-family: var(--head); letter-spacing: 0.12em; text-transform: uppercase; }

/* page hero (sub pages) */
.page-hero { padding: 130px 0 50px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; margin-top: 8px; }
.page-hero p { color: var(--muted); max-width: 540px; margin-top: 14px; }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--panel-2); border: 1px solid var(--gold); color: var(--text);
  padding: 14px 22px; border-radius: 10px; z-index: 300; box-shadow: var(--shadow);
  font-family: var(--head); letter-spacing: 0.06em; font-size: 0.86rem; transition: transform .4s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================================
   CONTACT FORM
   =========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start;
}
.contact-form-wrap {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--body); font-size: 0.92rem;
  padding: 13px 16px; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9aa2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.cf-success { color: #6fd48a; }
.cf-error { color: #e06060; }

/* ===========================================================================
   MODAL (build request)
   =========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,4,6,0.88); }
.modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--muted); padding: 4px;
}
.modal-close svg { width: 22px; height: 22px; }
.modal-panel h2 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: 6px; }
.modal-panel .modal-sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.build-spec-preview {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 20px; font-size: 0.82rem;
}
.build-spec-preview .bs-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.build-spec-preview .bs-row:last-child { border-bottom: none; }
.build-spec-preview .bs-k { color: var(--muted); }
.build-spec-preview .bs-total { color: var(--gold-2); font-family: var(--head); font-weight: 600; }

/* ===========================================================================
   LEGAL PAGES
   =========================================================================== */
.legal-content { max-width: 760px; }
.legal-content h2 {
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 36px 0 14px; color: var(--text);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content a { color: var(--gold-2); }
.legal-updated { font-size: 0.78rem; color: var(--muted-2); margin-top: 40px; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1080px) {
  .config-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: repeat(3, 1fr); }
  .finish-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0; bottom: 0; z-index: 120;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 32px 28px 40px;
    background: var(--bg);
    transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a {
    padding: 18px 0; width: 100%; font-size: 0.92rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--gold-2); }
  .nav-mobile-cta {
    display: inline-flex; margin-top: 28px; justify-content: center;
  }
  .config-nav {
    flex-direction: column-reverse; align-items: stretch; gap: 18px;
    margin-bottom: 28px;
  }
  .config-nav .grp { width: 100%; }
  .config-nav .grp .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 0.72rem; }
  .config-nav .help { justify-content: center; text-align: center; font-size: 0.78rem; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(2) { border-right: none; }
  .feature { border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line); }
  .band-showcase .band-bg { background-size: auto 90%; background-position: 85% center; }
  .band .copy { padding: 40px 32px; max-width: none; }
  .gitem .ph { min-height: 200px; }
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .model-picker { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .tabs { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .tab { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; }
  .tab.active { border-left: none; border-bottom-color: var(--gold); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 22px; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .finish-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stepper { overflow-x: auto; }
  .step .txt { display: none; }
  .logo .mark { font-size: 1.6rem; }
  .modal-panel { padding: 24px 20px; }
}
