/* ═══════════════════════════════════════════════════════════════
   PORTLOGICS — Light techno v3 (WordPress port)
   Inspired by Apple · Linear · Meta · Instagram · X
   Base light + bento grid + command card + constellation + grain
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Base — warm off-white */
  --bg:         #f6f7fb;
  --bg-2:       #ffffff;
  --bg-soft:    #eef0f7;
  --panel:      #ffffff;
  --panel-2:    #f9fafc;
  --border:     #e3e6ef;
  --border-2:   #cdd2df;
  --border-3:   #b5bccc;

  /* Ink (trên nền sáng) */
  --ink:        #0a0f1f;
  --ink-2:      #1e2436;
  --ink-3:      #4b5468;
  --ink-4:      #6d7589;
  --ink-5:      #a0a7b8;
  --ink-mute:   #6d7589;  /* back-compat */
  --ink-faint:  #a0a7b8;  /* back-compat */

  /* Ink (trên nền tối - dùng footer dark mode fallback) */
  --ink-on-dark:      #f6f9fc;
  --ink-on-dark-2:    #c9d3e0;
  --ink-on-dark-mute: #8a97a8;

  /* Accents */
  --cyan:       #0891b2;
  --cyan-2:     #06b6d4;
  --violet:     #7c3aed;
  --violet-2:   #8b5cf6;
  --emerald:    #059669;
  --amber:      #d97706;
  --pink:       #db2777;
  --red:        #dc2626;
  --indigo:     #4f46e5;

  /* Brand back-compat (cũ) */
  --brand-navy:       #0a0f1f;
  --brand-navy-dark:  #05070f;
  --brand-navy-light: #1e2436;
  --brand-green:      var(--cyan);
  --brand-green-soft: var(--cyan-2);
  --brand-green-glow: rgba(8, 145, 178, 0.2);
  --brand-green-tint: rgba(8, 145, 178, 0.08);

  /* Gradients */
  --grad-hero:  linear-gradient(120deg, #0891b2 0%, #7c3aed 55%, #db2777 100%);
  --grad-pill:  linear-gradient(135deg, #0891b2, #4f46e5);
  --grad-tos:   linear-gradient(160deg, #e0f2fe 0%, #ede9fe 100%);
  --grad-eport: linear-gradient(160deg, #ede9fe 0%, #fce7f3 100%);
  --grad-gate:  linear-gradient(160deg, #d1fae5 0%, #cffafe 100%);
  --grad-wms:   linear-gradient(160deg, #fef3c7 0%, #fed7aa 100%);
  --grad-cem:   linear-gradient(160deg, #fce7f3 0%, #fee2e2 100%);
  --grad-fs:    linear-gradient(160deg, #cffafe 0%, #dbeafe 100%);
  --grad-pms:   linear-gradient(160deg, #e0e7ff 0%, #ede9fe 100%);

  /* Typography */
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;
  --font-sans: var(--f-sans);   /* back-compat */
  --font-mono: var(--f-mono);

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10, 15, 31, 0.04), 0 1px 3px rgba(10, 15, 31, 0.03);
  --sh-md: 0 4px 12px -2px rgba(10, 15, 31, 0.06), 0 2px 4px rgba(10, 15, 31, 0.04);
  --sh-lg: 0 20px 40px -10px rgba(10, 15, 31, 0.12), 0 8px 16px -4px rgba(10, 15, 31, 0.06);
  --sh-xl: 0 40px 100px -20px rgba(8, 145, 178, 0.25), 0 20px 40px -8px rgba(10, 15, 31, 0.10);
  --sh-glow-c: 0 0 0 1px rgba(8, 145, 178, 0.3), 0 14px 34px -10px rgba(8, 145, 178, 0.5);

  /* Spacing scale */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem; --s-10: 2.5rem;
  --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  /* Type scale */
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.6vw, 1.5rem);
  --text-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 4vw, 3rem);
  --text-hero: clamp(2.25rem, 4.8vw, 4.25rem);

  /* Radius */
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);

  --max-w: 1280px;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(8,145,178,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(124,58,237,0.06), transparent 60%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: inherit; font-weight: 500; }
strong { font-weight: 700; color: var(--ink); }

/* Subtle grain texture — like Apple */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.03;
  mix-blend-mode: multiply;
}

.grad-text {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
}

/* Background decor (fixed) */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(10, 15, 31, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 15, 31, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -15%; left: 50%; transform: translateX(-50%);
  width: 1400px; height: 700px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(8, 145, 178, 0.15), transparent 65%);
  filter: blur(60px); opacity: .75;
}

/* ═══ SITE HEADER (glass) ═══ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(246, 247, 251, 0.78);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  gap: 28px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
}
@media (min-width: 1281px) {
  .site-header { max-width: 100%; padding: 14px max(24px, calc((100% - var(--max-w))/2 + 24px)); }
}
.site-header .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 800; letter-spacing: 0.3px;
  font-size: 15px;
  color: var(--ink);
}
.site-header .brand svg { width: 28px; height: 28px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad-pill);
  box-shadow: 0 4px 14px -2px rgba(8, 145, 178, 0.45);
  position: relative; display: inline-block;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 4px;
  border: 2px solid #ffffff; border-radius: 5px;
  border-top-color: transparent; border-right-color: transparent;
}
.brand-text em {
  font-style: normal; font-weight: 500;
  color: var(--ink-4); font-size: 12px; margin-left: 2px;
}

.site-nav {
  display: flex; gap: 24px;
  margin-left: 12px;
}
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  padding: 6px 2px;
  transition: color .18s;
}
.site-nav a:hover,
.site-nav .current_page_item a,
.site-nav .current-menu-item a { color: var(--ink); }

.header-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 14px;
}
.header-actions .btn-primary {
  font-size: 13px; font-weight: 700; color: #fff;
  padding: 9px 16px; border-radius: 10px;
  background: var(--grad-pill);
  box-shadow: var(--sh-glow-c);
  transition: .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.header-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(8,145,178,0.4), 0 18px 40px -10px rgba(8,145,178,0.6);
}

.menu-toggle {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.menu-toggle span {
  width: 18px; height: 2px; background: var(--ink-2); border-radius: 1px;
}

@media (max-width: 960px) {
  .site-header { padding: 10px 14px; gap: 10px; }
  .site-nav { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { padding: 8px 14px; font-size: 12px; border-radius: 10px; }
  .menu-toggle { display: inline-flex; }
  body.nav-open .site-nav {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--panel);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-lg);
    z-index: 49;
  }
}
@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
  .brand { font-size: 16px; }
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-pill);
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: var(--sh-glow-c);
  transition: .2s var(--ease);
  font-family: var(--f-sans);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(8,145,178,0.4), 0 20px 44px -10px rgba(8,145,178,0.55);
}
.btn-primary.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  background: var(--panel);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  box-shadow: var(--sh-sm);
  transition: .2s var(--ease);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--sh-md); }
.btn-ghost.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 14px; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: 60px 24px 40px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(75,84,104,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,84,104,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 85%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, .35), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(139, 92, 246, .3), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(219, 39, 119, .18), transparent 50%);
  filter: blur(90px);
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
  text-align: center;
  padding-top: 24px; padding-bottom: 96px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.3px;
  box-shadow: var(--sh-sm);
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.45;} }

.hero-title {
  font-family: var(--f-display);
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 22px auto 18px;
  color: var(--ink);
  max-width: 860px;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic; font-weight: 500;
  color: var(--ink-3);
}
.hero-title .grad {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
  font-style: italic; font-weight: 500;
}

.hero-sub {
  max-width: 620px; margin: 0 auto 32px;
  font-size: 17px; color: var(--ink-3); line-height: 1.6;
  text-wrap: balance;
}
.hero-cta {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px;
}

/* ═══ HERO COMMAND CARD (thay dashboard mockup cũ) ═══ */
.command-card {
  position: relative; z-index: 2;
  max-width: 920px; margin: -40px auto 0;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xl);
  overflow: hidden;
}
.cc-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}
.cc-dot-r, .cc-dot-y, .cc-dot-g {
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(10,15,31,0.15);
}
.cc-dot-r { background: #ff5f57; }
.cc-dot-y { background: #febc2e; }
.cc-dot-g { background: #28c840; }
.cc-title {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-4);
  margin-left: 10px;
}
.cc-demo-badge {
  margin-left: 10px;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #b8511c;
  background: linear-gradient(135deg, #fff3e6 0%, #ffe5cc 100%);
  border: 1px solid #f4b67e;
  text-transform: uppercase;
  cursor: help;
  user-select: none;
}
.cc-time {
  margin-left: auto;
  font-family: var(--f-mono); font-size: 12px; color: var(--cyan);
  font-weight: 700;
}
.cc-node {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: linear-gradient(90deg, rgba(8,145,178,0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cc-node-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.45);
  animation: cc-node-pulse 1.6s ease-out infinite;
}
.cc-node-label {
  color: var(--ink-2);
  font-weight: 600;
}
.cc-node-src {
  margin-left: auto;
  font-family: var(--f-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: lowercase;
  padding: 2px 8px;
  border-radius: 999px;
  color: #0e7490;
  background: rgba(8,145,178,0.08);
  border: 1px solid rgba(8,145,178,0.18);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}
.cc-node-src:hover { background: rgba(8,145,178,0.18); color: #155e75; text-decoration: none; }
.cc-node-src::before { content:"↗"; margin-right: 3px; opacity: 0.8; }
@keyframes cc-node-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
@keyframes cc-flip-in {
  0%   { opacity: 0.4; transform: translateY(2px); }
  100% { opacity: 1;   transform: translateY(0); }
}
.command-card.cc-flip .cc-row,
.command-card.cc-flip .cc-log {
  animation: cc-flip-in 0.45s ease-out;
}
@media (max-width: 720px) {
  .cc-node { padding: 8px 14px; font-size: 10px; }
  .cc-demo-badge { font-size: 9px; padding: 2px 6px; }
  .cc-node-src { font-size: 8.5px; padding: 1px 6px; }
}
.cc-body { padding: 22px 24px; }
.cc-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-bottom: 22px;
}
.cc-metric {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  transition: .2s;
}
.cc-metric:hover { border-color: var(--border-2); transform: translateY(-1px); }
.cc-metric-label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px;
  color: var(--ink-4); text-transform: uppercase;
}
.cc-metric-value {
  font-family: var(--f-display); font-size: 30px; font-weight: 700;
  margin-top: 4px; display: flex; align-items: baseline; gap: 10px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.cc-metric-delta {
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
}
.cc-metric-delta.up { color: var(--emerald); background: rgba(5,150,105,0.1); }
.cc-spark { margin-top: 10px; height: 30px; }
.cc-spark svg { width: 100%; height: 100%; }

.cc-log {
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.cc-log-row {
  display: grid; grid-template-columns: 64px 90px 1fr;
  gap: 10px; align-items: center;
  padding: 5px 0;
  font-family: var(--f-mono); font-size: 12.5px;
}
.tag-ok, .tag-warn {
  padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-align: center;
}
.tag-ok { background: rgba(5,150,105,0.1); color: var(--emerald); }
.tag-warn { background: rgba(217,119,6,0.1); color: var(--amber); }
.ts { color: var(--ink-4); }
.msg { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Marquee — chạy vô tận bằng CSS @keyframes (không cần JS) */
.hero-marquee {
  margin-top: 18px;
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0;
  border-top: 1px dashed var(--border-2);
  border-bottom: 1px dashed var(--border-2);
  overflow: hidden;
}
.marquee-label {
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-4);
  letter-spacing: 2px; text-transform: uppercase;
  flex-shrink: 0;
  padding-right: 20px;
  border-right: 1px solid var(--border-2);
}
.marquee-viewport {
  flex: 1; min-width: 0;
  position: relative;
  overflow: hidden;
  /* Fade hai đầu — hiệu ứng "trờ ra/vào" mượt */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: inline-flex; gap: 20px; align-items: center;
  white-space: nowrap;
  font-family: var(--f-display); font-weight: 600;
  color: var(--ink-3); font-size: 15px;
  /* Tốc độ điều chỉnh qua --marquee-duration; mặc định 60s cho ~50 items */
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
  will-change: transform;
}
.hero-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item { color: var(--ink-2); transition: color .2s var(--ease); }
.marquee-item:hover { color: var(--violet); }
.marquee-dot { color: var(--cyan); font-size: 16px; opacity: 0.6; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* prefers-reduced-motion: giữ marquee chạy nhưng chậm hơn (không wrap static nữa
   vì user explicitly muốn slide). Tăng duration 3x để trơn nhẹ nhàng. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: calc(var(--marquee-duration, 60s) * 2.5); }
}

/* ═══ STATS ═══ */
.stats {
  max-width: var(--max-w); margin: 80px auto 40px;
  padding: 0 24px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px dashed var(--border-2);
  border-bottom: 1px dashed var(--border-2);
  padding: 32px 0;
  position: relative;
}
.stats-grid .stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.stats-grid .stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display); font-size: clamp(38px, 5vw, 58px); font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
  line-height: 1;
}
.stat-num em {
  /* Dấu + sau con số — giữ gradient cho number, kiểu superscript mầm
     với opacity full và vị trí nhổi raised để dễ nhận ra. */
  display: inline-block;
  font-style: normal;
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: 0.35em;
  margin-left: 2px;
  /* Reset background-clip — dùng solid color để đủ contrast */
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--violet, #7c3aed);
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}
.stats-grid .stat-label {
  font-size: 13px; color: var(--ink-4);
  letter-spacing: 0.3px;
  margin-top: 10px;
}

/* ═══ SECTION HEAD ═══ */
.section-head {
  max-width: var(--max-w); margin: 0 auto 48px;
  padding: 0 24px;
}
.section-head.center { text-align: center; max-width: 900px; }
.section-head.between {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.eyebrow {
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--cyan); letter-spacing: 2.5px; text-transform: uppercase;
  display: inline-block; margin-bottom: 16px;
  padding: 5px 11px;
  background: rgba(8, 145, 178, 0.06);
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 5px;
  font-weight: 600;
}
.section-title,
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.06; margin: 0 0 14px;
  color: var(--ink);
}
.section-title.large { font-size: clamp(36px, 5vw, 64px); }
.section-title em,
.section-head h2 em {
  font-style: italic; font-weight: 500;
  color: var(--ink-3);
}
.section-title strong { font-weight: 700; }
.section-lead,
.section-sub {
  color: var(--ink-3); font-size: 17px; max-width: 720px;
  line-height: 1.65;
  margin: 0;
}
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.link-arrow {
  font-family: var(--f-mono); font-size: 13px; color: var(--cyan);
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid rgba(8,145,178,0.25);
  background: rgba(8,145,178,0.04);
  font-weight: 700;
  transition: .18s;
}
.link-arrow:hover { background: rgba(8,145,178,0.08); }

/* ═══ PRODUCTS — Linear/Vercel-style typography-first ═══
   Bỏ hoàn toàn box mockup ảnh. Dùng: icon chip monoline + hierarchy chữ mạnh.
   Featured card (đầu tiên) chiếm 2 cột, khác biệt bởi gradient accent + size.
*/
.products {
  padding: 110px 0 90px;
  background: var(--bg);
}
.product-grid {
  max-width: var(--max-w); margin: 48px auto 0; padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.product-card {
  position: relative;
  padding: 28px 26px 84px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(10,15,31,0.08);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .32s var(--ease), box-shadow .32s var(--ease);
  isolation: isolate;
  grid-column: span 2;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
}
.product-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -24px rgba(10,15,31,0.18), 0 2px 6px rgba(10,15,31,0.04);
}

/* Featured (first) — giant showcase */
.product-card.featured,
.product-card:nth-of-type(1) {
  grid-column: span 4; grid-row: span 2;
  padding: 40px 40px 96px;
  min-height: 456px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(124,58,237,0.10) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(6,182,212,0.09) 0%, transparent 60%),
    #ffffff;
}

/* Subtle dot-grid watermark on featured only */
.product-card:nth-of-type(1)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(10,15,31,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(120% 80% at 100% 0%, #000 0%, transparent 70%);
  opacity: 0.6;
}

/* Secondary card (nth 2) — slightly elevated */
.product-card:nth-of-type(2) {
  grid-column: span 2; grid-row: span 2;
  padding: 32px 30px 88px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(6,182,212,0.08) 0%, transparent 60%),
    radial-gradient(70% 50% at 0% 100%, rgba(124,58,237,0.06) 0%, transparent 65%),
    #ffffff;
  min-height: 456px;
}
/* Subtle dot-grid watermark on slot 2 (matches slot 1 visual weight) */
.product-card:nth-of-type(2)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(10,15,31,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(120% 80% at 100% 0%, #000 0%, transparent 70%);
  opacity: 0.55;
}
/* Slightly larger title + excerpt for slot 2 (typography breathing) */
.product-card:nth-of-type(2) h3 {
  font-size: 24px; line-height: 1.18; letter-spacing: -0.024em;
  margin-bottom: 12px;
  max-width: 320px;
}
.product-card:nth-of-type(2) p {
  font-size: 15px; line-height: 1.65;
}
.product-card:nth-of-type(2) .product-icon-chip {
  width: 50px; height: 50px; border-radius: 12px;
  margin-bottom: 26px;
}
.product-card:nth-of-type(2) .product-icon-chip svg {
  width: 26px; height: 26px;
}
.product-card:nth-of-type(3),
.product-card:nth-of-type(4),
.product-card:nth-of-type(5),
.product-card:nth-of-type(6),
.product-card:nth-of-type(7),
.product-card:nth-of-type(8) { grid-column: span 2; }

.product-card > * { position: relative; z-index: 1; }

/* Icon chip — top-left, minimal geometric */
.product-card .product-icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(6,182,212,0.10), rgba(124,58,237,0.08));
  border: 1px solid rgba(10,15,31,0.06);
  color: var(--cyan);
  margin-bottom: 22px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.product-card .product-icon-chip svg {
  width: 24px; height: 24px; display: block;
  stroke-width: 1.7;
}
.product-card:hover .product-icon-chip {
  background: linear-gradient(135deg, rgba(8,145,178,0.18), rgba(124,58,237,0.14));
  transform: scale(1.04) rotate(-1deg);
}
.product-card.featured .product-icon-chip,
.product-card:nth-of-type(1) .product-icon-chip {
  width: 56px; height: 56px; border-radius: 14px;
  margin-bottom: 32px;
}
.product-card.featured .product-icon-chip svg,
.product-card:nth-of-type(1) .product-icon-chip svg {
  width: 30px; height: 30px;
}

/* Product code (monospace eyebrow) */
.product-card .card-id {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--cyan);
  background: none; border: none; padding: 0;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Title — typography-first, strong hierarchy */
.product-card h3 {
  font-family: var(--f-display);
  font-size: 21px; font-weight: 600; letter-spacing: -0.022em;
  margin: 0 0 10px; line-height: 1.2;
  color: var(--ink);
}
.product-card.featured h3,
.product-card:nth-of-type(1) h3 {
  font-size: 34px; line-height: 1.08; letter-spacing: -0.028em;
  margin-bottom: 14px;
  max-width: 540px;
}
.product-card p {
  color: var(--ink-3); font-size: 14px; line-height: 1.6;
  margin: 0; flex: 1;
}
.product-card.featured p,
.product-card:nth-of-type(1) p { font-size: 16px; max-width: 520px; line-height: 1.65; }

.product-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px;
}
.card-tags span {
  font-family: var(--f-mono); font-size: 10.5px;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(10,15,31,0.035);
  border: 1px solid rgba(10,15,31,0.07);
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Bottom CTA — text + arrow, reveal on hover */
.product-card .card-cta {
  position: absolute; left: 26px; right: 26px; bottom: 26px;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(10,15,31,0.06);
  font-family: var(--f-display);
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  transition: color .22s var(--ease), border-color .22s var(--ease);
}
.product-card.featured .card-cta,
.product-card:nth-of-type(1) .card-cta {
  left: 40px; right: 40px; bottom: 32px;
  font-size: 14px;
}
.product-card .card-cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10,15,31,0.04);
  color: var(--ink-2);
  font-size: 14px;
  transition: transform .28s var(--ease), background .28s var(--ease), color .28s var(--ease);
}
.product-card:hover .card-cta {
  color: var(--ink);
  border-top-color: rgba(124,58,237,0.25);
}
.product-card:hover .card-cta-arrow {
  background: var(--ink);
  color: #fff;
  transform: translateX(4px);
}

/* See-all link (replaces the see-all card) */
.products-see-all {
  max-width: var(--max-w); margin: 28px auto 0; padding: 0 24px;
  text-align: center;
}
.products-see-all-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 14.5px; letter-spacing: -0.005em;
  color: var(--ink-3);
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .2s var(--ease);
}
.products-see-all-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  gap: 14px;
}
.products-see-all-link span { font-weight: 500; transition: transform .2s var(--ease); }
.products-see-all-link:hover span { transform: translateX(2px); }

/* ═══ ARCHITECTURE (platform constellation) ═══ */
.architecture {
  padding: 80px 24px;
  position: relative;
}
.arch-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.arch-grid > div:first-child .eyebrow { margin-bottom: 18px; }
.feature-list {
  list-style: none; padding: 0; margin: 28px 0 0;
}
.feature-list li {
  padding: 22px 0;
  border-bottom: 1px dashed var(--border-2);
  display: grid; grid-template-columns: 56px 1fr;
  gap: 18px; align-items: flex-start;
  color: var(--ink-3); font-size: 14.5px; line-height: 1.65;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: attr(data-tag);
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(8,145,178,0.07);
  border: 1px solid rgba(8,145,178,0.22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 700; color: var(--cyan);
  font-size: 12px;
}
.feature-list li strong {
  display: block; font-family: var(--f-display);
  font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em; margin-bottom: 4px;
}
.arch-svg {
  max-width: 520px; margin: 0 auto; width: 100%; height: auto;
  aspect-ratio: 1;
}

/* ═══ CASE STUDIES ═══ */
.case-study {
  padding: 80px 0;
}
.case-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
}
.case-card {
  padding: 40px;
  border-radius: var(--r-2xl);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--sh-md);
  position: relative; overflow: hidden;
}
.case-card.lg { grid-row: span 2; }
.case-card::before {
  content:''; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(circle at 80% 20%, rgba(8,145,178,0.10), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(124,58,237,0.08), transparent 50%);
  pointer-events: none;
}
.case-card > * { position: relative; z-index: 1; }
.case-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); text-transform: uppercase;
  padding: 4px 10px; border: 1px solid rgba(8,145,178,0.25); border-radius: 5px;
  display: inline-block; margin-bottom: 20px;
  background: rgba(8,145,178,0.05);
  font-weight: 700;
}
.case-card h3 {
  font-family: var(--f-display); font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px;
  color: var(--ink);
}
.case-card.lg h3 { font-size: 34px; }
.case-card p {
  color: var(--ink-3); font-size: 15.5px; line-height: 1.65;
  margin: 0;
}
.case-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 28px; padding-top: 24px;
  border-top: 1px dashed var(--border-2);
}
.case-card.lg .case-stats { grid-template-columns: repeat(3, 1fr); }
.case-stats > div { display: flex; flex-direction: column; }
.case-stats b {
  font-family: var(--f-display); font-size: 34px; font-weight: 700;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}
.case-stats div > :not(b) {
  color: var(--ink-4); font-size: 12.5px; margin-top: 8px; line-height: 1.4;
}

/* ═══ CUSTOMER WALL — Apple-style monogram showcase ═══ */
.customer-wall {
  padding: 96px 0 80px;
  position: relative;
}
.customer-wall .section-head { margin-bottom: 48px; }
.cw-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cw-card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(10,15,31,0.03);
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: .32s var(--ease);
  isolation: isolate;
  min-height: 260px;
}
.cw-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 85% 0%, rgba(6,182,212,0.08), transparent 48%),
    radial-gradient(circle at 10% 110%, rgba(124,58,237,0.06), transparent 52%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cw-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: 0 14px 32px rgba(10,15,31,0.08);
}
.cw-card:hover::before { opacity: 1; }
.cw-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.cw-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  color: #fff;
  font-family: var(--f-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(124,58,237,0.18);
}
.cw-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.6px;
  color: var(--ink-4); text-transform: uppercase; font-weight: 700;
}
.cw-title {
  font-family: var(--f-display);
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; margin: 0 0 16px;
  color: var(--ink);
}
.cw-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px 0 18px;
  border-top: 1px dashed var(--border-2);
  margin-top: auto;
}
.cw-stat { display: flex; flex-direction: column; gap: 4px; }
.cw-stat b {
  font-family: var(--f-display); font-weight: 700;
  font-size: 26px; letter-spacing: -0.025em; line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.cw-stat span {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--ink-4); letter-spacing: 0.5px;
  line-height: 1.35;
}
.cw-link {
  font-family: var(--f-display); font-weight: 600;
  font-size: 13.5px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.cw-link span { transition: transform .2s var(--ease); }
.cw-card:hover .cw-link { color: var(--cyan); gap: 10px; }
.cw-card:hover .cw-link span { transform: translateX(2px); }

/* ═══ NEWS ═══ */
.news {
  padding: 80px 0 100px;
}
.news-grid {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.news-card {
  border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: .28s var(--ease);
  box-shadow: var(--sh-sm);
  padding: 24px;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--sh-lg);
}
.news-meta {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--ink-4); margin-bottom: 14px;
}
.news-meta span:first-child {
  padding: 3px 9px; border-radius: 5px;
  background: rgba(8,145,178,0.06);
  border: 1px solid rgba(8,145,178,0.18);
  color: var(--cyan); font-weight: 700;
  letter-spacing: 0.5px;
}
.news-card h3 {
  font-family: var(--f-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.25;
  color: var(--ink); margin: 0 0 10px;
}
.news-card p {
  color: var(--ink-3); font-size: 14px; line-height: 1.55;
  margin: 0; flex: 1;
}

/* ═══ CTA ═══ */
.cta {
  position: relative;
  padding: 100px 24px;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(8,145,178,0.12), transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(124,58,237,0.12), transparent 60%);
}
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(8,145,178,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,145,178,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent);
}
.cta-inner {
  max-width: 780px; margin: 0 auto; text-align: center;
  position: relative;
}
.cta-inner .section-title {
  margin-bottom: 20px;
}
.cta-inner p {
  font-size: 17px; line-height: 1.65;
  margin: 0 auto 40px;
  max-width: 640px;
  color: var(--ink-3);
}
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
}

/* ═══ FOOTER (nền tối để logo trắng hiển thị rõ + tăng tương phản techno) ═══ */
.site-footer {
  position: relative;
  border-top: 1px solid rgba(124,58,237,.25);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(6,182,212,.10), transparent 65%),
    radial-gradient(800px 500px at 90% 100%, rgba(124,58,237,.12), transparent 65%),
    linear-gradient(180deg, #0a0f1f 0%, #121833 100%);
  color: #e6ecff;
  padding: 72px 24px 28px;
  margin-top: 60px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  color: #a9b4d6; font-size: 13.5px; line-height: 1.6;
  margin: 14px 0 16px;
  max-width: 320px;
}
.footer-grid h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 2px;
  color: #7c8bbd; text-transform: uppercase;
  margin: 0 0 14px; font-weight: 700;
}
.footer-grid a {
  display: block; color: #d5dcf0; font-size: 14px;
  padding: 6px 0; transition: color .18s;
}
.footer-grid a:hover { color: #06b6d4; }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; color: #7c8bbd;
}
.footer-bottom a { color: #a9b4d6; margin-left: 14px; }
.footer-bottom a:hover { color: #06b6d4; }
/* Đảm bảo logo trong footer trắng (nếu user chưa upload logo_dark riêng) */
.site-footer .custom-logo { filter: brightness(0) invert(1); }
.site-footer .brand--dark-custom { filter: none; }

/* === PORTLOGICS multi-office footer (HCM + Hải Phòng + Đà Nẵng) === */
.footer-grid-portlogics {
  grid-template-columns: 1.4fr 1.1fr 1.1fr 1.1fr 1fr;
  gap: 36px 32px;
}
.footer-office h4 {
  color: #06b6d4;
  margin: 0 0 12px;
}
.footer-office-line {
  font-size: 13.5px; line-height: 1.55; color: #cdd5ed;
  margin: 0 0 6px;
}
.footer-office-line a {
  display: inline; color: inherit; padding: 0;
  text-decoration: none; border-bottom: 1px dashed transparent;
  transition: color .18s, border-color .18s;
}
.footer-office-line a:hover { color: #22d3ee; border-bottom-color: rgba(34,211,238,.6); }
.footer-office-key {
  display: inline-block; min-width: 64px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.6px;
  color: #7c8bbd; text-transform: uppercase; font-weight: 600;
}
.footer-tax {
  font-size: 13px; color: #a9b4d6; margin: 6px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-tax .footer-office-key { min-width: 0; }
.footer-social {
  display: flex; gap: 10px; margin-top: 4px;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: #cdd5ed;
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0; margin: 0;
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.footer-social a:hover {
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  color: #fff; border-color: transparent;
  transform: translateY(-2px);
}
.footer-links a {
  display: block; padding: 4px 0; font-size: 13.5px;
}

/* === PRODUCT CARD COVER (featured image hero) === */
.product-card-cover {
  position: relative;
  width: calc(100% + 48px);
  margin: -28px -24px 16px;       /* edge-to-edge bleed */
  aspect-ratio: 4 / 3;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(124,58,237,.10), transparent 60%),
    #ffffff;
  border-bottom: 1px solid rgba(124,58,237,.08);
}
.product-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.product-card-cover-glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 110%, rgba(8,145,178,.12), transparent 70%);
  opacity: .65; pointer-events: none;
  transition: opacity .35s ease;
}
.product-card:hover .product-card-cover img { transform: scale(1.04); }
.product-card:hover .product-card-cover-glow { opacity: 1; }
.product-card.featured .product-card-cover,
.product-card:nth-of-type(1) .product-card-cover {
  aspect-ratio: 16 / 9;            /* featured card thấp hơn */
}

/* When card has cover, hide chip fallback layout differences */
.product-icon-chip--fallback { /* same as before */ }

@media (max-width: 768px) {
  .product-card-cover { aspect-ratio: 16/10; }
}

/* === COMMAND CENTER LIVE animation === */
@keyframes cc-pulse-fade {
  0%   { background: rgba(34,211,238,.25); }
  60%  { background: rgba(34,211,238,.06); }
  100% { background: transparent; }
}
.cc-metric.cc-pulse {
  animation: cc-pulse-fade .9s ease-out;
  border-radius: 6px;
}
@keyframes cc-spark-scan-anim {
  0%   { stroke-dashoffset: 240; opacity: .65; }
  60%  { opacity: 1; }
  100% { stroke-dashoffset: 0;   opacity: .85; }
}
.cc-spark.cc-spark-scan svg polyline,
.cc-spark.cc-spark-scan svg path {
  stroke-dasharray: 240;
  animation: cc-spark-scan-anim 6s linear infinite;
}
@keyframes cc-log-slide-in {
  0%   { transform: translateY(-8px); opacity: 0; background: rgba(34,211,238,.12); }
  60%  { background: rgba(34,211,238,.06); }
  100% { transform: translateY(0);    opacity: 1; background: transparent; }
}
.cc-log-row.cc-log-row-new {
  animation: cc-log-slide-in .6s ease-out;
}
/* Live status dot near header */
.cc-head .cc-dot-g {
  position: relative;
}
.cc-head .cc-dot-g::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #34d399;
  animation: cc-live-pulse 2s ease-in-out infinite;
  opacity: .6;
  pointer-events: none;
  z-index: -1;
}
@keyframes cc-live-pulse {
  0%, 100% { transform: scale(1); opacity: .55; }
  50%      { transform: scale(1.6); opacity: 0; }
}

/* === CUSTOMER LOGO MARQUEE (2-row infinite slide) === */
.logo-marquee-wrap {
  margin: 48px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Fade edges so logos appear from "out of frame" */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.logo-marquee {
  position: relative;
  overflow: hidden;
}
.logo-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-left 60s linear infinite;
  will-change: transform;
}
.logo-marquee--right .logo-marquee-track {
  animation-name: marquee-right;
  animation-duration: 70s; /* hơi chám hơn cho đổ mắt */
}
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.logo-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid rgba(124,58,237,.10);
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: var(--ink);
  min-width: 220px;
  height: 76px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.logo-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(8,145,178,.40);
  box-shadow: 0 14px 32px -16px rgba(8,17,40,.20);
  background: linear-gradient(135deg, rgba(34,211,238,.04), rgba(124,58,237,.04));
}
.logo-chip-img {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 10px;
  border: 1px solid rgba(124,58,237,.06);
  padding: 6px;
}
.logo-chip-img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: grayscale(.10);
  transition: filter .25s ease;
}
.logo-chip:hover .logo-chip-img img { filter: grayscale(0); }
.logo-chip-mono {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0e7490, #6d28d9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-chip-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
  letter-spacing: .1px;
}
@media (max-width: 640px) {
  .logo-chip { min-width: 180px; height: 64px; padding: 10px 14px; gap: 10px; }
  .logo-chip-img { flex-basis: 44px; width: 44px; height: 44px; }
  .logo-chip-name { font-size: 13px; }
}

/* === CUSTOMER LOGO WALL (kept for archive page) === */
.customer-wall {
  max-width: var(--max-w);
  margin: 96px auto;
  padding: 0 24px;
}
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 48px 0 32px;
}
.logo-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  border: 1px solid rgba(124,58,237,.10);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.logo-cell::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(124,58,237,.08), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 0;
}
.logo-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(8,145,178,.35);
  box-shadow: 0 24px 60px -36px rgba(8,17,40,.25);
}
.logo-cell:hover::before { opacity: 1; }
.logo-cell > * { position: relative; z-index: 1; }

.logo-cell-img {
  display: flex; align-items: center; justify-content: center;
  height: 130px;
  padding: 16px 24px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(124,58,237,.06);
}
.logo-cell-img img {
  max-width: 80%;
  max-height: 96px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(.15) contrast(.95);
  transition: filter .35s ease, transform .35s ease;
}
.logo-cell:hover .logo-cell-img img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}
.logo-cell-mono {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #0e7490, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.logo-cell-meta {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 78px;
}
.logo-cell-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.logo-cell-sub {
  font-size: 11.5px;
  color: var(--ink-4);
  letter-spacing: .2px;
}
.customer-wall-cta {
  text-align: center;
  margin-top: 16px;
}
.customer-wall-cta .cw-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #0e7490;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(8,145,178,.30);
  background: #ffffff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.customer-wall-cta .cw-link:hover {
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  color: #ffffff;
  border-color: transparent;
}
@media (max-width: 1024px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .logo-cell-img { height: 100px; padding: 12px; }
  .logo-cell-img img { max-height: 70px; }
  .logo-cell-meta { padding: 10px 12px 14px; min-height: 64px; }
}

/* === SINGLE CUSTOMER (CASE STUDY) PAGE === */
.customer-single { background: var(--bg); }
.customer-article {
  max-width: 920px;
  margin: 48px auto 96px;
  padding: 0 24px;
}
.customer-head {
  margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 10px;
}
.customer-head-eyebrow {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  color: #0e7490; text-transform: uppercase;
}
.customer-head-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700; line-height: 1.05; letter-spacing: -1.5px;
  margin: 0;
  background: linear-gradient(135deg, #0a0f1f 0%, #0e7490 55%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.customer-head-sub {
  font-size: 16px;
  color: var(--ink-3);
  margin: 0;
}
.customer-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 32px;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(124,58,237,.10);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px -36px rgba(8,17,40,.20);
  margin-bottom: 32px;
}
.customer-card-logo {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 20px;
  min-height: 200px;
}
.customer-card-logo img {
  max-width: 80%; max-height: 160px;
  width: auto; height: auto;
  object-fit: contain;
}
.customer-card-mono {
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #0e7490, #6d28d9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.customer-card-meta {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0;
  align-self: center;
}
.customer-card-meta > div {
  display: flex; flex-direction: column; gap: 2px;
}
.customer-card-meta dt {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  color: var(--ink-4); text-transform: uppercase;
}
.customer-card-meta dd {
  font-size: 15px; color: var(--ink); margin: 0;
  line-height: 1.4;
}
.customer-card-meta a {
  color: #0e7490; text-decoration: none;
  border-bottom: 1px dashed rgba(8,145,178,.4);
}
.customer-card-meta a:hover { color: #6d28d9; border-bottom-color: rgba(124,58,237,.6); }
.customer-module-pill {
  display: inline-flex;
  margin: 2px 6px 2px 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(124,58,237,.15));
  border: 1px solid rgba(8,145,178,.30);
  color: #0e7490;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
}
.customer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.customer-stat {
  background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(124,58,237,.08));
  border: 1px solid rgba(124,58,237,.10);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.customer-stat b {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #0e7490, #6d28d9);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.customer-stat span { font-size: 14px; color: var(--ink-3); }
.customer-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 48px;
}
.customer-body p { margin: 0 0 16px; }
.customer-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  padding-top: 32px;
  border-top: 1px solid rgba(124,58,237,.10);
}
@media (max-width: 768px) {
  .customer-card { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .customer-stats { grid-template-columns: 1fr; }
  .customer-stat b { font-size: 34px; }
}

/* === SINGLE PRODUCT MODULE PAGE === */
.product-single { background: var(--bg); }
.product-article {
  max-width: var(--max-w);
  margin: 0 auto 96px;
  padding: 0 24px;
}
.product-head {
  margin: 48px 0 32px;
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-start;
}
.product-head-eyebrow {
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 13px; font-weight: 700; letter-spacing: 4px;
  color: #0e7490;
  text-transform: uppercase;
}
.product-head-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0;
  max-width: 18ch;
  background: linear-gradient(135deg, #0a0f1f 0%, #0e7490 55%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.product-head-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.product-head-tags span {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(8,145,178,.25);
  color: #0e7490;
  font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
}

/* Hero key visual figure: card 16:9 with the SVG-rendered key visual
   inside.  Use object-fit: contain to keep the hero typography intact
   (the image already contains code/title/tagline/tags — we won't crop). */
.product-keyvisual {
  margin: 0 0 48px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(120% 80% at 100% 100%, rgba(124,58,237,.12), transparent 60%),
    #ffffff;
  border: 1px solid rgba(124,58,237,.10);
  box-shadow: 0 24px 60px -32px rgba(8,17,40,.20);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-keyvisual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .product-keyvisual { aspect-ratio: 4/3; border-radius: 14px; }
  .product-head { margin: 32px 0 24px; }
}
.product-article-body {
  margin-top: 16px;
}
.product-article-body h2 {
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -.6px;
}
.product-article-body h2 span {
  color: var(--ink-4);
  font-weight: 500;
  font-size: 18px;
}
.product-article-body ul {
  margin: 0 0 24px;
  padding-left: 24px;
}
.product-article-body li {
  margin: 0 0 10px;
  line-height: 1.65;
}
.product-article-body li strong {
  color: var(--ink);
}
.product-article-body p {
  margin: 0 0 18px;
  line-height: 1.7;
}
.product-cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(124,58,237,.10);
}
@media (max-width: 768px) {
  .product-hero { padding: 40px 24px; min-height: 280px; border-radius: 20px; }
  .product-article { margin-bottom: 64px; padding: 0 16px; }
  .product-article-body h2 { font-size: 24px; }
}

/* ═══ SINGLE POST / PAGE PROSE ═══ */
.single-article,
.page-article {
  max-width: 780px;
  margin: 80px auto;
  padding: 0 24px;
}
.single-article > header,
.page-article > header {
  margin-bottom: 48px;
}
.single-article .cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  padding: 5px 11px; border-radius: 5px;
  background: rgba(8, 145, 178, 0.06);
  border: 1px solid rgba(8, 145, 178, 0.18);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.single-article h1,
.page-article h1 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--ink);
}
.single-article h1 em,
.page-article h1 em { font-style: italic; color: var(--ink-3); font-weight: 500; }
.single-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: var(--f-mono); font-size: 13px; color: var(--ink-4);
  padding-top: 16px; border-top: 1px dashed var(--border-2);
  margin-top: 20px;
}
.single-meta .meta-item { display: flex; align-items: center; gap: 6px; }

.prose {
  font-size: 17px; line-height: 1.75; color: var(--ink-2);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink);
  margin-top: 2em; margin-bottom: 0.4em;
}
.prose h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 24px); font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.6em; margin-bottom: 0.3em;
}
.prose p { margin: 0; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(8,145,178,0.3); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  padding: 10px 20px;
  background: rgba(8,145,178,0.04);
  border-radius: 0 10px 10px 0;
  margin: 1.6em 0;
  color: var(--ink-2); font-style: italic;
}
.prose code {
  font-family: var(--f-mono); font-size: 0.92em;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(10,15,31,0.05); color: var(--violet);
}
.prose pre {
  background: #0a0f1f; color: #e2e8f0;
  padding: 18px 22px; border-radius: 12px;
  overflow-x: auto; font-family: var(--f-mono); font-size: 13.5px;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose img { border-radius: 12px; box-shadow: var(--sh-md); margin: 1.4em 0; }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0;
  font-size: 14.5px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.prose th, .prose td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose th { background: var(--panel-2); font-weight: 700; color: var(--ink); font-family: var(--f-display); }

/* ═══ ARCHIVE / SEARCH ═══ */
.archive-header, .search-header {
  max-width: var(--max-w); margin: 80px auto 40px;
  padding: 0 24px;
}
.archive-header h1, .search-header h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; letter-spacing: -0.03em;
  margin: 0 0 10px; color: var(--ink);
}
.archive-list {
  max-width: var(--max-w); margin: 0 auto 80px;
  padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

/* Product module single */
.product-hero {
  padding: 80px 24px 40px;
  background: var(--grad-tos);
  border-bottom: 1px solid var(--border);
}
.product-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
}

/* ═══ HC-PARSER STYLED BLOCKS ═══ */
.hc-wrap { margin: 2em 0; }
.hc-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.hc-col { padding: 0; }
.hc-col.w-12 { grid-column: span 12; }
.hc-col.w-6  { grid-column: span 6; }
.hc-col.w-4  { grid-column: span 4; }
.hc-col.w-3  { grid-column: span 3; }
.hc-col.w-8  { grid-column: span 8; }

.hc-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}
.hc-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hc-figure img { width: 100%; display: block; }

.hc-stat {
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  text-align: center;
}
.hc-stat b {
  display: block;
  font-family: var(--f-display); font-size: 36px; font-weight: 700;
  background: var(--grad-hero);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.hc-stat span {
  display: block; margin-top: 8px;
  font-size: 13px; color: var(--ink-4);
}

/* ═══ RESPONSIVE ═══ */
/* ═══════════════════════════════════════════════════════════════
   MOBILE v3 — Apple/Meta/X-grade compact layout
   Tablet: 960px · Phone: 720px · Small phone: 420px
   ═══════════════════════════════════════════════════════════════ */

/* Tablet & below */
@media (max-width: 960px) {
  /* Sections — nhỏ gọn hơn */
  .products, .architecture, .case-study, .customer-wall, .news, .cta, .stats { padding-left: 16px; padding-right: 16px; }
  .products { padding-top: 56px; padding-bottom: 24px; }
  .architecture { padding-top: 56px; padding-bottom: 56px; }
  .case-study, .customer-wall { padding-top: 56px; padding-bottom: 40px; }
  .news { padding-top: 56px; padding-bottom: 40px; }
  .cta { padding: 56px 16px; }

  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(24px, 6vw, 36px); line-height: 1.15; }
  .section-title.large { font-size: clamp(28px, 7.5vw, 44px); }
  .section-lead { font-size: 15px; }
  .section-head.between { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* Hero — ngắn gọn, 1 màn hình */
  .hero { padding: 24px 16px 16px; overflow: hidden; }
  .hero-inner { padding-top: 8px; padding-bottom: 32px; max-width: 100%; }
  .hero-title {
    font-size: clamp(28px, 8.8vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 18px auto 14px;
    max-width: 100%;
    padding: 0 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  /* br trong hero title: thay bằng khoảng trắng để chữ không dính nhau */
  .hero-title br { display: inline; }
  .hero-title br::before { content: ' '; }
  .hero-title em { font-style: italic; }
  .hero-title em::after { content: ' '; }
  .hero-sub { font-size: 14.5px; margin-top: 14px; padding: 0 4px; }
  .hero-cta { flex-direction: column; gap: 10px; margin-top: 20px; padding: 0 2px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; justify-content: center; }
  .kicker {
    font-size: 10.5px; padding: 5px 11px;
    max-width: calc(100% - 8px);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .kicker > span:last-child {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Command card — compact và overlap nhẹ */
  .command-card { margin: -8px 0 0; border-radius: 14px; }
  .cc-head { padding: 10px 14px; }
  .cc-title { font-size: 12px; }
  .cc-body { padding: 14px; }
  .cc-row { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .cc-metric { padding: 10px 12px; border-radius: 10px; }
  .cc-metric-label { font-size: 10px; }
  .cc-metric-value { font-size: 17px; }
  .cc-metric-delta { font-size: 10.5px; }
  .cc-spark { display: none; }
  .cc-log { margin-top: 4px; }
  .cc-log-head, .cc-log-row {
    grid-template-columns: 46px 56px 1fr;
    font-size: 10.5px; padding: 6px 10px;
  }
  .cc-log-row .tag { font-size: 9px; padding: 1px 6px; }

  .hero-marquee { padding: 14px 0; margin-top: 28px; gap: 12px; }
  .marquee-label { font-size: 10px; padding-right: 12px; }
  .marquee-track { gap: 16px; font-size: 13px; }

  /* Stats — 2x2 compact */
  .stats { padding: 40px 16px 20px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
  }
  .stats-grid .stat {
    border-right: none; padding: 18px 14px;
    border-bottom: 1px solid var(--border);
  }
  .stats-grid .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stats-grid .stat:nth-child(n+3) { border-bottom: none; }
  .stat-num { font-size: clamp(26px, 7.5vw, 34px); line-height: 1; }
  .stat-label { font-size: 11px; margin-top: 6px; letter-spacing: 0.4px; }

  /* Products — mobile: 1 cột, featured nổi nhẹ */
  .products { padding: 56px 16px 40px; }
  .product-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto;
    gap: 12px;
    margin-top: 28px;
    padding: 0;
  }
  .product-grid .product-card,
  .product-grid .product-card:nth-of-type(1),
  .product-grid .product-card:nth-of-type(2),
  .product-grid .product-card:nth-of-type(3),
  .product-grid .product-card:nth-of-type(4),
  .product-grid .product-card:nth-of-type(5),
  .product-grid .product-card:nth-of-type(6),
  .product-grid .product-card:nth-of-type(7),
  .product-grid .product-card:nth-of-type(8) {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 0 !important;
    padding: 22px 20px 72px;
    border-radius: 16px;
    width: 100%;
  }
  .product-grid .product-card:nth-of-type(1) {
    padding: 26px 22px 80px;
  }
  .product-card:nth-of-type(1) h3 { font-size: 22px; max-width: 100%; }
  .product-card:nth-of-type(1) p { font-size: 14px; max-width: 100%; }
  .product-card h3 { font-size: 17px; line-height: 1.25; }
  .product-card p { font-size: 13px; line-height: 1.55; }
  .product-card .card-id { font-size: 10.5px; letter-spacing: 1.4px; margin-bottom: 6px; }
  .product-card .card-tags { gap: 4px; margin-top: 14px; }
  .product-card .card-tags span { font-size: 9.5px; padding: 2px 7px; }
  .product-card .product-icon-chip,
  .product-card.featured .product-icon-chip,
  .product-card:nth-of-type(1) .product-icon-chip {
    width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
  }
  .product-card .product-icon-chip svg,
  .product-card.featured .product-icon-chip svg,
  .product-card:nth-of-type(1) .product-icon-chip svg { width: 22px; height: 22px; }
  .product-card .card-cta,
  .product-card.featured .card-cta,
  .product-card:nth-of-type(1) .card-cta {
    left: 20px; right: 20px; bottom: 18px;
    padding-top: 14px; font-size: 12.5px;
  }
  .product-card .card-cta-arrow { width: 24px; height: 24px; font-size: 13px; }

  /* Architecture — ẩn constellation SVG, chỉ hiển list compact */
  .arch-grid { grid-template-columns: 1fr; gap: 28px; }
  .arch-svg { display: none; }
  .arch-copy h2 { font-size: clamp(26px, 7vw, 36px); }
  .feature-list { gap: 12px; }
  .feature-list li {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
  }
  .feature-list li strong { font-size: 14.5px; }
  .feature-list li p { font-size: 12.5px; line-height: 1.5; }
  .feature-list li[data-tag]::before { width: 40px; height: 40px; font-size: 11px; }

  /* Customer wall — 1 cột mobile */
  .customer-wall .section-head { margin-bottom: 24px; }
  .cw-grid { grid-template-columns: 1fr; gap: 12px; }
  .cw-card { padding: 20px; border-radius: 14px; min-height: 0; }
  .cw-mono { width: 42px; height: 42px; font-size: 16px; border-radius: 10px; }
  .cw-card-head { margin-bottom: 16px; }
  .cw-title { font-size: 17px; margin-bottom: 14px; }
  .cw-stats { gap: 10px; padding: 12px 0 14px; }
  .cw-stat b { font-size: 22px; }
  .cw-stat span { font-size: 10.5px; }
  .cw-link { font-size: 12.5px; }

  /* Products see-all link */
  .products-see-all { margin-top: 20px; }
  .products-see-all-link { font-size: 13.5px; }



  /* Case study (legacy) — 1 cột nhưng card compact */
  .case-grid { grid-template-columns: 1fr; gap: 12px; }
  .case-card, .case-card.lg {
    padding: 20px; border-radius: 14px;
    grid-row: auto; grid-column: auto;
  }
  .case-card h3 { font-size: 19px; line-height: 1.25; }
  .case-card.lg h3 { font-size: 22px; }
  .case-card p { font-size: 13.5px; line-height: 1.5; }
  .case-meta { font-size: 10.5px; letter-spacing: 1.2px; }
  .case-card.lg .case-stats,
  .case-card .case-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
  .case-stats b { font-size: clamp(22px, 6.5vw, 28px); }
  .case-stats span { font-size: 11px; }

  /* News — 1 cột compact */
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-card { border-radius: 14px; }
  .news-card h3 { font-size: 16px; line-height: 1.3; }
  .news-card .news-meta { font-size: 10.5px; }
  .news-card-body { padding: 16px; }

  /* CTA */
  .cta-inner { padding: 32px 20px; border-radius: 20px; }
  .cta-inner .section-title { font-size: clamp(24px, 7vw, 34px); }
  .cta-inner .section-lead { font-size: 14px; }
  .cta-actions { flex-direction: column; gap: 10px; margin-top: 18px; }
  .cta-actions .btn-primary, .cta-actions .btn-ghost { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid-portlogics { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: span 2; }
  /* S14.26: layout mobile theo image-2 user gửi.
     Mobile (2 cột grid):
       - footer-brand:           full (1 hàng)
       - TRỤ SỞ     | HẢI PHÒNG     (1 hàng 2 cột)
       - ĐÀ NẴNG    | SẢN PHẨM & CT (1 hàng 2 cột)
     Tất cả .footer-office và .footer-links span 1 cột (mặc định).
     Mỗi link trong .footer-links mỗi dòng (display:block). */
  .footer-grid-portlogics .footer-links { grid-column: auto; }
  .footer-grid-portlogics .footer-links a { display: block; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; padding: 18px 0; font-size: 12px; }
  .footer-bottom a { margin: 0 7px; }

  /* Single + pages */
  .single-article, .page-article { margin: 24px auto; padding: 0 16px; }
  .page-article header h1 { font-size: clamp(26px, 7vw, 36px); }
  .archive-list { grid-template-columns: 1fr; gap: 14px; }

  /* Hybrid composer legacy */
  .hc-col.w-6, .hc-col.w-4, .hc-col.w-3, .hc-col.w-8 { grid-column: span 12 !important; }
  .hc-figure { text-align: center; margin: 0 auto 16px; }
}

/* Phone */
@media (max-width: 720px) {
  :root {
    --max-w: 100%;
  }

  /* Hiển thị command card cực compact */
  .cc-log-head, .cc-log-row {
    grid-template-columns: 42px 52px 1fr;
    font-size: 10px; padding: 5px 8px;
  }
  .cc-log-row .tag { display: inline-block; }
  .cc-row { gap: 8px; }
}

/* Small phone */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(24px, 9vw, 30px); }
  .section-title.large { font-size: clamp(22px, 8vw, 28px); }
  .kicker { font-size: 10px; padding: 4px 9px; }

  /* Vẫn 2 cột nhưng padding giảm */
  .product-card { min-height: 130px; padding: 14px; }
  .product-card:nth-of-type(1) { min-height: 160px; padding: 18px; }
  .product-card h3 { font-size: 14.5px; }
  .product-card p { font-size: 12px; }

  .stat-num { font-size: clamp(22px, 8vw, 26px); }
  .stats-grid .stat { padding: 14px 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE POST (pl-*)  — Light techno
   ═══════════════════════════════════════════════════════════════ */
.pl-single { padding: 40px 0 80px; max-width: 1180px; margin: 0 auto; }
.pl-article { padding: 0 24px; }
.pl-breadcrumbs {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-4);
  padding: 8px 0 24px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pl-breadcrumbs a { color: var(--ink-3); transition: .18s; }
.pl-breadcrumbs a:hover { color: var(--cyan); }
.pl-sep { color: var(--ink-5); }
.pl-current { color: var(--ink-2); font-weight: 600; }

.pl-article-head {
  max-width: 820px; margin: 0 auto 40px;
  text-align: left;
}
.pl-eyebrow {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11.5px;
  color: var(--cyan); letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 11px;
  background: rgba(8, 145, 178, 0.06);
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 5px;
  font-weight: 600;
}
.pl-article-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 24px;
}
.pl-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px dashed var(--border-2);
  border-bottom: 1px dashed var(--border-2);
  font-family: var(--f-mono); font-size: 13px; color: var(--ink-4);
}
.pl-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.pl-meta-item strong { color: var(--ink-2); font-weight: 700; }
.pl-avatar { border-radius: 50%; }

.pl-lead {
  font-size: 19px; color: var(--ink-2); line-height: 1.6;
  margin: 28px 0 0;
  padding: 20px 0 0;
}

.pl-hero {
  margin: 32px 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.pl-hero img { width: 100%; display: block; }

.pl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.pl-content { min-width: 0; }

.pl-entry {
  font-size: 17px; line-height: 1.75; color: var(--ink-2);
}
.pl-entry > * + * { margin-top: 1.1em; }
.pl-entry h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink);
  margin-top: 1.8em; margin-bottom: 0.5em;
  scroll-margin-top: 80px;
}
.pl-entry h3 {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.2vw, 24px); font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.4em; margin-bottom: 0.3em;
  scroll-margin-top: 80px;
}
.pl-entry p { margin: 0; }
.pl-entry a { color: var(--cyan); border-bottom: 1px solid rgba(8,145,178,0.3); }
.pl-entry a:hover { border-bottom-color: var(--cyan); }
.pl-entry strong { color: var(--ink); font-weight: 700; }
.pl-entry ul, .pl-entry ol { padding-left: 1.4em; }
.pl-entry li { margin: 0.4em 0; }
.pl-entry blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 22px;
  background: rgba(8,145,178,0.04);
  border-radius: 0 10px 10px 0;
  margin: 1.6em 0;
  color: var(--ink-2); font-style: italic;
}
.pl-entry code {
  font-family: var(--f-mono); font-size: 0.92em;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(10,15,31,0.05); color: var(--violet);
}
.pl-entry pre {
  background: #0a0f1f; color: #e2e8f0;
  padding: 18px 22px; border-radius: 12px;
  overflow-x: auto; font-family: var(--f-mono); font-size: 13.5px;
  margin: 1.4em 0;
}
.pl-entry pre code { background: transparent; color: inherit; padding: 0; }
.pl-entry img {
  border-radius: 12px; box-shadow: var(--sh-md);
  margin: 1.4em 0; width: 100%; height: auto;
}
.pl-entry table {
  width: 100%; border-collapse: collapse;
  margin: 1.5em 0; font-size: 14.5px;
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.pl-entry th, .pl-entry td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.pl-entry th { background: var(--panel-2); font-weight: 700; color: var(--ink); font-family: var(--f-display); }

.pl-tags {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px dashed var(--border-2);
  border-bottom: 1px dashed var(--border-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.pl-tags-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--ink-4); text-transform: uppercase; font-weight: 700;
  margin-right: 8px;
}
.pl-tag {
  font-family: var(--f-mono); font-size: 12px;
  padding: 5px 11px; border-radius: 6px;
  background: rgba(8,145,178,0.06);
  border: 1px solid rgba(8,145,178,0.18);
  color: var(--cyan); font-weight: 600;
  transition: .18s;
}
.pl-tag:hover {
  background: rgba(8,145,178,0.12);
  border-color: var(--cyan);
}

.pl-share {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 20px 0; margin: 32px 0;
}
.pl-share-label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.5px;
  color: var(--ink-4); text-transform: uppercase; font-weight: 700;
  margin-right: 8px;
}
.pl-share-btn {
  font-family: var(--f-sans); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink-2);
  transition: .18s;
  cursor: pointer;
  box-shadow: var(--sh-sm);
}
.pl-share-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.pl-author-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  margin: 40px 0;
  align-items: center;
}
.pl-author-card img { border-radius: 50%; }
.pl-author-name {
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  color: var(--ink); margin-bottom: 4px;
}
.pl-author-bio { color: var(--ink-3); font-size: 14px; line-height: 1.55; }

.pl-related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px dashed var(--border-2);
}
.pl-related-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 28px); font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
}
.pl-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.pl-related-card {
  display: block;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: .28s var(--ease);
}
.pl-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--sh-lg);
}
.pl-related-img { aspect-ratio: 16/9; overflow: hidden; }
.pl-related-img img { width: 100%; height: 100%; object-fit: cover; }
.pl-related-body { padding: 18px; }
.pl-related-eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px;
  color: var(--cyan); text-transform: uppercase; font-weight: 700;
}
.pl-related-h3 {
  font-family: var(--f-display); font-size: 16px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3;
  color: var(--ink); margin: 8px 0;
}
.pl-related-date {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-4);
}

/* Sidebar */
.pl-sidebar { position: relative; }
.pl-side-sticky { position: sticky; top: 80px; }
.pl-toc {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  margin-bottom: 20px;
}
.pl-toc-head {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--ink-4); text-transform: uppercase; font-weight: 700;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.pl-toc ul { list-style: none; padding: 0; margin: 0; }
.pl-toc li { margin: 6px 0; }
.pl-toc-h2 a {
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  transition: .18s;
  display: block; padding: 4px 0;
}
.pl-toc-h3 a {
  color: var(--ink-3); font-size: 12.5px; font-weight: 500;
  padding-left: 14px;
  display: block;
  transition: .18s;
}
.pl-toc a:hover { color: var(--cyan); }

.pl-cta-box {
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(8,145,178,0.06), rgba(124,58,237,0.06));
  border: 1px solid rgba(8,145,178,0.18);
}
.pl-cta-eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.5px;
  color: var(--cyan); font-weight: 700;
  margin-bottom: 10px;
}
.pl-cta-title {
  font-family: var(--f-display); font-size: 19px; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3;
  color: var(--ink); margin: 0 0 10px;
}
.pl-cta-desc { color: var(--ink-3); font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; }
.pl-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: #fff;
  padding: 10px 16px; border-radius: 10px;
  background: var(--grad-pill);
  box-shadow: var(--sh-glow-c);
  transition: .2s;
}
.pl-cta-btn:hover { transform: translateY(-1px); }

/* Reading progress bar */
#pl-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--grad-hero);
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 0.1s ease;
  z-index: 200;
}

@media (max-width: 960px) {
  .pl-single { padding: 24px 0 56px; }
  .pl-article { padding: 0 16px; }
  .pl-article-head { margin: 0 auto 28px; }
  .pl-article-title { font-size: clamp(26px, 7vw, 36px); letter-spacing: -0.02em; }
  .pl-eyebrow { font-size: 10.5px; padding: 4px 9px; margin-bottom: 12px; }
  .pl-lead { font-size: 15.5px; padding-top: 12px; margin-top: 16px; }
  .pl-meta { font-size: 12px; gap: 12px; padding: 12px 0; }
  .pl-breadcrumbs { font-size: 11px; padding: 4px 0 16px; }
  .pl-hero { margin: 20px 0; border-radius: 14px; }

  .pl-layout { grid-template-columns: 1fr; gap: 24px; }
  .pl-sidebar { order: 2; }
  .pl-side-sticky { position: relative; top: 0; display: grid; gap: 16px; }

  /* TOC kiểu accordion gọn */
  .pl-toc { padding: 14px 16px; }
  .pl-toc-title { font-size: 10.5px; margin-bottom: 8px; padding-bottom: 8px; }
  .pl-toc li { margin: 3px 0; }
  .pl-toc-h2 a { font-size: 13px; }
  .pl-toc-h3 a { font-size: 12px; padding-left: 12px; }

  .pl-cta-box { padding: 20px; }
  .pl-cta-title { font-size: 17px; }

  /* Prose */
  .prose h2 { font-size: clamp(20px, 5.5vw, 26px); margin-top: 28px; margin-bottom: 10px; line-height: 1.25; }
  .prose h3 { font-size: clamp(17px, 4.8vw, 20px); }
  .prose p, .prose li { font-size: 15px; line-height: 1.7; }
  .prose ul, .prose ol { padding-left: 20px; }

  /* Author card stack */
  .pl-author-card { grid-template-columns: 48px 1fr; gap: 12px; padding: 16px; margin: 28px 0; }
  .pl-author-card img { width: 48px; height: 48px; }
  .pl-author-name { font-size: 15px; }
  .pl-author-bio { font-size: 13px; }

  /* Share */
  .pl-share { gap: 8px; flex-wrap: wrap; }
  .pl-share-label { font-size: 10.5px; letter-spacing: 1.5px; }
  .pl-share-btn { padding: 7px 11px; font-size: 12px; border-radius: 8px; }

  /* Related */
  .pl-related { margin-top: 40px; padding-top: 24px; }
  .pl-related-title { font-size: 20px; margin-bottom: 16px; }
  .pl-related-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 600px) {
  /* Tắt TOC trên màn hình nhỏ — tránh nhiễu */
  .pl-toc { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   WP ADMIN BAR RESKIN — xem adminbar.css (enqueue riêng)
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
 * POST DETAIL v2 — Corporate tweaks (meta slim, company card, comments)
 * ═══════════════════════════════════════════════════════════════ */

/* Meta slim — thay cho author+date */
.pl-meta.pl-meta-slim {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(6,182,212,.04), rgba(124,58,237,.04));
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 8px 0 16px;
}
.pl-meta.pl-meta-slim .pl-meta-read {
  color: var(--cyan); font-weight: 700; letter-spacing: .02em;
}
.pl-meta.pl-meta-slim .pl-meta-pub {
  color: var(--ink-2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11px;
}
.pl-meta-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4); opacity: .55;
}

/* Eyebrow không cần '//' prefix nữa — bỏ via template. Đảm bảo style đẹp */
.pl-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(124,58,237,.10));
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,.28);
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Company card thay cho author card */
.pl-company-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 16px;
  background:
    radial-gradient(420px 280px at 100% 0%, rgba(6,182,212,.07), transparent 60%),
    linear-gradient(135deg, #ffffff 0%, #f9fafc 100%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px -14px rgba(10,15,31,.10);
  margin: 36px 0;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pl-company-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
}
.pl-company-card-mark {
  width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0891b2, #6d28d9);
  color: #fff;
  font-family: var(--f-display); font-weight: 900; font-size: 22px;
  letter-spacing: .02em;
  box-shadow: 0 10px 22px -10px rgba(109,40,217,.55);
}
.pl-company-card-name {
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  color: var(--ink); margin-bottom: 6px;
  letter-spacing: -.01em;
}
.pl-company-card-bio {
  color: var(--ink-3); font-size: 14.5px; line-height: 1.55;
  margin-bottom: 14px;
}
.pl-company-card-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pl-company-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0891b2, #6d28d9);
  color: #fff !important;
  font-weight: 700; font-size: 13.5px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(8,145,178,.55);
  transition: .2s;
}
.pl-company-card-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pl-company-card-link {
  color: var(--cyan);
  font-size: 13.5px; font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(6,182,212,.5);
  padding-bottom: 1px;
}
.pl-company-card-link:hover { color: var(--violet); border-color: var(--violet); }

/* ═══════════════════════════════════════════════════════════════
 * COMMENTS — Chuyên nghiệp
 * ═══════════════════════════════════════════════════════════════ */
.pl-comments { margin-top: 64px; padding-top: 32px; border-top: 1px dashed var(--border-2); }

.pl-discuss { font-family: var(--f-sans); }

.pl-discuss-head {
  display: flex; gap: 20px; justify-content: space-between; align-items: flex-start;
  padding: 20px 22px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, rgba(6,182,212,.07), rgba(124,58,237,.05));
  border: 1px solid var(--border);
  border-bottom: none;
}
.pl-discuss-head-l { display: flex; gap: 14px; align-items: flex-start; }
.pl-discuss-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #0891b2, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(109,40,217,.45);
  flex-shrink: 0;
}
.pl-discuss-title {
  font-family: var(--f-display); font-weight: 800; font-size: 20px;
  color: var(--ink); margin: 0 0 2px;
  letter-spacing: -.01em;
}
.pl-discuss-sub { color: var(--ink-3); font-size: 14px; margin: 0; line-height: 1.5; }
.pl-discuss-sub strong { color: var(--cyan); font-weight: 700; }
.pl-discuss-jump {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: .18s;
}
.pl-discuss-jump:hover { border-color: var(--cyan); color: var(--cyan); }

/* Comment list */
.pl-comment-list {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0;
  background: #fff;
}
.pl-comment-list .pl-comment {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.pl-comment-list .pl-comment:last-child { border-bottom: none; }
.pl-comment-list .children {
  list-style: none; padding: 16px 0 0 44px; margin: 16px 0 0;
  border-left: 2px solid rgba(6,182,212,.15);
}
.pl-comment-list .children .pl-comment {
  padding: 14px 0 14px 14px;
  border: none;
}

.pl-comment-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.pl-comment-avatar img { border-radius: 50%; display: block; width: 44px; height: 44px; }
.pl-comment-meta {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 6px;
  font-size: 13.5px;
  flex-wrap: wrap;
}
.pl-comment-name a, .pl-comment-name {
  font-weight: 700; color: var(--ink); text-decoration: none;
  font-family: var(--f-display);
}
.pl-comment-sep { color: var(--ink-4); }
.pl-comment-time {
  color: var(--ink-4); font-size: 12.5px;
  font-family: var(--f-mono);
}
.pl-comment-pending {
  padding: 2px 8px; border-radius: 4px;
  background: rgba(245,158,11,.12); color: #b45309;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.pl-comment-text { color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.pl-comment-text p { margin: 0 0 10px; }
.pl-comment-text p:last-child { margin-bottom: 0; }
.pl-comment-actions {
  display: flex; gap: 16px; margin-top: 10px;
  font-size: 13px;
}
.pl-comment-actions a {
  color: var(--cyan); text-decoration: none; font-weight: 600;
  transition: .15s;
}
.pl-comment-actions a:hover { color: var(--violet); }

/* Pagination */
.pl-comment-pagination { margin-top: 16px; text-align: center; }
.pl-comment-pagination ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pl-comment-pagination a, .pl-comment-pagination span {
  padding: 6px 12px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border);
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.pl-comment-pagination a:hover { border-color: var(--cyan); color: var(--cyan); }

.pl-comment-closed {
  margin-top: 20px; padding: 14px 18px;
  background: rgba(148,163,184,.08); border: 1px dashed var(--border-2);
  border-radius: 10px; color: var(--ink-3); font-size: 14px; text-align: center;
}

/* Comment form — glass card chuyên nghiệp */
.pl-cf-wrap {
  margin-top: 28px;
  padding: 28px;
  border-radius: 18px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(6,182,212,.06), transparent 60%),
    linear-gradient(135deg, #ffffff, #fafbfe);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px -18px rgba(10,15,31,.12);
  position: relative;
}
.pl-cf-wrap::before {
  content: '';
  position: absolute; top: 0; left: 26px; right: 26px; height: 3px;
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
  border-radius: 0 0 4px 4px;
}
.pl-cf-title {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 800;
  color: var(--ink); margin: 0 0 6px;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px;
}
.pl-cf-title-icon {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #0891b2, #6d28d9);
  color: #fff; font-size: 15px;
  box-shadow: 0 6px 14px -6px rgba(109,40,217,.5);
}
.pl-cf-intro {
  color: var(--ink-3); font-size: 14px; margin: 0 0 20px;
  line-height: 1.5;
}
.pl-cf-intro strong { color: var(--ink-2); font-weight: 700; }
.pl-cf-req { color: #e11d48; font-weight: 700; }

.pl-cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.pl-cf-row { display: flex; flex-direction: column; gap: 7px; }
.pl-cf-row--full { grid-column: 1 / -1; }
.pl-cf-label {
  font-family: var(--f-display); font-weight: 700; font-size: 13.5px;
  color: var(--ink-2); letter-spacing: -.005em;
}
.pl-cf-input, .pl-cf-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--f-sans);
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing: border-box;
}
.pl-cf-input:focus, .pl-cf-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6,182,212,.12);
  background: #fff;
}
.pl-cf-textarea { resize: vertical; min-height: 120px; font-family: var(--f-sans); }
.pl-cf-hint { font-size: 12px; color: var(--ink-4); line-height: 1.4; }

.pl-cf-submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.pl-cf-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #0891b2, #6d28d9);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 700; font-size: 14.5px;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 10px 24px -10px rgba(109,40,217,.55);
  text-shadow: 0 1px 0 rgba(10,15,31,.3);
  transition: .18s;
}
.pl-cf-submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pl-cf-submit:active { transform: translateY(0); }
.pl-cf-logged {
  grid-column: 1 / -1;
  font-size: 14px; color: var(--ink-3);
  padding: 10px 14px; background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.18); border-radius: 10px;
}
.pl-cf-logged a { color: var(--cyan); font-weight: 600; text-decoration: none; }

/* Responsive post detail tweaks */
@media (max-width: 720px) {
  .pl-cf-form { grid-template-columns: 1fr; gap: 14px; }
  .pl-discuss-head { flex-direction: column; gap: 12px; border-radius: 14px 14px 0 0; }
  .pl-discuss-jump { align-self: flex-start; }
  .pl-company-card { grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; }
  .pl-company-card-mark { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
  .pl-company-card-name { font-size: 16px; }
  .pl-company-card-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .pl-company-card-link { text-align: center; border-bottom: none; padding: 10px; background: rgba(6,182,212,.08); border-radius: 10px; }
  .pl-cf-wrap { padding: 20px 18px; }
}

/* Custom logo — hiển thị đúng size trong header/footer */
.site-header .brand--custom .custom-logo-link { display: block; line-height: 0; }
.site-header .brand--custom .custom-logo { max-height: 40px; width: auto; height: auto; display: block; }
.site-footer .brand--custom .custom-logo { max-height: 48px; width: auto; height: auto; display: block; filter: brightness(0) invert(1) opacity(.88); }
@media (max-width: 720px) {
  .site-header .brand--custom .custom-logo { max-height: 32px; }
}

/* ═════════════════════════════════════════════════════════════════
 * LOGO ON DARK — cho footer và các vùng nền tối.
 * 3 kịch bản:
 *   (a) User upload logo tối riêng → hiện thẳng, không filter.
 *   (b) Chỉ có logo sáng → auto-invert bằng CSS (trắng hoá).
 *   (c) Chưa upload gì → SVG fallback (đã tự có màu).
 * ═════════════════════════════════════════════════════════════════ */

/* Wrapper chung */
.brand--on-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 0;
  text-decoration: none;
}

/* (a) Có logo tối custom → hiện nguyên, KHÔNG filter */
.brand--dark-custom { padding: 0; }
.brand--dark-custom .brand-dark-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
  filter: none !important;
}

/* (b) Chỉ có logo sáng → auto-invert sang trắng */
.brand--auto-invert .custom-logo-link { display: block; line-height: 0; }
.brand--auto-invert .custom-logo {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(.92);
}

/* Responsive */
@media (max-width: 720px) {
  .brand--dark-custom .brand-dark-logo,
  .brand--auto-invert .custom-logo { max-height: 36px; }
}

/* Override: nếu footer dùng logo tối custom thì KHÔNG áp dụng rule
 * .site-footer .brand--custom .custom-logo filter phía trên nữa.
 * (Chúng ta đã thay wrapper thành .brand--on-dark ở footer.) */

/* ============================================================
 * Iteration 4.4 — Header spacing fixes
 * 1) WordPress admin bar push: shift sticky site-header xuống dưới admin bar
 *    để không bị che khi đăng nhập admin.
 * 2) Archive head padding: thêm khoảng cách top cho trang archive
 *    (đặc biệt /khach-hang/) — h1 đang dán sát header.
 * ============================================================ */

/* Khi admin bar hiện (logged-in WP admin) — bar mặc định 32px desktop, 46px mobile */
html.admin-bar-active .site-header,
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  html.admin-bar-active .site-header,
  body.admin-bar .site-header { top: 46px; }
}

/* Archive heading spacing — tránh dán sát vào header sticky */
.archive-head { padding-top: 64px; padding-bottom: 24px; }
@media (max-width: 768px) {
  .archive-head { padding-top: 40px; padding-bottom: 16px; }
}

/* ============================================================
 * Iteration 4.13 — SEO keyword tags
 * Visually-hidden span giữ keyword tiếng Anh (MISSION, PRODUCT STACK,
 * CORE TECH, UPTIME, CONTACT, ...) trong DOM cho search engine + AI bot
 * + screen reader, KHÔNG hiển thị cho người dùng.
 *
 * Pattern chuẩn WCAG (giống .screen-reader-text của WP core):
 *   - Không dùng display:none → vẫn được crawler đọc
 *   - Không dùng visibility:hidden → screen reader vẫn nhận
 * ============================================================ */
.pl-seo-tag {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================
 * Iteration 4.14.3 — Vehicle Lane Strips (FORCE animate)
 *
 * 4 dải phương tiện riêng biệt, full-width, ở 4 vị trí độc lập:
 *   1. Hero: lane TÀU ngay trên dashboard preview (command-card)
 *   2. Hero: lane XE ngay dưới dashboard preview
 *   3. Trước section CTA "Bắt đầu trao đổi": lane TÀU
 *   4. Sau section CTA (trước footer): lane XE
 *
 * FORCE animation: dùng keyframes `transform` KHÔNG bị disable bởi
 * prefers-reduced-motion vì chúng ta ghi đè animation-name/duration
 * trong media query reduce-motion để giữ animation chạy (user yêu
 * cầu thấy chuyển động). Ngoài ra dùng position: absolute với
 * transform: translateX để GPU composite, smooth cả mobile lẫn PC.
 * ============================================================ */

.hero { isolation: isolate; }

.hero > .hero-inner,
.hero > .command-card,
.hero > .hero-marquee { position: relative; z-index: 5; }

/* Mây nền vẫn dùng cấu trúc cũ, không bị ảnh hưởng */
.hero-bg-clouds {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    opacity: .55;
    z-index: 1;
}


/* ========================================================================
   Iter 4.14.5 — Lane phương tiện: bỏ separator, 2 chiều chung 1 lane
   - Cấu trúc cũ: fwd-row + sep + rev-row (132px)
   - Cấu trúc mới: 2 sub-row sát nhau, không sep (88px)
   - Bỏ xe máy vì render quá nhỏ ở size lane
   ======================================================================== */
.pl-lane {
    position: relative;
    width: 100%;
    height: 88px;
    margin: 12px 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
}

/* 2 sub-row chia đôi lane theo chiều dọc, không có separator */
.pl-lane-row {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    overflow: hidden;
}
.pl-lane-row-fwd { top: 0; }
.pl-lane-row-rev { bottom: 0; }

/* Vehicle slot (span empty, JS inject SVG vào innerHTML) */
.pl-lane-vehicle {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    width: 240px;
    height: 44px;
    transform: translate(-280px, -50%);
    will-change: transform;
}
.pl-lane-vehicle svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 3px 6px rgba(15, 76, 129, .28));
}
.pl-lane-truck .pl-lane-vehicle {
    width: 180px;
    height: 44px;
    transform: translate(-220px, -50%);
}
.pl-lane-truck .pl-lane-vehicle svg {
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, .3));
}

/* === Animation: forward (trái -> phải) === */
.pl-lane-vehicle-fwd-1 {
    animation: pl-lane-fwd 22s linear infinite;
}
.pl-lane-vehicle-fwd-2 {
    animation: pl-lane-fwd 22s linear infinite;
    animation-delay: -11s;
}
.pl-lane-truck .pl-lane-vehicle-fwd-1 {
    animation: pl-lane-fwd 18s linear infinite;
}
.pl-lane-truck .pl-lane-vehicle-fwd-2 {
    animation: pl-lane-fwd 18s linear infinite;
    animation-delay: -9s;
}

/* === Animation: reverse (phải -> trái), mirror bằng scaleX(-1) === */
.pl-lane-vehicle-rev-1 {
    animation: pl-lane-rev 28s linear infinite;
}
.pl-lane-vehicle-rev-2 {
    animation: pl-lane-rev 28s linear infinite;
    animation-delay: -14s;
}
.pl-lane-truck .pl-lane-vehicle-rev-1 {
    animation: pl-lane-rev 24s linear infinite;
}
.pl-lane-truck .pl-lane-vehicle-rev-2 {
    animation: pl-lane-rev 24s linear infinite;
    animation-delay: -12s;
}

@keyframes pl-lane-fwd {
    0%   { transform: translate(-280px, -50%); }
    100% { transform: translate(calc(100vw + 40px), -50%); }
}
@keyframes pl-lane-rev {
    0%   { transform: translate(calc(100vw + 80px), -50%) scaleX(-1); }
    100% { transform: translate(-280px, -50%) scaleX(-1); }
}

/* Lane dark tone (footer) */
.pl-lane-dark .pl-lane-vehicle svg {
    filter: drop-shadow(0 3px 8px rgba(148, 163, 184, .35));
}

/* ================= Responsive ================= */

/* Tablet */
@media (max-width: 1024px) {
    .pl-lane { height: 76px; margin: 10px 0; }
    .pl-lane-ship  .pl-lane-vehicle { width: 200px; height: 38px; }
    .pl-lane-truck .pl-lane-vehicle { width: 155px; height: 38px; }
}

/* Mobile */
@media (max-width: 768px) {
    .pl-lane { height: 64px; margin: 8px 0; }

    .pl-lane-ship .pl-lane-vehicle {
        width: 150px; height: 32px;
    }
    .pl-lane-truck .pl-lane-vehicle {
        width: 125px; height: 32px;
    }
    .pl-lane-ship  .pl-lane-vehicle-fwd-1,
    .pl-lane-ship  .pl-lane-vehicle-fwd-2 { animation-duration: 18s; }
    .pl-lane-ship  .pl-lane-vehicle-rev-1,
    .pl-lane-ship  .pl-lane-vehicle-rev-2 { animation-duration: 22s; }
    .pl-lane-truck .pl-lane-vehicle-fwd-1,
    .pl-lane-truck .pl-lane-vehicle-fwd-2 { animation-duration: 15s; }
    .pl-lane-truck .pl-lane-vehicle-rev-1,
    .pl-lane-truck .pl-lane-vehicle-rev-2 { animation-duration: 19s; }
}

/* Small */
@media (max-width: 480px) {
    .pl-lane { height: 54px; margin: 6px 0; }
    .pl-lane-ship  .pl-lane-vehicle { width: 120px; height: 26px; }
    .pl-lane-truck .pl-lane-vehicle { width: 100px; height: 26px; }
}

/* prefers-reduced-motion: vẫn chạy nhưng chậm hẳn */
@media (prefers-reduced-motion: reduce) {
    .pl-lane-ship  .pl-lane-vehicle-fwd-1 { animation: pl-lane-fwd 80s linear infinite !important; }
    .pl-lane-ship  .pl-lane-vehicle-fwd-2 { animation: pl-lane-fwd 80s linear infinite -40s !important; }
    .pl-lane-ship  .pl-lane-vehicle-rev-1 { animation: pl-lane-rev 90s linear infinite !important; }
    .pl-lane-ship  .pl-lane-vehicle-rev-2 { animation: pl-lane-rev 90s linear infinite -45s !important; }
    .pl-lane-truck .pl-lane-vehicle-fwd-1 { animation: pl-lane-fwd 70s linear infinite !important; }
    .pl-lane-truck .pl-lane-vehicle-fwd-2 { animation: pl-lane-fwd 70s linear infinite -35s !important; }
    .pl-lane-truck .pl-lane-vehicle-rev-1 { animation: pl-lane-rev 80s linear infinite !important; }
    .pl-lane-truck .pl-lane-vehicle-rev-2 { animation: pl-lane-rev 80s linear infinite -40s !important; }
}

/* ========================================================================
   Iter 4.14.6 — Un-flip text trong SVG khi vehicle chạy ngược
   - Span rev đã scaleX(-1) cho nên cả SVG (kèm <text>) bị mirror.
   - Áp scaleX(-1) lại lên <text> để chữ đọc thuận chiều.
   - transform-box: fill-box + transform-origin: center => flip quanh
     bounding box của chính text, không lệch toạ độ.
   ======================================================================== */
.pl-lane-vehicle-rev-1 svg text,
.pl-lane-vehicle-rev-2 svg text {
    transform: scaleX(-1);
    transform-box: fill-box;
    transform-origin: center;
}
