:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 163, 184, 0.14);
  --line-2: rgba(148, 163, 184, 0.26);
  --text: #e8eef8;
  --muted: #8b97ad;
  --dim: #5d6a82;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --grad: linear-gradient(120deg, #60a5fa 0%, #3b82f6 35%, #22d3ee 100%);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ── background ─────────────────────────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift { to { background-position: 56px 56px, 56px 56px; } }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.g1 { width: 620px; height: 620px; top: -260px; left: -120px; background: #1d4ed8; opacity: 0.35; }
.g2 { width: 520px; height: 520px; top: 120px; right: -200px; background: #0891b2; opacity: 0.22; }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-word { font: 700 18px/1 var(--display); letter-spacing: 0.02em; }
.brand-word b { font-weight: 500; margin-left: 4px; color: var(--muted); letter-spacing: 0.22em; font-size: 13px; }
.brand.small .brand-word { font-size: 15px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.live-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 0 currentColor; }
.live-pill.on .dot { background: var(--ok); animation: pulse 2s infinite; color: rgba(52, 211, 153, .6); }
.live-pill.off .dot { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ── shared ─────────────────────────────────────────────── */
section { padding: clamp(56px, 8vw, 110px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { padding: 3px 8px; border-radius: 6px; background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 540px; }
.muted { color: var(--dim); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-sub { color: var(--muted); max-width: 420px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #03101f; box-shadow: 0 8px 30px -8px rgba(59, 130, 246, 0.7); }
.btn.primary:hover { box-shadow: 0 10px 40px -6px rgba(34, 211, 238, 0.75); }
.btn.ghost { background: var(--panel); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--panel-2); border-color: rgba(96, 165, 250, .5); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 16px 26px; font-size: 16px; }
.link { background: none; border: 0; color: var(--accent-2); cursor: pointer; padding: 0; font-size: 13px; }

/* ── hero ───────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: 0.95; margin-bottom: 22px; }
.cta-row { display: flex; gap: 12px; margin: 30px 0 40px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: rgba(8, 12, 22, 0.9); padding: 16px 18px; }
.stats dt { font: 500 11px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.stats dd { margin: 10px 0 0; font: 600 clamp(22px, 2.4vw, 30px)/1 var(--display); font-variant-numeric: tabular-nums; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .25), transparent 60%), var(--bg-2);
  box-shadow: 0 40px 120px -40px rgba(59, 130, 246, .45), inset 0 0 0 1px rgba(255, 255, 255, .03);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.reel { position: absolute; inset: -6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-8deg) scale(1.08); }
.reel-col { display: flex; flex-direction: column; gap: 10px; animation: reel-up 60s linear infinite; }
.reel-col:nth-child(2) { animation-duration: 75s; animation-direction: reverse; }
.reel-col:nth-child(3) { animation-duration: 68s; }
.reel-col img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; filter: saturate(1.05) contrast(1.05); background: var(--panel-2); }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,13,.2), transparent 30%, transparent 60%, rgba(5,7,13,.85)); pointer-events: none; }
.scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .16), transparent); animation: scan 5s ease-in-out infinite; z-index: 2; pointer-events: none; }
@keyframes scan { 0% { top: -120px; } 100% { top: 100%; } }
.hud { position: absolute; z-index: 3; font: 500 11px/1 var(--mono); letter-spacing: .1em; color: rgba(232, 238, 248, .8); padding: 7px 10px; border-radius: 8px; background: rgba(5, 7, 13, .6); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.hud span { color: var(--accent-2); margin-right: 6px; }
.hud-tl { top: 16px; left: 16px; }
.hud-br { bottom: 16px; right: 16px; font-variant-numeric: tabular-nums; }

/* ── inventory ──────────────────────────────────────────── */
.search-wrap { position: relative; flex: 1 1 360px; max-width: 520px; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-wrap input {
  width: 100%; padding: 14px 44px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(10, 15, 28, .8); outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
.search-wrap kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); }

.inv-layout { display: grid; grid-template-columns: 272px 1fr; gap: 28px; align-items: start; }
.filters {
  position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 500; }
.field output { color: var(--accent-2); font-family: var(--mono); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
select {
  width: 100%; appearance: none; padding: 10px 32px 10px 12px; border-radius: 10px;
  background: rgba(10, 15, 28, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b97ad' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2); cursor: pointer; font-size: 14px;
}
select:hover { border-color: rgba(96, 165, 250, .5); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.toggles { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.toggle input:checked + .sw { background: rgba(59, 130, 246, .35); border-color: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(14px); background: #fff; }
.toggle input:focus-visible + .sw { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.results-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
#resultCount { margin: 0; font: 500 13px/1.3 var(--mono); color: var(--muted); }
#resultCount b { color: var(--text); font-weight: 600; }
.active-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.active-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; background: rgba(59, 130, 246, .14); border: 1px solid rgba(59, 130, 246, .4); cursor: pointer; }
.active-chips button:hover { background: rgba(59, 130, 246, .28); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-left: auto; }
.sort select { width: auto; }
.filters-toggle { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
  animation: card-in .45s both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: rgba(96, 165, 250, .55); box-shadow: 0 24px 60px -24px rgba(59, 130, 246, .55); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .25s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media.noimg::before { content: "NO PHOTO"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px var(--mono); letter-spacing: .2em; color: var(--dim); background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.02) 10px 20px); }
.card-dots { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; gap: 3px; opacity: 0; transition: opacity .2s; }
.card:hover .card-dots { opacity: 1; }
.card-dots i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.card-dots i.on { background: #fff; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 8px; border-radius: 7px; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(5, 7, 13, .72); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.badge.ok { color: var(--ok); border-color: rgba(52, 211, 153, .45); }
.badge.warn { color: var(--warn); border-color: rgba(251, 191, 36, .45); }
.badge.info { color: var(--accent-2); border-color: rgba(34, 211, 238, .45); }
.card-photos { position: absolute; top: 10px; right: 10px; font: 500 11px/1 var(--mono); padding: 4px 7px; border-radius: 7px; background: rgba(5,7,13,.72); color: var(--muted); }
.card-body { padding: 14px 16px 16px; }
.card-year { margin: 0; font: 500 12px/1 var(--mono); color: var(--accent-2); }
.card-title { margin: 6px 0 2px; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-trim { margin: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.4em; }
.card-meta { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.card-meta li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta b { color: var(--text); font-weight: 500; }

.skeleton { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.skeleton div { aspect-ratio: 4 / 3; }
.skeleton p { height: 72px; margin: 0; }
.skeleton div, .skeleton p { background: linear-gradient(90deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.03) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); font: 500 14px var(--mono); transition: border-color .2s, background .2s;
}
.pager button:hover:not(:disabled):not(.on) { border-color: rgba(96, 165, 250, .55); background: var(--panel-2); }
.pager button.on { background: var(--grad); color: #03101f; border-color: transparent; font-weight: 600; cursor: default; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .gap { color: var(--dim); padding: 0 2px; }
.pager .range { width: 100%; text-align: center; font: 500 12px var(--mono); color: var(--dim); margin-top: 6px; }
.error-box { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px solid rgba(248,113,113,.35); border-radius: var(--radius); color: var(--muted); }

/* ── services ───────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .25s, transform .25s;
}
.svc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,.16), transparent 45%); opacity: 0; transition: opacity .3s; }
.svc:hover { border-color: rgba(96,165,250,.45); transform: translateY(-3px); }
.svc:hover::before { opacity: 1; }
.svc-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35); margin-bottom: 18px; }
.svc-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 19px; margin-bottom: 8px; position: relative; }
.svc p { margin: 0; color: var(--muted); position: relative; }

/* ── integrations ───────────────────────────────────────── */
.api-card { margin-top: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.api-card h3 { font-size: 22px; margin-bottom: 8px; }
.api-card p { margin: 0; color: var(--muted); }
.api-card pre { margin: 0; padding: 18px 20px; border-radius: 12px; background: #03050a; border: 1px solid var(--line-2); overflow-x: auto; font: 13px/1.7 var(--mono); color: var(--text); }
.c-k { color: var(--accent-2); font-weight: 600; }
.c-d { color: var(--muted); }

/* ── contact / footer ───────────────────────────────────── */
.contact-card {
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: clamp(28px, 5vw, 56px); border-radius: 24px; border: 1px solid rgba(96,165,250,.35);
  background: radial-gradient(600px circle at 0% 0%, rgba(59,130,246,.25), transparent 60%), radial-gradient(500px circle at 100% 100%, rgba(34,211,238,.18), transparent 60%), var(--bg-2);
}
.contact-card .lede { margin-bottom: 0; margin-top: 12px; }
.foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; max-width: 1440px; margin: 0 auto; }
.foot p { margin: 0; }

/* ── modal ──────────────────────────────────────────────── */
.modal { padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: #070b15; color: var(--text); width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 60px 160px -40px rgba(0,0,0,.9); }
.modal::backdrop { background: rgba(2, 4, 9, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.m-body { display: grid; grid-template-columns: 1.45fr 1fr; max-height: calc(100vh - 34px); position: relative; }
.m-close { position: absolute; top: 12px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5,7,13,.7); cursor: pointer; }
.m-close:hover { border-color: var(--accent); }
.m-gallery { background: #03050a; display: flex; flex-direction: column; min-width: 0; }
.m-stage { position: relative; aspect-ratio: 4 / 3; background: #000; }
.m-stage img { width: 100%; height: 100%; object-fit: contain; }
.m-stage.noimg::before { content: "NO PHOTOS AVAILABLE"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 12px var(--mono); letter-spacing: .2em; color: var(--dim); }
.m-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5,7,13,.65); font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.m-nav:hover { border-color: var(--accent-2); }
.m-nav.prev { left: 12px; } .m-nav.next { right: 12px; }
.m-counter { position: absolute; bottom: 12px; left: 12px; font: 500 12px var(--mono); padding: 5px 9px; border-radius: 8px; background: rgba(5,7,13,.7); }
.m-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.m-thumbs button { flex: none; width: 76px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--bg-2); opacity: .55; transition: opacity .2s, border-color .2s; }
.m-thumbs button.on, .m-thumbs button:hover { opacity: 1; border-color: var(--accent); }
.m-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.m-info { padding: 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.m-info h3 { font-size: 28px; line-height: 1.1; padding-right: 36px; }
.m-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { background: #0a0f1c; padding: 11px 13px; min-width: 0; }
.specs dt { font: 500 10.5px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.specs dd { margin: 6px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.vin-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.vin-row span { font: 500 11px var(--mono); color: var(--dim); }
.vin-row code { flex: 1; font: 500 14px var(--mono); letter-spacing: .06em; overflow-wrap: anywhere; }
.m-info .btn.primary { margin-top: auto; }

/* ── sharing ─────────────────────────────────────────────── */
.share-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share-row > span { font: 500 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; cursor: pointer;
  font-size: 12.5px; font-weight: 500; background: var(--panel); border: 1px solid var(--line-2); transition: border-color .2s, background .2s;
}
.share-btn:hover { border-color: rgba(96, 165, 250, .55); background: var(--panel-2); }
.share-btn em { font-style: normal; }
.share-btn svg, #shareSearch svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 12px; background: #0d1426; border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); font-weight: 500; font-size: 14px; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── inquiry form ───────────────────────────────────────── */
.modal.inq { width: min(620px, calc(100vw - 32px)); }
.inq-body, .inq-done { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.inq-body h3, .inq-done h3 { font-size: 26px; padding-right: 40px; }
.inq-body .eyebrow { margin: 0; }
.inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inq input, .inq textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(10, 15, 28, .9); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.inq input:focus, .inq textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
.inq input:user-invalid, .inq textarea:user-invalid { border-color: var(--bad); }
.inq-vehicle { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.inq-vehicle img { width: 72px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; flex: none; }
.inq-vehicle div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inq-vehicle span { font: 12px var(--mono); color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inq-status { margin: 0; min-height: 1.2em; font-size: 13px; }
.inq-status.err { color: var(--bad); }
.inq-note { margin: 0; font-size: 12px; color: var(--dim); text-align: center; }
.inq-done { align-items: center; text-align: center; padding: 48px 28px; }
.inq-done p { margin: 0; color: var(--muted); }
.inq-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #03101f; background: var(--grad); box-shadow: 0 10px 40px -8px rgba(34, 211, 238, .7); animation: modal-in .4s; }
.api-card .btn { margin-top: 18px; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .api-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; transform: none; order: -1; }
  .inv-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; top: auto; z-index: 40; max-height: 78vh; border-radius: 20px 20px 0 0; background: #070b15; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -30px 80px rgba(0,0,0,.7); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .m-body { grid-template-columns: 1fr; overflow-y: auto; }
  .m-info { overflow: visible; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .live-pill { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .sort { margin-left: 0; }
  .m-info { padding: 20px; }
  .m-info h3 { font-size: 22px; }
  .inq-grid { grid-template-columns: 1fr; }
  .inq-body { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
