/* ==========================================================================
   HOXCO — Metrology-grade identity
   Concept: the site reads like a calibrated optical instrument —
   navy structure (#0B3B66), one cyan optical accent, mono type for every
   measured value, hairline rules, caliper tick marks, ROI brackets.
   Theme: light (default) / dark via [data-theme="dark"] on <html>
   ========================================================================== */
:root {
  color-scheme: light;
  /* Light theme (default) */
  --bg: #f4f6f9;
  --bg-2: #edf1f6;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --line: rgba(11, 31, 51, .11);
  --line-2: rgba(11, 31, 51, .19);
  --text: #0e1c2c;
  --muted: #4d5d72;
  --muted-2: #66788f;
  --lead-text: #2e3d50;
  --nav-link: #34435a;

  --navy: #0b3b66;       /* brand navy — structural ink                     */
  --navy-deep: #062845;  /* instrument panels / gradients                   */
  --navy-ink: #041c33;   /* deepest navy — footer base                      */
  --brand: #0e7490;      /* accessible cyan (readable text/icon on light)   */
  --brand-fill: #22d3ee; /* bright cyan — optical marks, ticks, focus       */
  --brand-2: #0d9488;    /* legacy teal token (kept for vision page)        */
  --brand-2-fill: #2dd4bf;
  --signal: #a35208;     /* accessible amber (text)                         */
  --signal-fill: #f5b13d;
  --ok: #047857;
  --ok-fill: #34d399;
  --danger: #dc2626;
  --danger-fill: #f56565;
  --ink: #062633;        /* text on bright cyan fills, constant             */

  --surface-1: rgba(11, 31, 51, .035);
  --surface-2: rgba(11, 31, 51, .022);
  --surface-3: rgba(11, 31, 51, .055);
  --surface-4: rgba(11, 31, 51, .09);
  --grid-line: rgba(11, 59, 102, .06);

  /* Buttons — navy on light, cyan on dark (set per-theme) */
  --btn-bg: var(--navy);
  --btn-bg-hover: #0d4a80;
  --btn-fg: #ffffff;

  --nav-bg: rgba(255, 255, 255, .82);
  --nav-bg-scrolled: rgba(255, 255, 255, .95);
  --nav-shadow: 0 8px 24px rgba(11, 31, 51, .07);
  --topbar-bg: #ffffff;
  --footer-bg: rgba(11, 31, 51, .028);
  --mobile-menu-bg: rgba(255, 255, 255, .98);

  --shadow: 0 18px 50px rgba(11, 31, 51, .12);
  --shadow-sm: 0 8px 22px rgba(11, 31, 51, .08);
  --flash-success-text: #065f46;
  --flash-error-text: #991b1b;

  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1180px;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Caliper ruler — small tick every 9px, tall tick every 45px */
  --ruler:
    repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 45px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 9px);
}

[data-theme="dark"] {
  color-scheme: dark;
  /* Dark = deep brand navy, not neutral black */
  --bg: #06121f;
  --bg-2: #081827;
  --panel: #0b1e30;
  --panel-2: #0f2437;
  --line: rgba(214, 233, 248, .10);
  --line-2: rgba(214, 233, 248, .17);
  --text: #e9f1f9;
  --muted: #9db0c5;
  --muted-2: #74889f;
  --lead-text: #c3d2e2;
  --nav-link: #c6d2e2;

  --navy: #0b3b66;
  --navy-deep: #062845;
  --navy-ink: #041c33;
  --brand: #38d5ee;
  --brand-fill: #22d3ee;
  --brand-2: #2dd4bf;
  --brand-2-fill: #2dd4bf;
  --signal: #f5b13d;
  --signal-fill: #f5b13d;
  --ok: #34d399;
  --ok-fill: #34d399;
  --danger: #f56565;
  --danger-fill: #f56565;
  --ink: #062633;

  --surface-1: rgba(214, 233, 248, .04);
  --surface-2: rgba(214, 233, 248, .02);
  --surface-3: rgba(214, 233, 248, .065);
  --surface-4: rgba(214, 233, 248, .1);
  --grid-line: rgba(120, 190, 230, .045);

  --btn-bg: var(--brand-fill);
  --btn-bg-hover: #53dcf2;
  --btn-fg: var(--ink);

  --nav-bg: rgba(6, 18, 31, .84);
  --nav-bg-scrolled: rgba(5, 15, 26, .95);
  --nav-shadow: 0 8px 24px rgba(0, 0, 0, .32);
  --topbar-bg: #081827;
  --footer-bg: rgba(4, 12, 21, .5);
  --mobile-menu-bg: rgba(6, 16, 27, .98);

  --shadow: 0 18px 50px rgba(0, 0, 0, .42);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .3);
  --flash-success-text: #b8f5dc;
  --flash-error-text: #ffc9c9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  min-height: 100vh;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--maxw), calc(100% - 44px)); margin: 0 auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-fill); color: var(--ink); padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* Keyboard focus — visible ring on every interactive element */
:focus-visible { outline: 2px solid var(--brand-fill); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline-offset: 3px; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 19px; }
h4 { font-size: 15.5px; letter-spacing: -.01em; }
p { color: var(--muted); margin: 14px 0 0; }
.lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--lead-text); }
.lead strong { color: var(--text); font-weight: 600; }

/* Eyebrow — a measurement label: mono, uppercase, cyan tick prefix */
.eyebrow {
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 14px; height: 8px; margin-right: 10px; flex-shrink: 0;
  border-left: 2px solid var(--brand-fill); border-bottom: 2px solid var(--brand-fill);
}
.text-link { font-weight: 600; color: var(--brand); display: inline-block; margin-top: 12px; font-size: 14.5px; }
.text-link:hover { color: var(--text); }

/* --- Buttons — machined, rectangular ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 15px;
  white-space: nowrap;
  padding: 13px 26px; border-radius: 9px; color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: var(--shadow-sm);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2); box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-1); border-color: var(--muted-2); box-shadow: none; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(220, 38, 38, .35); box-shadow: none; }
.btn-danger:hover { background: rgba(220, 38, 38, .1); box-shadow: none; transform: none; }

/* --- Theme toggle ---------------------------------------------------------*/
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  cursor: pointer; transition: background .2s, border-color .2s;
}
.theme-toggle:hover { background: var(--surface-3); border-color: var(--muted-2); }
.theme-toggle svg { width: 17px; height: 17px; flex-shrink: 0; }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.theme-toggle span { display: none; }
.theme-toggle-mobile { display: none; }

/* --- Topbar / Nav -------------------------------------------------------- */
.topbar { font-family: var(--mono); font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--topbar-bg); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; flex-wrap: wrap; gap: 8px; }
.topbar-dot::before { content: "●"; color: var(--ok-fill); margin-right: 7px; font-size: 9px; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact a:hover { color: var(--brand); }
.tico { width: 14px; height: 14px; flex-shrink: 0; color: var(--brand); }

.lang-switch { position: relative; margin-left: 4px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang-switch > summary { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; transition: color .15s, background .15s; }
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary:hover { color: var(--brand); background: var(--surface-3); }
.lang-switch > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang-switch summary .tico { color: currentColor; }
.lang-switch .lang-code { letter-spacing: .02em; }
.lang-switch .lang-caret { width: 13px; height: 13px; transition: transform .18s; }
.lang-switch[open] > summary { color: var(--brand); background: var(--surface-3); }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1100; display: flex; flex-direction: column; min-width: 150px; padding: 6px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-sm); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; font-family: var(--sans); }
.lang-menu a:hover:not(.active) { background: var(--surface-3); color: var(--brand); }
.lang-menu a.active { background: var(--navy); color: #fff; }
.lang-menu a.active::after { content: "✓"; font-size: 11px; color: var(--brand-fill); }
@media (max-width: 480px) { .lang-switch { margin-left: auto; border-left: none; padding-left: 0; } }

.nav { position: sticky; top: 0; z-index: 1000; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.scrolled { background: var(--nav-bg-scrolled); box-shadow: var(--nav-shadow); }
.nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; font-weight: 800; letter-spacing: -.03em; font-size: 21px; line-height: 1; color: var(--text); }
.brand-text em { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14.5px; margin-left: auto; min-width: 0; }
.nav-links a:not(.btn) { color: var(--nav-link); font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand-fill); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Sections ------------------------------------------------------------ */
.section { padding: 88px 0; position: relative; }
.section.pt-0 { padding-top: 44px; }
.section.muted { background: transparent; }
.section.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .section.band { background: var(--surface-2); }

/* Section head — caliper ruler under the title: measurement, not decoration */
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head p { font-size: 16px; }
.section-head::after {
  content: ""; display: block; width: 180px; height: 9px; margin-top: 22px;
  background-image: var(--ruler);
  background-size: 100% 9px, 100% 5px;
  background-position: bottom left, bottom left;
  background-repeat: no-repeat;
}
.center-cta { text-align: center; margin-top: 44px; }

/* --- Flash --------------------------------------------------------------- */
.flash-wrap { padding-top: 22px; }
.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 10px; font-weight: 500; border: 1px solid var(--line-2); }
.flash-success { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .4); color: var(--flash-success-text); }
.flash-error { background: rgba(245, 96, 96, .12); border-color: rgba(245, 96, 96, .4); color: var(--flash-error-text); }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 72px 0 0; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 18%, #000 40%, transparent 100%);
  mask-image: radial-gradient(72% 64% at 50% 18%, #000 40%, transparent 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; padding-bottom: 48px; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { max-width: 620px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Hero stats — one fused instrument cluster, hairline-divided */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hero-stats div { padding: 16px 16px 14px; background: var(--panel); }
.hero-stats strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--text); letter-spacing: -.01em; }
.hero-stats strong::after { content: ""; display: block; width: 18px; height: 2px; margin: 8px 0 6px; background: var(--brand-fill); }
.hero-stats span { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; display: block; }

/* Vision scan mock — fixed-dark "device screen" in both themes */
.hero-visual { position: relative; display: grid; place-items: center; }
.scan-wrap { position: relative; width: min(430px, 100%); z-index: 2; }

/* SIGNATURE — ROI registration brackets: the corner frame a vision system
   draws around its region of interest. Only the 4 corners of the border show. */
.roi {
  position: absolute; inset: -16px; pointer-events: none; z-index: 3;
  border: 2px solid var(--brand-fill); border-radius: 4px;
  -webkit-mask:
    linear-gradient(#000 0 0) top left, linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left, linear-gradient(#000 0 0) bottom right;
  mask:
    linear-gradient(#000 0 0) top left, linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left, linear-gradient(#000 0 0) bottom right;
  -webkit-mask-size: 26px 26px; -webkit-mask-repeat: no-repeat;
  mask-size: 26px 26px; mask-repeat: no-repeat;
}
.roi-tag {
  position: absolute; top: -12px; left: 20px; font-family: var(--mono); font-size: 10px;
  font-weight: 600; letter-spacing: .14em; color: var(--brand); background: var(--bg);
  padding: 1px 8px; border: 1px solid var(--line); border-radius: 4px;
}
.scan-card { width: 100%; background: #0b1622; border: 1px solid rgba(214, 233, 248, .14); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; z-index: 2; }

/* ROI frame around an inspected sample (solution / product hero image) */
.roi-media { position: relative; max-width: 620px; margin: 0 auto; }
.roi-media .roi { inset: -12px; }
.roi-media .roi-tag { top: -12px; }
.roi-media img { position: relative; z-index: 2; margin: 0; }
.scan-head { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid rgba(214, 233, 248, .09); }
.scan-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-g { background: #34d399; } .dot-y { background: #f5b13d; } .dot-r { background: #f56565; }
.scan-head em { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #74889f; font-style: normal; }
.scan-stage { position: relative; height: 230px; margin: 16px; border-radius: 8px; background: #081019; border: 1px solid rgba(214, 233, 248, .09); overflow: hidden; }
/* crosshair centre lines — the instrument is always aiming */
.scan-stage::before, .scan-stage::after { content: ""; position: absolute; background: rgba(34, 211, 238, .12); }
.scan-stage::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scan-stage::after { top: 50%; left: 0; right: 0; height: 1px; }
.scan-beam { position: absolute; left: 0; right: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, #22d3ee, transparent); box-shadow: 0 0 18px 3px rgba(34, 211, 238, .55); animation: scanY 2.8s ease-in-out infinite; }
@keyframes scanY { 0%,100% { top: 12%; } 50% { top: 86%; } }
.scan-part { position: absolute; border-radius: 6px; border: 1.5px solid rgba(214, 233, 248, .3); background: rgba(214, 233, 248, .05); }
.scan-part.p1 { width: 62px; height: 62px; left: 20%; top: 26%; }
.scan-part.p2 { width: 46px; height: 46px; left: 54%; top: 30%; border-color: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .16); }
.scan-part.p3 { width: 54px; height: 40px; left: 40%; top: 58%; }
.scan-reticle { position: absolute; left: 54%; top: 30%; width: 46px; height: 46px; border: 2px solid #22d3ee; border-radius: 6px; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
.scan-readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(214, 233, 248, .09); border-top: 1px solid rgba(214, 233, 248, .09); }
.scan-readout div { background: #0b1622; padding: 13px 16px; }
.scan-readout small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; color: #74889f; display: block; }
.scan-readout b { font-family: var(--mono); font-weight: 600; font-size: 16px; color: #e9f1f9; }
.scan-readout b.ok { color: #34d399; }
/* Orbs retired — the instrument does not glow */
.hero-orb { display: none; }

/* Partner marquee */
.partner-marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--panel); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
[data-theme="dark"] .partner-marquee { background: transparent; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.partner-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .1em; color: var(--muted-2); white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Bento (solutions on home) ------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: transform .22s, border-color .22s, box-shadow .22s; overflow: hidden; }
.bento-card:hover { transform: translateY(-3px); border-color: var(--brand-fill); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .bento-card { background: var(--surface-1); }
.bento-no { position: absolute; top: 12px; right: 14px; z-index: 2; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #b6ccdf; background: rgba(4, 28, 51, .55); border: 1px solid rgba(214, 233, 248, .25); padding: 2px 9px; border-radius: 5px; backdrop-filter: blur(3px); }

/* Illustration banners (SVG) — fixed dark canvas by design, both themes */
.card-banner { display: block; width: calc(100% + 48px); height: 190px; margin: -24px -24px 20px; object-fit: cover; background: #0e1620; border-bottom: 1px solid var(--line); }
.bento-card, .card { overflow: hidden; }
.row-banner { width: 100%; height: auto; max-width: 420px; aspect-ratio: 480 / 300; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #0e1620; margin-bottom: 22px; }
.detail-hero-img { width: 100%; height: auto; max-width: 620px; aspect-ratio: 480 / 300; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--radius); background: #0e1620; box-shadow: var(--shadow-sm); margin: 0 auto; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { font-size: 14.5px; }
.bento-cta { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-color: var(--navy); display: flex; flex-direction: column; justify-content: center; grid-column: 1 / -1; }
.bento-cta h3 { color: #fff; }
.bento-cta p { color: #c4d5ea; }
.bento-cta:hover { border-color: var(--brand-fill); }
.bento-cta .btn { margin-top: 18px; align-self: flex-start; background: var(--brand-fill); color: var(--ink); }
.bento-cta .btn:hover { background: #53dcf2; }

/* Support solutions (dịch vụ phụ trợ quanh lõi ảnh) */
.support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.support-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); border-top: 2px solid var(--navy); transition: border-color .2s; }
[data-theme="dark"] .support-item { background: var(--surface-1); border-top-color: var(--brand-fill); }
.support-item:hover { border-top-color: var(--brand-fill); }
.support-item h4 { margin-bottom: 8px; color: var(--text); }
.support-item p { font-size: 13.5px; margin-top: 6px; }

/* --- Split / why --------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--lead-text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--brand); background: rgba(34, 211, 238, .1); }
.check-list li::after { content: "✓"; position: absolute; left: 3.5px; top: 3px; font-size: 11px; color: var(--brand); font-weight: 800; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
[data-theme="dark"] .why-item { background: var(--surface-1); }
.why-item h4 { margin-bottom: 8px; color: var(--text); }
.why-item p { font-size: 14px; margin-top: 6px; }

/* --- Process timeline — 5 stations on one rail --------------------------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.process-step { position: relative; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: border-color .2s; }
[data-theme="dark"] .process-step { background: var(--surface-1); }
.process-step:hover { border-color: var(--brand-fill); }
.process-step::before { content: ""; position: absolute; top: -1px; left: 18px; width: 34px; height: 3px; background: var(--brand-fill); }
.process-no { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brand); letter-spacing: .1em; }
.process-step h4 { margin: 10px 0 8px; }
.process-step p { font-size: 13.5px; margin-top: 6px; }

/* --- Cards --------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: transform .22s, border-color .22s, box-shadow .22s; }
[data-theme="dark"] .card { background: var(--surface-1); }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.link-card:hover { border-color: var(--brand-fill); }

/* ROI lock-on — a link card is "targeted" like a region of interest.
   Reserved for navigable cards only; plain info cards stay quiet. */
.link-card::after, .bento-card::after {
  content: ""; position: absolute; inset: 9px; z-index: 4; pointer-events: none;
  border: 2px solid var(--brand-fill); border-radius: 4px; opacity: 0;
  transition: opacity .22s ease;
  -webkit-mask:
    linear-gradient(#000 0 0) top left, linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left, linear-gradient(#000 0 0) bottom right;
  mask:
    linear-gradient(#000 0 0) top left, linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left, linear-gradient(#000 0 0) bottom right;
  -webkit-mask-size: 18px 18px; -webkit-mask-repeat: no-repeat;
  mask-size: 18px 18px; mask-repeat: no-repeat;
}
.link-card:hover::after, .bento-card:hover::after { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); border: 1px solid rgba(245, 177, 61, .45); background: rgba(245, 177, 61, .09); padding: 3px 10px; border-radius: 5px; margin-bottom: 14px; }
.ico-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; font-family: var(--mono); font-weight: 600; font-size: 16px; color: var(--brand); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .35); margin-bottom: 16px; }

/* --- Page hero ----------------------------------------------------------- */
.page-hero { padding: 68px 0 24px; position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 80% at 12% 0%, #000 25%, transparent 90%);
  mask-image: radial-gradient(75% 80% at 12% 0%, #000 25%, transparent 90%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; margin-bottom: 18px; }
.page-hero .lead { max-width: 720px; }
.page-hero-sm { padding-top: 40px; }
.crumbs { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a { color: var(--brand); }
.crumbs span { margin: 0 8px; }
.error-page { min-height: 52vh; display: grid; align-items: center; }

/* --- Solution list ------------------------------------------------------- */
.solution-list { display: grid; gap: 18px; }
.solution-row { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
[data-theme="dark"] .solution-row { background: var(--surface-1); }
.solution-row-head { display: flex; align-items: center; gap: 20px; margin-bottom: 10px; }
.solution-no { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--brand); opacity: .5; }
.solution-row-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; margin-top: 20px; }
.feature-grid.wide { grid-template-columns: repeat(2, 1fr); }
.feature-grid li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--lead-text); }
.feature-grid li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 6px; border-left: 2px solid var(--brand-fill); border-bottom: 2px solid var(--brand-fill); }

/* --- Solution detail ----------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.detail-aside { padding: 26px; border: 1px solid var(--line-2); border-left: 3px solid var(--brand-fill); border-radius: var(--radius); background: var(--panel); position: sticky; top: 92px; }
[data-theme="dark"] .detail-aside { background: var(--surface-1); }
.outcome { padding: 16px 0; border-top: 1px solid var(--line); }
.outcome:first-of-type { border-top: 0; padding-top: 12px; }
.outcome h4 { color: var(--text); margin-bottom: 4px; }
.outcome p { font-size: 14px; margin-top: 4px; }

/* --- Capabilities -------------------------------------------------------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap-col { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
[data-theme="dark"] .cap-col { background: var(--surface-1); }
.cap-col h4 { color: var(--brand); font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.cap-col li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--lead-text); }
.cap-col li:first-child { border-top: 0; }

/* --- Stat panel / metrics ------------------------------------------------ */
.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-panel div { padding: 26px 20px; background: var(--panel); }
.stat-panel strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 24px; color: var(--navy); letter-spacing: -.01em; }
[data-theme="dark"] .stat-panel strong { color: var(--brand); }
.stat-panel span { font-size: 13.5px; color: var(--muted); }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.metric-row div { padding: 24px; background: var(--panel); }
.metric-row strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--text); margin-bottom: 6px; }
.metric-row span { font-size: 13.5px; color: var(--muted-2); }

/* --- CTA card — navy instrument panel, ROI-targeted ----------------------- */
.cta-card {
  --text: #ffffff; --muted: #c4d5ea; --lead-text: #c4d5ea; --brand: #7fe3f5;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px;
  border-radius: var(--radius-lg); color: var(--text);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border: 1px solid rgba(255, 255, 255, .12); flex-wrap: wrap;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 120% at 90% 0%, #000, transparent 70%);
  mask-image: radial-gradient(120% 120% at 90% 0%, #000, transparent 70%);
}
/* ROI brackets on the CTA — the region the reader is asked to act on */
.cta-card::after {
  content: ""; position: absolute; inset: 12px; z-index: 0; pointer-events: none;
  border: 2px solid rgba(127, 227, 245, .6); border-radius: 4px;
  -webkit-mask:
    linear-gradient(#000 0 0) top left, linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left, linear-gradient(#000 0 0) bottom right;
  mask:
    linear-gradient(#000 0 0) top left, linear-gradient(#000 0 0) top right,
    linear-gradient(#000 0 0) bottom left, linear-gradient(#000 0 0) bottom right;
  -webkit-mask-size: 22px 22px; -webkit-mask-repeat: no-repeat;
  mask-size: 22px 22px; mask-repeat: no-repeat;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { max-width: 640px; color: #fff; }
.cta-card p { max-width: 620px; }
.cta-card .btn { flex-shrink: 0; background: var(--brand-fill); color: var(--ink); }
.cta-card .btn:hover { background: #53dcf2; }

/* --- Instrument band (navy control-panel callout) ------------------------- */
.instrument-band {
  --text: #ffffff; --muted: #c4d5ea; --brand: #7fe3f5;
  position: relative; overflow: hidden; color: var(--text);
  padding: 48px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  border: 1px solid rgba(255, 255, 255, .12);
}
.instrument-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 30px 30px; -webkit-mask-image: radial-gradient(120% 120% at 88% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 120% at 88% 0%, #000, transparent 70%);
}
.instrument-band > * { position: relative; z-index: 1; }
.instrument-band-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.instrument-band h2 { margin: 10px 0 0; color: #fff; }
.instrument-band p { color: var(--muted); font-size: 16px; }
.instrument-readout { display: grid; gap: 8px; }
.instrument-readout li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid rgba(127, 227, 245, .7); border-radius: 8px; }
.instrument-readout span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--brand); flex-shrink: 0; }
.instrument-readout b { font-size: 14px; color: #fff; text-align: right; }

/* --- Contact / forms (shared: contact / admin / login) -------------------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.info-item { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-item .eyebrow { margin-bottom: 6px; }
.info-item a, .info-item span:not(.eyebrow) { display: block; font-size: 17px; color: var(--text); font-weight: 500; }
.info-item a:hover { color: var(--brand); }
.info-note { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
[data-theme="dark"] .info-note { background: var(--surface-1); }
.info-note h4 { margin-bottom: 14px; }
.contact-form-wrap, .panel-card { padding: 32px; border: 1px solid var(--line-2); border-top: 3px solid var(--navy); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .contact-form-wrap, [data-theme="dark"] .panel-card { border-top-color: var(--brand-fill); }
.contact-form-wrap h3, .panel-card h3 { margin-bottom: 20px; }
.contact-form, .admin-form, .login-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label, .admin-form label, .login-form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--lead-text); }
.contact-form input, .contact-form select, .contact-form textarea,
.admin-form input, .admin-form select, .admin-form textarea,
.login-form input {
  font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 12px 14px; font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus,
.login-form input:focus { outline: none; border-color: var(--brand-fill); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.contact-form textarea, .admin-form textarea { resize: vertical; }
.contact-form select option, .admin-form select option { background: var(--panel); color: var(--text); }
.contact-form .btn, .admin-form .btn, .login-form .btn { margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 0; }
.field-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.field-hint { font-size: 12px; color: var(--muted-2); font-weight: 400; }

/* --- Admin shell ----------------------------------------------------------*/
.admin-shell { padding: 44px 0 90px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.import-help { margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-1); font-size: 14px; color: var(--lead-text); }
.import-help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.import-help code { background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: 13px; font-family: var(--mono); }
.import-report { margin-top: 20px; }
.import-report ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.admin-tabs a { padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.admin-tabs a:hover { color: var(--text); background: var(--surface-1); }
.admin-tabs a.active { color: #fff; background: var(--navy); }
[data-theme="dark"] .admin-tabs a.active { color: var(--ink); background: var(--brand-fill); }
.admin-tabs a.danger { color: var(--danger); margin-left: auto; }
.admin-tabs a.danger:hover { background: rgba(220, 38, 38, .1); }
.auth-wrap { min-height: 62vh; display: grid; place-items: center; padding: 60px 0; }
.auth-card { width: min(400px, 100%); }
.auth-card .eyebrow { display: block; text-align: center; }
.auth-card .eyebrow::before { display: none; }
.auth-card h1 { text-align: center; font-size: 28px; margin-bottom: 6px; }
.auth-card .lead { text-align: center; margin: 0 0 26px; font-size: 14.5px; }

/* --- Admin table (leads + products) ---------------------------------------*/
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.lead-table, .admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 800px; }
.lead-table th, .lead-table td, .admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lead-table th, .admin-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); background: var(--surface-2); }
.lead-table tr:hover td, .admin-table tr:hover td { background: var(--surface-2); }
.msg-cell { max-width: 260px; color: var(--muted); }
.admin-table .name-cell { font-weight: 700; color: var(--text); }
.admin-table .actions-cell { display: flex; gap: 8px; white-space: nowrap; }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #0e1620; border: 1px solid var(--line); }
.status-badge { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 5px; font-weight: 600; }
.status-badge.active { color: var(--ok); background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .3); }
.status-badge.hidden { color: var(--muted-2); background: var(--surface-3); border: 1px solid var(--line); }
.empty-state { padding: 60px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* --- Product image upload field --------------------------------------------*/
.img-field { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.img-preview { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: #0e1620; border: 1px solid var(--line-2); }

/* --- Public products -------------------------------------------------------*/
.price-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--brand); margin-top: 4px; }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-hero-img { width: 100%; height: auto; aspect-ratio: 480 / 300; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line-2); background: #0e1620; box-shadow: var(--shadow-sm); }
.spec-list { margin-top: 18px; display: grid; gap: 10px; }
.spec-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--lead-text); }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 6px; border-left: 2px solid var(--brand-fill); border-bottom: 2px solid var(--brand-fill); }

/* --- Footer — navy brand anchor ------------------------------------------- */
.footer {
  --text: #eaf1f8; --muted: #a9bdd4; --muted-2: #8299b6; --brand: #6bd8ee;
  --line: rgba(255, 255, 255, .12);
  border-top: 1px solid rgba(255, 255, 255, .10); color: var(--muted);
  background: linear-gradient(180deg, var(--navy), var(--navy-ink));
  padding: 56px 0 26px; margin-top: 24px;
}
.footer .brand-text { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand-col p { font-size: 14px; max-width: 340px; margin-top: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-badges span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted-2); border: 1px solid var(--line); border-radius: 5px; padding: 4px 10px; }
.footer h4 { color: var(--text); margin-bottom: 16px; font-size: 13px; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer a:not(.brand) { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.footer a:not(.brand):hover { color: var(--brand); }
.footer p { font-size: 14px; margin: 4px 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); flex-wrap: wrap; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom a { color: var(--brand); }

/* --- Floating CTA -------------------------------------------------------- */
.floating-cta { position: fixed; right: 20px; bottom: 20px; z-index: 900; background: var(--brand-fill); color: var(--ink); font-weight: 700; font-size: 14.5px; padding: 13px 20px; border-radius: 10px; box-shadow: 0 12px 30px rgba(34, 211, 238, .35); transition: transform .2s, box-shadow .2s; }
.floating-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(34, 211, 238, .45); }

/* --- Utilities ------------------------------------------------------------*/
.panel-narrow { max-width: 720px; }
.stack { display: grid; gap: 10px; }
.mt-28 { margin-top: 28px; }
.mt-64 { margin-top: 64px; }
.product-group + .product-group { margin-top: 56px; }

/* --- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .split, .detail-grid, .contact-grid, .product-hero, .instrument-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .instrument-band { padding: 34px; }
  .hero-visual { order: -1; }
  .detail-aside { position: static; }
  .bento, .cards, .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .process, .metric-row, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Mid-range nav compression — keep all links on one line down to ~960px */
@media (max-width: 1120px) {
  .nav-links { gap: 13px; font-size: 14px; }
  .nav-links .btn-sm { padding: 9px 14px; }
}
/* Nav collapses to hamburger below 960px (7 links + CTA need the room) */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .theme-toggle.nav-mobile-only-hide { display: none; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; font-size: 14.5px; background: var(--mobile-menu-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); padding: 8px 22px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; margin-left: 0; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--brand); }
  .nav-links .btn { margin-top: 14px; }
  .theme-toggle-mobile { display: flex; width: 100%; height: auto; border-radius: 9px; justify-content: flex-start; gap: 12px; padding: 12px 14px; margin-top: 10px; }
  .theme-toggle-mobile span { display: inline; font-size: 14px; font-weight: 600; }
}
@media (max-width: 720px) {
  .topbar-inner { justify-content: center; }
  .hero { padding-top: 52px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .section-head::after { width: 135px; }
  .field-row, .img-field { grid-template-columns: 1fr; }
  .cta-card { padding: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .floating-cta { right: 14px; bottom: 14px; padding: 11px 16px; font-size: 13.5px; }
  .admin-tabs a.danger { margin-left: 0; }
}
@media (max-width: 520px) {
  .bento, .cards, .cap-grid, .process, .metric-row, .support-grid, .feature-grid, .feature-grid.wide, .why-grid, .stat-panel, .footer-grid { grid-template-columns: 1fr; }
  .solution-row-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-beam, .scan-reticle, .marquee-track { animation: none; }
  .btn:hover, .card:hover, .bento-card:hover, .floating-cta:hover { transform: none; }
}
