:root {
  --ink: #182127;
  --muted: #64717b;
  --paper: #ffffff;
  --soft: #f4f2ec;
  --band: #e8edf0;
  --line: #d2d8dc;
  --green: #176b5c;
  --green-dark: #0e443b;
  --blue: #286f9c;
  --amber: #c98221;
  --oxide: #994c3c;
  --shadow: 0 16px 38px rgba(24, 33, 39, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  width: 92px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: white;
  border-radius: 6px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.site-nav a {
  padding: 8px 10px;
  color: #33414b;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-dark);
  background: #e7f1ee;
  outline: none;
}

.container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 21, 25, 0.92), rgba(13, 21, 25, 0.62) 48%, rgba(13, 21, 25, 0.2)),
    url("./machine-tool-lathe.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--oxide));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 86px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #d9ece7;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: #ecf3f4;
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 16px;
  color: white;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
  border-color: var(--green-dark);
  outline: none;
}

.button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--band);
}

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

.section-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-head p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-button {
  min-height: 38px;
  padding: 8px 12px;
  color: #2d3a42;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

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

.product-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 150px 1fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 33, 39, 0.08);
}

.product-card-visual {
  position: relative;
  background:
    linear-gradient(135deg, rgba(23, 107, 92, 0.78), rgba(40, 111, 156, 0.36)),
    url("./machine-tool-lathe.png") center / cover no-repeat;
}

.product-card-visual span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(18, 28, 33, 0.76);
  border-radius: 6px;
  font-weight: 900;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.mini-spec {
  padding: 9px;
  background: #f4f7f6;
  border: 1px solid #dfe7e4;
  border-radius: 6px;
}

.mini-spec span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.mini-spec strong {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  color: var(--green-dark);
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.card-link:hover,
.card-link:focus-visible {
  color: white;
  background: var(--green);
  outline: none;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #22323b;
  background: #eef3f4;
  font-size: 0.86rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-nav a {
  padding: 7px 10px;
  color: #304049;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.product-nav a[aria-current="page"],
.product-nav a:hover,
.product-nav a:focus-visible {
  color: white;
  background: var(--amber);
  border-color: var(--amber);
  outline: none;
}

.model-strip {
  padding: 14px 0;
  background: #eef3f4;
  border-bottom: 1px solid var(--line);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.metric {
  padding: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
}

.metric span {
  display: block;
  color: #cbe2de;
  font-size: 0.74rem;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: start;
}

.intro-copy {
  font-size: 1.04rem;
}

.intro-copy p {
  margin: 0 0 16px;
  color: #34424b;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  padding: 6px 10px;
  color: var(--green-dark);
  background: #e5f1ee;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-item {
  padding: 16px;
  background: var(--paper);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(24, 33, 39, 0.08);
}

.highlight-item strong {
  display: block;
  margin-bottom: 5px;
}

.spec-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: start;
}

.spec-index {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.spec-index a {
  padding: 8px 10px;
  color: #32424a;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.spec-index a:hover,
.spec-index a:focus-visible {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.spec-groups {
  display: grid;
  gap: 20px;
}

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

.spec-group h3 {
  margin: 0;
  padding: 15px 16px;
  color: white;
  background: var(--green-dark);
  font-size: 1rem;
  letter-spacing: 0;
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-band {
  color: white;
  background: linear-gradient(135deg, #153b36, #1f536c 65%, #7b5130);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.contact-grid h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: 0;
}

.contact-grid p {
  margin: 0;
  color: #d9e8e9;
}

.contact-links {
  display: grid;
  gap: 10px;
  min-width: 270px;
}

.contact-links a {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  font-weight: 900;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.footer {
  padding: 20px 0;
  color: #5a6871;
  background: #f9faf8;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.empty {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: 3.1rem;
  }

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

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

  .intro-grid,
  .spec-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .spec-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

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

  .container,
  .hero-inner {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    min-height: 58vh;
    background-position: center;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid,
  .card-specs,
  .spec-index {
    grid-template-columns: 1fr;
  }

  .metric-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric {
    min-width: 0;
  }

  .metric:nth-child(n + 3) {
    display: none;
  }

  th,
  td {
    padding: 11px 10px;
  }
}
