/* ==========================================================================
   UWS CNC Official Website — Precision Industrial Light Design System
   Strictly calibrated to UWS Brand VI V1.0 (brand-tokens.json)
   Primary Blue: #102B42 | Precision Cyan: #00AFA5 | Warm White: #F5F5EF
   Pure White: #FFFFFF   | Engineering Slate: #647580
   ========================================================================== */

:root {
  --navy: #102B42;
  --navy-deep: #0B1F30;
  --navy-hover: #183E5E;
  --cyan: #00AFA5;
  --cyan-dark: #008F87;
  --cyan-soft: rgba(0, 175, 165, 0.10);
  --white: #FFFFFF;
  --warm: #F5F5EF;
  --warm-dark: #EAEAE0;
  --slate: #647580;
  --slate-light: #8C9BA5;
  --slash: #E60012;
  --border: rgba(16, 43, 66, 0.11);
  --border-strong: rgba(16, 43, 66, 0.22);
  --shadow-sm: 0 2px 10px rgba(16, 43, 66, 0.04);
  --shadow-md: 0 12px 32px rgba(16, 43, 66, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 43, 66, 0.14);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: "Plus Jakarta Sans", "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

/* ---------- Utility & Architectural Elements ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--cyan);
  display: inline-block;
}

.section-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section-desc {
  margin: 0;
  font-size: 1.02rem;
  color: var(--slate);
  line-height: 1.68;
}

.slash-accent {
  color: var(--slash);
  font-weight: 800;
  margin-right: 2px;
}

/* 45-degree precision chamfer button echoing UWS VI geometry */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-primary:hover {
  background: var(--navy-hover);
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--cyan);
  color: var(--white);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-cyan:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: var(--warm);
}

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: transparent;
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--navy);
  background: var(--warm);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--border-strong);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-cn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.22s ease;
}

.main-nav a:hover {
  color: var(--navy);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

.portal-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.16s ease, background 0.16s ease;
}

.portal-link:hover {
  color: var(--navy);
  background: var(--warm);
}

.mobile-menu-btn {
  display: none;
  background: var(--warm);
  border: 1px solid var(--border);
  color: var(--navy);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Hero Section (DMG MORI / Mazak Architectural Split) ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: 620px;
}

.hero-content {
  padding: 64px 48px 56px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.35rem, 4.1vw, 3.65rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.hero-title .accent-word {
  color: var(--cyan-dark);
  position: relative;
  display: inline-block;
}

.hero-desc {
  margin: 0 0 32px;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--slate);
  max-width: 540px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.hero-stat-lbl {
  font-size: 0.74rem;
  color: var(--slate);
  margin-top: 3px;
  line-height: 1.3;
}

/* Right Architectural Machine Showcase Stage */
.hero-stage {
  position: relative;
  background-color: var(--warm);
  background-image:
    linear-gradient(to right, rgba(16, 43, 66, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 43, 66, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  border-left: 1px solid var(--border);
  padding: 28px 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Subtle top cyan precision rule */
.hero-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 3px;
  background: var(--cyan);
}

.stage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.stage-meta-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: right;
  backdrop-filter: blur(6px);
}

.stage-model-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.stage-model-sub {
  font-size: 0.74rem;
  color: var(--slate);
}

.stage-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  min-height: 340px;
}

.stage-visual img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(16, 43, 66, 0.16));
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stage-visual img.switching {
  opacity: 0;
  transform: scale(0.97);
}

.stage-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  z-index: 2;
}

.stage-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-tab {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-tab span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.75;
}

.stage-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.stage-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.stage-inspect-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}

.stage-inspect-btn:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- Ecosystem Strip ---------- */
.ecosystem-strip {
  background: var(--navy);
  color: var(--white);
  padding: 18px 0;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.62);
}

.strip-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.92);
}

.strip-logos span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.strip-logos span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* ---------- Product Lineup Center ---------- */
.section {
  padding: 88px 0;
}

.section-warm {
  background: var(--warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-tab {
  background: var(--warm);
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat-tab .cat-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-dark);
}

.cat-tab .cat-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(16, 43, 66, 0.08);
  padding: 1px 6px;
  border-radius: 99px;
}

.cat-tab:hover {
  border-color: var(--navy);
}

.cat-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.cat-tab.active .cat-code {
  color: var(--cyan);
}

.cat-tab.active .cat-count {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.cat-context-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
}

.cat-context-text {
  font-size: 0.9rem;
  color: var(--navy);
  flex: 1;
  min-width: 240px;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input, .select-input {
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  padding: 0 14px;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.16s ease;
}

.search-input {
  width: 290px;
}

.search-input:focus, .select-input:focus {
  border-color: var(--cyan);
}

.results-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 18px;
}

/* Machine Cards Grid */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.machine-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.machine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 175, 165, 0.55);
}

.card-stage {
  position: relative;
  height: 235px;
  background: var(--warm);
  background-image: radial-gradient(rgba(16, 43, 66, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.card-stage img {
  max-height: 196px;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(16, 43, 66, 0.13));
  transition: transform 0.3s ease;
}

.machine-card:hover .card-stage img {
  transform: scale(1.03);
}

.card-stage.photo-cover {
  padding: 0;
}

.card-stage.photo-cover img {
  width: 100%;
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  filter: none;
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.pill-series {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 3px;
}

.pill-badge {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  color: var(--cyan-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
}

.card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.card-model {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.015em;
}

.card-internal {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--slate);
}

.card-tagline {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
  min-height: 40px;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.spec-mini-lbl {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  font-weight: 600;
}

.spec-mini-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-footer .btn {
  flex: 1;
}

.btn-compare-active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

/* ---------- Full Series Reference Matrix ---------- */
.matrix-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.matrix-table th {
  text-align: left;
  padding: 15px 18px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matrix-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  vertical-align: top;
}

.matrix-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.matrix-table tbody tr:hover {
  background: rgba(0, 175, 165, 0.05);
}

.matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.matrix-series-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--white);
  background: var(--navy);
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.matrix-series-name {
  font-size: 0.78rem;
  color: var(--slate);
  font-weight: 600;
}

.matrix-models {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.84rem;
}

.matrix-codes {
  font-family: var(--font-mono);
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Industry Applications ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.industry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--cyan);
}

.industry-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.ind-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan-dark);
  margin-bottom: 10px;
}

.ind-title {
  margin: 0 0 12px;
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--navy);
}

.ind-desc {
  margin: 0 0 18px;
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.65;
}

.ind-models {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--warm);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ---------- Manufacturing & Quality Section ---------- */
.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.factory-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.factory-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.factory-photo img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.factory-photo.secondary img {
  height: 210px;
}

.factory-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(16, 43, 66, 0.88);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-left: 3px solid var(--cyan);
  border-radius: 2px;
}

.pillars-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pillar-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cyan-dark);
  background: var(--cyan-soft);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.pillar-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.pillar-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ---------- RFQ Inquiry Section ---------- */
.rfq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: start;
}

.rfq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 175, 165, 0.14);
}

.rfq-sidebar {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}

.rfq-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cyan);
}

.rfq-sidebar h3 {
  margin: 0 0 22px;
  font-size: 1.25rem;
  font-weight: 800;
}

.contact-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.contact-val {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.rfq-feedback {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 175, 165, 0.12);
  border: 1px solid var(--cyan);
  color: var(--navy);
  display: none;
}

.rfq-feedback.show {
  display: block;
}

.rfq-feedback h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  color: var(--cyan-dark);
}

.rfq-feedback p {
  margin: 0;
  font-size: 0.86rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
  line-height: 1.65;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.76);
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.54);
}

/* ---------- Modals (Machine Detail & Compare) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(11, 31, 48, 0.68);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--white);
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 26px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-wrap h3 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
}

.modal-subtitle {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  margin-top: 2px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.modal-body {
  padding: 26px;
  overflow-y: auto;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  margin-bottom: 26px;
  align-items: center;
}

.detail-visual {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.detail-visual img {
  max-height: 240px;
  object-fit: contain;
}

.detail-summary p {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 0.94rem;
}

.detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.detail-kpi {
  background: var(--warm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.detail-kpi-lbl {
  font-size: 0.7rem;
  color: var(--slate);
  text-transform: uppercase;
  font-weight: 700;
}

.detail-kpi-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}

.spec-table th,
.spec-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  text-align: left;
}

.spec-table th {
  width: 42%;
  background: var(--warm);
  color: var(--navy);
  font-weight: 700;
}

.spec-table td {
  font-family: var(--font-mono);
  color: var(--navy);
}

.options-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-chip {
  background: var(--warm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  padding: 7px 12px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid var(--border);
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Sticky Compare Tray */
.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  z-index: 120;
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(0, 175, 165, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: calc(100vw - 32px);
}

.compare-tray.visible {
  transform: translateX(-50%) translateY(0);
}

.compare-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-pill button {
  border: none;
  background: none;
  color: var(--cyan);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.cmp-table th, .cmp-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  font-size: 0.84rem;
  vertical-align: top;
}

.cmp-table thead th {
  background: var(--warm);
  color: var(--navy);
  text-align: center;
}

.cmp-table tbody th {
  background: var(--warm);
  text-align: left;
  width: 22%;
  color: var(--slate);
}

.cmp-img {
  height: 90px;
  margin: 0 auto 8px;
  object-fit: contain;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 20px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer a {
  font-weight: 700;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 48px 0 36px;
  }
  .hero-stage {
    border-left: none;
    border-top: 1px solid var(--border);
    margin: 0 -32px;
    padding: 28px 32px;
  }
  .machines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .factory-layout,
  .rfq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .main-nav,
  .portal-link,
  .brand-divider,
  .brand-meta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-cta {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industries-grid,
  .machines-grid,
  .detail-top,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 20px;
  }
  .hero-stage {
    margin: 0 -20px;
    padding: 24px 20px;
  }
  .search-input {
    width: 100%;
  }
  .section {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
