:root {
  --orange: #f37021;
  --orange-dark: #c94f0d;
  --ink: #171717;
  --panel: #242424;
  --muted: #6f7378;
  --line: #dedede;
  --paper: #f6f3ee;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(23, 23, 23, 0.94);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  width: 188px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(243, 112, 33, 0.22);
}

.nav-links .shop-link {
  margin-left: 4px;
  color: var(--ink);
  background: var(--orange);
}

.nav-links .shop-link:hover,
.nav-links .shop-link.active {
  color: var(--ink);
  background: #ff8a3d;
}

.hero {
  min-height: calc(100vh - 72px);
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  background: #151515;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.82) 36%, rgba(12, 12, 12, 0.28) 72%),
    url("assets/autoparts-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-inner,
.section-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  max-width: 660px;
  padding: 76px 0 96px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
}

.page-lead {
  color: #3f4448;
  font-size: 19px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--orange);
  color: var(--ink);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.dark {
  background: var(--ink);
  color: var(--white);
}

.section {
  padding: 82px 0;
}

.section.dark {
  color: var(--white);
  background: var(--ink);
}

.section.dark .page-lead,
.section.dark .card p {
  color: rgba(255, 255, 255, 0.74);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: start;
}

.stat-panel {
  padding: 28px;
  border-left: 7px solid var(--orange);
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-panel strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}

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

.card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.section.dark .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--panel);
}

.card p {
  color: #555b60;
}

.card-top {
  display: grid;
  gap: 12px;
}

.brand-badge {
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(243, 112, 33, 0.12);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section.dark .brand-badge {
  background: rgba(243, 112, 33, 0.18);
  color: #ff9a54;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: none;
}

.section.dark .text-link {
  color: #ff9a54;
}

.split-hero {
  padding: 90px 0 72px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(23, 23, 23, 0.98), rgba(23, 23, 23, 0.86)),
    url("assets/autoparts-hero.png") center / cover;
}

.split-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
  align-items: center;
}

.brand-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-panel.logo-panel {
  display: grid;
  gap: 18px;
  align-content: center;
}

.page-logo {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

.brand-panel ul,
.setup-guide ul,
.setup-guide ol {
  padding-left: 22px;
}

.brand-panel li,
.setup-guide li {
  margin-bottom: 8px;
}

.catalogue-strip {
  padding: 24px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
}

.catalogue-strip .button {
  margin-top: 8px;
  background: var(--ink);
  color: var(--white);
}

.footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #101010;
}

.footer .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.setup-guide {
  max-width: 920px;
}

.setup-guide code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.setup-guide pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: #161616;
  color: var(--white);
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: 170px;
    height: 48px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(12, 12, 12, 0.95) 0%, rgba(12, 12, 12, 0.80) 58%, rgba(12, 12, 12, 0.62) 100%),
      url("assets/autoparts-hero.png");
  }

  .hero-content {
    padding: 58px 0 70px;
  }

  .intro-grid,
  .split-hero .section-inner {
    grid-template-columns: 1fr;
  }

  .brand-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stat-panel {
    max-width: 480px;
  }
}

@media (max-width: 520px) {
  .nav-links a {
    padding: 9px 9px;
    font-size: 13px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }
}
