:root {
  --bg: #f5f6f7;
  --ink: #121820;
  --muted: #5e6975;
  --line: #dce1e6;
  --panel: #ffffff;
  --steel: #26313d;
  --steel-2: #374554;
  --steel-3: #17202a;
  --red: #c52b2e;
  --red-dark: #a82023;
  --blue: #1f5f8b;
  --amber: #b7791f;
  --radius: 8px;
  --shadow: 0 18px 40px rgba(18, 24, 32, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 24, 32, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand span {
  color: #cbd3dc;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e4e9ee;
  font-size: 14px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--red);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-dark {
  color: #ffffff;
  background: var(--steel);
  border-color: var(--steel);
}

.btn-outline {
  color: var(--steel);
  background: transparent;
  border-color: #aeb8c3;
}

.btn-outline:hover {
  border-color: var(--steel);
  background: #eef2f5;
}

.hero {
  position: relative;
  min-height: 690px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.92) 0%, rgba(8, 12, 17, 0.74) 37%, rgba(8, 12, 17, 0.16) 72%),
    var(--hero-image) center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-home {
  --hero-image: url("../hero-machine.png");
}

.hero-product {
  --hero-image: url("../product-detail.png");
}

.hero-process {
  --hero-image: url("../truing-process.png");
}

.hero-applications {
  --hero-image: url("../workshop-application.png");
}

.hero-distributor {
  --hero-image: url("../distributor-export.png");
}

.hero-demo {
  --hero-image: url("../demo-thumbnail.png");
}

.hero-contact {
  --hero-image: url("../hero-machine.png");
}

.page-hero {
  min-height: 460px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 12, 17, 0.92) 0%, rgba(8, 12, 17, 0.72) 44%, rgba(8, 12, 17, 0.18) 100%),
    var(--hero-image) center / cover no-repeat;
  display: flex;
  align-items: center;
}

.hero-inner,
.page-hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  padding: 108px 0 84px;
}

.page-hero-inner {
  padding: 90px 0 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e6edf5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-lead,
.page-lead {
  max-width: 670px;
  color: #e6edf5;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.hero-note,
.page-note {
  max-width: 670px;
  color: #bdc7d2;
  font-size: 15px;
  margin-bottom: 34px;
}

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

.proof-strip {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-item {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.proof-item span {
  display: block;
  color: #bdc7d2;
  font-size: 13px;
}

.section {
  padding: 88px 0;
}

.section.light {
  background: #ffffff;
}

.section.dark {
  background: var(--steel);
  color: #ffffff;
}

.section.alt {
  background: #eef2f5;
}

.section.compact {
  padding: 64px 0;
}

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

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.dark .section-kicker {
  color: #ffb0b2;
}

.section-head p,
.text-block p,
.copy p {
  color: var(--muted);
  font-size: 17px;
}

.dark .section-head p,
.dark .text-block p,
.dark .copy p {
  color: #d7dee6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 52px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #d9dee4;
}

.media-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-frame.tall img {
  aspect-ratio: 4 / 3;
}

.text-block {
  max-width: 590px;
}

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

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 32px;
}

.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #283340;
  font-size: 15px;
  font-weight: 700;
}

.check-mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.mechanism-list,
.stack-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.mechanism-item {
  padding-left: 18px;
  border-left: 3px solid var(--red);
}

.mechanism-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

.app-card,
.info-card,
.case-card {
  min-height: 188px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card span,
.info-card .number {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f5;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 18px;
}

.app-card p,
.info-card p,
.case-card p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 15px;
}

.benefit-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.benefit {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.benefit strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
  color: #ffffff;
}

.benefit span {
  display: block;
  color: #d7dee6;
  font-size: 14px;
}

.demo-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #141a21;
}

.demo-box img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  opacity: 0.86;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.76);
  background: rgba(197, 43, 46, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.play-button::before {
  content: "";
  display: block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #ffffff;
}

.demo-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.demo-caption strong {
  display: block;
  font-size: 22px;
}

.demo-caption span span {
  display: block;
  color: #d7dee6;
  font-size: 14px;
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: #fff7e8;
  color: #3f3321;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}

.dark .notice {
  background: rgba(183, 121, 31, 0.18);
  color: #fff1d8;
  border-left-color: #e4a642;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table th,
.spec-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 32%;
  color: var(--steel);
  background: #eef2f5;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

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

.step-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 16px;
}

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

.quote-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 48px;
  align-items: start;
  padding: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd3dc;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
}

.form-grid textarea {
  min-height: 116px;
  resize: vertical;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #344151;
  font-size: 13px;
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.contact-item {
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.cta-band {
  background: var(--steel-3);
  color: #ffffff;
  padding: 58px 0;
}

.cta-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-inner h2 {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-inner p {
  color: #d7dee6;
  margin-bottom: 0;
}

.footer {
  padding: 34px 0;
  background: #10161d;
  color: #cbd3dc;
  font-size: 14px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }

  .split,
  .split.reverse,
  .quote-panel {
    grid-template-columns: 1fr;
  }

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

  .benefit-band,
  .proof-strip,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-panel {
    padding: 28px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav {
    min-height: 64px;
  }

  .brand span,
  .nav-cta .btn-secondary {
    display: none;
  }

  .nav-cta .btn {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(8, 12, 17, 0.94) 0%, rgba(8, 12, 17, 0.8) 56%, rgba(8, 12, 17, 0.4) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .page-hero {
    min-height: 460px;
    background:
      linear-gradient(180deg, rgba(8, 12, 17, 0.94) 0%, rgba(8, 12, 17, 0.82) 58%, rgba(8, 12, 17, 0.44) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .hero-inner,
  .page-hero-inner {
    padding-top: 86px;
  }

  .hero-lead,
  .page-lead {
    font-size: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .proof-strip,
  .card-grid,
  .card-grid.two,
  .benefit-band,
  .bullet-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .demo-box img {
    aspect-ratio: 4 / 3;
  }

  .demo-caption {
    position: static;
    padding: 18px;
    display: grid;
  }

  .play-button {
    width: 64px;
    height: 64px;
    top: 42%;
  }

  .quote-panel {
    padding: 22px;
  }

  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    border-bottom: 0;
    padding-bottom: 8px;
  }
}
