﻿:root {
  color-scheme: light;
  --ink: #0d1724;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --paper: #f4f7fa;
  --white: #ffffff;
  --navy: #07111f;
  --navy-soft: #0d2035;
  --blue: #2f5f98;
  --green: #178564;
  --amber: #b9832d;
  --cyan: #7bc7d6;
  --shadow: 0 22px 60px rgba(13, 23, 36, 0.11);
  --shadow-soft: 0 12px 34px rgba(13, 23, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fafc 0, var(--paper) 620px),
    var(--paper);
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--white);
  background: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.top-strip,
.nav,
.hero,
.trust-bar,
.section,
.split-section,
.inquiry,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-strip {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 12px;
  color: #cbd7e5;
}

.top-strip span {
  margin-right: auto;
  color: #b9dce4;
  font-weight: 700;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 21px;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: #d7e0ea;
}

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

.nav-cta,
.primary,
.secondary,
.model-search button,
.inquiry-form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-cta:hover,
.primary:hover,
.secondary:hover,
.model-search button:hover,
.inquiry-form button:hover {
  transform: translateY(-1px);
}

.nav-cta,
.primary,
.model-search button,
.inquiry-form button {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 26px rgba(23, 133, 100, 0.2);
}

.nav-cta {
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1.1fr);
  align-items: center;
  gap: 64px;
  padding: 66px 0 54px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 106px 0 auto;
  height: min(760px, calc(100vh - 40px));
  z-index: -1;
  background:
    radial-gradient(circle at 74% 24%, rgba(47, 95, 152, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(7, 17, 31, 0.98), rgba(9, 28, 48, 0.91)),
    url("../images/solutions/cnc-automation.jpg") center/cover;
}

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

.hero h1,
.section h2,
.split-section h2,
.inquiry h2 {
  margin: 0;
  line-height: 1.04;
}

.hero h1 {
  max-width: 690px;
  color: var(--white);
  font-size: clamp(52px, 5vw, 78px);
  letter-spacing: -0.02em;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dce6f0;
  font-size: 19px;
  line-height: 1.75;
}

.model-search {
  width: min(620px, 100%);
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 134px;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.model-search input,
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.model-search input {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.98);
}

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

.primary,
.secondary {
  padding: 0 22px;
}

.secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(13, 23, 36, 0.08);
  box-shadow: 0 12px 26px rgba(13, 23, 36, 0.08);
}

.compact {
  margin-top: 22px;
}

.hero-media {
  padding: 12px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #edf3f8;
  border-radius: 8px;
}

.media-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #edf3f8;
  border-radius: 8px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(13, 23, 36, 0.08);
  border: 1px solid rgba(13, 23, 36, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transform: translateY(-18px);
  box-shadow: var(--shadow-soft);
}

.trust-bar div {
  min-height: 106px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, 0.94);
}

.trust-bar strong,
.trust-bar span {
  display: block;
}

.trust-bar strong {
  margin-bottom: 6px;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.trust-bar span {
  color: var(--muted);
}

.section,
.split-section,
.inquiry {
  padding: 82px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section h2,
.split-section h2,
.inquiry h2 {
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.015em;
}

.section-head p:not(.eyebrow),
.split-section p:not(.eyebrow),
.inquiry p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  font-size: 17px;
}

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

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 95, 152, 0.28);
  box-shadow: 0 20px 44px rgba(13, 23, 36, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: linear-gradient(180deg, #f9fbfd, #eef3f7);
}

.product-card div {
  padding: 24px;
}

.product-card span {
  color: var(--amber);
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 9px 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.product-card p {
  min-height: 104px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.product-card a {
  font-weight: 800;
  color: var(--blue);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(520px, 1fr);
  gap: 46px;
  align-items: start;
  border-top: 1px solid rgba(13, 23, 36, 0.08);
  border-bottom: 1px solid rgba(13, 23, 36, 0.08);
}

.replacement-compare {
  display: grid;
  gap: 14px;
}

.replace-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, transform 180ms ease;
}

.replace-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 95, 152, 0.32);
}

.replace-model {
  min-width: 0;
}

.replace-model img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f3f6f9);
}

.replace-model span,
.replace-model strong,
.replace-model small {
  display: block;
}

.replace-model span {
  margin-top: 10px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.replace-model strong {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.25;
}

.replace-model small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.recommended span {
  color: var(--green);
}

.replace-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #1f486f);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

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

.solution {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: var(--shadow-soft);
}

.solution img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 180ms ease;
}

.solution:hover img {
  transform: scale(1.04);
}

.solution span {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0), rgba(7, 17, 31, 0.9));
  font-weight: 900;
  font-size: 20px;
}

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 56px;
  align-items: start;
}

.inquiry-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.inquiry-form textarea {
  min-height: 118px;
  padding-top: 12px;
  resize: vertical;
}

.footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span {
  margin-right: auto;
  color: var(--ink);
  font-weight: 900;
}

.blog-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 52px;
}

.blog-hero h1,
.article-head h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.blog-hero p:not(.eyebrow),
.article-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.blog-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 76px;
}

.featured-post a {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.featured-post img,
.blog-card img,
.article-compare img,
.article-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.featured-post span,
.blog-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-post h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
}

.featured-post p,
.blog-card p,
.article-block p {
  color: var(--muted);
  line-height: 1.7;
}

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

.blog-card {
  display: block;
  min-height: 100%;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(13, 23, 36, 0.05);
  transition: transform 180ms ease, border-color 180ms ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 95, 152, 0.3);
}

.blog-card h3 {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.2;
}

.article-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.article {
  padding: 82px 0 92px;
}

.article-head {
  margin-bottom: 32px;
}

.article-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.article-compare figure {
  margin: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-compare figcaption {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 850;
}

.article-block {
  margin-top: 28px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(13, 23, 36, 0.05);
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

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

.spec-table div {
  display: grid;
  grid-template-columns: 0.75fr 1.35fr 1.3fr;
}

.spec-table div + div {
  border-top: 1px solid var(--line);
}

.spec-table strong,
.spec-table span {
  padding: 14px;
  line-height: 1.45;
}

.spec-table strong {
  background: #eef4fb;
}

.spec-table span + span,
.spec-table strong + strong {
  border-left: 1px solid var(--line);
}

.article-media {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.article-media img {
  object-fit: cover;
}

.quote-panel {
  border-left: 5px solid var(--green);
}

.about-hero,
.company-facts,
.about-section,
.process-section,
.proof-section,
.about-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: 58px;
  align-items: center;
  padding: 86px 0 58px;
}

.about-copy h1,
.about-cta h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.about-copy p:not(.eyebrow),
.about-cta p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.about-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dark-text {
  color: var(--ink);
}

.about-visual {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.about-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.company-facts div {
  min-height: 128px;
  padding: 22px;
  background: var(--white);
}

.company-facts span,
.company-facts strong {
  display: block;
}

.company-facts span {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.company-facts strong {
  line-height: 1.4;
}

.about-section,
.process-section,
.proof-section,
.about-cta {
  padding: 66px 0;
}

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

.trust-grid article {
  min-height: 260px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(13, 23, 36, 0.05);
}

.trust-grid span {
  color: var(--amber);
  font-weight: 900;
}

.trust-grid h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.trust-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

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

.process-list li {
  position: relative;
  min-height: 92px;
  padding: 20px 20px 20px 74px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: process;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 6px;
  font-size: 19px;
}

.process-list span {
  color: var(--muted);
  line-height: 1.55;
}

.proof-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.proof-card img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-card h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.proof-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.about-cta {
  text-align: center;
  border-top: 1px solid var(--line);
}

.about-cta h2 {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding-bottom: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero::before {
    height: 980px;
  }

  .trust-bar,
  .product-grid,
  .solution-grid,
  .inquiry {
    grid-template-columns: 1fr 1fr;
  }

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

  .featured-post a,
  .blog-grid,
  .article-media,
  .about-hero,
  .process-section,
  .proof-card {
    grid-template-columns: 1fr;
  }

  .company-facts,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .top-strip,
  .nav,
  .hero,
  .trust-bar,
  .section,
  .split-section,
  .inquiry,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .top-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .top-strip span {
    width: 100%;
  }

  .brand {
    font-size: 19px;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .model-search,
  .trust-bar,
  .product-grid,
  .solution-grid,
  .split-section,
  .inquiry {
    grid-template-columns: 1fr;
  }

  .replace-card {
    grid-template-columns: 1fr;
  }

  .replace-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    transform: none;
    margin-top: 18px;
  }

  .section,
  .split-section,
  .inquiry {
    padding: 48px 0;
  }

  .solution {
    min-height: 220px;
  }

  .footer {
    flex-wrap: wrap;
    padding: 24px 0;
  }

  .footer span {
    width: 100%;
  }

  .blog-hero,
  .blog-layout,
  .article-shell,
  .about-hero,
  .company-facts,
  .about-section,
  .process-section,
  .proof-section,
  .about-cta {
    width: min(100% - 28px, 1180px);
  }

  .featured-post a,
  .article-block,
  .article-compare figure {
    padding: 18px;
  }

  .article-compare {
    grid-template-columns: 1fr;
  }

  .article-compare .replace-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .spec-table {
    gap: 0;
    border: 0;
    overflow: visible;
  }

  .spec-table div {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
  }

  .spec-table span + span,
  .spec-table strong + strong {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .company-facts,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .process-list li {
    padding-left: 20px;
    padding-top: 72px;
  }
}

