:root {
  --ink: #101820;
  --muted: #5d6670;
  --line: #d9dee5;
  --paper: #f6f7f9;
  --white: #ffffff;
  --red: #c4112f;
  --blue: #173f75;
  --steel: #2e3d4f;
  --gold: #d7a84d;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --ink: #eef4f8;
  --muted: #b3bec9;
  --line: #334354;
  --paper: #111922;
  --white: #18212b;
  --steel: #d8e1ea;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

body.theme-ready {
  transition: background-color .2s ease, color .2s ease;
}

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

a {
  color: inherit;
}

.topbar {
  background: var(--ink);
  color: #eef3f7;
  font-size: 0.9rem;
}

:root[data-theme="dark"] .topbar {
  background: #0b1117;
  color: #eef3f7;
}

.topbar__inner,
.site-header__inner,
.section,
.footer__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(24, 33, 43, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 220px;
}

.brand img {
  width: 74px;
  height: auto;
}

.brand__text {
  display: grid;
  line-height: 1.05;
}

.brand__name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand__line {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand--text .brand__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-weight: 950;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.94rem;
  font-weight: 750;
}

.nav a {
  text-decoration: none;
  color: #263442;
}

:root[data-theme="dark"] .nav a {
  color: #e4ebf2;
}

.nav a:hover {
  color: var(--red);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button--primary {
  background: var(--red);
  color: #ffffff;
}

.button--dark {
  background: #101820;
  color: #ffffff;
}

.button--outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.theme-toggle {
  min-width: 44px;
  width: 44px;
  padding: 0;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

.hero {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.94), rgba(16, 24, 32, 0.74) 48%, rgba(16, 24, 32, 0.28)),
    url("assets/fastener-strip.jpg") center / cover;
  color: #ffffff;
}

.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  padding: 72px 0 48px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 850px;
  margin-top: 16px;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: #dde5ee;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 24px;
}

:root[data-theme="dark"] .hero-card {
  background: rgba(24, 33, 43, 0.96);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  margin-bottom: 18px;
}

.hero-card strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
}

.hero-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-strip div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.trust-strip strong {
  display: block;
  color: #ffffff;
  font-size: 1.45rem;
}

.trust-strip span {
  color: #cfd8e1;
}

.section {
  padding: 82px 0;
}

.section--paper {
  width: 100%;
  max-width: none;
  background: var(--paper);
}

.section--paper > .section__inner,
.section--dark > .section__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section--dark {
  width: 100%;
  max-width: none;
  background: #0b1117;
  color: #f5f8fb;
}

.section__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section__header p {
  max-width: 520px;
  color: var(--muted);
  margin: 0;
}

.section--dark .section__header p {
  color: #c9d2dc;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

.card--accent {
  border-top: 5px solid var(--red);
}

.media-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.media-band img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
}

.list-check {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.list-check li {
  background: #edf1f5;
  padding: 12px 14px;
  font-weight: 750;
}

:root[data-theme="dark"] .list-check li {
  background: #202c38;
}

.quote-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.quote-form {
  display: grid;
  gap: 14px;
  background: var(--white);
  color: var(--ink);
  padding: 28px;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  font-size: 0.92rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  border: 1px solid #cdd4dc;
  padding: 12px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.quote-form textarea {
  min-height: 120px;
  resize: vertical;
}

.page-hero {
  background: #101820;
  color: #ffffff;
  padding: 72px 0;
}

.page-hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero p {
  max-width: 720px;
  color: #ccd5df;
  font-size: 1.15rem;
}

.feature-table {
  display: grid;
  border: 1px solid var(--line);
}

.feature-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row strong {
  color: var(--blue);
  font-size: 1.05rem;
}

:root[data-theme="dark"] .feature-row strong {
  color: #8fb8ff;
}

.footer {
  background: #0b1117;
  color: #dce3eb;
  padding: 48px 0 86px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 32px;
}

.footer a {
  color: #f5f8fb;
  text-decoration: none;
}

.footer p {
  color: #aeb9c4;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 16px;
  }

  .hero__inner,
  .quote-panel,
  .media-band,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .grid--4,
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .topbar {
    font-size: 0.78rem;
  }

  .topbar__inner,
  .site-header__inner,
  .section,
  .footer__inner,
  .hero__inner,
  .page-hero__inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    min-width: 0;
    flex: 1 1 190px;
  }

  .brand img {
    width: 58px;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__line {
    font-size: 0.68rem;
  }

  .site-header__inner {
    gap: 10px;
    min-height: 72px;
  }

  .topbar__inner {
    display: block;
  }

  .actions {
    width: auto;
    flex: 0 0 auto;
  }

  .actions .button--outline {
    display: none;
  }

  .actions .button--primary {
    display: none;
  }

  .theme-toggle {
    display: inline-flex;
  }

  .nav {
    gap: 14px;
    font-size: 0.86rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero__inner {
    min-height: auto;
    padding: 54px 0 28px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.85rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

  .hero-card {
    display: none;
  }

  .trust-strip,
  .grid--4,
  .grid--3,
  .grid--2,
  .list-check {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .section__header {
    display: block;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .mobile-cta a {
    min-height: 56px;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 900;
  }

  .mobile-cta a:first-child {
    background: #101820;
    color: #ffffff;
  }

  .mobile-cta a:last-child {
    background: var(--red);
    color: #ffffff;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef4f8;
    --muted: #b3bec9;
    --line: #334354;
    --paper: #111922;
    --white: #18212b;
    --steel: #d8e1ea;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }

  :root:not([data-theme="light"]) .site-header {
    background: rgba(24, 33, 43, 0.96);
  }

  :root:not([data-theme="light"]) .topbar {
    background: #0b1117;
    color: #eef3f7;
  }

  :root:not([data-theme="light"]) .nav a {
    color: #e4ebf2;
  }

  :root:not([data-theme="light"]) .hero-card {
    background: rgba(24, 33, 43, 0.96);
  }

  :root:not([data-theme="light"]) .list-check li {
    background: #202c38;
  }

  :root:not([data-theme="light"]) .feature-row strong {
    color: #8fb8ff;
  }
}
