:root {
  --ink: #151a1d;
  --muted: #66727a;
  --paper: #f6f7f4;
  --surface: #ffffff;
  --line: #dce2e3;
  --steel: #2f4858;
  --blue: #1f6ea5;
  --orange: #f26a21;
  --safety: #c5f230;
  --charcoal: #23282c;
  --shadow: 0 18px 50px rgba(12, 19, 25, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open,
body.cart-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  min-height: 38px;
  padding: 8px 18px;
  color: #fff;
  background: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar a {
  color: var(--safety);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(246, 247, 244, 0.94);
  border-bottom: 1px solid rgba(220, 226, 227, 0.9);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(21, 26, 29, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--orange);
  border: 3px solid var(--ink);
  font-weight: 900;
}

.brand-logo {
  overflow: hidden;
  background: #b3162d;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 34px);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  color: #fff;
  background: var(--steel);
  border: 0;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: var(--ink);
  background: var(--safety);
}

.hero {
  position: relative;
  min-height: clamp(590px, 82vh, 780px);
  display: grid;
  align-items: end;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(11, 16, 19, 0.88), rgba(11, 16, 19, 0.56) 42%, rgba(11, 16, 19, 0.14)),
    linear-gradient(0deg, rgba(11, 16, 19, 0.55), rgba(11, 16, 19, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 100%);
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.96;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.hero-actions,
.sort-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.product-copy button,
.cart-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary,
.product-copy button {
  color: #fff;
  background: var(--orange);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-product {
  position: absolute;
  right: clamp(22px, 6vw, 86px);
  bottom: 0;
  z-index: 2;
  width: min(330px, 27vw);
  min-width: 220px;
}

.hero-product img {
  width: 100%;
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.36));
}

.hero-product span {
  position: absolute;
  right: 8px;
  bottom: 22px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--safety);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.quick-nav a {
  display: grid;
  place-items: center;
  min-height: 68px;
  padding: 12px;
  color: var(--charcoal);
  border-right: 1px solid var(--line);
  font-weight: 900;
  text-transform: uppercase;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  color: #fff;
  background: var(--steel);
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading h2,
.tech-copy h2,
.newsletter h2,
.cart-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1;
}

.section-heading p:not(.section-kicker),
.tech-copy p,
.newsletter p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.split-heading,
.product-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: end;
  max-width: none;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr 0.88fr;
  gap: 18px;
}

.category-tile {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
}

.category-tile.tile-large {
  grid-row: span 2;
  min-height: 742px;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 16, 18, 0.78), rgba(12, 16, 18, 0.1) 56%);
}

.category-tile:hover img {
  transform: scale(1.035);
}

.category-tile div {
  position: absolute;
  inset-inline: 22px;
  bottom: 22px;
  z-index: 2;
}

.category-tile p,
.product-copy p {
  margin: 0 0 8px;
  color: var(--safety);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-tile h3 {
  max-width: 360px;
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.category-tile a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

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

.feature-card {
  min-height: 154px;
  padding: 18px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.feature-card.is-active,
.feature-card:hover {
  color: #fff;
  background: var(--steel);
  border-color: var(--steel);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--ink);
  background: var(--safety);
  font-size: 12px;
  font-weight: 950;
}

.feature-card strong,
.feature-card small {
  display: block;
}

.feature-card strong {
  font-size: 19px;
}

.feature-card small {
  margin-top: 5px;
  color: currentColor;
  opacity: 0.72;
}

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

.product-card {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-card.is-hidden {
  display: none;
}

.product-card img {
  width: 100%;
  height: 310px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.product-copy {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.product-copy h3 {
  min-height: 52px;
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.product-copy span {
  color: var(--steel);
  font-weight: 950;
}

.product-copy button {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}

.sort-strip {
  justify-content: flex-end;
  margin: 0;
}

.sort-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: var(--steel);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.tech-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px);
  color: #fff;
  background: var(--charcoal);
}

.tech-image img {
  width: 100%;
  background: #fff;
}

.tech-copy h2 {
  color: #fff;
}

.tech-copy p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.76);
}

.tech-copy ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.tech-copy li {
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--orange);
}

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

.use-grid a {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 900;
  text-transform: uppercase;
}

.use-grid a:hover {
  color: #fff;
  background: var(--blue);
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.newsletter p {
  max-width: 660px;
  margin-top: 14px;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quote-form input,
.quote-form select {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(8, 12, 14, 0.46);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  width: min(440px, 100%);
  height: 100%;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

.cart-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 34px;
}

.cart-head button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--steel);
  background: var(--paper);
  border-color: var(--line);
}

.cart-empty {
  display: grid;
  gap: 4px;
  padding: 34px 0;
  color: var(--muted);
}

.cart-empty p {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-weight: 950;
}

.cart-checkout {
  width: 100%;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: clamp(24px, 5vw, 56px);
  padding: 44px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-brand {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 420px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: center;
  }

  .site-nav {
    position: fixed;
    inset: 112px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tile.tile-large {
    grid-row: span 1;
    min-height: 420px;
  }

  .split-heading,
  .product-heading,
  .tech-band,
  .newsletter,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-product {
    right: 22px;
    width: 240px;
  }
}

@media (max-width: 720px) {
  .topbar {
    justify-content: start;
    overflow-x: hidden;
  }

  .topbar a:last-child {
    display: none;
  }

  .site-header {
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand-copy small,
  .cart-button span {
    display: none;
  }

  .site-nav {
    inset-top: 106px;
  }

  .hero {
    min-height: 650px;
    align-items: start;
    padding: 34px 18px 210px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.03;
    overflow-wrap: anywhere;
  }

  .hero-content {
    width: min(350px, calc(100vw - 36px));
  }

  .hero p:not(.eyebrow) {
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-product {
    left: 18px;
    right: auto;
    width: 210px;
  }

  .quick-nav {
    grid-template-columns: 1fr;
  }

  .quick-nav a {
    justify-content: start;
    min-height: 54px;
    padding-inline: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .category-tile,
  .category-tile.tile-large {
    min-height: 360px;
  }

  .product-card img {
    height: 280px;
  }
}
