:root {
  --ink: #0b1220;
  --ink-2: #172235;
  --muted: #617089;
  --line: #d9e1ec;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --steel: #9aa8b8;
  --blue: #0f5da8;
  --cyan: #17a2b8;
  --orange: #e06a2c;
  --green: #277c55;
  --shadow: 0 20px 50px rgba(11, 18, 32, 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;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(11, 18, 32, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(11, 18, 32, 0.94);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.nav a:hover {
  color: #fff;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.header-cta {
  color: #fff;
  background: var(--orange);
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 64% 62%, rgba(23, 162, 184, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(5, 10, 19, 0.95) 0%, rgba(5, 10, 19, 0.78) 39%, rgba(5, 10, 19, 0.26) 100%),
    linear-gradient(180deg, rgba(5, 10, 19, 0.1), rgba(5, 10, 19, 0.8));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.05) contrast(1.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(300px, 390px);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  width: min(1180px, calc(100% - 36px));
  min-height: 92vh;
  margin: 0 auto;
  padding: 138px 0 72px;
}

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

.hero h1,
.section h2,
.quote-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(42px, 6.2vw, 76px);
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 28px;
}

.hero-product-strip a {
  min-height: 82px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-product-strip a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-product-strip strong,
.hero-product-strip span {
  display: block;
}

.hero-product-strip strong {
  color: #fff;
  font-size: 16px;
}

.hero-product-strip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.hero-panel {
  display: grid;
  gap: 12px;
  align-self: center;
}

.hero-panel div {
  padding: 20px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 520px;
  padding: 150px max(18px, calc((100vw - 1180px) / 2)) 78px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 10, 19, 0.92), rgba(5, 10, 19, 0.64)),
    url("images/hero-futuristic-fasteners.jpg") center / cover;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.manufacturing-hero {
  background:
    linear-gradient(90deg, rgba(5, 10, 19, 0.93), rgba(5, 10, 19, 0.62)),
    url("images/cnc-parts.jpg") center / cover;
}

.metric-strip div {
  min-height: 126px;
  padding: 28px clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  color: var(--blue);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.metric-strip span {
  margin-top: 8px;
  color: var(--muted);
}

.section,
.quote-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: end;
  padding-bottom: 42px;
}

.section h2,
.quote-section h2 {
  font-size: clamp(31px, 4vw, 52px);
}

.section-lead,
.quality-copy p,
.quote-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.filter.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.page-products {
  padding-top: 46px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: start;
}

.detail-layout h2 {
  max-width: 520px;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.category-tiles article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.category-tiles img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.category-tiles div {
  padding: 22px;
  border-top: 1px solid var(--line);
}

.category-tiles h2,
.category-tiles p {
  margin: 0;
}

.category-tiles h2 {
  font-size: 23px;
  line-height: 1.2;
}

.category-tiles p {
  margin-top: 12px;
  color: var(--muted);
}

.product-card {
  display: grid;
  grid-template-rows: 238px auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(11, 18, 32, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

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

.product-card div {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.product-card p,
.product-card h3,
.product-card span {
  margin: 0;
}

.product-card p {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  margin-top: 7px;
  font-size: 20px;
  line-height: 1.2;
}

.product-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.process {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.process div {
  min-height: 188px;
  padding: 24px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.process span {
  color: var(--cyan);
  font-weight: 900;
}

.process strong {
  display: block;
  margin-top: 18px;
  font-size: 19px;
}

.process p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.quality {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 50px;
  align-items: center;
}

.spec-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-table div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table strong {
  color: var(--ink);
}

.spec-table span {
  color: var(--muted);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.brand-fit {
  padding-top: 38px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.brand-grid div {
  min-height: 150px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 93, 168, 0.92), rgba(23, 34, 53, 0.96)),
    var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.14);
}

.brand-grid strong,
.brand-grid span {
  display: block;
}

.brand-grid strong {
  font-size: 20px;
}

.brand-grid span {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.brand-note {
  max-width: 920px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.application-grid div {
  min-height: 176px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.application-grid strong,
.application-grid span {
  display: block;
}

.application-grid span {
  margin-top: 16px;
  color: var(--muted);
}

.quote-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 52px;
  align-items: start;
  padding: 78px clamp(20px, 4vw, 54px);
  margin-bottom: 80px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.contact-page-form {
  margin-top: 70px;
}

.quote-section p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  overflow-wrap: break-word;
}

.quote-section > * {
  min-width: 0;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  min-width: 0;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}

.quote-form label:nth-child(4),
.quote-form button,
.form-note {
  grid-column: 1 / -1;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 13px 14px;
  outline: none;
}

.quote-form select option {
  color: var(--ink);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--cyan);
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.form-note[data-state="success"] {
  color: #7ee2a8;
}

.form-note[data-state="error"] {
  color: #ff9b8f;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #070b12;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #fff;
}

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

  .brand {
    min-width: 0;
  }

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

  .nav,
  .header-cta {
    display: none;
  }

  .nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    gap: 14px;
    padding: 10px 0;
  }

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

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

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

  .metric-strip,
  .product-grid,
  .category-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 760px;
    padding-top: 112px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 35px;
    line-height: 1.1;
    overflow-wrap: break-word;
  }

  .hero-text {
    max-width: 330px;
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .eyebrow {
    font-size: 11px;
    max-width: 330px;
    overflow-wrap: anywhere;
  }

  .hero-panel,
  .hero-product-strip,
  .metric-strip,
  .product-grid,
  .process,
  .application-grid,
  .brand-grid,
  .category-tiles,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section,
  .quote-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .page-hero {
    min-height: 520px;
    padding-top: 118px;
    padding-bottom: 56px;
  }

  .page-hero h1 {
    max-width: 340px;
    font-size: 38px;
  }

  .page-hero p:not(.eyebrow) {
    max-width: 340px;
    font-size: 17px;
  }

  .product-card {
    grid-template-rows: 210px auto;
  }

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

  .spec-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-section {
    display: block;
    width: auto;
    max-width: none;
    margin-left: 18px;
    margin-right: 18px;
    margin-bottom: 40px;
    padding: 48px 20px;
  }

  .quote-section h2,
  .quote-section p,
  .quote-form {
    max-width: 300px;
  }

  .quote-form {
    margin-top: 28px;
  }

  .site-footer {
    display: grid;
  }
}
