/* ════════════════════════════════════════════════════
   XYB Design System — Inspired by moxa.com.cn
   ──────────────────────────────────────────────────── */
:root {
  /* ─── Brand colors ─── */
  --accent: #008787;            /* MOXA teal — primary */
  --accent-dark: #006666;
  --accent-light: #e6f4f4;
  --accent-glow: rgba(62, 233, 203, 0.35);  /* focus ring */

  /* Secondary accent */
  --cta: #fa943e;               /* MOXA orange — CTA */
  --cta-dark: #e07a1e;
  --warn: #e26c6c;
  --bright-orange: #ff8000;

  /* ─── Backgrounds ─── */
  --bg: #ffffff;
  --bg-alt: #f4f4f4;            /* main-section--gray */
  --bg-blue-gray: #e2e7ea;      /* main-section--blue-gray */
  --bg-soft: #fcfcfc;           /* nav */
  --bg-light: #eaeaea;
  --bg-dark: #202020;           /* footer / utility */
  --bg-deep: #000000;           /* hero */

  /* ─── Text colors ─── */
  --text: #202020;              /* primary */
  --text-2: #484848;            /* tertiary */
  --text-3: #717171;            /* secondary */
  --text-4: #858585;
  --text-5: #afb3ba;            /* lightest */
  --text-on-dark: #ffffff;
  --text-on-dark-2: #b8c5d4;

  /* ─── Borders ─── */
  --border: #e3e7ed;
  --border-light: #eef1f5;
  --border-strong: #d8dde3;

  /* ─── Shadows (4 levels) ─── */
  --shadow-border: 0 0 0 1px rgba(32, 32, 32, 0.08);
  --shadow-card: 0 1px 3px rgba(32,32,32,0.06);
  --shadow-card-hover: 0 2px 8px rgba(32,32,32,0.08);
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-dropdown: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-focus: 0 0 0 4.8px var(--accent-glow);

  /* ─── Type scale ─── */
  --fs-hero: 70px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 28px;
  --fs-h4: 20px;
  --fs-lg: 18px;
  --fs-base: 16px;
  --fs-sm: 14px;
  --fs-xs: 12px;
  --fs-xxs: 8px;

  /* ─── Font weights ─── */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-light: 300;

  /* ─── Letter spacing ─── */
  --ls-default: 0.4px;
  --ls-tight: 0.3px;
  --ls-wide: 0.6px;
  --ls-xwide: 1.2px;
  --ls-xxwide: 1.6px;

  /* ─── Line heights ─── */
  --lh-tight: 1.2;
  --lh-snug: 1.4;
  --lh-normal: 1.6;
  --lh-loose: 1.8;

  /* ─── Spacing scale ─── */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 96px;

  /* ─── Radius ─── */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-xl: 0;
  --r-pill: 0;
  --r-circle: 50%;

  /* ─── Layout ─── */
  --max-w: 1240px;
  --max-w-narrow: 960px;
  --nav-h: 72px;
  --utility-h: 36px;

  /* ─── Transitions ─── */
  --t-fast: 0.15s;
  --t-base: 0.25s;
  --t-slow: 0.4s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* ─── Type ─── */
  --font: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Consolas, "Liberation Mono", monospace; }

/* ════════════════════════════════════════════════════
   Reset & Base
   ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: var(--lh-normal); font-size: var(--fs-base); letter-spacing: var(--ls-default); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-default); }
p { letter-spacing: var(--ls-default); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ════════════════════════════════════════════════════
   Top utility bar — dark slim strip
   ──────────────────────────────────────────────────── */
.utility { background: var(--bg-dark); color: var(--text-on-dark-2); font-size: var(--fs-xs); height: var(--utility-h); }
.utility .container { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-6); height: 100%; padding: 0 var(--s-7); }
.utility a { color: var(--text-on-dark-2); transition: color var(--t-fast); }
.utility a:hover { color: var(--cta); }
.utility .util-divider { opacity: 0.3; }

/* ════════════════════════════════════════════════════
   Main Nav — white sticky, multi-column dropdown
   ──────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 100; background: var(--bg-soft); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-nav); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; height: var(--nav-h); padding: 0 var(--s-7); gap: var(--s-9); }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo img { height: 38px; }
.nav-logo .logo-text { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--accent); letter-spacing: var(--ls-wide); }
.nav-menu { display: flex; gap: var(--s-1); list-style: none; flex: 1; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 16px; color: var(--text); font-size: var(--fs-base); font-weight: var(--fw-medium); transition: color var(--t-fast); }
.nav-menu > li > a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--t-base) var(--ease); }
.nav-menu > li:hover > a, .nav-menu > li.active > a { color: var(--accent); }
.nav-menu > li:hover > a::after, .nav-menu > li.active > a::after { transform: scaleX(1); }
.nav-menu .caret { font-size: 10px; opacity: 0.6; transition: transform var(--t-base); }
.nav-menu > li:hover .caret { transform: rotate(180deg); }
.nav-right { display: flex; align-items: center; gap: var(--s-3); }
.nav-search-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;  color: var(--text-3); cursor: pointer; transition: all var(--t-fast); }
.nav-search-icon:hover { background: var(--bg-light); color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); padding: 8px; }
.hamburger { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hamburger .bar { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t-base); }

/* Mobile full-screen overlay */
.mobile-overlay { position: fixed; inset: 0; width: 100%; height: 100vh; background: var(--bg-dark); z-index: 1000; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--t-base) var(--ease), visibility 0s linear var(--t-base); overflow-y: auto; }
.mobile-overlay.open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.mobile-overlay-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; pointer-events: none; transition: opacity var(--t-base); }
.mobile-overlay-bg.open { opacity: 1; pointer-events: auto; }
.mobile-overlay-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-overlay-logo { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--accent); }
.mobile-overlay-close { background: none; border: none; color: var(--text-on-dark-2); font-size: 1.4rem; cursor: pointer; padding: 4px; }
.mobile-overlay-nav { padding: 16px 24px; }
.mobile-nav-item { display: block; padding: 14px 0; color: var(--text-on-dark); font-size: var(--fs-lg); font-weight: var(--fw-medium); border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none; }
.mobile-nav-sub { display: block; padding: 10px 0 10px 20px; color: var(--text-on-dark-2); font-size: var(--fs-sm); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-nav-item:hover, .mobile-nav-sub:hover { color: var(--cta); }
.mobile-overlay-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 16px 0; }
.mobile-overlay-footer { padding: 16px 24px 40px; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-overlay-footer a { display: block; padding: 8px 0; color: var(--text-on-dark-2); font-size: var(--fs-sm); text-decoration: none; }
.mobile-overlay-footer a:hover { color: var(--cta); }

/* Mega menu dropdown */
.nav-dropdown { display: none; position: absolute; top: 100%; left: -16px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 0; box-shadow: var(--shadow-dropdown); min-width: 640px; padding: var(--s-6) 0; z-index: 200; }
.nav-menu > li:hover .nav-dropdown { display: flex; }
.dropdown-col { flex: 1; padding: 0 var(--s-6); border-right: 1px solid var(--border-light); }
.dropdown-col:last-child { border-right: none; }
.dropdown-col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-xwide); color: var(--accent); margin-bottom: var(--s-3); font-weight: var(--fw-bold); }
.dropdown-col a { display: block; padding: 6px 0; color: var(--text-3); font-size: var(--fs-sm); transition: all var(--t-fast); }
.dropdown-col a:hover { color: var(--accent); transform: none; }

/* ════════════════════════════════════════════════════
   Hero — full-width dark with bottom text overlay
   ──────────────────────────────────────────────────── */
.hero { position: relative; background: var(--bg-deep); color: #fff; min-height: 520px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,80,90,0.4) 100%); z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .img-ph { width: 100%; height: 100%; min-height: 520px; border: none; border-radius: 0; }
.hero-bg .img-ph::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%); }
.hero .container { position: relative; z-index: 2; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-10) var(--s-7) var(--s-9); }
.hero-text { max-width: 640px; }
.hero-text .label { display: inline-block; font-size: var(--fs-xs); letter-spacing: var(--ls-xwide); color: var(--cta); font-weight: var(--fw-bold); padding: 5px var(--s-3); background: rgba(250,148,62,0.12); border-left: 3px solid var(--cta); margin-bottom: var(--s-5); text-transform: uppercase; }
.hero-text h1 { font-size: var(--fs-hero); font-weight: var(--fw-bold); line-height: 1.05; margin-bottom: var(--s-5); color: #fff; letter-spacing: 0.4px; }
.hero-text p { color: rgba(255,255,255,0.85); font-size: var(--fs-lg); margin-bottom: var(--s-6); max-width: 540px; }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Hero carousel indicators */
.hero-dots { position: absolute; right: var(--s-7); bottom: var(--s-7); z-index: 3; display: flex; gap: 8px; }
.hero-dots .dot { width: 8px; height: 8px;  background: rgba(255,255,255,0.4); cursor: pointer; transition: all var(--t-base); }
.hero-dots .dot.active { width: 24px; background: var(--cta); border-radius: var(--r-pill); }

/* ════════════════════════════════════════════════════
   Buttons — 4 variants matching MOXA
   ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 26px; border-radius: var(--r-md); font-weight: var(--fw-medium); font-size: var(--fs-base); line-height: 1.4; text-decoration: none; transition: all var(--t-fast) var(--ease); cursor: pointer; border: none; letter-spacing: var(--ls-default); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent-light); color: var(--accent-dark); }
.btn-outline-white { border: 1.5px solid #fff; color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--bg-light); color: var(--accent-dark); }
.btn-sm { padding: 8px 16px; font-size: var(--fs-sm); }
.btn-lg { padding: 16px 36px; font-size: var(--fs-lg); }

/* ════════════════════════════════════════════════════
   Section system — alternating backgrounds
   ──────────────────────────────────────────────────── */
.section { padding: var(--s-10) 0; }
.section-alt { background: var(--bg-alt); }
.section-blue-gray { background: var(--bg-blue-gray); }
.section-dark { background: var(--bg-dark); color: #fff; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s-7); }
.container.narrow { max-width: var(--max-w-narrow); }
.section-head { text-align: center; margin-bottom: var(--s-9); }
.section-head .label { display: inline-block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-xxwide); color: var(--accent); font-weight: var(--fw-bold); margin-bottom: var(--s-3); }
.section-head h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); margin-bottom: var(--s-3); }
.section-head p { color: var(--text-3); font-size: var(--fs-lg); max-width: 720px; margin: 0 auto; }
.section-dark .section-head h2, .section-blue-gray .section-head h2 { color: var(--text); }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }
.section-head-left { text-align: left; margin-bottom: var(--s-7); }
.section-head-left .label { display: block; }

/* ════════════════════════════════════════════════════
   Image placeholder — refined, with size hint
   ──────────────────────────────────────────────────── */
.img-ph { background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #eaeaea 10px, #eaeaea 20px); border: 2px dashed #c8d0db; border-radius: var(--r-md); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); min-height: 120px; position: relative; transition: all var(--t-fast); }
.img-ph .ph-icon { font-size: 2.4rem; opacity: 0.45; margin-bottom: 6px; }
.img-ph .ph-size { font-size: var(--fs-xs); opacity: 0.7; font-family: var(--font-mono); letter-spacing: 0.5px; }
.img-ph .ph-label { font-size: var(--fs-sm); color: var(--text-2); margin-top: 2px; }
.img-ph:hover { border-color: var(--accent); }
.img-ph:hover .ph-icon { opacity: 0.7; }

/* ════════════════════════════════════════════════════
   Product cards
   ──────────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.prod-card { background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: all var(--t-base) var(--ease); }
.prod-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--accent); }
.prod-card .card-img { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; border: none; border-bottom: 1px solid var(--border-light); }
.prod-card .card-body { padding: var(--s-6); flex: 1; display: flex; flex-direction: column; }
.prod-card .card-tag { display: inline-block; font-size: var(--fs-xs); color: var(--accent); text-transform: uppercase; letter-spacing: var(--ls-xwide); font-weight: var(--fw-bold); margin-bottom: var(--s-2); }
.prod-card .card-body h3 { font-size: var(--fs-h4); margin-bottom: var(--s-2); color: var(--text); }
.prod-card .card-body p { font-size: var(--fs-sm); color: var(--text-3); line-height: var(--lh-normal); margin-bottom: var(--s-4); flex: 1; }
.prod-card .card-body .more { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--accent); font-weight: var(--fw-medium); }
.prod-card .card-body .more::after { content: '→'; transition: transform var(--t-base); }
.prod-card:hover .more::after { transform: none; }

/* ════════════════════════════════════════════════════
   News cards
   ──────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.news-card { background: #fff; border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit; display: block; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); transition: all var(--t-base) var(--ease); }
.news-card:hover { box-shadow: var(--shadow-card-hover); }
.news-card .card-img, .news-card .news-card-img { width: 100%; aspect-ratio: 16 / 9; border: none; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; background: var(--accent-light); font-size: 3rem; color: var(--accent); }
.news-card .card-body { padding: var(--s-5) var(--s-6); }
.news-card .card-body .date { font-size: var(--fs-xs); color: var(--text-4); margin-bottom: var(--s-2); letter-spacing: var(--ls-wide); }
.news-card .card-body h4 { font-size: var(--fs-base); font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--text); transition: color var(--t-fast); }
.news-card:hover h4 { color: var(--accent); }

/* ════════════════════════════════════════════════════
   Featured product — large image-text row
   ──────────────────────────────────────────────────── */
.featured-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-8); align-items: center; padding: var(--s-8); background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-card); border: 1px solid var(--border-light); margin-bottom: var(--s-6); transition: all var(--t-base); }
.featured-row:hover { box-shadow: var(--shadow-card-hover); }
.featured-row .feat-img { aspect-ratio: 4 / 3; width: 100%; }
.featured-row .feat-body .cat { display: inline-block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-xwide); color: var(--accent); font-weight: var(--fw-bold); margin-bottom: var(--s-3); padding: 3px 10px; background: var(--accent-light); border-radius: var(--r-sm); }
.featured-row .feat-body h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); color: var(--text); }
.featured-row .feat-body p { color: var(--text-3); font-size: var(--fs-base); line-height: var(--lh-loose); margin-bottom: var(--s-5); }
.featured-row.reverse { direction: rtl; }
.featured-row.reverse > * { direction: ltr; }

/* ════════════════════════════════════════════════════
   Asymmetric grid (MOXA-style 1 large + 2 small)
   ──────────────────────────────────────────────────── */
.grid-section { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-4); }
.grid-card { position: relative; border-radius: var(--r-md); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; transition: all var(--t-base) var(--ease); }
.grid-card .grid-bg { position: absolute; inset: 0; z-index: 0; }
.grid-card .grid-bg .img-ph { width: 100%; height: 100%; min-height: 360px; border: none; border-radius: 0; }
.grid-card .grid-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%); }
.grid-card.large .grid-overlay { background: linear-gradient(135deg, rgba(0,135,135,0.85) 0%, rgba(0,90,90,0.95) 100%); }
.grid-card .grid-content { position: relative; z-index: 2; padding: var(--s-7); }
.grid-card .grid-label { display: inline-block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-xwide); color: var(--cta); font-weight: var(--fw-bold); margin-bottom: var(--s-2); }
.grid-card .grid-content h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: #fff; line-height: var(--lh-snug); margin-bottom: var(--s-2); }
.grid-card .grid-content p { font-size: var(--fs-sm); color: rgba(255,255,255,0.85); }
.grid-card:hover { box-shadow: var(--shadow-card-hover); }
.grid-cards-right { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s-4); }
.grid-card.small { min-height: 178px; }
.grid-card.small .grid-content { padding: var(--s-5); }
.grid-card.small .grid-content h3 { font-size: var(--fs-h4); }

/* ════════════════════════════════════════════════════
   Industry grid
   ──────────────────────────────────────────────────── */
.ind-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
.ind-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-md); padding: var(--s-6) var(--s-3); text-align: center; text-decoration: none; color: var(--text); transition: all var(--t-fast) var(--ease); }
.ind-card:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-card); }
.ind-card .icon { font-size: 1.8rem; margin-bottom: var(--s-2); }
.ind-card span { font-size: var(--fs-sm); font-weight: var(--fw-medium); }

/* ════════════════════════════════════════════════════
   Stats row
   ──────────────────────────────────────────────────── */
.stats-row { display: flex; justify-content: center; gap: var(--s-12); padding: var(--s-9) 0; background: #fff; border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat .num { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--accent); line-height: 1; }
.stat .label { font-size: var(--fs-sm); color: var(--text-3); margin-top: var(--s-2); }

/* ════════════════════════════════════════════════════
   CTA banner
   ──────────────────────────────────────────────────── */
.cta-banner { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; padding: var(--s-10) 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { pointer-events: none; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at right, rgba(255,255,255,0.08), transparent 70%); }
.cta-banner h2 { font-size: var(--fs-h2); margin-bottom: var(--s-3); font-weight: var(--fw-bold); position: relative; }
.cta-banner p { opacity: 0.9; font-size: var(--fs-lg); margin-bottom: var(--s-6); max-width: 640px; margin-left: auto; margin-right: auto; position: relative; }

/* ════════════════════════════════════════════════════
   Footer — MOXA-style 5-column dark
   ──────────────────────────────────────────────────── */
.footer-bottom .legal-links a { display: inline; padding: 0; color: rgba(255,255,255,0.5); }
.footer-bottom .legal-links a:hover { color: var(--cta); }

/* ════════════════════════════════════════════════════
   Page hero (inner pages) — dark with breadcrumb
   ──────────────────────────────────────────────────── */
.page-hero { position: relative; background: var(--bg-deep); color: #fff; padding: var(--s-9) 0; min-height: 240px; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,80,90,0.6)); z-index: 1; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); color: #fff; margin-bottom: var(--s-2); }
.page-hero p { color: rgba(255,255,255,0.8); font-size: var(--fs-lg); max-width: 700px; }
.breadcrumb { font-size: var(--fs-sm); color: rgba(255,255,255,0.7); margin-bottom: var(--s-3); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--cta); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--cta); }

/* Page tabs (under page-hero) */
.page-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); background: #fff; }
.page-tabs a { padding: var(--s-4) var(--s-6); color: var(--text-3); font-size: var(--fs-base); text-decoration: none; border-bottom: 3px solid transparent; transition: all var(--t-fast); }
.page-tabs a:hover { color: var(--accent); }
.page-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: var(--fw-medium); }

/* ════════════════════════════════════════════════════
   Generic card system
   ──────────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--r-md); padding: var(--s-6); box-shadow: var(--shadow-card); border: 1px solid var(--border-light); transition: all var(--t-base) var(--ease); }
.card:hover { box-shadow: var(--shadow-card-hover); }
.card .icon { font-size: 2.2rem; margin-bottom: var(--s-3); display: inline-block; }
.card h3 { font-size: var(--fs-h4); font-weight: var(--fw-bold); margin-bottom: var(--s-2); }
.card p { font-size: var(--fs-sm); color: var(--text-3); line-height: var(--lh-loose); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }

/* Partner / brand list */
.partner-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: var(--bg-alt); border-left: 3px solid var(--accent); margin-bottom: var(--s-3); border-radius: var(--r-sm); transition: all var(--t-fast); }
.partner-item:hover {  background: var(--accent-light); }
.partner-item strong { font-size: var(--fs-base); display: block; }
.partner-item span { font-size: var(--fs-xs); color: var(--text-3); display: block; margin-top: 2px; }
.partner-dot { width: 10px; height: 10px; border-radius: var(--r-sm); flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   Product detail page
   ──────────────────────────────────────────────────── */
.detail-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: var(--s-9) 0; }
.detail-hero .container { display: grid; grid-template-columns: 460px 1fr; gap: var(--s-9); align-items: start; }
.detail-img-wrap { width: 100%; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; position: relative; }
.detail-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.detail-img-wrap .ph-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: none; }
.detail-info h1 { font-size: var(--fs-h2); font-weight: var(--fw-bold); margin-bottom: var(--s-2); }
.detail-info .subtitle { color: var(--accent); font-size: var(--fs-base); margin-bottom: var(--s-4); font-weight: var(--fw-medium); }
.detail-info .description { color: var(--text-3); font-size: var(--fs-base); line-height: var(--lh-loose); margin-bottom: var(--s-6); }
.detail-info .actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.detail-info .meta-row { display: flex; gap: var(--s-5); margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--border); }
.detail-info .meta-row .meta-item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-3); }
.detail-info .meta-row .meta-item strong { color: var(--text); font-weight: var(--fw-bold); }

.detail-tabs { display: flex; border-bottom: 2px solid var(--border); margin-top: var(--s-7); gap: 0; }
.tab-btn { padding: var(--s-3) var(--s-6); background: none; border: none; font: inherit; font-size: var(--fs-base); color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-weight: var(--fw-medium); transition: all var(--t-fast); }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; padding: var(--s-7) 0; }
.tab-panel.active { display: block; }

.spec-section { margin-bottom: var(--s-6); }
.spec-section h4 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--accent); margin-bottom: var(--s-3); border-bottom: 1px solid var(--border); padding-bottom: var(--s-2); font-weight: var(--fw-bold); }
.spec-list { list-style: none; }
.spec-list li { padding: var(--s-2) 0; color: var(--text-3); font-size: var(--fs-sm); line-height: var(--lh-loose); border-bottom: 1px dashed var(--border-light); }
.spec-list li:last-child { border-bottom: none; }
.spec-list li::before { content: '▸ '; color: var(--accent); margin-right: 4px; }

/* Spec table (MOXA-style) */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.spec-table th { color: var(--text-2); font-weight: var(--fw-bold); width: 200px; background: var(--bg-alt); }
.spec-table td { color: var(--text-3); }

.cta-box { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; padding: var(--s-8); border-radius: var(--r-md); text-align: center; margin-top: var(--s-7); position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at right, rgba(255,255,255,0.1), transparent 70%); }
.cta-box h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); position: relative; }
.cta-box p { opacity: 0.9; margin-bottom: var(--s-5); font-size: var(--fs-base); position: relative; }

/* ════════════════════════════════════════════════════
   Language switcher dropdown
   ──────────────────────────────────────────────────── */
.lang-switch { position: relative; display: inline-block; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-on-dark-2); font-size: var(--fs-xs); padding: 6px 10px; border-radius: var(--r-sm); transition: all var(--t-fast); user-select: none; }
.lang-toggle:hover, .lang-toggle:focus { background: rgba(255,255,255,0.08); color: var(--cta); outline: none; }
.lang-toggle .lang-current { font-weight: var(--fw-medium); }
.lang-toggle .lang-caret { font-size: 9px; opacity: 0.6; transition: transform var(--t-base); }
.lang-switch.open .lang-toggle { background: rgba(255,255,255,0.08); color: var(--cta); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu { display: none; position: absolute; top: 100%; right: 0; margin-top: 2px; background: var(--bg-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--r-md); box-shadow: var(--shadow-dropdown); min-width: 150px; padding: var(--s-2); z-index: 300; }
.lang-switch.open .lang-menu { display: block; animation: langFadeIn 0.15s ease; }
@keyframes langFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lang-menu a { display: flex; align-items: center; gap: var(--s-2); padding: 8px var(--s-3); color: var(--text-on-dark-2); font-size: var(--fs-xs); border-radius: var(--r-sm); transition: all var(--t-fast); cursor: pointer; }
.lang-menu a:hover { background: rgba(255,255,255,0.08); color: var(--cta); transform: none; }
.lang-menu a.active { background: var(--accent); color: #fff; }
.lang-menu a .lang-code-badge { font-size: 10px; opacity: 0.7; margin-left: auto; }

/* ════════════════════════════════════════════════════
   Products list page
   ──────────────────────────────────────────────────── */
.prod-cat { margin-bottom: var(--s-8); }
.prod-cat-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s-3); border-bottom: 2px solid var(--accent); margin-bottom: var(--s-4); }
.prod-cat-header h3 { font-size: var(--fs-h4); color: var(--text); display: flex; align-items: center; gap: var(--s-2); }
.prod-cat-header .count { font-size: var(--fs-xs); color: var(--text-3); font-weight: var(--fw-normal); background: var(--bg-alt); padding: 2px 10px; border-radius: var(--r-pill); }
.prod-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.prod-chip { padding: 6px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); font-size: var(--fs-sm); color: var(--text-3); text-decoration: none; transition: all var(--t-fast) var(--ease); }
.prod-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Brand tabs */
.brand-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: var(--s-7); background: #fff; padding: 0 var(--s-2); }
.brand-tabs .brand-tab { padding: var(--s-4) var(--s-6); color: var(--text-3); font-size: var(--fs-base); text-decoration: none; border-bottom: 3px solid transparent; transition: all var(--t-fast); }
.brand-tabs .brand-tab:hover { color: var(--accent); }
.brand-tabs .brand-tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: var(--fw-medium); }

/* ════════════════════════════════════════════════════
   Two-col & contact
   ──────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-9); }

.contact-form { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-form label { display: block; font-size: var(--fs-sm); color: var(--text-2); font-weight: var(--fw-medium); margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px var(--s-4); border: 1px solid var(--border); border-radius: var(--r-md); font: inherit; font-size: var(--fs-base); background: #fff; color: var(--text); transition: all var(--t-fast); letter-spacing: var(--ls-default); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
.contact-form textarea { min-height: 130px; resize: vertical; font-family: inherit; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.success-box { background: var(--accent-light); border: 1px solid var(--accent); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); color: var(--accent-dark); margin-bottom: var(--s-5); font-weight: var(--fw-medium); display: flex; align-items: center; gap: var(--s-2); }
.success-box::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--accent); color: #fff;  font-size: 14px; }

.about-grid p { color: var(--text-3); margin-bottom: var(--s-3); font-size: var(--fs-base); line-height: var(--lh-loose); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.about-stats .stat-card { text-align: center; padding: var(--s-5) var(--s-3); background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-md); transition: all var(--t-fast); }
.about-stats .stat-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.about-stats .stat-card .num { font-size: var(--fs-h2); font-weight: var(--fw-bold); color: var(--accent); line-height: 1; }
.about-stats .stat-card .label { font-size: var(--fs-xs); color: var(--text-3); margin-top: var(--s-2); }

/* ════════════════════════════════════════════════════
   Search
   ──────────────────────────────────────────────────── */
.search-hero { background: var(--bg-deep); color: #fff; padding: var(--s-9) 0; position: relative; overflow: hidden; }
.search-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,135,135,0.4)); }
.search-hero .container { position: relative; z-index: 1; }
.search-hero h1 { color: #fff; font-size: var(--fs-h1); margin-bottom: var(--s-2); }
.search-hero p { color: rgba(255,255,255,0.85); font-size: var(--fs-lg); margin-bottom: var(--s-5); }
.search-form { display: flex; gap: var(--s-3); max-width: 640px; }
.search-form input { flex: 1; padding: var(--s-4) var(--s-5); border: 2px solid transparent; border-radius: var(--r-md); font: inherit; font-size: var(--fs-base); background: #fff; color: var(--text); transition: all var(--t-fast); }
.search-form input:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 4px rgba(250,148,62,0.2); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-6); }
.product-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-md); padding: var(--s-5); transition: all var(--t-base) var(--ease); }
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.product-card .brand { display: inline-block; font-size: var(--fs-xs); color: var(--accent); text-transform: uppercase; letter-spacing: var(--ls-wide); margin-bottom: var(--s-2); padding: 2px 8px; background: var(--accent-light); border-radius: var(--r-sm); font-weight: var(--fw-bold); }
.product-card h3 { font-size: var(--fs-base); margin-bottom: var(--s-2); font-weight: var(--fw-bold); }
.product-card h3 a { color: var(--text); text-decoration: none; transition: color var(--t-fast); }
.product-card h3 a:hover { color: var(--accent); }
.product-card .meta { font-size: var(--fs-xs); color: var(--text-4); margin-bottom: var(--s-3); }

/* ════════════════════════════════════════════════════
   404 page
   ──────────────────────────────────────────────────── */
.error-card { max-width: 560px; margin: 0 auto; text-align: center; padding: var(--s-12) var(--s-7); background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.error-card .error-code { font-size: 96px; font-weight: var(--fw-bold); color: var(--accent); line-height: 1; margin-bottom: var(--s-3); }
.error-card h2 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.error-card p { color: var(--text-3); margin-bottom: var(--s-6); font-size: var(--fs-base); }
.error-card .actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════
   Product page specific styles
   ──────────────────────────────────────────────────── */

/* Product Hero */
.product-hero {
  background: linear-gradient(135deg, #0a1628 0%, #003d3d 50%, #004d4d 100%);
  color: #fff;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden; }
.product-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,135,135,0.15) 0%, transparent 70%);
  border-radius: 50%; }
.product-hero .breadcrumb {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  position: relative;
  z-index: 1; }
.product-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.product-hero .breadcrumb a:hover { color: #fff; }
.product-hero .breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.4); }
.product-hero .breadcrumb .current { color: var(--cta); }
.product-hero .hero-content { position: relative; z-index: 1; max-width: 720px; }
.product-hero .product-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  color: #fff; }
.product-hero .product-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 28px; }
.product-hero .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5); }
.feature-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 24px;
  transition: all var(--t-base); }
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card); }
.feature-icon {
  width: 32px; height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  margin-bottom: 12px; }
.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.6; }

/* Product Tabs (sticky sub-nav) */
.product-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: #fff;
  padding: 0; }
.product-tabs .tab-btn {
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font: inherit;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t-fast); }
.product-tabs .tab-btn:hover { color: var(--accent); }
.product-tabs .tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: var(--fw-bold); }

/* Tab Panels */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Overview Tab */
.overview-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start; }
.product-main-img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border-light); }
.overview-desc {
  font-size: var(--fs-base);
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 24px; }
.overview-cta { display: flex; gap: 12px; }

/* Specs Tab */
.specs-container { max-width: 900px; }
.spec-section {
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden; }
.spec-section-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  padding: 12px 20px;
  background: var(--accent-light);
  border-bottom: 1px solid var(--border-light);
  margin: 0; }
.spec-section-body { padding: 16px 20px; }
.spec-text {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 8px; }

/* Spec key-value table */
.spec-kv-table { width: 100%; border-collapse: collapse; }
.spec-kv-table tr { border-bottom: 1px solid var(--border-light); }
.spec-kv-table tr:last-child { border-bottom: none; }
.spec-kv-table td { padding: 8px 12px; font-size: var(--fs-sm); vertical-align: top; }
.spec-kv-table .spec-kv-label { width: 40%; font-weight: var(--fw-medium); color: var(--text); white-space: nowrap; }
.spec-kv-table .spec-kv-value { color: var(--text-2); }

/* Inline kv rows */
.spec-kv-row {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-sm); }
.spec-kv-row:last-child { border-bottom: none; }
.spec-kv-row .spec-kv-label {
  min-width: 180px;
  font-weight: var(--fw-medium);
  color: var(--text); }
.spec-kv-row .spec-kv-value { color: var(--text-2); flex: 1; }

.spec-label {
  font-weight: var(--fw-medium);
  color: var(--accent-dark);
  font-size: var(--fs-sm);
  margin: 8px 0 4px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--border-light); }

/* Tag-style lists */
.spec-tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.spec-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  color: var(--text-2);
  white-space: nowrap; }
.spec-tag:hover { border-color: var(--accent); color: var(--accent); }

/* Downloads Tab */
.downloads-section { max-width: 800px; }
.downloads-heading, .models-heading {
  font-size: var(--fs-h3);
  margin-bottom: 24px;
  color: var(--text); }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.dl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--text);
  transition: all var(--t-fast); }
.dl-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card); }
.dl-icon { font-size: 24px; }
.dl-info { flex: 1; }
.dl-title { display: block; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.dl-meta { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.dl-action { font-size: var(--fs-xs); color: var(--accent); font-weight: var(--fw-medium); white-space: nowrap; }

/* Models Tab */
.models-section { max-width: 900px; }
.models-table-wrap { overflow-x: auto; }
.models-table { width: 100%; border-collapse: collapse; }
.models-table th {
  background: var(--bg-alt);
  padding: 12px 16px;
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  border: 1px solid var(--border); }
.models-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-2); }
.models-table .model-name { font-weight: var(--fw-medium); color: var(--text); }

/* CTA Card (product detail) */
.cta-card { max-width: 640px; margin: 0 auto; }
.cta-card h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.cta-card p { color: var(--text-3); font-size: var(--fs-lg); margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Download Detail Table */
.download-detail-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.download-detail-table th {
  background: var(--bg-alt);
  padding: 10px 14px;
  text-align: left;
  font-weight: var(--fw-bold);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap; }
.download-detail-table td { padding: 10px 14px; border: 1px solid var(--border); color: var(--text-2); }
.download-detail-table tr:hover td { background: var(--accent-light); }
.dl-link { color: var(--accent); font-weight: var(--fw-medium); text-decoration: none; }
.dl-link:hover { text-decoration: underline; }
.dl-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap; }
.dl-type-badge.firmware { background: #e8f5e9; color: #2e7d32; }
.dl-type-badge.software { background: #e3f2fd; color: #1565c0; }

/* Solution page filter pills */
.filter-pill {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--text-2);
  font-size: var(--fs-sm);
  cursor: pointer;
  font-weight: var(--fw-medium);
  transition: all var(--t-fast); }
.filter-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-pill:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* Case cards */
.case-card { cursor: default; }
.case-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }

/* ════════════════════════════════════════════════════
   MOXA-style Homepage Components
   ──────────────────────────────────────────────────── */

/* ─── Hero: centered layout ─── */
.hero-home {
  position: relative;
  background: linear-gradient(160deg, #0a1628 0%, #002b2b 50%, #004040 100%);
  color: #fff;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden; }
.hero-home::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,135,135,0.1) 0%, transparent 60%);
  border-radius: 50%; }
.hero-home .hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none; }
.hero-home .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px var(--s-7); }
.hero-home .hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: 0; }
.hero-home .hero-text .hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px; }
.hero-home .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; }
.hero-home .hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; }
.hero-home .hero-visual .hv-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 28px 20px;
  backdrop-filter: blur(8px);
  transition: all var(--t-base);
  text-decoration: none;
  color: #fff; }
.hero-home .hero-visual .hv-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2); }
.hero-home .hero-visual .hv-card .hv-icon {
  font-size: 28px;
  margin-bottom: 10px; }
.hero-home .hero-visual .hv-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px; }
.hero-home .hero-visual .hv-card p {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5; }

/* ─── Stats counter strip ─── */
.stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0; }
.stats-strip .stats-inner {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-7); }
.stats-strip .stat-item {
  text-align: center; }
.stats-strip .stat-item .stat-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1; }
.stats-strip .stat-item .stat-label {
  font-size: var(--fs-sm);
  color: var(--text-3);
  margin-top: 8px; }

/* ─── "Latest Releases" 2-column horizontal cards ─── */
.latest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6); }
.latest-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base) var(--ease); }
.latest-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent); }
.latest-card .lc-img {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 3rem; }
.latest-card .lc-body {
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: center; }
.latest-card .lc-body .lc-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--ls-xwide);
  font-weight: 700;
  margin-bottom: var(--s-2); }
.latest-card .lc-body h3 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--s-2);
  color: var(--text);
  line-height: var(--lh-snug); }
.latest-card .lc-body p {
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: var(--lh-normal); }

/* ─── "Featured Products" — Moxa-style with bullet features ─── */
.feat-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6); }
.feat-prod-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-base) var(--ease); }
.feat-prod-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent); }
.feat-prod-card .fpc-img {
  background: var(--bg-alt);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-bottom: 1px solid var(--border-light);
  font-size: 3.5rem; }
.feat-prod-card .fpc-body {
  padding: var(--s-6); }
.feat-prod-card .fpc-body .fpc-name {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--text); }
.feat-prod-card .fpc-body .fpc-features {
  list-style: none;
  margin-bottom: var(--s-4); }
.feat-prod-card .fpc-body .fpc-features li {
  font-size: var(--fs-sm);
  color: var(--text-3);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  line-height: var(--lh-snug); }
.feat-prod-card .fpc-body .fpc-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--accent);
   }
.feat-prod-card .fpc-body .fpc-desc {
  font-size: var(--fs-sm);
  color: var(--text-3);
  line-height: var(--lh-loose);
  margin-bottom: var(--s-4); }
.feat-prod-card .fpc-body .fpc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--t-fast); }
.feat-prod-card .fpc-body .fpc-link:hover { gap: 10px; }
.feat-prod-card .fpc-body .fpc-link::after { content: '→'; }

/* ─── "Curated Picks" — 3 horizontal cards ─── */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6); }
.pick-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base) var(--ease); }
.pick-card:hover {
  box-shadow: var(--shadow-card-hover); }
.pick-card .pick-img {
  background: linear-gradient(135deg, var(--accent-light), var(--bg-alt));
  padding: 36px 24px;
  text-align: center;
  font-size: 2.8rem; }
.pick-card .pick-body {
  padding: var(--s-5); }
.pick-card .pick-body .pick-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--s-2);
  padding: 2px 8px;
  background: var(--accent-light);
  border-radius: var(--r-pill); }
.pick-card .pick-body h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  line-height: var(--lh-snug); }

/* ─── Newsletter / Follow section ─── */
.follow-section {
  background: var(--bg-alt);
  padding: var(--s-10) 0; }
.follow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-7); }
.follow-social h3,
.follow-newsletter h3 {
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--s-4); }
.follow-social .social-links {
  display: flex;
  gap: var(--s-3); }
.follow-social .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  
  background: #fff;
  border: 1px solid var(--border);
  font-size: 18px;
  color: var(--text-3);
  text-decoration: none;
  transition: all var(--t-fast); }
.follow-social .social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent); }
.follow-newsletter .nl-form {
  display: flex;
  gap: var(--s-3); }
.follow-newsletter .nl-form input {
  flex: 1;
  padding: 12px var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-base);
  transition: all var(--t-fast); }
.follow-newsletter .nl-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus); }
.follow-newsletter .nl-note {
  font-size: var(--fs-xs);
  color: var(--text-4);
  margin-top: var(--s-2); }

/* ════════════════════════════════════════════════════
   MOXA Product Detail Page (1:1 replica)
   ──────────────────────────────────────────────────── */

/* ─── Breadcrumb bar ─── */
.prod-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-3); }
.prod-breadcrumb a { color: var(--text-3); text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--accent); }
.prod-breadcrumb .sep { margin: 0 8px; color: var(--text-4); }
.prod-breadcrumb .current { color: var(--text); font-weight: 500; }

/* ─── Product Hero — two-column, white bg ─── */
.prod-hero {
  background: #fff;
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border-light); }
.prod-hero .prod-hero-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 48px;
  align-items: start; }
.prod-hero .prod-hero-info .ph-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2; }
.prod-hero .prod-hero-info .ph-subtitle {
  font-size: 18px;
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 16px; }
.prod-hero .prod-hero-info .ph-cert-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px; }
.prod-hero .prod-hero-info .ph-cert-badge {
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.5px; }
.prod-hero .prod-hero-info .ph-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; }
.prod-hero .ph-gallery {
  position: relative; }
.prod-hero .ph-gallery .ph-main-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); }
.prod-hero .ph-gallery .ph-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center; }
.prod-hero .ph-gallery .ph-thumb {
  width: 64px; height: 48px;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--t-fast); }
.prod-hero .ph-gallery .ph-thumb.active,
.prod-hero .ph-gallery .ph-thumb:hover { border-color: var(--accent); opacity: 1; }

/* ─── Sticky product tabs ─── */
.prod-tabs-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--border); }
.prod-tabs {
  display: flex;
  gap: 0; }
.prod-tabs .ptab {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-3);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-fast);
  font-family: inherit; }
.prod-tabs .ptab:hover { color: var(--accent); }
.prod-tabs .ptab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600; }

/* ─── Tab content panels ─── */
.ptab-panel { display: none; padding: 40px 0; }
.ptab-panel.active { display: block; animation: fadeIn 0.25s ease; }

/* ─── Overview Tab ─── */
.ov-section { margin-bottom: 36px; }
.ov-section .ov-desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 900px; }
.ov-section .ov-action-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light); }
.ov-section .ov-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500; }
.ov-section .ov-action-link:hover { text-decoration: underline; }

/* Spec summary blocks in overview */
.ov-spec-block {
  margin-bottom: 24px; }
.ov-spec-block .ov-spec-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px; }
.ov-spec-block .ov-spec-kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--border-light); }
.ov-spec-block .ov-spec-kv:last-child { border-bottom: none; }
.ov-spec-block .ov-spec-kv .kv-label {
  font-weight: 500;
  color: var(--text); }
.ov-spec-block .ov-spec-kv .kv-value {
  color: var(--text-2); }
.ov-spec-block .ov-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px; }
.ov-spec-block .ov-spec-tags .spec-tag-inline {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-2); }

/* ─── Specifications Tab ─── */
.specs-full { max-width: 900px; }
.specs-full .spec-block {
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden; }
.specs-full .spec-block .spec-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 20px;
  background: var(--accent-light);
  border-bottom: 1px solid var(--border-light); }
.specs-full .spec-block .spec-block-body { padding: 12px 20px; }
.specs-full .spec-block .spec-kv-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--border-light); }
.specs-full .spec-block .spec-kv-row:last-child { border-bottom: none; }
.specs-full .spec-block .spec-kv-row .sk-label { font-weight: 500; color: var(--text); }
.specs-full .spec-block .spec-kv-row .sk-value { color: var(--text-2); }
.specs-full .spec-block .spec-text-block {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  padding: 4px 0; }
.specs-full .spec-block .spec-sub-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  padding: 8px 0 4px; }
.specs-full .spec-block .spec-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0; }
.specs-full .spec-block .spec-tag-list .s-tag {
  font-size: 13px;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  color: var(--text-2); }
.specs-full .spec-block .spec-note {
  background: #fff9e6;
  border-left: 3px solid var(--cta);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 12px 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ─── Resources Tab ─── */
.res-section { margin-bottom: 40px; }
.res-section .res-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px; }
.res-section .res-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px; }
.res-section .res-filter-bar .rf-chip {
  padding: 6px 16px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: inherit; }
.res-section .res-filter-bar .rf-chip.active,
.res-section .res-filter-bar .rf-chip:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent); }
.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px; }
.res-table thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
  font-size: 13px; }
.res-table tbody td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top; }
.res-table tbody tr:hover td { background: var(--accent-light); }
.res-table .dl-name {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none; }
.res-table .dl-name:hover { text-decoration: underline; }
.res-table .dl-type-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500; }
.res-table .dl-type-badge.firmware { background: #e8f5e9; color: #2e7d32; }
.res-table .dl-type-badge.software { background: #e3f2fd; color: #1565c0; }
.res-table .dl-type-badge.manual { background: #fff3e0; color: #e65100; }
.res-table .dl-type-badge.datasheet { background: #f3e5f5; color: #7b1fa2; }
.res-table .dl-type-badge.cad { background: #e0f2f1; color: #00695c; }

/* Related content cards */
.rel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; }
.rel-card {
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--t-base); }
.rel-card:hover { box-shadow: var(--shadow-card); }
.rel-card .rel-thumb {
  height: 120px;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem; }
.rel-card .rel-body { padding: 12px 16px; }
.rel-card .rel-body .rel-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px; }
.rel-card .rel-body .rel-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4; }

/* ─── Models Tab ─── */
.models-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px; }
.models-toolbar .model-count {
  font-size: 16px;
  font-weight: 600;
  color: var(--text); }
.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px; }
.models-table thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
  font-size: 13px; }
.models-table tbody td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle; }
.models-table tbody tr:hover td { background: var(--accent-light); }
.models-table .model-thumb {
  width: 64px; height: 48px;
  object-fit: contain;
  background: var(--bg-alt);
  border-radius: var(--r-sm); }
.models-table .model-name-cell {
  font-weight: 600;
  color: var(--text); }
.models-table .btn-quote {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--t-fast);
  white-space: nowrap; }
.models-table .btn-quote:hover {
  background: var(--accent);
  color: #fff; }

/* ─── Product CTA box ─── */
.prod-cta-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--r-md);
  padding: 32px 40px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px; }
.prod-cta-box h3 { font-size: 20px; font-weight: 600; }
.prod-cta-box p { opacity: 0.9; font-size: 14px; max-width: 500px; }

/* ════════════════════════════════════════════════════
   Responsive breakpoints
   ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prod-grid, .news-grid, .card-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-section { grid-template-columns: 1fr; }
  .grid-cards-right { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  footer .container { grid-template-columns: repeat(3, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .latest-grid, .feat-prod-grid { grid-template-columns: 1fr; }
  .latest-card { grid-template-columns: 1fr; }
  .latest-card .lc-img { min-height: 160px; }
  .hero-home .container { grid-template-columns: 1fr; }
  .hero-home .hero-visual { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  /* Homepage hero responsive */
  .hero [style*="grid-template-columns:1fr 1fr"],
  .hero [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important; }
  .hero h1[style*="font-size:52px"] { font-size: 32px !important; }
  .hero [style*="display:grid;grid-template-columns:1fr 1fr;gap:16px"],
  .hero [style*="display:grid;grid-template-columns: 1fr 1fr; gap: 16px"] {
    grid-template-columns: 1fr 1fr !important; }

  .nav-menu { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .mobile-overlay, .mobile-overlay-bg { display: block; }
  .utility { display: flex; height: auto; padding: 6px 16px; }
  .utility > a, .utility > .util-divider { display: none; }
  .utility .lang-switch { display: inline-block; }
  .utility .container { justify-content: flex-end; }
  .hero-text h1 { font-size: 40px; }
  .featured-row, .featured-row.reverse { grid-template-columns: 1fr; direction: ltr; padding: var(--s-5); }
  .detail-hero .container { grid-template-columns: 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .prod-grid, .news-grid, .card-grid, .products-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-cards-right { grid-template-columns: 1fr; }
  .stats-row { gap: var(--s-7); flex-wrap: wrap; }
  footer .container { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--s-9) 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  /* Product detail responsive */
  .product-hero { padding: 32px 0 40px; }
  .product-hero .product-title { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .overview-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-tabs .tab-btn { padding: 12px 16px; white-space: nowrap; font-size: var(--fs-sm); }
  .download-grid { grid-template-columns: 1fr; }
  .spec-kv-table td { display: block; width: 100%; padding: 6px 8px; }
  .spec-kv-table .spec-kv-label { white-space: normal; width: 100%; }
  .spec-kv-row { flex-direction: column; gap: 2px; }
  .spec-kv-row .spec-kv-label { min-width: auto; }
  /* Moxa components responsive */
  .picks-grid { grid-template-columns: 1fr; }
  .hero-home .hero-visual { grid-template-columns: 1fr 1fr; }
  .stats-strip .stats-inner { gap: 40px; flex-wrap: wrap; }
  .follow-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-home .hero-text h1 { font-size: 36px; }
  /* Product page responsive */
  .prod-hero .prod-hero-grid { grid-template-columns: 1fr; }
  .prod-hero .ph-gallery { max-width: 400px; }
  .ov-spec-block .ov-spec-kv { grid-template-columns: 1fr; }
  .specs-full .spec-block .spec-kv-row { grid-template-columns: 1fr; gap: 2px; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-tabs .ptab { padding: 12px 18px; font-size: 14px; }
}

@media (max-width: 480px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  footer .container { grid-template-columns: 1fr; }
  .container { padding: 0 var(--s-5); }
  .hero-text h1 { font-size: 32px; }
  .stats-row { gap: var(--s-5); }
}

/* ════════════════════════════════════════════════════
   Footer — Moxa-style
   ──────────────────────────────────────────────────── */
.footer-moxa {
  background: var(--bg-dark);
  color: var(--text-on-dark-2);
  font-size: var(--fs-sm);
}
.footer__main {
  padding: var(--s-10) 0 var(--s-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr minmax(320px, 1.75fr);
  gap: var(--s-7);
}
.footer__col h4 {
  font-size: var(--fs-base);
  color: #fff;
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-4);
  letter-spacing: var(--ls-wide);
}
.footer__col--links a {
  display: block;
  padding: 5px 0;
  color: var(--text-on-dark-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}
.footer__col--links a:hover {
  color: var(--cta);
}
.footer__social-links {
  display: flex;
  gap: var(--s-2);
}
.footer__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 0;
  background: rgba(255,255,255,0.08);
  color: var(--text-on-dark-2);
  text-decoration: none;
  font-size: 15px;
  transition: all var(--t-fast);
}
.footer__social-icon:hover {
  background: var(--accent);
  color: #fff;
}
.footer__nl-form {
  display: flex;
  gap: var(--s-2);
  width: 100%;
}
.footer__col--newsletter { min-width: 0; }
.footer__nl-input {
  flex: 1;
  min-width: 0;
  padding: 10px var(--s-3);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast);
}
.footer__nl-input::placeholder { color: rgba(255,255,255,0.3); }
.footer__nl-input:focus {
  outline: none;
  border-color: var(--accent);
}
.footer__nl-note {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.3);
  margin-top: var(--s-2);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-5) 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}
.footer__legal {
  display: flex;
  gap: var(--s-5);
}
.footer__legal a, .footer__legal span {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__legal a:hover { color: var(--cta); }

/* ════════════════════════════════════════════════════
   Moxa-style Hero Carousel (replaces .hero-home)
   ──────────────────────────────────────────────────── */
.hero-moxa {
  position: relative;
  background: var(--bg-deep);
  color: #fff;
  min-height: 550px;
  overflow: hidden;
}
.hero-moxa__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-moxa__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,60,60,0.45) 100%);
}
.hero-moxa .container {
  position: relative;
  z-index: 2;
  min-height: 550px;
  display: flex;
  align-items: center;
  padding: var(--s-9) var(--s-7);
}
.hero-moxa__content {
  max-width: 580px;
}
.hero-moxa__content h1 {
  font-size: 44px;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--s-4);
  letter-spacing: 0;
}
.hero-moxa__content p {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: var(--s-7);
  max-width: 480px;
}
.hero-moxa__actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Remove old hero and footer styles that conflict */

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-moxa__content h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   Delivery polish — Moxa-inspired public-site system
   ──────────────────────────────────────────────────── */
.site-shell { overflow-x: hidden; }
.site-shell main { overflow: clip; }
.site-header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 rgba(15, 38, 41, .1); }
.site-utility { min-height: 30px; font-size: 11px; letter-spacing: .15px; }
.site-primary-nav { border-bottom: 0; }
.site-mega-menu { border-top: 3px solid var(--accent); box-shadow: 0 18px 36px rgba(15,38,41,.16); }
.site-footer { border-top: 4px solid var(--accent); }
.catalog-workspace { background: #edf2f3; padding-top: clamp(48px, 6vw, 80px); }
.catalog-layout { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.catalog-filter-rail { position: sticky; top: 110px; display: grid; gap: 2px; padding: 22px 0; border-top: 3px solid var(--accent); }
.catalog-filter-label { margin: 0 0 8px; color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.catalog-filter-link { padding: 9px 12px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
.catalog-filter-link:hover, .catalog-filter-link.is-active { border-left-color: var(--accent); background: rgba(255,255,255,.78); color: var(--accent); }
.catalog-results { min-width: 0; }
.catalog-intro { padding: 0 0 30px; }
.catalog-category-card { margin: 0 0 18px; padding: 0; overflow: hidden; background: #fff; border: 1px solid #dbe4e5; border-left: 4px solid var(--accent); box-shadow: 0 7px 18px rgba(15,38,41,.045); }
.catalog-category-card .prod-cat-header { padding: 22px 26px; border-bottom: 1px solid #e6eded; background: #fff; }
.catalog-category-card .prod-chips { padding: 20px 26px 24px; }
.catalog-category-card .prod-chip { border-radius: 0; background: #f4f7f7; border-color: #dde6e7; }
.catalog-category-card .prod-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.product-detail-layout { position: relative; }
.product-detail-summary { min-height: 430px; }
.product-detail-summary .ph-gallery { box-shadow: 0 12px 28px rgba(15,38,41,.07); }
.product-detail-summary .prod-hero-info { max-width: 720px; }
.product-detail-summary .ph-cert-row { padding: 14px 0; border-top: 1px solid #e3eaeb; border-bottom: 1px solid #e3eaeb; }
.content-workspace--editorial { background: #fff; }
.content-workspace--editorial .page-hero { border-bottom: 1px solid #dbe4e5; }
.content-workspace--editorial .section-alt, .content-workspace--editorial .section-blue-gray { background: #edf2f3; }
.content-workspace--editorial .card, .content-workspace--editorial .news-card { border-radius: 0; }
.content-workspace--home .section-head { max-width: 780px; }
.utility { background: #151b1d; border-bottom: 1px solid rgba(255,255,255,.08); }
.utility .container { max-width: var(--max-w); }
nav { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.nav-inner { gap: clamp(18px, 3vw, 44px); }
.nav-logo img { height: 42px; width: auto; }
.nav-menu > li > a { min-height: 56px; align-items: center; letter-spacing: .1px; }
.nav-right .btn { min-width: 116px; justify-content: center; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-alt { background: #f3f6f6; }
.section-blue-gray { background: #e8eff0; }
.section-head { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.7px; }
.section-head p { line-height: 1.75; }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.2; text-transform: uppercase; }
.section-kicker::before { content: ''; width: 28px; height: 2px; background: var(--cta); }
.page-hero--industrial { min-height: 310px; display: flex; align-items: flex-end; isolation: isolate; }
.page-hero--industrial::after { content: ''; position: absolute; inset: auto 0 0 auto; width: min(42vw, 640px); height: 100%; opacity: .26; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,255,255,.35) 27px 28px); transform: skewX(-18deg) translateX(18%); }
.page-hero .section-kicker { color: #fff; margin: 0 0 14px; }
.page-hero .section-kicker::before { background: var(--cta); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 820px; letter-spacing: -1px; }
.page-hero p { line-height: 1.7; }
.search-hero { min-height: 320px; display: flex; align-items: center; background: #172225; }
.search-hero .section-kicker { color: #96d5d3; margin-bottom: 14px; }
.search-hero .section-kicker::before { background: var(--cta); }
.search-form { align-items: stretch; }
.search-form input { min-height: 52px; border-color: #c9d6d7; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.search-form .btn { min-height: 52px; }
.news-card { border-top: 3px solid transparent; }
.news-card:hover { border-top-color: var(--cta); transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15,38,41,.12); }

.hero-moxa { min-height: clamp(500px, 56vw, 680px); }
.hero-moxa__bg { transform: scale(1.015); }
.hero-moxa__bg::after { background: linear-gradient(90deg, rgba(9,20,22,.9) 0%, rgba(8,35,36,.7) 44%, rgba(8,35,36,.12) 100%); }
.hero-moxa__content { max-width: 670px; padding-left: clamp(0px, 1.5vw, 20px); }
.hero-moxa__content h1 { font-size: clamp(38px, 4.3vw, 60px); line-height: 1.08; letter-spacing: -1.6px; }
.hero-moxa__content p { line-height: 1.75; max-width: 590px; }
.hero-moxa__actions { margin-top: 30px; }
.btn { min-height: 46px; padding: 12px 24px; font-weight: 700; }
.btn-primary { background: var(--cta); box-shadow: 0 10px 22px rgba(224,122,30,.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(224,122,30,.3); }
.btn-accent { box-shadow: 0 10px 22px rgba(0,102,102,.18); }

.stats-strip { border-top: 4px solid var(--cta); background: #172225; }
.stats-strip .stat-item { position: relative; }
.stats-strip .stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 20%; width: 1px; height: 60%; background: rgba(255,255,255,.14); }
.latest-card, .feat-prod-card, .pick-card, .card, .product-card, .prod-card { border-color: #dde5e6; }
.latest-card:hover, .feat-prod-card:hover, .pick-card:hover, .card:hover, .product-card:hover, .prod-card:hover { transform: translateY(-4px); border-color: rgba(0,135,135,.5); box-shadow: 0 18px 38px rgba(15,38,41,.12); }
.feat-prod-card .fpc-img { background: linear-gradient(135deg, #f1f6f6, #e1ebeb); }
.feat-prod-card .fpc-name { font-size: 22px; }
.ind-card { min-height: 136px; display: grid; align-content: center; gap: 8px; border-top: 3px solid transparent; }
.ind-card:hover { border-top-color: var(--cta); }
.ind-card .icon { filter: grayscale(1); opacity: .84; }
.ind-card:hover .icon { filter: none; opacity: 1; }

.prod-hero { background: linear-gradient(180deg, #fff 0%, #f4f8f8 100%); border-bottom: 1px solid var(--border); }
.prod-hero .prod-hero-grid { align-items: center; }
.prod-hero .ph-gallery { background: #fff; border: 1px solid var(--border); }
.prod-hero .prod-hero-info .section-kicker { margin-bottom: 14px; }
.prod-hero .ph-subtitle { max-width: 690px; color: var(--text-2); font-size: 16px; line-height: 1.8; }
.prod-tabs-wrap { box-shadow: 0 8px 18px rgba(15,38,41,.06); }
.overview-spec-section { max-width: 960px; margin: 0 0 28px; padding: 28px 32px; background: #fff; border: 1px solid #dce5e5; border-top: 3px solid var(--accent); box-shadow: 0 8px 22px rgba(15,38,41,.045); }
.overview-spec-section h3 { margin: 0 0 18px; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.35; }
.overview-spec-list { display: grid; gap: 10px; }
.overview-spec-copy { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.85; }
.overview-spec-bullet { position: relative; padding: 9px 0 9px 22px; color: var(--text-2); font-size: 15px; line-height: 1.7; border-bottom: 1px solid #edf1f1; }
.overview-spec-bullet:last-child { border-bottom: 0; }
.overview-spec-bullet::before { content: ''; position: absolute; top: 20px; left: 2px; width: 8px; height: 2px; background: var(--cta); }
.overview-spec-row { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 20px; padding: 12px 14px; background: #f5f8f8; font-size: 14px; line-height: 1.65; }
.overview-spec-key { color: var(--text); font-weight: 700; }
.overview-spec-value { color: var(--text-2); }
.overview-spec-label { padding: 8px 0; color: var(--text); font-size: 14px; font-weight: 700; }
.contact-grid > div:last-child { padding: clamp(24px, 4vw, 42px); background: #f5f8f8; border-top: 4px solid var(--accent); }
.contact-form input, .contact-form select, .contact-form textarea { border-color: #ccd9da; }
.contact-form input:hover, .contact-form select:hover, .contact-form textarea:hover { border-color: var(--accent); }
.about-stats .stat-card { border-top: 3px solid var(--accent); }

.footer-moxa { background: #101719; }
.footer__main { padding-top: clamp(50px, 6vw, 76px); padding-bottom: clamp(42px, 5vw, 64px); }
.footer__col h4 { color: #fff; letter-spacing: .8px; }
.footer__col--links a { padding: 5px 0; }

@media (max-width: 768px) {
  .page-hero--industrial { min-height: 250px; }
  .hero-moxa__content { padding-left: 0; }
  .stats-strip .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat-item + .stat-item::before { display: none; }
  .contact-grid > div:last-child { padding: 24px; }
  .overview-spec-section { padding: 24px 20px; }
  .overview-spec-row { grid-template-columns: 1fr; gap: 4px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 22px; }
  .catalog-filter-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; background: #fff; border: 1px solid #dbe4e5; border-top: 3px solid var(--accent); }
  .catalog-filter-label { grid-column: 1 / -1; }
  .catalog-category-card .prod-cat-header, .catalog-category-card .prod-chips { padding-left: 18px; padding-right: 18px; }
}

/* Datasheet-inspired profile shared by every product detail page */
.product-profile { background: #fff; }
.product-profile-hero { background: #fff; padding: clamp(48px, 6vw, 84px) 0 52px; }
.product-profile-hero h1 { margin: 0; color: var(--accent); font-size: clamp(34px, 4vw, 50px); font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.product-profile-subtitle { margin: 20px 0 clamp(42px, 5vw, 68px); color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2vw, 27px); line-height: 1.4; }
.product-profile-grid { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.product-profile-image-column { min-width: 0; }
.product-profile-image { display: block; width: 100%; max-height: 300px; object-fit: contain; }
.product-profile-feature-column h2,
.product-profile-specifications h2 { margin: 0 0 12px; color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.35; }
.product-profile-feature-column ul,
.product-profile-benefit-columns ul { margin: 0; padding-left: 20px; }
.product-profile-feature-column li,
.product-profile-benefit-columns li { margin: 4px 0; color: var(--text); font-size: 15px; line-height: 1.65; }
.product-profile-cert-heading { margin-top: 30px !important; }
.product-profile-certifications { display: flex; flex-wrap: wrap; gap: 9px 12px; padding-left: 0 !important; list-style: none; }
.product-profile-certifications li { border: 1px solid #cfd6d7; color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .2px; padding: 7px 10px; }
.product-profile-overview,
.product-profile-specifications,
.product-profile-models { padding: 42px 0; }
.product-profile-overview { max-width: 1040px; }
.product-profile-introduction { margin: 0 0 14px; color: var(--text); font-size: 16px; line-height: 1.8; }
.product-profile-benefit-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; }
.product-profile-spec-section { margin: 0 0 30px; }
.product-profile-spec-section > h2,
.product-profile-models > h2 { color: var(--accent); font-size: 23px; }
.product-profile-table-scroll { overflow-x: auto; }
.product-profile-spec-table { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 14px; line-height: 1.55; }
.product-profile-spec-table th,
.product-profile-spec-table td { background: #eee; color: var(--text); padding: 10px 14px; text-align: left; vertical-align: top; }
.product-profile-spec-table th { font-weight: 600; width: 36%; }
.product-profile-spec-table thead th { background: #dfe5e5; min-width: 100px; }
.product-profile-comparison-table { min-width: 1100px; }
.product-profile-comparison-table th { width: auto; }

@media (max-width: 768px) {
  .product-profile-hero { padding: 36px 0; }
  .product-profile-subtitle { margin-bottom: 30px; }
  .product-profile-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-profile-benefit-columns { grid-template-columns: 1fr; }
  .product-profile-overview,
  .product-profile-specifications,
  .product-profile-models { padding: 30px 0; }
  .product-profile-spec-table { min-width: 560px; }
}
