:root {
  color-scheme: dark;
  --bg: #11100d;
  --bg-soft: #191713;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f6efe4;
  --muted: #c9bbab;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #d47a2d;
  --accent-2: #f0b35e;
  --green: #8c9b6a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 122, 45, 0.28), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(140, 155, 106, 0.18), transparent 28rem),
    linear-gradient(135deg, #0d0c0a 0%, #191713 48%, #100f0d 100%);
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.site-shell {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.035));
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.04);
  font-size: 1.15rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}
.nav-links a:hover,
.nav-links a.active,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 179, 94, 0.72);
  background: rgba(212, 122, 45, 0.18);
  color: var(--text);
}
.button {
  min-height: 48px;
  padding: 12px 18px;
  color: #17110a;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 36px rgba(212, 122, 45, 0.22);
  cursor: pointer;
}
.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
.hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.035)),
    radial-gradient(circle at 85% 20%, rgba(212,122,45,.32), transparent 22rem);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 68px);
  margin: 18px 0 28px;
  position: relative;
}
.model-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .55fr);
  align-items: center;
  gap: 30px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 42px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(255,255,255,.03), inset 0 0 0 72px rgba(255,255,255,.025);
}
.hero-copy-wrap, .hero-preview { position: relative; z-index: 1; }
.hero-preview {
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(0,0,0,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.22);
  overflow: hidden;
}
.hero-preview img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(240,179,94,.38);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(212,122,45,.10);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: .94;
  letter-spacing: -0.07em;
}
.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.specs-panel, .section {
  margin: 30px 0;
}
.specs-panel {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
}
.specs-panel h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.spec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0,0,0,.18);
  padding: 16px;
}
.spec-card span, .variation span, .search-box span, .wheel-number {
  display: block;
  color: var(--accent-2);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.spec-card strong {
  display: block;
  margin-top: 8px;
  font-size: .98rem;
  color: var(--text);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 44px 0 18px;
}
.section-heading p { max-width: 560px; margin: 8px 0 0; color: var(--muted); }
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 12px;
}
.search-box {
  display: grid;
  gap: 8px;
}
.search-box input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  outline: none;
  font: inherit;
}
.search-box input:focus { border-color: rgba(240,179,94,.72); box-shadow: 0 0 0 4px rgba(212,122,45,.14); }
.result-count { color: var(--muted); font-weight: 800; margin-bottom: 18px; }
.wheel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-flow: row;
}
.wheel-grid > * {
  min-width: 0;
}
.wheel-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.wheel-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4/3;
  background: rgba(0,0,0,.24);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.wheel-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 220ms ease;
}
.wheel-image:hover img { transform: scale(1.035); }
.missing-photo {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08) 25%, transparent 25%) 0 0/28px 28px,
    rgba(0,0,0,.2);
}
.wheel-body { display: flex; flex-direction: column; gap: 0; flex: 1; padding: 18px; }
.wheel-body h2 {
  margin: 6px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.wheel-body h2 a { text-decoration-color: rgba(240,179,94,.45); }
.wheel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.wheel-meta span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(255,255,255,.07);
  font-weight: 800;
}
.variation p { margin: 8px 0 0; color: var(--muted); }
.variation a, .footer a, .wheel-table a { color: var(--accent-2); }
.photo-request { color: var(--text); }
.compact-section details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.compact-section summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  color: var(--accent-2);
}
.table-wrap { overflow-x: auto; padding: 0 18px 18px; }
.wheel-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
.wheel-table th, .wheel-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
}
.wheel-table th {
  color: var(--accent-2);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.scan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.scan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  text-decoration: none;
}
.scan-card img { width: 100%; height: 180px; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); }
.scan-card span { display: block; padding: 14px; font-weight: 900; color: var(--accent-2); }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 60px 0 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
}
.footer p { margin: 0; max-width: 760px; }
.is-hidden { display: none !important; }
@media (max-width: 1120px) {
  .wheel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .topbar, .section-heading, .footer { align-items: flex-start; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .model-hero, .specs-panel { grid-template-columns: 1fr; }
  .hero-preview { justify-self: stretch; width: 100%; max-height: 260px; }
  .toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-shell { width: min(calc(100% - 24px), var(--max-width)); }
  .hero, .specs-panel { border-radius: 20px; padding: 22px; }
  .nav-links a { min-height: 36px; padding: 8px 10px; }
  .wheel-grid { grid-template-columns: 1fr; }
}
