/* ==========================================================================
   MAICHEN — Laser Cutting Solutions
   main.css
   Design tokens reverse-engineered from the reference site structure,
   rebuilt from scratch for 无锡迈宸机械科技有限公司.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --orange: #f1890a;
  --orange-600: #dc7a06;
  --orange-050: #fff6ea;
  --blue: #5faeff;
  --ink: #1a1a1a;
  --ink-2: #333333;
  --text: #666666;
  --muted: #808080;
  --line: #e6e9ee;
  --bg-light: #f3f5f7;
  --bg-soft: #f7fafa;
  --dark: #141414;
  --dark-2: #1e1e1e;
  --white: #ffffff;

  --container: 1360px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 6px 22px rgba(16, 24, 40, .07);
  --shadow: 0 18px 48px rgba(16, 24, 40, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 9rem;
  --header-h-scrolled: 6.6rem;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 62.5%;               /* 1rem = 10px */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);  /* fixed header must not cover anchors */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Urbanist", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.18; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

::selection { background: var(--orange); color: #fff; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-light { background: var(--bg-light); }
.bg-soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section heading block */
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.5rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.sec-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }

.sec-title { font-size: clamp(3rem, 4vw, 5.2rem); font-weight: 700; letter-spacing: -.02em; }
.sec-title em { font-style: normal; color: var(--orange); }
.sec-desc { margin-top: 2rem; font-size: 1.7rem; line-height: 1.8; color: var(--text); }

/* Buttons */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 5.2rem; padding: 0 3.2rem;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: 100px;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(241, 137, 10, .32); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: #fff; color: var(--ink); box-shadow: none; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); border-color: #d4dae2; }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }
.btn--sm { min-height: 4.4rem; padding: 0 2.2rem; font-size: 1.4rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
}
.link-arrow svg { width: 15px; height: 15px; color: var(--orange); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--orange); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  background: transparent;
  transition: height .35s var(--ease), background .35s var(--ease),
              box-shadow .35s var(--ease), color .35s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  opacity: 1; transition: opacity .35s var(--ease); pointer-events: none; z-index: -1;
}
.site-header.is-scrolled {
  height: var(--header-h-scrolled);
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(16, 24, 40, .06);
}
.site-header.is-scrolled::after { opacity: 0; }

.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); width: 100%; }

/* Backdrop for the mobile drawer. Declared here (outside the media query) so
   there is exactly one display rule to reason about; the drawer itself only
   exists below 1024px, so this never shows on desktop. */
.nav-scrim { display: none; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { display: block; height: 5.4rem; width: auto; transition: height .35s var(--ease); }
@media (max-width: 1024px) {
  .brand__logo { height: 3.8rem; }
  .is-scrolled .brand__logo { height: 3.4rem; }
}
@media (max-width: 420px) {
  .brand__logo { height: 3.2rem; }
  .is-scrolled .brand__logo { height: 3rem; }
}
.brand__logo--dark { display: none; }
.is-scrolled .brand__logo { height: 4.4rem; }
.is-scrolled .brand__logo--light { display: none; }
.is-scrolled .brand__logo--dark { display: block; }
.site-footer .brand__logo { height: 6rem; }
.brand__mark { width: 4.4rem; height: 4.4rem; flex: none; transition: width .35s var(--ease), height .35s var(--ease); }
.is-scrolled .brand__mark { width: 3.6rem; height: 3.6rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 2.4rem; font-weight: 800; letter-spacing: .12em; transition: font-size .35s var(--ease); }
.is-scrolled .brand__name { font-size: 2.1rem; }
.brand__sub { margin-top: 6px; font-size: 1.05rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 18px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 6px; font-size: 1.55rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px;
  background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--orange); }
.nav__caret { width: 10px; height: 10px; opacity: .7; transition: transform .25s var(--ease); }
.has-mega:hover .nav__caret { transform: rotate(180deg); }

.header-tools { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.header-phone span { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.header-phone strong { font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.header-cta { white-space: nowrap; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid currentColor; border-radius: 100px; opacity: .9; }
.lang-switch button { padding: 3px 9px; font-size: 1.2rem; font-weight: 700; border-radius: 100px; opacity: .7; transition: all .2s var(--ease); }
.lang-switch button.is-active { background: var(--orange); color: #fff; opacity: 1; }
.lang-switch button:hover { opacity: 1; }

/* Demo badge — delete this block and the .demo-badge element when going live */
.demo-badge {
  position: fixed; left: 18px; bottom: 20px; z-index: 850;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(20, 20, 20, .86); color: #fff;
  font-size: 1.2rem; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.demo-badge b { color: var(--orange); font-weight: 800; letter-spacing: .1em; }

.burger { display: none; width: 4.4rem; height: 4.4rem; align-items: center; justify-content: center; }
.burger span { position: relative; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
body.nav-open .burger span { background: transparent; }
body.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 12px);
  min-width: 560px; padding: 26px;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.mega__item { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background .2s var(--ease); }
.mega__item:hover { background: var(--orange-050); }
.mega__item b { display: block; font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.mega__item small { display: block; font-size: 1.2rem; color: var(--muted); line-height: 1.4; }
.mega__dot { width: 6px; height: 6px; margin-top: 8px; flex: none; border-radius: 50%; background: var(--orange); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #0b0f14; }
.hero__viewport { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14); transition: transform 7s linear;
}
.hero__slide.is-active .hero__bg img { transform: scale(1); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 16, .88) 0%, rgba(6, 10, 16, .55) 48%, rgba(6, 10, 16, .18) 100%),
    linear-gradient(0deg, rgba(6, 10, 16, .75) 0%, rgba(6, 10, 16, 0) 45%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); color: #fff;
}
.hero__content { max-width: 900px; }
.hero__power {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 2.4rem;
  padding: 7px 16px 7px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 100px;
  font-size: 1.3rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  backdrop-filter: blur(6px); background: rgba(255, 255, 255, .07);
}
.hero__power i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(241, 137, 10, .7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(241, 137, 10, .65); }
  70% { box-shadow: 0 0 0 12px rgba(241, 137, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 137, 10, 0); }
}
.hero__title {
  font-size: clamp(3.6rem, 6vw, 8rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em;
  background: linear-gradient(180deg, #ffffff 0%, #dceeff 42%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.hero__title--outline {
  background: none; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  margin-top: 2.2rem; font-size: clamp(1.7rem, 1.6vw, 2.1rem);
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
}
.hero__text { margin-top: 1.4rem; max-width: 560px; font-size: 1.75rem; color: rgba(255, 255, 255, .82); }
.hero__materials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 3.2rem; }
.hero__materials span {
  padding: 7px 16px; border-radius: 100px; font-size: 1.35rem; font-weight: 600;
  color: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 3.6rem; }

.hero__ui { position: absolute; left: 0; right: 0; bottom: 4.2rem; z-index: 3; }
.hero__ui-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hero__dots { display: flex; align-items: center; gap: 12px; }
.hero__dot {
  position: relative; width: 46px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, .28); overflow: hidden;
}
.hero__dot span { position: absolute; inset: 0; width: 0; background: #fff; }
.hero__dot.is-active span { animation: dotfill 7s linear forwards; }
@keyframes dotfill { from { width: 0; } to { width: 100%; } }
.hero__arrows { display: flex; gap: 10px; }
.hero__arrow {
  width: 5rem; height: 5rem; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.hero__arrow:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.04); }
.hero__arrow svg { width: 18px; height: 18px; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero__scroll i {
  width: 1px; height: 34px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), #fff);
  animation: scrollline 2s var(--ease) infinite;
}
@keyframes scrollline { 0% { transform: scaleY(.3); transform-origin: top; } 60%, 100% { transform: scaleY(1); transform-origin: top; } }

/* ---------- 6. Trust bar (thin strip under hero) ---------- */
.trustbar { background: var(--dark); color: rgba(255, 255, 255, .78); }
.trustbar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px;
  padding-block: 2.2rem;
}
.trustbar__item { display: flex; align-items: flex-start; gap: 10px; font-size: 1.4rem; line-height: 1.5; }
.trustbar__item svg { width: 18px; height: 18px; color: var(--orange); flex: none; margin-top: 2px; }

/* ---------- 7. Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: #0e1319; color: #fff; min-height: 480px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; isolation: isolate;
}
.industry-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .8s var(--ease);
}
.industry-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 20, .05) 0%, rgba(10, 14, 20, .55) 45%, rgba(10, 14, 20, .94) 100%);
  transition: opacity .5s var(--ease);
}
.industry-card:hover img { transform: scale(1.07); }
.industry-card__index { position: absolute; top: 26px; right: 26px; font-size: 1.3rem; font-weight: 700; letter-spacing: .12em; opacity: .6; }
.industry-card h3 { font-size: 2.6rem; color: #fff; }
.industry-card .industry-card__meta { margin-top: 1rem; font-size: 1.4rem; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.industry-card .industry-card__meta b { color: var(--orange); font-weight: 700; }
.industry-card__links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2rem; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.industry-card:hover .industry-card__links, .industry-card:focus-within .industry-card__links { opacity: 1; transform: none; }
.industry-card__links span { position: relative; font-size: 1.35rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 2px; }
.industry-card__links span + span::before {
  content: ""; position: absolute; left: -9px; top: 4px; width: 1px; height: 12px; background: rgba(255, 255, 255, .3);
}
.industry-card:hover .industry-card__links span { border-color: var(--orange); }

/* ---------- 8. Products ---------- */
.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 4vw, 60px); border-top: 1px solid var(--line); }
.product-row:first-of-type { border-top: 0; }
.product-row:nth-child(even) .product-row__media { order: 2; }
.product-row__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-light); }
.product-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.product-row__media--portrait img { aspect-ratio: 3 / 4; }
.split img.robot-photo { aspect-ratio: 3 / 4; }
.product-row:hover .product-row__media img { transform: scale(1.04); }
.product-row__tag {
  position: absolute; top: 18px; left: 18px; padding: 7px 14px; border-radius: 100px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.product-row__body { max-width: 560px; }
.product-row__eyebrow { font-size: 1.25rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.product-row h3 { margin-top: 1rem; font-size: clamp(2.6rem, 2.6vw, 3.6rem); }
.product-row__for { margin-top: 1rem; font-size: 1.6rem; font-weight: 600; color: var(--ink-2); }
.spec-list { margin-top: 2.4rem; display: grid; gap: 12px; }
.spec-list li { display: flex; gap: 12px; font-size: 1.5rem; color: var(--text); }
.spec-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--orange); }
.spec-list b { color: var(--ink); font-weight: 700; }
.product-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 3rem; }

/* ---------- 9. Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  position: relative; padding: 34px 30px 30px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__num {
  display: grid; place-items: center; width: 5.6rem; height: 5.6rem;
  border-radius: 16px; background: var(--orange-050); color: var(--orange);
  margin-bottom: 2.2rem; transition: background .35s var(--ease), color .35s var(--ease);
}
.service-card:hover .service-card__num { background: var(--orange); color: #fff; }
.service-card__num svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 2.1rem; }
.service-card__sub { margin-top: .6rem; font-size: 1.4rem; color: var(--orange); font-weight: 600; }
.service-card p { margin-top: 1.4rem; font-size: 1.45rem; line-height: 1.75; }
.service-card dl { margin-top: 2rem; display: grid; gap: 8px; font-size: 1.35rem; }
.service-card dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.service-card dt { color: var(--muted); }
.service-card dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }

/* ---------- 10. Cases ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  min-height: 420px; color: #fff; isolation: isolate; padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.case-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.case-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0) 30%, rgba(8, 12, 18, .88) 100%);
}
.case-card:hover img { transform: scale(1.06); }
.case-card__country { font-size: 3.4rem; font-weight: 800; color: #fff; line-height: 1; }
.case-card__type { margin-top: 10px; font-size: 1.35rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.case-card__rows { margin-top: 1.8rem; display: grid; gap: 6px; font-size: 1.35rem; color: rgba(255, 255, 255, .78); }
.case-card__rows span b { color: #fff; font-weight: 600; }
.case-card__link { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 700; color: #fff; }
.case-card:hover .case-card__link { color: var(--orange); }

/* ---------- 11. Strength ---------- */
.strength { position: relative; background: var(--dark); color: rgba(255, 255, 255, .75); overflow: hidden; }
.strength__bg { position: absolute; inset: 0; opacity: .32; }
.strength__bg img { width: 100%; height: 100%; object-fit: cover; }
.strength__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 50%, rgba(20, 20, 20, .96) 0%, rgba(20, 20, 20, .82) 45%, rgba(20, 20, 20, .55) 100%); }
.strength__inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.strength .sec-title { color: #fff; }
.strength p { color: rgba(255, 255, 255, .72); }
.strength__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 3.4rem; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; font-size: 1.5rem; }
.play-btn i {
  display: grid; place-items: center; width: 5.4rem; height: 5.4rem; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); transition: all .3s var(--ease);
}
.play-btn i svg { width: 16px; height: 16px; margin-left: 2px; }
.play-btn:hover i { background: var(--orange); border-color: var(--orange); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  padding: 26px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04); transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
/* fifth tile spans the full row so the grid never leaves a hole */
.stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat-card:last-child:nth-child(odd) .stat-card__value { display: inline-block; }
.stat-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(241, 137, 10, .5); transform: translateY(-3px); }
.stat-card__value { font-size: 3.4rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat-card__value span { color: var(--orange); }
.stat-card__label { margin-top: .9rem; font-size: 1.4rem; font-weight: 700; color: #fff; }
.stat-card__desc { margin-top: .5rem; font-size: 1.3rem; line-height: 1.6; color: rgba(255, 255, 255, .6); }

/* ---------- 12. Inquiry form ---------- */
.inquiry { background: var(--bg-light); }
.inquiry__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.inquiry__aside { position: sticky; top: calc(var(--header-h-scrolled) + 24px); }
.inquiry__points { margin-top: 3rem; display: grid; gap: 18px; }
.inquiry__points li { display: flex; gap: 14px; font-size: 1.5rem; }
.inquiry__points svg { width: 20px; height: 20px; flex: none; color: var(--orange); margin-top: 4px; }
.inquiry__contact { margin-top: 3.4rem; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.inquiry__contact dt { font-size: 1.2rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.inquiry__contact dd { margin: 4px 0 16px; font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.inquiry__contact dd:last-child { margin-bottom: 0; }

.form-card { padding: clamp(26px, 3vw, 44px); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 1.35rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--orange); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; font-size: 1.5rem; color: var(--ink);
  background: #fbfcfd; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241, 137, 10, .12);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #d92d20; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.form-note { font-size: 1.25rem; color: var(--muted); max-width: 340px; }
.form-status { margin-top: 14px; font-size: 1.4rem; font-weight: 600; }
.form-status.is-ok { color: #12805c; }
.form-status.is-err { color: #d92d20; }
.form-status code { padding: 1px 6px; border-radius: 4px; background: var(--bg-light); font-size: 1.3rem; }

/* ---------- 13. News ---------- */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 3vw, 48px); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__date { font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; color: var(--orange); }
.news-card h3 { margin-top: 1.4rem; font-size: 2rem; line-height: 1.45; }
.news-card p { margin-top: 1.2rem; font-size: 1.45rem; }
.news-card .link-arrow { margin-top: auto; padding-top: 2.2rem; }
.news-side { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.news-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 30px; border-radius: var(--radius); background: var(--bg-light);
  transition: background .3s var(--ease);
}
.news-cta:hover { background: #e9edf1; }
.news-cta b { display: block; font-size: 1.9rem; color: var(--ink); }
.news-cta small { font-size: 1.35rem; color: var(--muted); }
.news-cta i { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; background: #fff; color: var(--orange); flex: none; }
.news-cta i svg { width: 18px; height: 18px; }

/* ---------- 14. Partners ---------- */
.partners { border-top: 1px solid var(--line); }
.partners__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 4vw, 70px); align-items: center; }
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logo-wall span {
  display: grid; place-items: center; height: 8rem; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; color: #a4acb6;
  text-align: center; text-transform: uppercase; background: #fff;
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.logo-wall span:hover { color: var(--ink); border-color: #cfd6de; transform: translateY(-2px); }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .62); padding-top: clamp(56px, 6vw, 90px); }
.footer-top { display: grid; grid-template-columns: 1.15fr 2fr; gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(40px, 4vw, 64px); }
.footer-brand .brand { color: #fff; }
.footer-brand__desc { margin-top: 2.2rem; max-width: 380px; font-size: 1.45rem; line-height: 1.8; }
.footer-contact { margin-top: 2.6rem; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; font-size: 1.45rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--orange); }
.footer-contact a:hover { color: var(--orange); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h4 { font-size: 1.5rem; color: #fff; letter-spacing: .06em; margin-bottom: 1.6rem; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 1.4rem; color: rgba(255, 255, 255, .6); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 1.25rem; color: rgba(255, 255, 255, .42);
}
.footer-bottom a:hover { color: rgba(255, 255, 255, .8); }

/* ---------- 16. Floating UI ---------- */
.float-stack { position: fixed; right: 22px; bottom: 26px; z-index: 800; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.float-btn {
  display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(16, 24, 40, .18);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.float-btn:hover { transform: translateY(-3px); }
.float-btn svg { width: 22px; height: 22px; }
.float-btn--wa { background: #25d366; color: #fff; }
.float-btn--quote { background: var(--orange); color: #fff; }
.float-btn.is-hidden { opacity: 0; visibility: hidden; transform: translateY(10px); }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  padding: 24px; background: rgba(8, 12, 18, .62); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(680px, 100%); max-height: calc(100svh - 48px); overflow: auto;
  padding: clamp(26px, 3vw, 40px); background: #fff; border-radius: 18px;
  transform: translateY(16px) scale(.985); transition: transform .35s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 4rem; height: 4rem; display: grid; place-items: center; border-radius: 50%; background: var(--bg-light); }
.modal__close:hover { background: #e7ebef; }
.modal__close svg { width: 16px; height: 16px; }
.modal h3 { font-size: 2.6rem; }
.modal p.modal__desc { margin-top: 1rem; font-size: 1.45rem; }
.modal .form-grid { margin-top: 2.4rem; }

/* ---------- 17. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 80px) 0 70px;
  background: var(--dark); color: rgba(255, 255, 255, .75); overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 14, 20, .94) 0%,
    rgba(10, 14, 20, .80) 34%,
    rgba(10, 14, 20, .34) 66%,
    rgba(10, 14, 20, .18) 100%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3.4rem, 4.4vw, 6rem); color: #fff; }
.page-hero .crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.8rem; font-size: 1.3rem; color: rgba(255, 255, 255, .55); }
.page-hero .crumb a:hover { color: var(--orange); }

/* ---------- 18. Content helpers ---------- */
.prose h2 { font-size: clamp(2.4rem, 2.6vw, 3.4rem); margin-top: 3.4rem; }
.prose h3 { font-size: 2rem; margin-top: 2.4rem; }
.prose p { margin-top: 1.4rem; font-size: 1.6rem; line-height: 1.85; }
.prose ul { margin-top: 1.4rem; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 20px; font-size: 1.55rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.split > * { min-width: 0; }   /* let table-wrap scroll instead of stretching the grid */
.split img { border-radius: var(--radius); width: 100%; height: auto; object-fit: cover; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-strip div { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.stat-strip b { display: block; font-size: 3.6rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-strip b i { font-style: normal; color: var(--orange); }
.stat-strip span { display: block; margin-top: 8px; font-size: 1.35rem; color: var(--muted); }

.cta-band { position: relative; overflow: hidden; background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(36px, 5vw, 70px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(241, 137, 10, .32), transparent 70%);
}
.cta-band h2 { color: #fff; font-size: clamp(2.6rem, 3vw, 4rem); }
.cta-band p { margin-top: 1rem; color: rgba(255, 255, 255, .7); font-size: 1.6rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
table.spec { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 1.45rem; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.spec th { background: var(--bg-light); font-weight: 700; color: var(--ink); white-space: nowrap; }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { font-weight: 600; color: var(--ink-2); }
table.spec tr.spec-group th {
  background: #e8edf3; color: var(--ink); font-size: 1.3rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; white-space: normal;
}
/* Partner logo inside a split column: .split img would stretch it to full width. */
.split img.partner-logo { width: auto; height: 3.4rem; margin-top: 3rem; border-radius: 0; object-fit: contain; }
/* Tall product shots on a dark studio background: fit inside a sane box. */
.split img.contain-photo { height: clamp(420px, 56vw, 660px); object-fit: contain; background: #0b0b0d; }

/* Placeholder marker for to-be-filled info */
.tbd {
  display: inline-block; padding: 1px 8px; border-radius: 5px;
  background: #fff3cd; color: #8a6100; font-size: .92em; font-weight: 600;
  border: 1px dashed #e2c26a;
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1200px) {
  .nav__list { gap: 2px; }
  .header-phone { display: none; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 1024px) {
  .site-header { height: 7rem; }
  :root { --header-h: 7rem; }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); }
  /* The drawer lives inside <header>. Any backdrop-filter (also filter /
     transform / contain) on .site-header makes the header the containing
     block for its position:fixed children, which shrank the drawer to the
     header's own 70px height — that was the "collapsed menu looks broken"
     bug. The blur is dropped below 1024px and the drawer is positioned
     against the viewport instead. */
  .site-header { background: rgba(12, 16, 22, .96); backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(420px, 88vw); margin: 0;
    background: #fff; color: var(--ink);
    /* Clear the 70px header row, plus breathing room, before the first link. */
    padding: calc(var(--header-h) + 20px) 26px 32px;
    transform: translateX(102%); transition: transform .4s var(--ease);
    overflow-y: auto; overscroll-behavior: contain; z-index: 2;
    box-shadow: -20px 0 50px rgba(16, 24, 40, .16);
  }
  body.nav-open .nav { transform: none; }
  /* The drawer is position:fixed, so it paints above the static .brand and
     .header-tools that follow it in the DOM — which buried the burger, the
     only way out of the menu. Lifting both gives the drawer a proper header
     row: logo on the left, language toggle and close button on the right. */
  .brand, .header-tools { position: relative; z-index: 3; }

  /* Dimmed backdrop behind the drawer; clicking it closes the menu. Sits
     below the header (900) and above the page, so the drawer, which is a
     child of the header, still paints on top of it. Hidden above 1024px —
     see the .nav-scrim rule near the header block. */
  body.nav-open .nav-scrim {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 1;
    background: rgba(10, 14, 20, .48);
    animation: scrim-in .4s var(--ease) both;
  }
  body.nav-open { overflow: hidden; }
  @keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 0; font-size: 1.7rem; border-bottom: 1px solid var(--line); justify-content: space-between; }
  .nav__link::after { display: none; }
  .mega { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 10px 0 14px; display: none; }
  .has-mega.is-open .mega { display: block; }
  .header-tools .header-cta { display: none; }
  .burger { display: flex; }
  /* No backdrop-filter here — see the note above the .nav block. */
  .site-header { background: rgba(12, 16, 22, .96); }
  .site-header::after { opacity: 0; }
  .site-header.is-scrolled { background: #fff; }
  body.nav-open .site-header { background: #fff; color: var(--ink); }
  /* The drawer paints the header white, so the light logo would disappear. */
  body.nav-open .brand__logo--light { display: none; }
  body.nav-open .brand__logo--dark { display: block; }
  body.nav-open .site-header .brand { color: var(--ink); }

  .hero__content { max-width: 100%; }
  .product-row, .strength__inner, .inquiry__inner, .partners__inner, .split { grid-template-columns: 1fr; }
  .product-row:nth-child(even) .product-row__media { order: 0; }
  .product-row__body { max-width: none; }
  .inquiry__aside { position: static; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-side { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 1.5rem; }
  .hero { min-height: 560px; }
  .hero__title { font-size: clamp(3rem, 8.5vw, 4.6rem); }
  .hero__materials span { font-size: 1.2rem; padding: 6px 12px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .industry-grid, .service-grid, .case-grid, .stat-grid, .logo-wall, .form-grid, .news-side { grid-template-columns: 1fr; }
  .case-card { min-height: 340px; }
  .industry-card { min-height: 380px; }
  .industry-card__links { opacity: 1; transform: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .float-stack { right: 14px; bottom: 16px; }
  .float-btn { width: 4.8rem; height: 4.8rem; }
  .hero__ui { bottom: 2.4rem; }
  .hero__arrow { width: 4.4rem; height: 4.4rem; }
  .stat-strip { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}
