:root {
  --bg: #060b18;
  --bg2: #0b1730;
  --card: #111f3d;
  --line: #243a68;
  --txt: #eef3ff;
  --muted: #9cb1dc;
  --brand: #73a9ff;
  --mint: #85f5d1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--txt);
  background: radial-gradient(circle at 20% -10%, #1d335f, var(--bg) 35%), linear-gradient(180deg, var(--bg), var(--bg2));
}
.container { width: min(1150px, 92vw); margin: 0 auto; }
.glass { background: #0c1730b0; backdrop-filter: blur(12px); border: 1px solid #2a4275; }
.nav { position: sticky; top: 0; z-index: 30; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.logo { font-weight: 800; letter-spacing: .8px; }
.nav-actions { display: flex; gap: 10px; }
.hero { padding: 64px 0 32px; }
.eyebrow { color: var(--mint); font-weight: 700; font-size: 12px; letter-spacing: 1px; }
h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; margin: 10px 0 14px; max-width: 13ch; }
.lead { color: var(--muted); max-width: 70ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.mobile-only { display: none; }
.section-head { margin: 22px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.models-head span { color: var(--muted); }
.btn {
  border: 0;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), #8dc9ff);
  color: #04132e;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #4f88ff50; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.brand-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #101d39, #0b142a);
  border-radius: 18px;
  padding: 18px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--mint); box-shadow: 0 12px 28px #0b1e4388; }
.brand-card.active { border-color: var(--mint); }
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(1.2);
}
.brand-name { font-weight: 700; margin-top: 8px; }
.brand-count { color: var(--muted); font-size: 13px; }
.toolbar { margin-bottom: 12px; }
.muted { color: var(--muted); }
#searchInput {
  width: min(460px, 100%);
  background: #0d1b36;
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}
.brand-hero { margin-bottom: 8px; }
.brand-focus {
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  cursor: pointer;
}
.brand-focus img { width: 44px; height: 44px; object-fit: contain; }
.brand-focus strong { font-size: 20px; letter-spacing: .4px; }
.brand-focus:hover { border-color: #d59b63; box-shadow: 0 10px 28px #1a120950; }

.bike-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.bike-model-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #111f3d, #0b152e);
  border-radius: 16px;
  padding: 15px 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.bike-model-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 68%;
  height: 24px;
  transform: translateX(-50%) scale(.7);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, #f4c27a66 0%, #ff9f5a3d 42%, transparent 72%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity .24s ease, transform .24s ease;
}
.bike-model-card:hover {
  transform: translateY(-3px);
  border-color: #d59b63;
  box-shadow: 0 10px 28px #1a120980;
}
.bike-model-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.bike-model-card.active {
  border-color: var(--mint);
  box-shadow: 0 0 0 1px #85f5d133 inset;
}
.bike-model-card .name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.bike-model-card .years { color: var(--muted); font-size: 13px; margin-top: 5px; }
.model-actions { margin: 2px 0 12px; }
.products-wrap { transition: opacity .25s ease, transform .25s ease; }
.products-wrap.is-hidden { display: none; }
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 12px; }
.model-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #111f3d, #0b152e);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.model-card:hover { transform: translateY(-4px); border-color: #79d4ff; }
.model-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.model-body { padding: 12px; display: grid; gap: 10px; }
.model-body h4 { margin: 0; font-size: 14px; line-height: 1.35; min-height: 56px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions .btn { padding: 9px 10px; font-size: 12px; text-align: center; }
.actions .btn:last-child { background: linear-gradient(135deg, var(--mint), #b2ffe5); }
.quote { padding: 28px 0 70px; }
.quote-panel { border-radius: 18px; padding: 18px; }
#quoteForm { display: grid; grid-template-columns: repeat(3,1fr) auto; gap: 10px; margin-top: 12px; }
input, select {
  background: #0d1b36;
  color: var(--txt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}
small { color: var(--muted); }
.footer a { color: #b9cfff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 0 24px; color: var(--muted); }
.mobile-cta { display: none; }
.page-transition {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, #2e4f8f, #060b18 55%);
  pointer-events: none;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .28s ease, transform .28s ease;
  z-index: 999;
}
.page-transition.is-leaving { opacity: 1; transform: scale(1); }
.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s ease forwards; }
.reveal:nth-child(2){ animation-delay:.08s; }
.reveal:nth-child(3){ animation-delay:.16s; }
.reveal:nth-child(4){ animation-delay:.24s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 920px) {
  #quoteForm { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { padding-bottom: 82px; }
  .mobile-only { display: flex; }
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-actions .btn { width: 100%; }
  h1 { max-width: 100%; font-size: clamp(28px, 8vw, 42px); }
  .lead { font-size: 15px; line-height: 1.5; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .brand-focus { width: 100%; }
  .bike-models-grid, .models-grid, .brands-grid { grid-template-columns: 1fr; }
  .brand-card, .bike-model-card, .model-card { border-radius: 14px; }
  .model-body h4 { min-height: auto; font-size: 15px; }
  .actions .btn { min-height: 42px; }
  #searchInput { width: 100%; min-height: 44px; }

  .mobile-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: #0b1730d9;
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
  }
  .mobile-cta .btn { min-height: 42px; }
}

@media (min-width: 701px) {
  .mobile-cta { display: none; }
}

.btn.tiny { padding: 8px 11px; font-size: 12px; border-radius: 10px; }
