:root {
  color-scheme: dark;
  --bg: #050609;
  --panel: #101217;
  --panel-strong: #181b22;
  --text: #f5f5f2;
  --muted: #a2a7b0;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #d90812;
  --accent-strong: #a90009;
  --accent-soft: rgba(217, 8, 18, 0.2);
  --gold: #ff6a00;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-strong: #eceff3;
  --text: #111318;
  --muted: #5c6472;
  --line: rgba(18, 24, 38, 0.12);
  --accent: #c9000b;
  --accent-strong: #970009;
  --accent-soft: rgba(201, 0, 11, 0.13);
  --gold: #e85d00;
  --shadow: 0 18px 50px rgba(24, 30, 45, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(217, 8, 18, 0.05), transparent 430px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(140%);
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #000 0%, var(--accent-strong) 34%, var(--gold) 50%, var(--accent-strong) 66%, #000 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 22px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo img {
  display: block;
  width: clamp(190px, 23vw, 310px);
  height: 86px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.42));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-link,
.icon-button,
.primary-button,
.secondary-button,
.filter-chip {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 12px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  color: var(--text);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: clamp(620px, 84vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.98) 0%, rgba(5, 6, 9, 0.88) 42%, rgba(5, 6, 9, 0.42) 100%),
    linear-gradient(180deg, transparent 0%, rgba(5, 6, 9, 0.76) 100%),
    url("assets/motorcum-logo.webp") right 7vw center / min(48vw, 680px) auto no-repeat,
    linear-gradient(135deg, #040406, #151820 50%, #08090d);
  transform: scale(1.01);
}

:root[data-theme="light"] .hero-media {
  background:
    linear-gradient(90deg, rgba(244, 245, 247, 0.98) 0%, rgba(244, 245, 247, 0.86) 43%, rgba(244, 245, 247, 0.42) 100%),
    linear-gradient(180deg, transparent 0%, rgba(244, 245, 247, 0.9) 100%),
    url("assets/motorcum-logo.webp") right 7vw center / min(48vw, 680px) auto no-repeat,
    linear-gradient(135deg, #f5f6f8, #dfe3ea 55%, #fafafa);
}

.hero-content {
  position: relative;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 22px 98px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(52px, 8.5vw, 116px);
  line-height: 0.88;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.hero-copy {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 12px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 20px 42px var(--accent-soft);
}

.secondary-button {
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--text);
}

.stats-band,
.catalog-section,
.contact-band {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transform: translateY(-42px);
  box-shadow: var(--shadow);
}

.stats-band div {
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.stats-band strong,
.stats-band span {
  display: block;
}

.stats-band strong {
  font-size: 38px;
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
}

.catalog-section {
  padding-top: 28px;
  padding-bottom: 86px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 180px;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box,
.select-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

.search-box input,
.select-box select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.select-box {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
}

.select-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 18px;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 0 13px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.product-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(217, 8, 18, 0.2), transparent 42%),
    linear-gradient(180deg, #1a1d24, #08090d);
  border-bottom: 1px solid var(--line);
}

.product-visual span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #050505);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 16px 34px var(--accent-soft);
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  min-height: 54px;
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.24;
  letter-spacing: 0;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  padding: 5px 8px;
  background: var(--panel-strong);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 12px;
}

.whatsapp-card {
  background: linear-gradient(135deg, #25d366, #13b955);
  color: #061a0c;
}

.source-card {
  border: 1px solid var(--line);
  color: var(--muted);
}

.contact-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 84px;
  padding-top: 34px;
  padding-bottom: 34px;
  background:
    linear-gradient(135deg, rgba(217, 8, 18, 0.18), transparent 34%),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-band p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #061a0c;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.24);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .toolbar,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .top-strip,
  .nav-shell,
  .section-heading,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .top-strip {
    gap: 4px;
    text-align: center;
  }

  .nav-actions {
    justify-content: space-between;
  }

  .brand-logo img {
    width: min(68vw, 230px);
    height: 64px;
  }

  .ghost-link {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .hero-media,
  :root[data-theme="light"] .hero-media {
    background:
      linear-gradient(180deg, rgba(5, 6, 9, 0.84) 0%, rgba(5, 6, 9, 0.98) 64%),
      url("assets/motorcum-logo.webp") center 44px / min(84vw, 340px) auto no-repeat,
      linear-gradient(135deg, #040406, #151820 50%, #08090d);
  }

  :root[data-theme="light"] .hero-media {
    background:
      linear-gradient(180deg, rgba(244, 245, 247, 0.78) 0%, rgba(244, 245, 247, 0.98) 64%),
      url("assets/motorcum-logo.webp") center 44px / min(84vw, 340px) auto no-repeat,
      linear-gradient(135deg, #f5f6f8, #dfe3ea 55%, #fafafa);
  }

  .hero-content {
    padding-top: 290px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: 46px;
  }

  .stats-band,
  .toolbar,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .stats-band {
    transform: none;
    margin-top: 18px;
  }
}
