/* ==========================================================================
   CNC Global v3.2 Design System — Bright Industrial Factory Direct
   Palette: Crisp Pure White (#FFFFFF) · Light Industrial Gray (#F6F7F9)
            Neutral Charcoal (#16191F) · Precision Industrial Red (#C8232C)
   Fonts:   Self-hosted Plus Jakarta Sans, Inter, JetBrains Mono (zero CDN)
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Neutral Charcoal Dark Surfaces (strictly neutral — zero gloomy blue cast) */
  --surface-charcoal: #16191F;
  --surface-charcoal-2: #1F242D;
  --surface-charcoal-3: #2A303C;
  --border-dark: #2E3440;
  --border-dark-strong: #3E4656;

  /* Bright Crisp Light Surfaces (80%+ of visual canvas) */
  --surface-white: #FFFFFF;
  --surface-light: #F6F7F9;
  --surface-light-2: #ECEEF2;
  --border-light: #E2E5EC;
  --border-light-strong: #CDD2DC;

  /* Typography */
  --text-primary: #14171C;
  --text-secondary: #4B5260;
  --text-muted: #6C7484;
  --text-on-dark: #F8F9FA;
  --text-on-dark-muted: #C2C8D4;

  /* Brand & Action Accent — Precision Industrial Crimson Red */
  --brand-red: #C8232C;
  --brand-red-dark: #A31A22;
  --brand-red-light: #E0353F;
  --brand-tint: #FDF2F2;
  --brand-tint-border: #F5C2C6;

  /* Status & TBD */
  --tbd-bg: #FEF3C7;
  --tbd-text: #78350F;
  --tbd-border: #F59E0B;

  /* Typography families */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Elevation */
  --maxw: 1220px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(20, 23, 28, 0.04), 0 6px 20px rgba(20, 23, 28, 0.05);
  --shadow-hover: 0 6px 16px rgba(20, 23, 28, 0.08), 0 16px 34px rgba(20, 23, 28, 0.1);
  --shadow-dark: 0 18px 44px rgba(0, 0, 0, 0.34);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-white);
  line-height: 1.62;
  font-size: 16px;
  overflow-x: clip;
}
.grid > *, .split > *, .detail > *, .hero .container > *, .model-grid > *, .contact-layout > *, .home-faq-rfq > * { min-width: 0; }

img { max-width: 100%; display: block; }
a { color: var(--brand-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-red-dark); }
code, .mono { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 0.55em;
  color: var(--text-primary);
  letter-spacing: -0.024em;
}
h1 { font-size: clamp(2.15rem, 4.3vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.28rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.014em; }
p { margin: 0 0 1em; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.compact { padding: 56px 0; }
.section.alt { background: var(--surface-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section.dark {
  background: var(--surface-charcoal);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.section.dark h2, .section.dark h3, .section.dark h4 { color: #FFFFFF; }
.section.dark p { color: var(--text-on-dark-muted); }

/* Eyebrow with crisp crimson engineering bar */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2.5px;
  background: var(--brand-red);
  display: inline-block;
  flex-shrink: 0;
}
.hero .eyebrow, .section.dark .eyebrow { color: #FF7A80; }
.hero .eyebrow::before, .section.dark .eyebrow::before { background: var(--brand-red-light); }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.08rem; line-height: 1.65; color: var(--text-secondary); }
.section.dark .lead, .hero .lead { color: #E2E6EE; }

/* Buttons — High-Contrast Direct Industrial CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(200, 35, 44, 0.28);
}
.btn-primary:hover {
  background: var(--brand-red-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 35, 44, 0.36);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
}
.btn-ghost:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--text-primary);
}
.btn-outline {
  background: var(--surface-white);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: #FFFFFF;
}
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* TBD engineering highlight */
.tbd {
  background: var(--tbd-bg);
  color: var(--tbd-text);
  border-bottom: 1.5px dashed var(--tbd-border);
  border-radius: 2px;
  padding: 0 5px;
  font-weight: 600;
}
.hero .tbd, .section.dark .tbd, .footer .tbd, .topbar .tbd {
  background: rgba(245, 158, 11, 0.24);
  color: #FDE68A;
  border-bottom-color: rgba(253, 230, 138, 0.75);
}

/* Draft banner (dismissible) */
.draft-bar {
  background: #FFFBEB;
  color: #78350F;
  border-bottom: 1px solid #FDE68A;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}
.draft-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.draft-bar strong { color: #92400E; }
.draft-close {
  background: #FFFFFF;
  border: 1px solid #F59E0B;
  color: #78350F;
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.draft-close:hover { background: #FEF3C7; }

/* Utility Topbar — Clean Light-Steel / Charcoal Strip */
.topbar {
  background: var(--surface-charcoal);
  color: #D4D9E2;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red-light); display: inline-block; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 0.78rem; }
.topbar a { color: #F1F3F6; text-decoration: none; }
.topbar a:hover { color: #FFFFFF; text-decoration: underline; }

/* Sticky Crisp White Header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 6px rgba(20, 23, 28, 0.04);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-primary); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.26rem; letter-spacing: -0.02em; line-height: 1; }
.logo-accent { color: #C8232C; }
.logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a.nl {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a.nl:hover, .nav a.nl.active { color: var(--brand-red); background: var(--brand-tint); }
.nav .sub {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface-white);
  min-width: 280px;
  list-style: none;
  padding: 8px;
  margin: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
}
.nav .sub a:hover { background: var(--surface-light); color: var(--brand-red); }
.nav .sub .sub-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
}
.nav .sub .sub-in { background: var(--brand-tint); color: var(--brand-red-dark); }
.nav .sub .sub-net { background: var(--surface-light-2); color: var(--text-secondary); }
.nav .btn { margin-left: 10px; padding: 10px 18px; font-size: 0.88rem; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   HERO — Live Muted Looping CNC Video + Crisp High-Contrast Industrial Copy
   ========================================================================== */
.hero {
  position: relative;
  background: var(--surface-charcoal);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-red);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(16, 19, 24, 0.88) 0%, rgba(16, 19, 24, 0.68) 48%, rgba(16, 19, 24, 0.34) 100%),
    linear-gradient(180deg, rgba(16, 19, 24, 0.18) 0%, rgba(16, 19, 24, 0.62) 100%);
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
  padding-top: 86px;
  padding-bottom: 86px;
}
.hero h1 { color: #FFFFFF; margin-bottom: 20px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32); }
.hero .lead { max-width: 600px; font-size: 1.08rem; color: #EFF2F7; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 28px; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #F3F5F8;
  font-size: 0.9rem;
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-red-light);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Right-hand Crisp White Engineering Spec Card inside Hero (bright & immediately readable!) */
.hero-panel {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 26px;
  color: var(--text-primary);
  box-shadow: var(--shadow-dark);
}
.hero-panel .tbd {
  background: var(--tbd-bg);
  color: var(--tbd-text);
  border-bottom-color: var(--tbd-border);
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.hero-panel-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.hero-panel-badge {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--brand-tint);
  color: var(--brand-red-dark);
  border: 1px solid var(--brand-tint-border);
}
.spec-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.88rem;
}
.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row dt { color: var(--text-secondary); font-size: 0.82rem; flex-shrink: 0; }
.spec-row dd { margin: 0; color: var(--text-primary); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; text-align: right; }
.cad-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cad-badges span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--surface-light);
  border: 1px solid var(--border-light-strong);
  color: var(--text-primary);
}
.hero-panel .btn { width: 100%; }
.hero-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

/* Inner Page Hero — BRIGHT, Clean Architectural Light Header (zero gloom!) */
.page-hero {
  position: relative;
  background: var(--surface-light);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 23, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.page-hero .container { position: relative; padding-top: 56px; padding-bottom: 52px; }
.page-hero h1 { color: var(--text-primary); margin-bottom: 12px; }
.page-hero .lead { max-width: 740px; color: var(--text-secondary); }
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--brand-red); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   MEDIA FRAMES — Clean, Bright, Unobstructed Real Industrial Photography
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-light-2);
  aspect-ratio: 16 / 10;
}
.media-frame.r43 { aspect-ratio: 4 / 3; }
.media-frame.r169 { aspect-ratio: 16 / 9; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
a.card:hover .media-frame img, .detail:hover .media-frame img { transform: scale(1.03); }

/* ==========================================================================
   GRIDS, CARDS & CAPABILITY HIERARCHY
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover {
  border-color: var(--brand-red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 14px; }
.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}
.card .more {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.tag-in { background: var(--brand-tint); color: var(--brand-red-dark); border: 1px solid var(--brand-tint-border); }
.tag-net { background: var(--surface-light-2); color: var(--text-secondary); border: 1px solid var(--border-light-strong); }
.tag-accent { background: var(--surface-charcoal); color: #FFFFFF; }

.icon { width: 34px; height: 34px; color: var(--brand-red); margin-bottom: 14px; flex-shrink: 0; }
.cap-secondary-label {
  margin: 34px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cap-secondary-label::after { content: ""; height: 1px; background: var(--border-light); flex: 1; }

/* ==========================================================================
   US + NINGBO OPERATING MODEL BAND
   ========================================================================== */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.model-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.model-card.is-accent { border-top-color: var(--brand-red); }
.model-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.model-card h3 { margin-bottom: 10px; }
.model-card p { font-size: 0.92rem; }

/* ==========================================================================
   STATS STRIP — Bright White Architectural KPI Bar (Zero Heavy Black Slab)
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.stat span { display: block; color: var(--text-secondary); font-size: 0.86rem; }

/* ==========================================================================
   PART GALLERY — Crisp White/Charcoal/Red Engineering Drawing Schematics
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-tab {
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--brand-red); color: var(--brand-red); }
.filter-tab.active { background: var(--brand-red); border-color: var(--brand-red); color: #FFFFFF; }

.gallery-notice {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--brand-red);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.gallery-notice strong { color: var(--text-primary); }

.cad-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #FAFAFB 0%, #F1F3F6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.cad-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 23, 28, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 23, 28, 0.055) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cad-frame svg {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 170px;
  height: auto;
  color: #1F242D;
}
.cad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-light-strong);
  color: #3E4656;
}
.cad-code {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #7D8594;
}
.part-card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

/* Honest placeholder for real Ningbo workshop photos */
.facility-placeholder {
  background: var(--surface-white);
  border: 1.5px dashed var(--border-light-strong);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  gap: 8px;
}
.facility-placeholder strong { color: var(--text-primary); font-family: var(--font-display); font-size: 0.98rem; }
.facility-placeholder span { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   STEPS, CHECKLISTS, PILLS, SPEC TABLES, FAQ & HOME QUICK RFQ SPLIT
   ========================================================================== */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative;
  padding: 24px 20px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-red);
  background: var(--brand-tint);
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.step p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 0.55em;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--brand-red);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.2-1.2 2.4 2.4 6-6L13.4 4.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.2-1.2 2.4 2.4 6-6L13.4 4.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  padding: 9px 15px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}
.pill-list li.is-tbd-pill { border-style: dashed; border-color: var(--tbd-border); background: #FFFBEB; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
}
table.spec th, table.spec td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
table.spec th {
  background: var(--surface-light);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 30%;
}
table.spec td { color: var(--text-secondary); }

.faq details {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 20px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--brand-red); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--brand-red);
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-secondary); margin: 0 0 16px; font-size: 0.92rem; }

/* Home Bottom Split: FAQ + Quick RFQ Card */
.home-faq-rfq {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}
.quick-rfq-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 30px;
  box-shadow: var(--shadow-hover);
}
.quick-rfq-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.quick-rfq-card > p { font-size: 0.92rem; margin-bottom: 20px; }

/* Detail alternating rows */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 58px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 96px;
}
.detail:last-child { border-bottom: 0; }
.detail.rev > .detail-media { order: 2; }
.detail-media { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); }

/* CTA Band */
.cta-band {
  background: var(--surface-charcoal);
  border-left: 4px solid var(--brand-red);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: 8px; }
.cta-band p { color: var(--text-on-dark-muted); max-width: 620px; }

/* ==========================================================================
   RFQ FORM & DRAG-AND-DROP CAD UPLOAD
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
form.rfq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.rfq .full { grid-column: 1 / -1; }
form.rfq label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}
form.rfq input[type="text"],
form.rfq input[type="email"],
form.rfq input[type="date"],
form.rfq select,
form.rfq textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-xs);
  font: inherit;
  font-size: 0.93rem;
  color: var(--text-primary);
  background: var(--surface-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.rfq input:focus, form.rfq select:focus, form.rfq textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(200, 35, 44, 0.13);
}
form.rfq textarea { min-height: 112px; resize: vertical; }
form.rfq.compact textarea { min-height: 88px; }
form.rfq .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.dropzone {
  position: relative;
  border: 1.5px dashed var(--border-light-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-light);
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-red);
  background: var(--brand-tint);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone-title { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--text-primary); margin-bottom: 4px; }
.dropzone-sub { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); }

.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.file-chip-name { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-size { color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.file-chip-remove {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.file-chip-remove:hover { color: var(--brand-red); }

.form-status {
  padding: 13px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.form-status.is-info { background: var(--brand-tint); border-color: var(--brand-tint-border); color: var(--brand-red-dark); }
.form-status.is-warn { background: var(--tbd-bg); border-color: var(--tbd-border); color: var(--tbd-text); }

.contact-box {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.contact-box h3 { margin-bottom: 14px; }
.contact-box dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 16px;
}
.contact-box dd { margin: 4px 0 0; color: var(--text-primary); font-size: 0.92rem; }
.contact-box .divider { border: 0; border-top: 1px solid var(--border-light); margin: 20px 0; }

/* Thank-you, Privacy & Credits prose */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.9em; font-size: 1.35rem; scroll-margin-top: 96px; }
.prose ul { padding-left: 20px; color: var(--text-secondary); }
.prose li { margin-bottom: 8px; }
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 14px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
}
.credits-table th, .credits-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.credits-table th {
  background: var(--surface-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.thanks-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.post-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   RESTRAINED FLOATING QUICK-CONNECT DOCK (Non-intrusive, zero popups)
   ========================================================================== */
.float-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  box-shadow: -4px 8px 24px rgba(20, 23, 28, 0.12);
  overflow: hidden;
}
.float-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  padding: 13px 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease, color 0.15s ease;
}
.float-dock a:last-child { border-bottom: 0; }
.float-dock a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.float-dock a:hover { background: var(--surface-light); color: var(--brand-red); }
.float-dock a.dock-primary { background: var(--brand-red); color: #FFFFFF; border-bottom-color: var(--brand-red-dark); }
.float-dock a.dock-primary:hover { background: var(--brand-red-dark); color: #FFFFFF; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--surface-charcoal);
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  border-top: 3px solid var(--brand-red);
}
.footer .container {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: 38px;
  padding-top: 64px;
  padding-bottom: 44px;
}
.footer h4 {
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: #DCE0E8; text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer .logo { color: #FFFFFF; margin-bottom: 14px; }
.footer .logo-accent { color: #E0353F; }
.footer .logo-text small { color: #9DA4B2; }
.footer-entity {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #A6ADBC;
}
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--surface-charcoal-2);
  border: 1px solid var(--border-dark-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social a:hover { background: var(--brand-red); border-color: var(--brand-red); }
.social svg { width: 17px; height: 17px; fill: #DCE0E8; }
.social a:hover svg { fill: #FFFFFF; }

.copyright {
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
  font-size: 0.8rem;
  color: #9DA4B2;
}
.copyright .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0;
  padding-bottom: 0;
}
.copyright button.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #DCE0E8;
  font: inherit;
  cursor: pointer;
}
.copyright button.link-btn:hover { color: #FFFFFF; text-decoration: underline; }

/* ==========================================================================
   UNIFIED COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 440px;
  background: var(--surface-charcoal);
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark-strong);
  border-top: 3px solid var(--brand-red);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-dark);
  font-size: 0.86rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h4 { color: #FFFFFF; font-size: 0.94rem; margin-bottom: 6px; }
.cookie-banner p { color: var(--text-on-dark-muted); font-size: 0.82rem; margin-bottom: 14px; }
.cookie-banner a { color: #FF8A90; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn {
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-dark-strong);
  background: var(--surface-charcoal-2);
  color: #E8ECF2;
}
.cookie-btn:hover { background: var(--surface-charcoal-3); }
.cookie-btn.primary { background: var(--brand-red); border-color: var(--brand-red); color: #FFFFFF; }
.cookie-btn.primary:hover { background: var(--brand-red-dark); }
.cookie-prefs {
  margin: 12px 0 14px;
  padding: 12px;
  background: var(--surface-charcoal-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xs);
}
.cookie-prefs label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #E8ECF2;
  margin-bottom: 8px;
  cursor: pointer;
}
.cookie-prefs label:last-child { margin-bottom: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1060px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 22px;
    max-height: calc(100vh - 74px);
    overflow: auto;
    box-shadow: var(--shadow-hover);
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 2px 0 6px 12px; }
  .nav .btn { margin: 12px 0 0; }
  .hero .container, .split, .detail, .model-grid, .contact-layout, .home-faq-rfq { grid-template-columns: 1fr; gap: 32px; }
  .detail.rev > .detail-media { order: 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  form.rfq { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 32px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .float-dock {
    top: auto;
    bottom: 18px;
    right: 16px;
    transform: none;
    flex-direction: row;
    border-right: 1px solid var(--border-light-strong);
    border-radius: var(--radius-sm);
  }
  .float-dock a { width: auto; padding: 10px 14px; flex-direction: row; gap: 6px; border-bottom: 0; border-right: 1px solid var(--border-light); }
  .float-dock a:last-child { border-right: 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .g4, .g5, .steps, .stats, .footer .container, .hero-points { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .hero .container { padding-top: 52px; padding-bottom: 56px; }
  .hero h1 { font-size: 1.9rem; overflow-wrap: break-word; }
  .hero-panel { padding: 20px; }
  .spec-row { flex-wrap: wrap; gap: 4px 12px; }
  .spec-row dd { text-align: left; }
  .btn { white-space: normal; text-align: center; }
  .draft-bar .container { font-size: 0.72rem; }
}

@media print {
  .draft-bar, .cookie-banner, .menu-toggle, .float-dock { display: none !important; }
  .header { position: static; }
  .section, .hero, .page-hero { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
