:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #687078;
  --line: #dfe4e8;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #0b6b63;
  --teal-dark: #064842;
  --copper: #a86d38;
  --blue: #375f92;
  --shadow: 0 20px 60px rgba(28, 35, 43, 0.12);
}

* {
  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", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(247, 248, 246, 0.88);
  border-bottom: 1px solid rgba(223, 228, 232, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--white);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.market-switcher a {
  text-decoration: none;
}

.nav-links a:hover,
.market-switcher a:hover {
  color: var(--teal);
}

.market-switcher {
  display: flex;
  gap: 6px;
}

.market-switcher a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.market-switcher a.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.hero {
  min-height: min(78vh, 760px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px clamp(20px, 6vw, 76px) 28px;
  background:
    linear-gradient(90deg, rgba(15, 18, 20, 0.86) 0%, rgba(15, 18, 20, 0.65) 42%, rgba(15, 18, 20, 0.1) 100%),
    url("images/hero-doorbell.jpg") center right -70px / min(1120px, 94vw) no-repeat,
    #ecefed;
  overflow: hidden;
}

.hero-copy {
  width: min(100%, 720px);
  max-width: 720px;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

.hero-subhead {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
}

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

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

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.primary:hover {
  background: var(--teal-dark);
}

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

.button.secondary:hover {
  border-color: var(--white);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 76px;
}

.trust-strip span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 6vw, 76px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section h2,
.support-band h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.split-section p,
.support-band p {
  color: var(--muted);
  font-size: 18px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.market-tile {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(38, 44, 50, 0.06);
}

.market-tile span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
}

.market-tile strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(38, 44, 50, 0.08);
  overflow: hidden;
}

.product-card img,
.product-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f0f3f2;
}

.product-placeholder {
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(11, 107, 99, 0.92), rgba(55, 95, 146, 0.88)),
    #0b6b63;
}

.product-placeholder span {
  font-weight: 900;
  letter-spacing: 0.16em;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-content h3 {
  margin-bottom: 9px;
  font-size: 21px;
}

.product-content p {
  margin-bottom: 18px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-row span {
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef5f4;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.7fr);
  gap: clamp(30px, 7vw, 86px);
  background: var(--white);
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
}

.guide-list li {
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 750;
}

.guide-list li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 18px;
  top: 17px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 76px);
  padding: clamp(34px, 5vw, 56px);
  border-radius: 8px;
  background: #18201f;
  color: var(--white);
}

.support-band p {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 76px) 42px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .market-switcher {
    overflow-x: auto;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(15, 18, 20, 0.92) 0%, rgba(15, 18, 20, 0.72) 48%, rgba(15, 18, 20, 0.16) 100%),
      url("images/hero-doorbell.jpg") bottom -24px center / min(780px, 140vw) no-repeat,
      #ecefed;
  }

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

  .split-section,
  .support-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    padding: 14px 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    min-height: 690px;
    padding: 72px 18px 24px;
  }

  .hero-copy,
  .hero-subhead {
    max-width: min(100%, 342px);
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
    max-width: min(100%, 342px);
  }

  .hero-subhead {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .button {
    width: 100%;
  }

  .trust-strip {
    margin-top: 44px;
  }

  .section {
    padding: 52px 18px;
  }

  .market-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .support-band {
    margin: 18px;
    padding: 28px 20px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 18px 32px;
  }
}
