/* ===== Vinaweb – Trang chủ (theo hệ thiết kế VMI) ===== */
/* Font Inter dùng chung với site chính (bundle/css/style.css) */
@font-face {
  font-family: "Inter";
  src: url("../css/fonts/inter/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../css/fonts/inter/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../css/fonts/inter/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../css/fonts/inter/Inter-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../css/fonts/inter/Inter-Bold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
:root {
  --red: #ba131a;
  --red-dark: #7f070c;
  --text: #484848;
  --black: #363636;
  --navy: #212252;
  --gray: #727272;
  --line: #dfdfdf;
  --beige: #f6f4ee;
  --chip: #f6f3ec;
  --white: #fff;
  --container: 1160px;
  --gutter: clamp(16px, 5vw, 80px);
  --font: "Inter", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--white);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: normal; color: var(--red); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 21px; height: 21px; flex: none; }

.container {
  position: relative; z-index: 1;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}
.center { text-align: center; }

/* ----- Badge / headings ----- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 20px;
  background: var(--white); border: 1px solid var(--red); border-radius: 100px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.1));
  color: var(--red); font-size: 15px; font-weight: 600; line-height: 20px;
  text-transform: uppercase; white-space: nowrap;
}
.badge--md { font-weight: 500; }
/* chấm lục giác trước nhãn */
.badge::before { content: ""; width: 10px; height: 9px; margin-right: 9px; flex: none; background: currentColor; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }

/* ===== Hoạ tiết cụm lục giác (theo logo) ===== */
.hexdeco { position: absolute; z-index: 0; pointer-events: none; color: var(--red); --hx2: #1f1f1f; animation: hexfloat 9s ease-in-out infinite alternate; }
/* chỉ vẽ đường viền lục giác, không tô khối */
.hx-a, .hx-b { fill: none; stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hx-a { stroke: currentColor; }
.hx-b { stroke: var(--hx2, currentColor); }
@keyframes hexfloat { from { translate: 0 -10px; rotate: -2deg; } to { translate: 0 12px; rotate: 2deg; } }
.hexdeco--pain { right: -190px; top: -70px; width: 420px; height: 370px; opacity: .3; }
.hexdeco--cases { left: -90px; bottom: 120px; width: 380px; height: 335px; opacity: .3; }
.hexdeco--footer { left: -50px; top: 30px; width: 300px; height: 265px; opacity: .28; }
.h2 { font-size: 36px; font-weight: 600; line-height: 1.4; color: var(--text); text-wrap: balance; }
.h2--white { color: var(--white); }

/* ----- Buttons ----- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 6px;
  height: 45px; padding: 0 3px 0 20px; border-radius: 100px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.1));
  transition: transform .2s, color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateX(-101%); transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(0); }
.btn__ic {
  display: grid; place-items: center; width: 39px; height: 39px; flex: none;
  border-radius: 50%; background: var(--white); color: var(--red);
  transition: transform .35s var(--ease);
}
.btn__ic svg { width: 19px; height: 19px; stroke-width: 2; }
.btn:hover .btn__ic { transform: rotate(45deg); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red::before { background: var(--red-dark); }
.btn--outline { background: var(--white); color: var(--text); border: 1px solid var(--red); padding: 0 20px; }
.btn--outline::before { background: var(--red); }
.btn--outline:hover { color: var(--white); }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 0 22px; backdrop-filter: blur(8px); }
.btn--glass::before { background: #fff; }
.btn--glass:hover { color: var(--red); }
.btn--line { height: 50px; border: 1px solid var(--red); color: var(--black); filter: none; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.btn--line .btn__ic { background: var(--red); color: #fff; width: 42px; height: 42px; }
.btn--line::before { background: var(--beige); }
.btn--white { height: 54px; background: #fff; color: var(--red); font-size: 16px; padding-left: 26px; }
.btn--white .btn__ic { background: var(--red); color: #fff; width: 46px; height: 46px; }
.btn--white::before { background: var(--beige); }

/* ===== THANH ƯU ĐÃI ===== */
.announce {
  position: relative; z-index: 21; display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 56px; color: #fff; font-size: 13.5px; overflow: hidden;
  background: linear-gradient(90deg, #6d0509, var(--red) 35%, #d0242b 65%, var(--red));
  background-size: 200% 100%; animation: flow 12s linear infinite alternate;
  transition: height .35s var(--ease), opacity .3s;
}
.announce.is-closed { height: 0; opacity: 0; }
@keyframes flow { to { background-position: 100% 0; } }
.announce__inner { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.announce__tag { padding: 3px 9px; border-radius: 100px; background: rgba(255,255,255,.18); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.announce__text { opacity: .95; }
.announce__link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); }
.announce__link svg { width: 15px; height: 15px; stroke-width: 2.2; transition: translate .3s var(--ease); }
.announce__link:hover svg { translate: 3px 0; }
.announce__mail { position: absolute; left: max(16px, calc((100vw - 1280px) / 2 + 8px)); display: flex; align-items: center; gap: 7px; font-size: 12.5px; opacity: .85; }
.announce__mail svg { width: 16px; height: 16px; }
.announce__mail:hover { opacity: 1; }
.announce__close { position: absolute; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; opacity: .75; transition: background .2s, opacity .2s; }
.announce__close:hover { opacity: 1; background: rgba(255,255,255,.15); }
.announce__close svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* ===== HEADER: thanh điều hướng nổi dạng viên thuốc, nền kính mờ ===== */
:root { --hgut: clamp(16px, 3vw, 40px); }
.header { position: sticky; top: 0; z-index: 20; padding: 12px var(--hgut); }
.nav {
  position: relative; display: flex; align-items: center; gap: 12px;
  max-width: 1200px; height: 66px; margin: 0 auto; padding: 0 10px 0 24px;
  border-radius: 100px;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(20,20,50,.06), inset 0 1px 0 rgba(255,255,255,.8), 0 12px 32px -14px rgba(20,20,50,.22);
  transition: height .35s var(--ease), box-shadow .35s, background .35s, max-width .45s var(--ease);
}
.header.is-scrolled .nav {
  height: 58px; background: rgba(255,255,255,.86);
  box-shadow: 0 0 0 1px rgba(20,20,50,.07), inset 0 1px 0 rgba(255,255,255,.8), 0 18px 40px -16px rgba(20,20,50,.3);
}
.nav__logo { flex: none; display: block; width: 148px; height: 40px; transition: width .35s var(--ease); }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.header.is-scrolled .nav__logo { width: 132px; }

/* Menu: chữ thường, pill mờ trượt theo chuột */
/* Căn giữa bằng margin auto: khi thiếu chỗ menu chỉ co về bên phải, không bao giờ lấn vào logo */
.menu { position: relative; flex: 1; display: flex; min-width: 0; }
.menu__list { display: flex; align-items: center; gap: 2px; margin: 0 auto; list-style: none; }
.menu__item { position: relative; }
.menu__link {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 10px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: #17171c; white-space: nowrap;
  transition: color .2s;
}
.menu__chev { width: 14px; height: 14px; stroke-width: 2.2; opacity: .45; margin-right: -3px; transition: transform .35s var(--ease), opacity .2s; }
.menu__link:hover, .menu__link[aria-expanded="true"] { color: var(--red); }
.menu__link:hover .menu__chev { opacity: .9; }
.menu__link[aria-expanded="true"] .menu__chev { transform: rotate(180deg); opacity: 1; }
.menu__link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.menu__ink {
  position: absolute; left: 0; top: 50%; z-index: 0; height: 40px; width: 0; border-radius: 100px;
  background: rgba(186,19,26,.07);
  translate: var(--x, 0) -50%; opacity: 0; pointer-events: none;
  transition: translate .4s var(--ease), width .4s var(--ease), opacity .25s;
}
.menu__ink.is-on { opacity: 1; }
.menu__ink.no-anim { transition: opacity .25s; }

/* Cụm hành động bên phải */
.nav__actions { flex: none; display: flex; align-items: center; gap: 6px; }
.nav__search {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(20,20,50,.045); color: #2b2b35;
  transition: background .2s, color .2s;
}
.nav__search svg { width: 18px; height: 18px; stroke-width: 2; }
.nav__search:hover { background: rgba(20,20,50,.08); color: var(--black); }
.cmdk kbd {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 7px;
  font: 600 11px/1 var(--font); color: var(--gray); background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 1px 0 rgba(0,0,0,.08);
}
.nav__call { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 3px; height: 42px; border-radius: 100px; transition: background .2s; }
.nav__call:hover { background: rgba(186,19,26,.06); }
.nav__call-ic { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(186,19,26,.1); color: var(--red); }
.nav__call-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(186,19,26,.35); animation: ripple 2.2s infinite; }
@keyframes ripple { to { scale: 1.6; opacity: 0; } }
.nav__call-ic svg { width: 17px; height: 17px; stroke-width: 2; animation: ring 2.4s infinite; }
.nav__call-text { display: grid; font-size: 14.5px; font-weight: 700; line-height: 1.15; color: var(--black); }
.nav__call-text small { font-size: 11px; font-weight: 500; color: var(--gray); }
.nav__cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 22px;
  border-radius: 100px; color: #fff; font-size: 14.5px; font-weight: 700; white-space: nowrap;
  background: linear-gradient(135deg, #d0242b, var(--red) 55%, #8f0a10);
  box-shadow: 0 8px 20px -6px rgba(186,19,26,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.nav__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  translate: -100% 0; animation: shine 4s 1.5s infinite;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(186,19,26,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.nav__cta-ic { width: 17px; height: 17px; color: #fff; stroke-width: 2.4; transition: translate .3s var(--ease); }
.nav__cta:hover .nav__cta-ic { translate: 2px -2px; }
.header.is-scrolled .nav__cta { height: 42px; }
@keyframes shine { 0% { translate: -100% 0; } 30%, 100% { translate: 100% 0; } }

/* ===== TÌM KIẾM NHANH ===== */
.cmdk { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; background: rgba(18,18,40,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmdk[hidden] { display: none; }
.cmdk.is-in { animation: fadeIn .2s ease; }
.cmdk.is-in .cmdk__box { animation: popIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; translate: 0 -10px; scale: .97; } }
.cmdk__box { width: min(620px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px -20px rgba(20,20,50,.45), 0 0 0 1px rgba(0,0,0,.06); }
.cmdk__bar { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid #efefef; }
.cmdk__bar svg { width: 20px; height: 20px; color: var(--gray); flex: none; }
.cmdk__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font-size: 16px; background: transparent; }
.cmdk__list { list-style: none; overflow-y: auto; padding: 8px; }
.cmdk__group { padding: 12px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.cmdk__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--black); }
.cmdk__list a img, .cmdk__ic { width: 30px; height: 30px; flex: none; padding: 5px; border-radius: 9px; background: #f5f3ef; object-fit: contain; display: grid; place-items: center; font-size: 14px; color: var(--red); }
.cmdk__list a small { margin-left: auto; font-size: 12px; color: var(--gray); white-space: nowrap; }
.cmdk__list a.is-sel { background: rgba(186,19,26,.07); color: var(--red); }
.cmdk__list a.is-sel small::after { content: " ↵"; }
.cmdk__empty { padding: 28px; text-align: center; color: var(--gray); font-size: 14px; }
.cmdk__empty a { color: var(--red); font-weight: 700; }
.cmdk__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid #efefef; background: #fafafa; font-size: 12px; color: var(--gray); }
.cmdk__foot kbd { margin-right: 4px; min-width: 22px; height: 20px; }

/* ----- Mega menu ----- */
.mega {
  --w: min(1160px, calc(100vw - var(--hgut) * 2));
  position: absolute; left: 50%; top: calc(100% - 10px); width: var(--w); margin-left: calc(var(--w) / -2);
  padding-top: 12px; z-index: 5;
  opacity: 0; visibility: hidden; translate: 0 -10px; scale: .985; transform-origin: 50% 0;
  transition: opacity .28s var(--ease), translate .4s var(--ease), scale .4s var(--ease), visibility 0s .4s;
}
.mega.is-open { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition-delay: 0s; }
.mega__arrow {
  position: absolute; top: 6px; left: 0; width: 14px; height: 14px; z-index: 2;
  background: #fff; border-radius: 3px 0 0 0; rotate: 45deg;
  box-shadow: -3px -3px 6px rgba(0,0,0,.03);
  translate: calc(var(--ax, 0px) - 7px) 0; transition: translate .4s var(--ease);
}
.mega.no-anim .mega__arrow, .mega.no-anim .mega__stage { transition: none; }
.mega__box {
  position: relative; overflow: hidden; background: #fff; border-radius: 12px;
  box-shadow: 0 14px 34px -14px rgba(20,20,50,.18), 0 0 0 1px rgba(0,0,0,.06);
}
.mega__stage { position: relative; height: var(--h, 360px); transition: height .45s var(--ease); }
.mega__panel {
  position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 28px;
  padding: 30px 30px 26px;
  opacity: 0; visibility: hidden; translate: calc(var(--dir, 1) * 40px) 0;
  transition: opacity .3s var(--ease), translate .45s var(--ease), visibility 0s .45s;
}
.mega__panel.is-active { opacity: 1; visibility: visible; translate: 0 0; transition-delay: .05s, 0s, 0s; }
.mega__panel.is-leaving { translate: calc(var(--dir, 1) * -40px) 0; }
#mega-platforms { grid-template-columns: 1fr; }
.mega__eyebrow { margin: 0 0 12px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.mega__cols-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.mega__cols-blog { display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.mega__grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega__grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* Liên kết trong mega */
.mlink {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 12px;
  border-radius: 10px; color: var(--black); transition: background .25s, transform .3s var(--ease);
}
.mlink > span:last-child { display: grid; gap: 2px; min-width: 0; }
.mlink b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; transition: color .2s; }
.mlink small { font-size: 12.5px; color: var(--gray); line-height: 1.45; }
.mlink::after {
  content: "→"; position: absolute; right: 14px; top: 50%; translate: -6px -50%;
  color: var(--red); font-weight: 700; opacity: 0; transition: opacity .25s, translate .3s var(--ease);
}
.mlink:hover, .mlink:focus-visible { background: var(--beige); outline: 0; }
.mlink:hover b, .mlink:focus-visible b { color: var(--red); }
.mlink:hover::after, .mlink:focus-visible::after { opacity: 1; translate: 0 -50%; }
.mlink__ic, .mlink__logo {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px;
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.mlink__ic { background: rgba(186,19,26,.07); color: var(--red); }
.mlink__ic svg { width: 21px; height: 21px; }
.mlink__logo { width: 32px; height: 32px; border-radius: 0; }
.mlink__logo img { width: 30px; height: 30px; object-fit: contain; }
.mlink__logo svg { width: 28px; height: 28px; }
.mlink:hover .mlink__ic { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.mlink:hover .mlink__logo { transform: scale(1.08); }
.mlink--sm { padding: 8px 12px; gap: 12px; }
.mlink--sm .mlink__logo { width: 26px; height: 26px; }
.mlink--sm .mlink__logo img { width: 24px; height: 24px; }
.mlink--sm .mlink__logo svg { width: 22px; height: 22px; }
.mlink--sm b { font-size: 14px; font-weight: 600; }
.mlink__dot { width: 10px; height: 10px; margin: 0 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); flex: none; }
.mega__grid--odoo .mlink__ic { background: rgba(113,75,103,.09); color: #714b67; }
.mega__grid--odoo .mlink:hover .mlink__ic { background: #714b67; color: #fff; }
.mlink--tile { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); }
.mlink--tile .mlink__ic { background: color-mix(in srgb, var(--g) 12%, #fff); color: var(--g); }
.mlink--tile:hover { background: #fff; border-color: var(--g); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--g) 45%, transparent); transform: translateY(-3px); }
.mlink--tile:hover .mlink__ic { background: var(--g); color: #fff; }
.mlink--tile::after { top: 26px; }

.mega__grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.mlink--sm .mlink__ic { width: 34px; height: 34px; border-radius: 10px; }
.mlink--sm .mlink__ic svg { width: 18px; height: 18px; }
.mlink__ic--ai { color: #fff; background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570); }
.mfeat--red .mfeat__title { margin-top: 4px; }

/* Thẻ nổi bật bên phải */
.mfeat {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: 18px; overflow: hidden; isolation: isolate;
}
.mfeat__kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.mfeat__big { font-size: 56px; font-weight: 800; line-height: 1; }
.mfeat__big small { font-size: 18px; font-weight: 600; }
.mfeat__text { font-size: 14px; line-height: 1.6; opacity: .92; }
.mfeat__title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.mfeat__badges { display: flex; gap: 8px; margin-top: 4px; }
.mfeat__badges img { height: 46px; width: auto; padding: 2px 6px; border-radius: 10px; background: #fff; }
.mfeat__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  font-size: 14px; font-weight: 700;
}
.mfeat__cta svg { width: 18px; height: 18px; stroke-width: 2.2; transition: translate .3s var(--ease); }
.mfeat__cta:hover svg { translate: 5px 0; }
.mfeat--red { color: #fff; background: radial-gradient(300px 200px at 100% 0%, rgba(255,255,255,.22), transparent 70%), linear-gradient(150deg, #d0242b, var(--red) 45%, #6d0509); }
.mfeat--red::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; z-index: -1; width: 200px; height: 200px;
  border-radius: 50%; border: 30px solid rgba(255,255,255,.07);
}
.mfeat--odoo { color: #fff; background: radial-gradient(260px 180px at 0% 0%, rgba(255,255,255,.2), transparent 70%), linear-gradient(150deg, #8a5c7e, #714b67 50%, #4a2f43); }
.mfeat__apps { display: grid; grid-template-columns: repeat(3, 38px); gap: 10px; margin-bottom: 8px; }
.mfeat__apps i { width: 38px; height: 38px; border-radius: 10px; background: var(--c); box-shadow: 0 6px 14px rgba(0,0,0,.25), inset 0 0 0 2px rgba(255,255,255,.25); }
.mega__panel.is-active .mfeat__apps i { animation: pop .5s var(--ease) both; }
.mfeat__apps i:nth-child(2) { animation-delay: .05s !important; }
.mfeat__apps i:nth-child(3) { animation-delay: .1s !important; }
.mfeat__apps i:nth-child(4) { animation-delay: .15s !important; }
.mfeat__apps i:nth-child(5) { animation-delay: .2s !important; }
.mfeat__apps i:nth-child(6) { animation-delay: .25s !important; }

/* Bài viết trong mega */
.mposts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mpost { display: grid; gap: 6px; padding: 8px; border-radius: 16px; transition: background .25s; }
.mpost:hover { background: var(--beige); }
.mpost__img { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.mpost__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.mpost:hover .mpost__img img { scale: 1.06; }
.mpost small { font-size: 11.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.mpost b { font-size: 14.5px; line-height: 1.45; color: var(--black); }

/* Các mục trong panel xuất hiện lần lượt */
.mega__panel.is-active :is(.mlink, .mpost, .mfeat) { animation: mIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes mIn { from { opacity: 0; translate: 0 10px; } }

.mega-backdrop {
  position: fixed; inset: 0; z-index: 19; background: rgba(18,18,40,.28);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.mega-backdrop.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
section[id] { scroll-margin-top: 100px; }

.mbar, .mnav { display: none; }

/* ===== HERO: slide HTML toàn màn hình, menu nổi đè lên ===== */
/* Header dính trên cùng nhưng không chiếm chỗ → hero chạy lên dưới menu */
.header { margin-bottom: -90px; }
.hero {
  --ink: #0a0d24; /* cùng nền tối với banner các trang con (.phero trong about.css) */
  position: relative; isolation: isolate; overflow: hidden;
  /* Slide và thanh chọn nằm chung một lưới: hero tự cao theo nội dung, không bao giờ đè nhau */
  display: grid; grid-template-rows: 1fr auto; grid-template-areas: "slide" "tabs";
  min-height: clamp(560px, calc(100svh - 170px), 720px);
  background: var(--ink); color: #fff;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* lưới tổ ong – theo biểu tượng lục giác của logo */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0H42L56 24.25L42 48.5H14L0 24.25ZM56 24.25H84' fill='none' stroke='%23fff' stroke-opacity='.075'/%3E%3C/svg%3E");
  background-size: 84px 48.5px;
  -webkit-mask: radial-gradient(900px 600px at 70% 45%, #000, transparent 75%); mask: radial-gradient(900px 600px at 70% 45%, #000, transparent 75%);
}
/* Các slide chồng lên nhau trong cùng một ô lưới (không position:absolute) → ô cao bằng slide cao nhất */
.hslide { grid-area: slide; display: flex; align-items: center; min-width: 0; visibility: hidden; transition: visibility 0s .9s; }
.hslide.is-active { visibility: visible; transition-delay: 0s; }
.hslide.is-active .hslide__inner { z-index: 3; }
.hslide__bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1s ease;
  /* Nền giống banner trang con: quầng đỏ góc trên phải + quầng xanh tím nhạt góc dưới trái trên nền tối.
     (Trước đây mỗi slide pha thêm màu riêng --a/--b nên tổng thể ngả xanh.) */
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(186,19,26,.55), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(63,70,160,.45), transparent 65%),
    var(--ink);
}
.hslide.is-active .hslide__bg { opacity: 1; }
.hslide__inner {
  position: relative; z-index: 2; flex: none;
  width: min(var(--container), calc(100% - var(--gutter) * 2)); margin: 0 auto; /* cùng khung nội dung với các khối bên dưới */
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; /* cột chữ đủ rộng cho dòng tiêu đề dài nhất */
  padding: 120px 0 56px;
}

/* Chữ: từng dòng trượt lên lần lượt */
[data-anim] { opacity: 0; translate: 0 26px; filter: blur(6px); transition: opacity .7s var(--ease), translate .8s var(--ease), filter .7s var(--ease); }
.hslide.is-active [data-anim] { opacity: 1; translate: 0 0; filter: blur(0); }
.hslide.is-active [data-anim]:nth-child(1) { transition-delay: .15s; }
.hslide.is-active [data-anim]:nth-child(2) { transition-delay: .25s; }
.hslide.is-active [data-anim]:nth-child(3) { transition-delay: .38s; }
.hslide.is-active [data-anim]:nth-child(4) { transition-delay: .48s; }
.hslide.is-active [data-anim]:nth-child(5) { transition-delay: .58s; }
.hslide__title { margin-top: 0; font-size: clamp(30px, 4.2vw, 38px); font-weight: 700; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.hslide__title em { white-space: nowrap; background: var(--em, linear-gradient(95deg, #ff5a5f, #ff9d7a 55%, #ffd2a8)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hslide__sub { margin-top: 20px; max-width: 500px; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.86); }
.hslide__sub b { color: #fff; }
.hslide__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hbtn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; height: 54px; border-radius: 100px; font-size: 15.5px; font-weight: 700; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.hbtn:hover { transform: translateY(-2px); }
.hbtn--primary { padding: 0 6px 0 26px; color: #fff; background: linear-gradient(135deg, #e0333a, var(--red) 55%, #8f0a10); box-shadow: 0 14px 34px -10px rgba(224,51,58,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.hbtn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%); translate: -100% 0; animation: shine 4s 2s infinite; }
.hbtn__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--red); transition: transform .35s var(--ease); }
.hbtn__ic svg { width: 19px; height: 19px; stroke-width: 2.4; }
.hbtn:hover .hbtn__ic { transform: rotate(45deg); }
.hbtn--ghost { padding: 0 26px; color: #fff; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hbtn--ghost:hover { background: rgba(255,255,255,.14); }

/* Hình minh hoạ: các khối bay nhẹ + lệch theo chuột */
.hvis { position: relative; height: 480px; }
.fl {
  position: absolute; translate: calc(var(--mx, 0) * var(--d, 10) * 1px) calc(var(--my, 0) * var(--d, 10) * 1px);
  transition: translate .6s cubic-bezier(.2,.7,.3,1), opacity .8s var(--ease), scale .8s var(--ease);
  opacity: 0; scale: .92;
}
.hslide.is-active .fl { opacity: 1; scale: 1; transition-delay: 0s, calc(.3s + var(--d) * 8ms), calc(.3s + var(--d) * 8ms); }
.fl { animation: bob 6s ease-in-out infinite alternate; }
.fl:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.fl:nth-child(3n) { animation-duration: 5.5s; animation-delay: -4s; }
@keyframes bob { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
.glass {
  background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 30px 60px -20px rgba(0,0,0,.5);
}
.hchip {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.95); color: var(--black); box-shadow: 0 24px 50px -16px rgba(0,0,0,.55);
}
.hchip img, .hchip__spark, .hchip__ok { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; object-fit: contain; padding: 7px; background: #f3f4f8; }
.hchip__spark { color: #fff; font-size: 18px; background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570); }
.hchip__ok { color: #fff; font-weight: 800; background: #22c55e; }
.hchip > span:last-child { display: grid; }
.hchip b { font-size: 14px; }
.hchip small { font-size: 12px; color: var(--gray); }
.hdisc {
  display: grid; justify-items: center; place-content: center; width: 136px; height: 136px; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ff6b6f, var(--red) 55%, #7a060b); color: #fff; text-align: center;
  box-shadow: 0 24px 50px -12px rgba(186,19,26,.7), inset 0 2px 0 rgba(255,255,255,.3);
}
.hdisc b { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.hdisc sup { font-size: 20px; }
.hdisc small { font-size: 11.5px; font-weight: 600; opacity: .9; }
.hdisc--light { width: 112px; height: 112px; background: #fff; color: var(--red); box-shadow: 0 24px 50px -16px rgba(0,0,0,.5); }
.hdisc--light b { font-size: 36px; }
.hdisc--light small { color: var(--gray); }

/* GW */
.mwin { left: 6%; top: 60px; width: 78%; border-radius: 20px; overflow: hidden; background: #fff; color: var(--black); box-shadow: 0 40px 80px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); }
.mwin__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef0f4; }
.mwin__bar img { width: 22px; height: 22px; }
.mwin__bar b { font-size: 16px; font-weight: 600; color: #444; }
.mwin__search { flex: 1; height: 30px; border-radius: 100px; background: #eef2f8; margin: 0 8px; }
.mwin__av, .mrow i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--red)); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; flex: none; }
.mwin__body { padding: 6px 0 10px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 13px; }
.mrow > span { display: grid; flex: 1; min-width: 0; }
.mrow b { font-weight: 600; }
.mrow small { color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow time { font-size: 11.5px; color: var(--gray); }
.mrow.is-new { background: #eef4ff; box-shadow: inset 3px 0 0 #4285f4; }
.mrow.is-new b, .mrow.is-new time { color: #1a56db; font-weight: 700; }
.hvis .hchip--ai { left: -4%; top: 330px; }
.hvis > .hdisc { right: 0; top: 0; }
.hvis > .hdisc--light { right: 8%; top: 330px; left: auto; }
.htiles { left: 12%; bottom: -6px; display: flex; gap: 10px; padding: 10px; border-radius: 20px; }
.htiles, .lchat { background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 30px 60px -20px rgba(0,0,0,.5); }
.htiles span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--c); }
.htiles svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* Lark */
.lchat { left: 4%; top: 30px; width: 74%; padding: 16px; border-radius: 22px; display: grid; gap: 12px; }
.lchat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.lchat__head img { width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: #fff; }
.lchat__head span { margin-left: auto; font-size: 12px; opacity: .65; }
.lmsg { display: flex; align-items: flex-end; gap: 10px; }
.lmsg i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); font-style: normal; font-size: 12px; font-weight: 700; flex: none; }
.lmsg p { max-width: 78%; padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.92); color: var(--black); font-size: 13.5px; line-height: 1.5; }
.lmsg--me { justify-content: flex-end; }
.lmsg--me p { border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, #3370ff, #5b8cff); color: #fff; }
.lchat__input { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 6px 0 14px; border-radius: 100px; background: rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.6); }
.lchat__input i { width: 30px; height: 30px; border-radius: 50%; background: #3370ff; }
.ltask { right: 0; top: 250px; width: 250px; padding: 18px; border-radius: 20px; background: #fff; color: var(--black); box-shadow: 0 30px 60px -18px rgba(0,0,0,.55); display: grid; gap: 6px; }
.ltask small { font-size: 12px; color: var(--gray); }
.ltask b { font-size: 16px; }
.ltask__bar { height: 8px; margin-top: 8px; border-radius: 8px; background: #eef1f7; overflow: hidden; }
.ltask__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #3370ff, #00d6b9); transition: width 1.4s .8s var(--ease); }
.hslide.is-active .ltask__bar span { width: 72%; }
.ltask__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 700; color: #3370ff; }
.avs { display: flex; }
.avs i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #fff; margin-left: -8px; }
.avs i:first-child { margin-left: 0; }
.hvis--lark .hchip { right: 6%; top: 10px; }

/* Slide 1: sơ đồ hệ sinh thái – 7 nút nối về một trung tâm */
.hvis--eco { height: 500px; }
.eco { position: absolute; inset: 0; }
.eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco__lines path { stroke: rgba(255,255,255,.35); stroke-width: 1.4; stroke-dasharray: 4 7; animation: flowIn 1.6s linear infinite; }
.eco__orbit { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; stroke-dasharray: 2 6; transform-origin: 260px 240px; animation: spin 60s linear infinite; }
.eco__orbit--in { stroke: rgba(255,255,255,.08); animation-direction: reverse; animation-duration: 40s; }
@keyframes flowIn { to { stroke-dashoffset: 22; } }
@keyframes spin { to { rotate: 360deg; } }
.eco__core {
  position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px;
  display: grid; place-content: center; justify-items: center; gap: 6px; border-radius: 50%;
  background: #fff; color: var(--gray); text-align: center;
  box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 0 0 22px rgba(255,255,255,.04), 0 30px 80px -10px rgba(224,51,58,.6);
}
.eco__core img { width: 118px; height: 32px; object-fit: contain; }
.eco__core small { font-size: 11.5px; font-weight: 600; line-height: 1.35; }
.eco__ring { position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid rgba(255,138,122,.7); animation: ripple 3s infinite; }
.eco__ring--2 { animation-delay: 1.5s; }
.enode {
  left: var(--x); top: var(--y); width: 96px; margin: -34px 0 0 -48px;
  display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.92);
}
.enode__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #fff; box-shadow: 0 16px 34px -12px rgba(0,0,0,.6); transition: transform .35s var(--ease); }
.enode__ic img { width: 30px; height: 30px; object-fit: contain; }
.enode__ic svg { width: 28px; height: 28px; stroke-width: 2; }
.enode--ai .enode__ic { color: #fff; background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570); }
.hvis--eco .enode:hover .enode__ic { transform: scale(1.1); }

/* Hàng icon ứng dụng thật của sản phẩm */
.happs { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; list-style: none; }
.happs li { display: grid; justify-items: center; gap: 7px; width: 58px; font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.72); }
.happs img { width: 50px; height: 50px; padding: 10px; border-radius: 15px; background: #fff; object-fit: contain; box-shadow: 0 12px 26px -12px rgba(0,0,0,.6); transition: transform .35s var(--ease); }
.happs li:hover img { transform: translateY(-4px); }

/* Khung trợ lý AI (Gemini / Copilot / Lark AI) – viền và hiệu ứng theo màu nhận diện từng sản phẩm */
.aipanel {
  width: 300px; padding: 16px; border-radius: 20px; color: var(--black); border: 1.5px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--ai) border-box;
  box-shadow: 0 30px 60px -18px rgba(0,0,0,.6);
}
.aipanel--gemini { --ai: linear-gradient(120deg, #4285f4, #9b72cb, #d96570); }
.aipanel--copilot { --ai: linear-gradient(120deg, #26b5f5, #7b6cf6, #e9589c, #ffb14a); }
.aipanel--lark { --ai: linear-gradient(120deg, #3370ff, #00d6b9); }
.aipanel__head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.aipanel__head img { width: 24px; height: 24px; object-fit: contain; }
.aipanel__head span { margin-left: auto; font-size: 11.5px; color: var(--gray); }
.aipanel__ask { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f3f4f8; font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.aipanel__out { display: grid; gap: 8px; margin-top: 12px; }
.aipanel__out i { height: 9px; border-radius: 9px; background: var(--ai); background-size: 220% 100%; opacity: .55; animation: aiflow 2.4s linear infinite; }
.aipanel__out i:nth-child(2) { width: 86%; animation-delay: -.6s; }
.aipanel__out i:nth-child(3) { width: 58%; animation-delay: -1.2s; }
@keyframes aiflow { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.aipanel__list { list-style: none; display: grid; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--gray); }
.aipanel__list li { display: flex; align-items: center; gap: 8px; }
.aipanel__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }
.aipanel__chips { display: flex; gap: 8px; margin-top: 14px; }
.aipanel__chips span { padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px #dfe2ea; }
.aipanel__chips span:first-child { color: #fff; background: var(--ai); box-shadow: none; }

/* Bố cục hình minh hoạ 3 slide sản phẩm */
.hvis--gw .mwin, .hvis--ms .mwin { left: 0; top: 60px; width: 72%; }
.hvis--gw .aipanel, .hvis--ms .aipanel { right: 0; top: 210px; }
.hvis--lark .lchat { left: 0; top: 50px; width: 72%; }
.hvis--lark .aipanel { right: 0; top: 230px; }
/* Cửa sổ tài liệu (Word) */
.mdoc { display: grid; gap: 10px; padding: 20px 22px 24px; }
.mdoc b { height: 13px; width: 58%; border-radius: 6px; background: #1f2937; }
.mdoc i { height: 8px; border-radius: 8px; background: #e3e6ee; }
.mdoc__chart { display: flex; align-items: flex-end; gap: 8px; height: 64px; padding: 10px 12px; border-radius: 10px; background: #f3f6fb; }
.mdoc__chart u { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4aa3f0, #0f6cbd); text-decoration: none; }

/* Slide Odoo: bảng điều khiển + màu nhận diện tím – xanh ngọc */
.aipanel--odoo { --ai: linear-gradient(120deg, #714b67, #a86a9b, #00a09d); }
.hvis--odoo .mwin { left: 0; top: 60px; width: 72%; }
.hvis--odoo .aipanel { right: 0; top: 230px; }
.odash { display: grid; gap: 14px; padding: 16px 18px 20px; }
.odash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.odash__kpis span { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 4px 8px; padding: 10px; border-radius: 12px; background: #f6f2f5; font-size: 12px; font-weight: 600; color: #4a3344; }
.odash__kpis img { width: 22px; height: 22px; }
.odash__kpis b { grid-column: 1 / -1; height: 7px; border-radius: 7px; background: linear-gradient(90deg, #714b67 var(--v, 62%), #e6dbe3 0); }
.odash__kpis span:nth-child(2) b { --v: 84%; background: linear-gradient(90deg, #00a09d var(--v), #d9efee 0); }
.odash__kpis span:nth-child(3) b { --v: 38%; }
.odash__chart { display: flex; align-items: flex-end; gap: 9px; height: 110px; padding-top: 6px; border-bottom: 1px solid #e9e2e7; }
.odash__chart i { flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #b48aa9, #714b67); transition: height 1s var(--ease); transition-delay: calc(.5s + var(--i, 0) * 60ms); }
.odash__chart i:last-child { background: linear-gradient(180deg, #3fd0c9, #00a09d); }
.hslide.is-active .odash__chart i { height: var(--h); }

/* Biểu tượng trong thanh chọn slide */
.htab__ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: rgba(255,255,255,.92); color: var(--red); }
.htab__ic svg { width: 19px; height: 19px; stroke-width: 2; }

/* Thanh chọn slide */
.htabs {
  grid-area: tabs; position: relative; z-index: 5; margin: 0 auto; padding-bottom: 34px;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 18px; align-items: end;
}
.htab { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 18px; text-align: left; color: #fff; opacity: .74; transition: opacity .3s; }
.htab:hover, .htab.is-active { opacity: 1; }
.htab:focus { outline: none; }
.htab:focus-visible, .hnav__btn:focus-visible { outline: 2px solid rgba(255,255,255,.75); outline-offset: 6px; border-radius: 12px; }
.htab img { width: 36px; height: 36px; padding: 7px; border-radius: 11px; background: rgba(255,255,255,.92); object-fit: contain; flex: none; }
.htab > span:last-child { display: grid; }
.htab b { font-size: 14.5px; font-weight: 700; }
.htab small { font-size: 12px; opacity: .8; }
.htab__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.htab__line i { position: absolute; inset: 0; background: linear-gradient(90deg, #ff5a5f, #ffb38a); transform-origin: left; transform: scaleX(0); }
.htab.is-active .htab__line i { animation: barFill var(--dur, 7s) linear forwards; }
.hero.is-paused .htab.is-active .htab__line i { animation-play-state: paused; }
@keyframes barFill { to { transform: scaleX(1); } }
.hnav { display: flex; gap: 8px; }
.hnav__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background .25s, color .25s; }
.hnav__btn:hover { background: #fff; color: var(--red); }
.hnav__btn svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* Menu nổi trên nền tối: giữ kính trắng, thêm viền sáng cho tách nền */
.header:not(.is-scrolled) .nav { box-shadow: 0 0 0 1px rgba(255,255,255,.25), inset 0 1px 0 rgba(255,255,255,.9), 0 20px 50px -18px rgba(0,0,0,.55); }

/* ===== THÁCH THỨC CỦA SME ===== */
.pain { position: relative; padding: 48px 0 96px; overflow: hidden; }
.pain__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.pain__head .h2 { margin-top: 28px; max-width: 640px; }
.pain__lead { max-width: 420px; font-size: 16px; line-height: 1.75; color: var(--gray); }
.pain__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.pcase {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 24px;
  border-radius: 18px; background: var(--beige); overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s, color .3s;
}
.pcase::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #d0242b, var(--red) 50%, #6d0509); opacity: 0; transition: opacity .4s; }
.pcase:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(186,19,26,.55); color: rgba(255,255,255,.88); }
.pcase:hover::before { opacity: 1; }
.pcase__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--red); box-shadow: 0 8px 20px -10px rgba(0,0,0,.2); }
.pcase__ic svg { width: 26px; height: 26px; }
.pcase h3 { margin-top: 8px; font-size: 20px; font-weight: 700; color: var(--black); transition: color .3s; }
.pcase:hover h3 { color: #fff; }
.pcase > p:not(.pcase__fix) { font-size: 14.5px; line-height: 1.65; }
.pcase__fix { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(0,0,0,.14); font-size: 13.5px; line-height: 1.55; color: var(--black); transition: color .3s, border-color .3s; }
.pcase__fix b { color: var(--red); transition: color .3s; }
.pcase:hover .pcase__fix { color: #fff; border-color: rgba(255,255,255,.3); }
.pcase:hover .pcase__fix b { color: #ffd2a8; }

/* ===== KHUNG ẢNH MINH HOẠ (thay bằng <img> thật) ===== */
.ph {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 10px; overflow: hidden;
  text-align: center; color: #8c8778; font-size: 13.5px; font-weight: 600;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 14px, transparent 14px 28px), linear-gradient(135deg, #ece8df, #f6f4ee);
}
.ph > svg { width: 38px; height: 38px; stroke-width: 1.4; opacity: .7; }
.ph small { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 500; opacity: .8; }
.ph--avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 23%), radial-gradient(circle at 50% 108%, #fff 0 42%, transparent 43%), linear-gradient(135deg, color-mix(in srgb, var(--h, #ba131a) 55%, #fff), var(--h, #ba131a)); }
.ph--portrait { aspect-ratio: 4 / 5; border-radius: 18px; place-content: end center; gap: 0; color: #fff; background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.35), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--h, #ba131a) 55%, #fff), var(--h, #ba131a) 70%, color-mix(in srgb, var(--h, #ba131a) 70%, #000)); }
.ph--portrait > svg { width: 82%; height: auto; fill: rgba(255,255,255,.9); stroke: none; opacity: 1; }
.ph--portrait small { position: absolute; left: 10px; top: 10px; margin: 0; padding: 4px 9px; border-radius: 100px; background: rgba(0,0,0,.28); color: #fff; font-size: 10.5px; }
.demo { font-style: normal; padding: 3px 9px; border-radius: 100px; background: #fff4d6; color: #8a6200; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ===== GIỚI THIỆU VINAWEB (hộp số liệu đỏ – be kiểu VMI, chỉnh theo trang Vinaweb) ===== */
.about { position: relative; padding: 110px 0 90px; }
.about__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.about__title { margin-top: 30px; max-width: 720px; font-size: 36px; line-height: 1.36; font-weight: 600; color: var(--navy); text-wrap: balance; }
.about__lead { max-width: 400px; font-size: 16px; line-height: 1.75; color: var(--gray); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.about__media { position: relative; border-radius: 20px; overflow: hidden; min-height: 580px; background: #0b0f2a; color: #fff; }
.about__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1.2s var(--ease); }
.about__media:hover > img { transform: scale(1.05); }
.about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,42,0) 30%, rgba(11,15,42,.9)), radial-gradient(600px 300px at 0% 100%, rgba(186,19,26,.55), transparent 70%); }
.about__media-body { position: absolute; z-index: 1; left: 34px; right: 34px; bottom: 34px; display: grid; gap: 14px; }
.about__quote { font-size: 28px; font-weight: 700; line-height: 1.32; }
.about__media-body > p:not(.about__quote) { max-width: 440px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.85); }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 30px 24px 24px; border-radius: 20px; min-height: 280px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.stat:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -20px rgba(0,0,0,.3); }
.stat--red { color: #fff; background: radial-gradient(260px 200px at 100% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(160deg, #cf2229, var(--red) 55%, #8f0a10); }
.stat--light { background: var(--beige); color: var(--text); }
.stat__hex { position: absolute; z-index: -1; right: -46px; bottom: -40px; width: 190px; height: 168px; color: var(--red); --hx2: var(--red); opacity: .22; transition: rotate .8s var(--ease), scale .8s var(--ease); }
.stat--red .stat__hex { color: #fff; --hx2: #fff; opacity: .3; }
.stat:hover .stat__hex { rotate: 12deg; scale: 1.08; }
.stat__label { font-size: 19px; font-weight: 600; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,.5); }
.stat--light .stat__label { border-color: var(--line); color: var(--black); }
.stat__desc { font-size: 14px; line-height: 1.6; opacity: .9; }
.stat__num { font-size: 58px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat--light .stat__num { color: var(--red); }
.stat__unit { font-size: 16px; font-weight: 700; }

/* ===== ĐỐI TÁC: chữ bên trái, tường logo 3 cột chạy dọc bên phải ===== */
.trust { position: relative; overflow: hidden; padding: 30px 0; background: radial-gradient(900px 500px at 100% 50%, rgba(186,19,26,.06), transparent 70%), linear-gradient(180deg, #fff, #faf7f2 50%, #fff); }
.trust__grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 56px; }
.trust__intro .h2 { margin-top: 26px; font-size: 36px; }
.trust__num { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.trust__num b { font-size: 92px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--red); }
.trust__num span { position: relative; font-size: 18px; line-height: 1.4; color: var(--black); }
.trust__num i { display: block; font-style: normal; font-size: 26px; font-weight: 800; line-height: 1; color: var(--red); }
.trust__certs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 28px; }
/* Ô cao bằng nhau, rộng theo huy hiệu; ảnh đã cắt sát nên chỉ cần căn giữa, không phóng to */
.trust__certs > * { display: grid; place-items: center; height: 94px; padding: 0 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .3s var(--ease); }
.trust__certs img { height: var(--h, 50px); width: auto; max-width: none; }
.trust__certs a:hover { box-shadow: inset 0 0 0 1px var(--red), 0 12px 24px -14px rgba(186,19,26,.5); transform: translateY(-3px); }
/* Tường logo */
.pwall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; height: 620px; overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.pcol__track { display: grid; gap: 18px; list-style: none; animation: pcolUp 26s linear infinite; will-change: transform; }
.pcol--down .pcol__track { animation-name: pcolDown; animation-duration: 30s; }
.pcol:nth-child(3) .pcol__track { animation-duration: 34s; }
.pwall:hover .pcol__track { animation-play-state: paused; }
@keyframes pcolUp { to { transform: translateY(calc(-50% - 9px)); } }
@keyframes pcolDown { from { transform: translateY(calc(-50% - 9px)); } to { transform: translateY(0); } }
/* Giới thiệu Vinaweb: con số bên trái + tường ảnh hoạt động */
/* Nhịp chuyển tiếp: Giới thiệu → Đối tác → Thách thức cách nhau ~100px */
.trust.intro { padding: 96px 0 48px; }
.about.partners { padding: 48px 0; }
.intro__lead { margin-top: 18px; max-width: 480px; font-size: 16px; line-height: 1.7; color: var(--gray); }
.intro__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 26px 0 30px; list-style: none; }
.intro__nums li { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.intro__nums .stat__num { flex: none; min-width: 2.2ch; font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--red); }
.intro__nums span { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--black); }
.intro__nums small { display: block; font-size: 13px; font-weight: 400; color: var(--gray); }
.intro__more { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--black); transition: color .2s, border-color .2s; }
.intro__more svg { width: 17px; height: 17px; stroke-width: 2; transition: translate .3s var(--ease); }
.intro__more:hover { color: var(--red); border-color: var(--red); }
.intro__more:hover svg { translate: 4px 0; }
.pshot { position: relative; overflow: hidden; border-radius: 18px; background: #0b0f2a; box-shadow: 0 18px 36px -24px rgba(33,34,82,.5); }
.pshot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.pcol--down .pshot img { aspect-ratio: 4 / 5; }
.pshot:hover img { transform: scale(1.06); }
.pshot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(180deg, transparent, rgba(11,15,42,.85)); }
/* Thử nghiệm: ẩn chú thích nhỏ (và dải tối phía dưới) trên các ảnh hoạt động. Muốn hiện lại thì xoá dòng dưới. */
.pwall--photos .pshot span { display: none; }
/* Đối tác chiến lược: khối tối + 4 hộp hãng */
.about__media--partners { background: radial-gradient(520px 320px at 100% 0%, rgba(186,19,26,.5), transparent 70%), linear-gradient(160deg, #1a1c4a, #0b0f2a 70%); }
.about__media--partners::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v33L28 65 0 49V16zM28 65v32M0 97l28-16 28 16' fill='none' stroke='%23fff' stroke-opacity='.07'/%3E%3C/svg%3E"); mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
/* Vệt sáng chạy dọc các đường lục giác: lớp line sáng, lộ ra qua 2 đốm mask di chuyển */
.about__media--partners::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v33L28 65 0 49V16zM28 65v32M0 97l28-16 28 16' fill='none' stroke='%23ffb3b6' stroke-width='1.4'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(255,90,96,.95)) drop-shadow(0 0 12px rgba(255,90,96,.6));
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent) no-repeat, radial-gradient(closest-side, #000 10%, transparent) no-repeat;
  mask: radial-gradient(closest-side, #000 15%, transparent) no-repeat, radial-gradient(closest-side, #000 10%, transparent) no-repeat;
  -webkit-mask-size: 300px 300px, 220px 220px; mask-size: 300px 300px, 220px 220px;
  animation: hexGlow 9s linear infinite;
}
@keyframes hexGlow {
  0%   { -webkit-mask-position: -70% 5%, 170% 45%;  mask-position: -70% 5%, 170% 45%; }
  50%  { -webkit-mask-position: 60% 40%, 40% 0%;    mask-position: 60% 40%, 40% 0%; }
  100% { -webkit-mask-position: 170% 10%, -70% 30%; mask-position: 170% 10%, -70% 30%; }
}
@media (prefers-reduced-motion: reduce) { .about__media--partners::before { animation: none; -webkit-mask-position: 80% 10%, 15% 30%; mask-position: 80% 10%, 15% 30%; } }
.about__media--partners .trust__certs { margin: 6px 0 4px; }
.about__media--partners .trust__certs > * { box-shadow: none; }
.pnum { display: flex; align-items: center; gap: 14px; max-width: none !important; }
.pnum b { font-size: 96px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; }
.pnum span { font-size: 18px; line-height: 1.4; color: #fff; }
.pnum i { display: block; font-style: normal; font-size: 26px; font-weight: 800; line-height: 1; color: #ff5a60; }
.stat__brand { display: grid; gap: 12px; margin-top: auto; }
.stat__logo { display: grid; place-items: center; justify-self: start; height: 64px; padding: 0 20px; border-radius: 14px; background: #fff; box-shadow: 0 10px 22px -16px rgba(0,0,0,.4); }
.stat__logo img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.stat__logo--wide img { height: 28px; }
.stat__logo { min-width: 110px; }
.stat__logo img[alt^="Odoo"] { scale: 2.1; }
.stat__logo img[alt="Lark"] { height: 44px; }
.pbrand {
  display: grid; place-items: center; height: 150px; padding: 20px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px rgba(20,20,50,.05), 0 18px 40px -26px rgba(20,20,50,.35);
  transition: box-shadow .3s, transform .4s var(--ease);
}
.pbrand:hover { transform: scale(1.03); box-shadow: 0 0 0 1.5px var(--red), 0 24px 46px -22px rgba(186,19,26,.45); }
.pbrand__word { height: 40px; max-width: 78%; object-fit: contain; }
.pbrand__word.is-wide { height: 30px; max-width: 86%; }
.pbrand__lock { display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.25; color: var(--gray); }
.pbrand__lock img { width: 40px; height: 40px; object-fit: contain; }
.pbrand__lock > span { display: grid; }
.pbrand__word[alt="Odoo"] { height: 34px; scale: 2.1; }
.pbrand__lock b { font-size: 17px; font-weight: 700; color: var(--black); white-space: nowrap; }

/* ===== CÂU CHUYỆN KHÁCH HÀNG ===== */
.cases { position: relative; overflow: hidden; padding: 110px 0; background: var(--beige); }
.cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cases__head .h2 { margin-top: 28px; max-width: 720px; }
.cases__grid { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; margin-top: 50px; }
.case { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px -22px rgba(0,0,0,.18); transition: transform .4s var(--ease), box-shadow .4s; }
.case:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -24px rgba(0,0,0,.28); }
.case--main { grid-row: span 2; display: grid; grid-template-columns: .85fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.case__photo { position: relative; overflow: hidden; min-height: 100%; background: var(--beige); }
.case__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transition: transform .9s var(--ease); }
@media (hover: hover) { .case--main:hover .case__photo img { transform: scale(1.04); } }
.case__photo-tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 100px; background: rgba(0,0,0,.45); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.case__body { display: flex; flex-direction: column; gap: 16px; padding: 30px 30px 26px; }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.case__logo { padding: 5px 12px; border-radius: 8px; border: 1px dashed #c9c4b6; font-size: 11.5px; font-weight: 600; }
.case h3 { font-size: 19px; font-weight: 700; line-height: 1.45; color: var(--black); }
.case--main h3 { font-size: 23px; }
.case__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; }
.case__nums li { display: grid; gap: 4px; padding: 14px 12px; border-radius: 14px; background: var(--beige); }
.case__nums b { white-space: nowrap; }
.case__nums b, .case__big b { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--red); line-height: 1.1; }
.case__nums span { font-size: 12.5px; line-height: 1.4; color: var(--gray); }
.case__big { display: flex; align-items: center; gap: 14px; }
.case__big b { font-size: 44px; }
.case__big span { font-size: 13.5px; line-height: 1.5; color: var(--gray); }
.case__quote { margin: 0; padding: 18px 0 0; border-top: 1px dashed var(--line); }
.case__quote p { font-size: 15.5px; line-height: 1.65; font-style: italic; color: var(--black); }
.case__quote footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.case__quote footer span:last-child { display: grid; font-size: 14px; }
.case__quote small { color: var(--gray); font-size: 12.5px; }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__tags span { padding: 6px 12px; border-radius: 100px; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--gray); }
.case__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--red); }
.case__more svg { width: 17px; height: 17px; stroke-width: 2.2; transition: translate .3s var(--ease); }
.case:hover .case__more svg { translate: 5px 0; }

/* ===== HOẠT ĐỘNG & SỰ KIỆN: 1 ảnh lớn + 4 ảnh nhỏ trượt theo trang ===== */
.people { padding: 110px 0 100px; }
.acts__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.acts__head .h2 { margin-top: 28px; max-width: 720px; }
.acts__nav { display: flex; gap: 10px; }
.acts__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--red); color: var(--red); transition: background .25s, color .25s, opacity .25s; }
.acts__btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.acts__btn:hover { background: var(--red); color: #fff; }
.acts__btn:disabled { opacity: .3; pointer-events: none; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 46px; }
.act { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: var(--beige); }
.act--main { min-height: 476px; }
.act img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .act:hover img { transform: scale(1.04); } }
.act::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(10,13,36,.82)); pointer-events: none; }
.act figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; color: #fff; }
.act small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffb38a; }
.act b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.act--main b { font-size: 21px; }
.acts__slider { position: relative; min-width: 0; }
.acts__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.acts__track::-webkit-scrollbar { display: none; }
.acts__page { contain: layout paint; flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; padding-right: 0; }
.acts__page + .acts__page { margin-left: 16px; }
.acts__dots { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; display: flex; gap: 8px; }
.acts__dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.acts__dots i.is-on { width: 26px; background: var(--red); }

/* ===== LIÊN HỆ: chuyên gia tư vấn cạnh form ===== */

/* ===== QUY TRÌNH ===== */
.journey { position: relative; padding: 96px 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(186,19,26,.06), transparent 60%); }
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.journey__head .h2 { margin-top: 30px; }
.journey__lead { max-width: 380px; font-size: 16px; line-height: 1.7; color: var(--gray); }
.journey__progress { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin: 50px auto 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.journey__progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.journey__viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); cursor: grab; }
.journey__viewport::-webkit-scrollbar { display: none; }
.journey__viewport.is-drag { cursor: grabbing; scroll-snap-type: none; }
.journey__track {
  display: flex; gap: 20px; list-style: none;
  padding: 36px max(var(--gutter), calc((100vw - var(--container)) / 2)) 10px;
  width: max-content;
}
.jstep {
  position: relative; width: 320px; flex: none; scroll-snap-align: start; overflow: hidden;
  padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 15px;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
  user-select: none;
}
.jstep:hover { transform: translateY(-8px); border-color: var(--red); box-shadow: 0 20px 40px rgba(186,19,26,.1); }
.jstep__img { aspect-ratio: 16 / 9; overflow: hidden; background: #f6f4ee; border-bottom: 1px solid #efece5; }
.jstep__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); pointer-events: none; }
@media (hover: hover) { .jstep:hover .jstep__img img { transform: scale(1.05); } }
.jstep__body { position: relative; padding: 0 24px 26px; }
.jstep__ic { margin-top: 22px; position: relative; } /* nằm hẳn dưới ảnh để không che sơ đồ */
.jstep__no { position: absolute; right: 22px; top: 24px; font-size: 54px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(186,19,26,.35); }
.jstep__ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--beige); color: var(--red); transition: background .3s, color .3s; }
.jstep__ic svg { width: 26px; height: 26px; }
.jstep:hover .jstep__ic { background: var(--red); color: #fff; }
.jstep h3 { margin-top: 18px; font-size: 20px; font-weight: 700; color: var(--black); }
.jstep p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--gray); }

/* ===== HỆ SINH THÁI GIẢI PHÁP ===== */
.products { position: relative; padding: 96px 0 56px; background: linear-gradient(var(--red) 0 520px, #f1f1f1 520px); overflow: hidden; }
.products::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 520px; background: radial-gradient(800px 380px at 15% 0%, rgba(255,255,255,.14), transparent 70%), radial-gradient(700px 360px at 90% 100%, rgba(0,0,0,.22), transparent 70%); }
.products .badge { border-color: #fff; }
.products > .container { position: relative; z-index: 1; }
/* Lưới lục giác + vệt sáng chạy theo cạnh + ô AI (markup: site/_vw_hexfield.php) */
.hexfield { position: absolute; left: 0; top: 0; width: 100%; height: 520px; color: #fff; pointer-events: none; transform: translateZ(0); contain: layout paint; }
/* Hiệu năng: lưới nằm trên lớp vẽ riêng (translateZ) nên mỗi khung hình chỉ vẽ lại riêng nó, không kéo theo các thẻ bên trên;
   không dùng filter/đổi opacity cả nhóm (rất tốn khi SVG rộng hết màn hình); main.js tạm dừng hiệu ứng khi khối ra khỏi màn hình (.is-live). */
.hexfield__grid { stroke: rgba(255,255,255,.17); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hexfield__runs path { stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 34 966; stroke-dashoffset: 34; animation: hexrun var(--d, 12s) linear var(--w, 0s) infinite; }
.hexfield__runs .is-rev { animation-direction: reverse; }
.hexfield__runs path:nth-child(n+5) { stroke-dasharray: 70 930; stroke-dashoffset: 70; }
@keyframes hexrun { to { stroke-dashoffset: -966; } }
.hexfield__cell { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.55); stroke-width: 1; }
.hexfield__trace { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 16 84; animation: hextrace 5s linear var(--w, 0s) infinite; }
.hexfield__ai > g { stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hextrace { to { stroke-dashoffset: -100; } }
.hexfield:not(.is-live) :is(.hexfield__runs path, .hexfield__trace) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hexfield__runs path, .hexfield__trace { animation: none; } .hexfield__runs path { stroke-dasharray: none; stroke: rgba(255,255,255,.3); } }
.products .h2 { margin-top: 26px; }
.products__lead { max-width: 640px; margin: 16px auto 0; font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.85); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.pillar {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 24px;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.18);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.pillar:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.28); }
.pillar__top { display: flex; align-items: center; justify-content: space-between; }
.pillar__no { font-size: 40px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(186,19,26,.4); }
.pillar__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(186,19,26,.08); color: var(--red); transition: background .3s, color .3s, transform .4s var(--ease); }
.pillar__ic svg { width: 26px; height: 26px; }
.pillar:hover .pillar__ic { background: var(--red); color: #fff; transform: rotate(-8deg); }
.pillar h3 { font-size: 21px; font-weight: 700; color: var(--black); }
.pillar > p { font-size: 14.5px; line-height: 1.7; }
.pillar__logos { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.pillar__logos img { width: 38px; height: 38px; padding: 7px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); object-fit: contain; }
.pillar__logos span, .pillar__chips span { font-size: 12.5px; font-weight: 600; color: var(--gray); }
.pillar__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pillar__chips span { padding: 7px 12px; border-radius: 100px; background: var(--chip); }
.pillar__more { display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; color: var(--red); }
.pillar__more svg { width: 17px; height: 17px; stroke-width: 2.2; transition: translate .3s var(--ease); }
.pillar:hover .pillar__more svg { translate: 5px 0; }
.pillar--ai { color: rgba(255,255,255,.8); background: radial-gradient(300px 220px at 100% 0%, rgba(155,114,203,.45), transparent 70%), radial-gradient(260px 200px at 0% 100%, rgba(66,133,244,.35), transparent 70%), #12163a; }
.pillar--ai h3 { color: #fff; }
.pillar--ai .pillar__no { -webkit-text-stroke-color: rgba(255,255,255,.4); }
.pillar--ai .pillar__ic { color: #fff; background: linear-gradient(135deg, #4285f4, #9b72cb, #d96570); }
.pillar--ai .pillar__chips span { background: rgba(255,255,255,.1); color: #fff; }
.pillar--ai .pillar__more { color: #ffb38a; border-color: rgba(255,255,255,.18); }
.pillars__bar {
  display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 18px 18px 18px 22px;
  border-radius: 18px; background: #fff; box-shadow: 0 16px 40px -20px rgba(0,0,0,.2);
}
.pillars__bar-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(186,19,26,.08); color: var(--red); }
.pillars__bar-ic svg { width: 24px; height: 24px; }
.pillars__bar p { flex: 1; font-size: 15px; line-height: 1.6; }
.pillars__bar b { color: var(--black); }

/* ===== KHÁCH HÀNG ===== */

/* ===== TIN TỨC ===== */
.news { position: relative; padding: 96px 0; background: var(--beige); }
.news__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 30px; }
.news__title { max-width: 760px; }
.nlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.ncard { display: flex; flex-direction: column; gap: 14px; }
.ncard__img { display: block; aspect-ratio: 3 / 2; border-radius: 15px; overflow: hidden; background: #e8e5dc; }
#kien-thuc .ncard__img { aspect-ratio: 16 / 9; background: var(--beige); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .ncard__img img { transform: scale(1.06); }
/* Viền mảnh nằm trên ảnh để ảnh nền trắng không lẫn vào nền sáng */
.ncard__img, .mpost__img { position: relative; }
.ncard__img::after, .mpost__img::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(26,28,70,.1); pointer-events: none; }
.ncard__meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.ncard__meta span:first-child { color: var(--gray); }
.ncard__meta span:last-child { color: var(--red); }
.ncard__meta i { width: 12px; height: 1px; background: var(--gray); }
.ncard__title { font-size: 19px; font-weight: 600; line-height: 1.5; color: var(--black); }
.ncard__title a { background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.ncard:hover .ncard__title a { background-size: 100% 1px; color: var(--red); }
.ncard__more { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--red); margin-top: auto; }
.ncard__more .btn__ic { width: 34px; height: 34px; background: transparent; border: 1px solid var(--red); }
.ncard__more .btn__ic svg { width: 16px; height: 16px; }
.ncard:hover .ncard__more .btn__ic { background: var(--red); color: #fff; transform: rotate(45deg); }

/* ===== BÌA BÀI VIẾT MINH HOẠ (đồng bộ phong cách trang; kích thước theo chiều rộng khung) ===== */
.ncover {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; container-type: inline-size; color: #fff;
  background: radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--a) 50%, transparent), transparent 70%), radial-gradient(60% 80% at 0% 100%, rgba(186,19,26,.55), transparent 70%), #0e1230;
  transition: scale .8s var(--ease);
}
.ncover::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0H42L56 24.25L42 48.5H14L0 24.25ZM56 24.25H84' fill='none' stroke='%23fff' stroke-opacity='.075'/%3E%3C/svg%3E");
  background-size: 14cqw 8.08cqw; -webkit-mask: radial-gradient(80% 80% at 70% 40%, #000, transparent 80%); mask: radial-gradient(80% 80% at 70% 40%, #000, transparent 80%);
}
.ncard:hover .ncover, .mpost:hover .ncover { scale: 1.06; }
.ncover__chip { position: absolute; left: 6cqw; top: 6cqw; padding: 1.4cqw 3.2cqw; border-radius: 100px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 3.1cqw; font-weight: 600; white-space: nowrap; }
.cv { position: absolute; left: 8cqw; right: 8cqw; top: 21cqw; bottom: 0; }
.cv i, .cv b, .cv em { font-style: normal; display: block; }
/* So sánh gói */
.cv-plans { display: flex; align-items: flex-end; gap: 3.4cqw; }
.cv-plans i {
  position: relative; flex: 1; height: 58%; padding: 3.2cqw; border-radius: 3.4cqw 3.4cqw 0 0;
  background: repeating-linear-gradient(rgba(255,255,255,.16) 0 1.4cqw, transparent 1.4cqw 4.6cqw) 3.2cqw 11cqw / 62% 100% no-repeat, rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.cv-plans i:nth-child(2) { height: 78%; }
.cv-plans .is-hot { height: 100%; background: repeating-linear-gradient(rgba(255,255,255,.35) 0 1.4cqw, transparent 1.4cqw 4.6cqw) 3.2cqw 11cqw / 62% 100% no-repeat, linear-gradient(160deg, #ff8a5c, var(--red)); box-shadow: 0 -2cqw 8cqw -2cqw rgba(224,51,58,.8); }
.cv-plans b { font-size: 3.3cqw; font-weight: 700; }
.cv-plans em { position: absolute; right: 3cqw; top: 2.2cqw; font-size: 4.4cqw; }
/* Biểu đồ Gantt */
.cv-gantt { display: grid; align-content: center; gap: 3cqw; padding-bottom: 7cqw; }
.cv-gantt::after { content: ""; position: absolute; left: 56%; top: 0; bottom: 5cqw; border-left: 1px dashed rgba(255,255,255,.5); }
.cv-gantt i { height: 5cqw; margin-left: var(--x); width: var(--w); border-radius: 100px; background: rgba(255,255,255,.2); }
.cv-gantt i:nth-child(2) { background: linear-gradient(90deg, color-mix(in srgb, var(--a) 70%, #fff), var(--a)); }
.cv-gantt i:nth-child(4) { background: linear-gradient(90deg, #ff8a5c, var(--red)); }
/* Bộ ứng dụng văn phòng */
.cv-office { display: flex; align-items: center; gap: 6cqw; padding-bottom: 8cqw; }
.cv-office__tiles { display: grid; grid-template-columns: repeat(2, 15cqw); gap: 3cqw; rotate: -7deg; }
.cv-office__tiles i { display: grid; place-items: center; height: 15cqw; border-radius: 3.6cqw; font-size: 7cqw; font-weight: 800; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c)); box-shadow: 0 3cqw 6cqw -2cqw rgba(0,0,0,.6), inset 0 .4cqw 0 rgba(255,255,255,.3); }
.cv-office__list { flex: 1; display: grid; gap: 3cqw; padding: 4.5cqw; border-radius: 3.4cqw; background: rgba(255,255,255,.95); box-shadow: 0 4cqw 9cqw -3cqw rgba(0,0,0,.6); }
.cv-office__list b { position: relative; height: 2cqw; margin-left: 7cqw; border-radius: 2cqw; background: #d9dce6; }
.cv-office__list b:nth-child(2) { width: 62%; }
.cv-office__list b::before { content: ""; position: absolute; left: -7cqw; top: -1.2cqw; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 62% no-repeat; }

/* ===== LIÊN HỆ ===== */
.picks + .picks { margin-top: 4px; }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
.picks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.picks legend { width: 100%; margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.picks label { cursor: pointer; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 100px; font-size: 14px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.picks span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; transition: background .25s, box-shadow .25s; }
.picks label:hover span { background: rgba(255,255,255,.12); }
.picks input:checked + span { background: #fff; color: var(--red); border-color: #fff; }
.picks input:checked + span::before { background: var(--red); box-shadow: inset 0 0 0 2px #fff; border-color: var(--red); }
.picks input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ===== FOOTER ===== */
.footer { position: relative; padding: 70px 0 30px; background: #f5f5f5; overflow: hidden; }
.footer__wm { position: absolute; left: 50%; bottom: -3vw; translate: -50% 0; font-size: 19vw; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: rgba(186,19,26,.045); white-space: nowrap; pointer-events: none; }
.footer__logo { width: 240px; height: 64px; object-fit: contain; margin: 0 auto; }
.footer__company { margin-top: 18px; text-align: center; font-size: 22px; font-weight: 700; color: var(--red); text-transform: uppercase; }
.footer__tax { margin-top: 6px; text-align: center; font-size: 14px; color: var(--gray); }
.fcols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 54px; }
.fcol h4 { font-size: 16px; font-weight: 700; color: var(--red); text-transform: uppercase; }
.fcol ul { list-style: none; display: grid; gap: 12px; margin-top: 20px; font-size: 14px; }
.fcol a { position: relative; transition: color .2s, padding .3s var(--ease); }
.fcol a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--red); transition: width .3s var(--ease); }
.fcol a:hover { color: var(--red); padding-left: 16px; }
.fcol a:hover::before { width: 10px; }
.fbar { margin-top: 54px; padding: 28px 30px 22px; background: var(--red); color: #fff; border-radius: 15px; }
.fbar__offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 28px; }
.fbar__offices .fbar__item { align-items: flex-start; }
.fbar__reach { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); }
.fbar__reach .fbar__ic { width: 40px; height: 40px; }
.fbar__reach .fbar__ic svg { width: 20px; height: 20px; }
.fbar__item { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.5; }
.fbar__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(255,255,255,.16); }
.fbar__ic svg { width: 21px; height: 21px; }
.fbar__label { font-size: 13px; font-weight: 700; text-transform: uppercase; opacity: .85; }
.fbar a:hover { text-decoration: underline; }
.fcopy { display: flex; justify-content: center; margin-top: 26px; font-size: 14px; color: var(--gray); }
.fcopy span { color: var(--red); font-weight: 600; }
.fcopy a:hover { color: var(--red); }

.float-call {
  position: fixed; left: 20px; bottom: 20px; z-index: 30;
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 6px;
  border-radius: 100px; background: var(--red); color: #fff; font-weight: 700;
  box-shadow: 0 10px 30px rgba(186,19,26,.4);
  transition: opacity .35s, translate .45s var(--ease), visibility 0s;
}
/* Chỉ hiện khi đã cuộn qua hero (hero đã có nút gọi / báo giá) */
.float-call:not(.is-on) { opacity: 0; translate: 0 20px; visibility: hidden; transition: opacity .35s, translate .45s var(--ease), visibility 0s .45s; }
.float-call svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #fff; color: var(--red); animation: ring 2.4s infinite; }
@keyframes ring { 0%, 60%, 100% { rotate: 0deg; } 10%, 30% { rotate: -14deg; } 20%, 40% { rotate: 14deg; } }

/* ===== Hiệu ứng xuất hiện khi cuộn ===== */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.stagger > * { opacity: 0; translate: 0 30px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.stagger.is-in > * { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger > * { opacity: 1; translate: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1399px) {
  .nav__call-text { display: none; }
  .nav__call { padding: 0 3px; }
}
@media (max-width: 1200px) {
  .nav { gap: 10px; padding-left: 18px; }
  .nav__logo, .header.is-scrolled .nav__logo { width: 128px; }
  .menu__link { font-size: 14px; }
  .mega__panel { grid-template-columns: 1fr 250px; }
}
@media (max-width: 1100px) {
  .menu__chev { display: none; }
  .menu__link { font-size: 13.5px; padding: 0 9px; }
  .nav__call { display: none; }
  .nav__cta { padding: 0 14px 0 16px; font-size: 13.5px; }
}
@media (max-width: 1200px) {
  .hvis { scale: .88; transform-origin: 50% 50%; }
  .htab small { display: none; }
}
@media (max-width: 1024px) {
  .nav, .mega, .mega-backdrop { display: none !important; }
  .header { margin-bottom: -80px; }
  .hero { min-height: 0; }
  .hslide__inner { grid-template-columns: 1fr; gap: 10px; padding: 110px 0 40px; }
  .hvis { height: 380px; scale: .8; margin: -20px 0 -30px; }
  .htabs { grid-template-columns: repeat(5, 1fr); padding-bottom: 24px; gap: 8px; }
  .htab b { font-size: 13px; }
  .hnav { display: none; }
  .header { padding: 10px var(--hgut); }
  .announce__mail { display: none; }
  .mbar {
    display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 18px;
    border-radius: 100px; background: rgba(255,255,255,.82);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 0 0 1px rgba(20,20,50,.06), 0 12px 32px -14px rgba(20,20,50,.25);
  }
  .mbar__logo img { width: 130px; height: 36px; object-fit: contain; }
  .mbar__actions { display: flex; align-items: center; gap: 12px; }
  .mbar__call { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 100px; background: rgba(186,19,26,.08); color: var(--red); font-weight: 700; font-size: 14px; }
  .mbar__call .ic { width: 18px; height: 18px; }
  .mbar__burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); }
  .mbar__burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .mbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mnav { display: block; position: fixed; inset: 0; padding-top: 124px; z-index: 19; background: #fff; clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); overflow-y: auto; }
  .mnav.is-open { clip-path: inset(0); }
  .mnav__inner { padding: 20px var(--gutter) 40px; display: grid; gap: 22px; }
  .mnav__list { list-style: none; }
  .mnav__list a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 700; color: var(--black); }
  .mnav__list i { font-style: normal; font-size: 12px; color: var(--red); }
  .mnav__hotline { display: grid; padding: 18px 22px; border-radius: 15px; background: var(--red); color: #fff; }
  .mnav__hotline small { opacity: .8; }
  .mnav__hotline b { font-size: 22px; }
  .mnav__mail { color: var(--red); font-weight: 600; }
  /* Khoá cuộn ở thẻ gốc, KHÔNG đặt overflow cho body: body mà thành vùng cuộn thì thanh menu (sticky) hết bám
     theo màn hình – mở menu lúc đã cuộn xuống sẽ mất logo và nút đóng. */
  html.nav-open { overflow: hidden; }
  .mnav { overscroll-behavior: contain; }
  /* Đã cuộn xuống thì dải thông báo trên cùng không còn, menu chỉ cần chừa chỗ cho thanh logo */
  .header.is-scrolled ~ .mnav { padding-top: 84px; }
  body.nav-open .float-call { display: none; }

  .pain { padding-top: 40px; }
  .pain__grid, .pillars { grid-template-columns: 1fr 1fr; }
  .about { padding: 80px 0 70px; }
  .about__head { flex-direction: column; align-items: flex-start; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 440px; }
  .trust { padding: 70px 0 30px; }
  .trust.intro { padding: 60px 0 30px; }
  .about.partners { padding: 40px 0; }
  .trust__grid { grid-template-columns: 1fr; gap: 30px; }
  .pwall { height: 460px; }
  .cases, .people { padding: 80px 0; }
  .acts { grid-template-columns: 1fr; }
  .act--main { min-height: 0; aspect-ratio: 3 / 2; }
  .acts__slider { aspect-ratio: 1 / 1; }
  .acts__head { align-items: flex-start; }
  .cases__head, .people__head { flex-direction: column; align-items: flex-start; }
  .cases__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .case--main { grid-column: 1 / -1; grid-row: auto; }
  .pain__head { flex-direction: column; align-items: flex-start; }
  .nlist { grid-template-columns: 1fr 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fbar__offices { grid-template-columns: 1fr; }
  .journey__head, .news__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .badge { font-size: 12px; padding: 11px 16px; white-space: normal; text-align: center; }
  .h2, .contact__title { font-size: 28px; }
  .mbar__call span { display: none; }
  .hslide__inner { padding: 112px 0 36px; }
  .hslide__title { font-size: 30px; }
  .hslide__sub { font-size: 15px; }
  .happs { flex-wrap: nowrap; justify-content: space-between; gap: 6px; margin-top: 20px; }
  .happs li { width: auto; flex: 1; max-width: 42px; font-size: 0; gap: 0; }
  .happs img { width: 100%; height: auto; aspect-ratio: 1; padding: 7px; border-radius: 12px; }
  .hbtn { height: 48px; font-size: 14.5px; }
  .hbtn__ic { width: 36px; height: 36px; }
  .hvis { display: none; }
  .htab { justify-content: center; padding-top: 14px; }
  .htab > span:last-child { display: none; }
  .htab img, .htab__ic { width: 30px; height: 30px; padding: 6px; }
  .announce { padding: 0 44px 0 12px; font-size: 12.5px; }
  .announce__tag, .announce__link svg { display: none; }
  .announce__text { overflow: hidden; text-overflow: ellipsis; }
  .announce__inner { min-width: 0; gap: 8px; }
  .pain__grid, .pillars { grid-template-columns: 1fr; }
  .about__title { font-size: 28px; }
  .about__quote { font-size: 22px; }
  .about__media-body { left: 22px; right: 22px; bottom: 22px; }
  .stats { gap: 12px; }
  .stat { min-height: 0; padding: 20px 16px 18px; }
  .stat__label { font-size: 15px; }
  .stat__desc { display: none; }
  .stat__num { font-size: 38px; }
  .stat__unit { font-size: 13.5px; }
  .trust__intro .h2 { font-size: 26px; }
  .trust__num b { font-size: 68px; }
  .pnum b { font-size: 68px; }
  .intro__nums { gap: 0 16px; }
  .intro__nums .stat__num { font-size: 36px; }
  .stat__logo { height: 50px; padding: 0 12px; }
  .stat__logo img { height: 24px; max-width: 100px; }
  .about__media--partners { min-height: 560px; }
  .trust__certs { gap: 8px; }
  .trust__certs > * { flex: 1 1 auto; height: 78px; padding: 0 10px; }
  .trust__certs img { height: calc(var(--h, 50px) * .8); }
  .pwall { gap: 10px; height: 380px; }
  .pcol__track { gap: 10px; }
  .pbrand { height: 92px; padding: 10px; border-radius: 14px; }
  .pbrand__word { height: 24px; }
  .pbrand__word.is-wide { height: 17px; }
  .pbrand__lock { flex-direction: column; gap: 6px; font-size: 0; text-align: center; }
  .pbrand__lock img { width: 30px; height: 30px; }
  .pbrand__lock b { font-size: 12px; white-space: normal; }
  .cases__grid { grid-template-columns: 1fr; }
  .case--main { grid-template-columns: 1fr; }
  .case__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .case__photo img { object-position: 50% 22%; }
  .case__nums { grid-template-columns: 1fr; }
  .act--main b { font-size: 16px; }
  .jstep { width: 280px; }
  .pillars__bar { flex-direction: column; align-items: flex-start; }
  .jstep { width: 260px; }
  .nlist { grid-template-columns: 1fr; }
  .acts__page { gap: 10px; }
  .acts__page + .acts__page { margin-left: 10px; }
  .act figcaption { left: 12px; right: 12px; bottom: 10px; }
  .act b { font-size: 13px; }
  .act--main b { font-size: 16px; }
  .acts__btn { width: 42px; height: 42px; }
  .acts__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .acts { margin-top: 24px; }
  .hexdeco { scale: .6; }
  .hexdeco--pain { right: -150px; top: -40px; }
  .products { background: linear-gradient(var(--red) 0 420px, #f1f1f1 420px); }
  .hexfield { height: 420px; }
  .hexfield__ai { display: none; }
  .fcols { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .footer__company { font-size: 17px; }
  .fbar { padding: 20px; }
  .float-call span { display: none; }
  .float-call { padding: 0 6px; }
}

/* Bìa bài viết Kiến thức: dựng bằng logo/icon thật của hãng (đơn vị cqw để co giãn theo khung) */
.ncard__img, .mpost__img { container-type: inline-size; }
.kcover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4cqw; width: 100%; height: 100%; padding: 5cqw 6cqw; overflow: hidden; transition: scale .8s var(--ease); }
.ncard:hover .kcover, .mpost:hover .kcover { scale: 1.04; }
.kcover img { display: block; }
.kcover--g { background: radial-gradient(60cqw 40cqw at 100% 0%, rgba(66,133,244,.16), transparent 70%), radial-gradient(50cqw 40cqw at 0% 100%, rgba(155,114,203,.16), transparent 70%), #fff; }
.kcover--p { background: radial-gradient(60cqw 40cqw at 100% 0%, rgba(0,184,148,.14), transparent 70%), radial-gradient(50cqw 40cqw at 0% 100%, rgba(38,132,255,.12), transparent 70%), #f7f9fc; }
.kcover--m { background: radial-gradient(60cqw 40cqw at 100% 0%, rgba(0,120,212,.16), transparent 70%), radial-gradient(50cqw 40cqw at 0% 100%, rgba(242,80,34,.12), transparent 70%), #fff; }
.kcover__top { display: flex; align-items: center; gap: 2.4cqw; }
.kcover .kcover__logo { height: 5.6cqw; width: auto; }
.kcover .kcover__ic { height: 8cqw; width: auto; }
.kcover__x { font-size: 5cqw; font-weight: 300; color: #9aa0a6; line-height: 1; }
.kcover__365 { margin-left: -1cqw; font-size: 5.6cqw; font-weight: 600; color: #737373; line-height: 1; }
.kplans { display: flex; align-items: flex-end; gap: 2.6cqw; width: 100%; }
.kplan { flex: 1; display: grid; gap: 1.8cqw; padding: 3cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 0 0 1px #e3e8f0, 0 3cqw 6cqw -3cqw rgba(33,34,82,.25); }
.kplan.is-hot { padding-block: 4.4cqw; box-shadow: 0 0 0 .5cqw #4285f4, 0 4cqw 8cqw -3cqw rgba(66,133,244,.55); }
.kplan b { display: flex; align-items: center; gap: 1.2cqw; font-size: 3.5cqw; font-weight: 700; color: #1f1f1f; }
.kplan b img { width: 3.8cqw; height: 3.8cqw; }
.kplan__apps { display: flex; gap: 1cqw; }
.kplan__apps img { width: 3.7cqw; height: 3.7cqw; }
.kplan i { height: 1.3cqw; border-radius: 1cqw; background: #e8ecf3; }
.kplan i:nth-of-type(2) { width: 75%; } .kplan i:nth-of-type(3) { width: 50%; }
.kgantt { display: grid; gap: 1.7cqw; width: 100%; padding: 0 3.5cqw 3.5cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 0 0 1px #e3e8f0, 0 4cqw 8cqw -4cqw rgba(33,34,82,.35); }
.kgantt__bar { display: flex; align-items: center; gap: 1.2cqw; margin: 0 -3.5cqw .6cqw; padding: 2cqw 3.5cqw; border-radius: 3cqw 3cqw 0 0; background: #f1f4f9; }
.kgantt__bar u { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #ff5f57; }
.kgantt__bar u:nth-child(2) { background: #febc2e; } .kgantt__bar u:nth-child(3) { background: #28c840; }
.kgantt__bar em { margin-left: 2cqw; font-style: normal; font-size: 2.8cqw; font-weight: 700; color: #5f6b7a; }
.kgantt__row { display: flex; align-items: center; gap: 2.5cqw; }
.kgantt__row img { flex: none; width: 4.6cqw; height: 4.6cqw; object-fit: contain; }
.kgantt__row > span { flex: 1; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #e9edf3 calc(12.5% - 1px) 12.5%); }
.kgantt__row i { display: block; height: 3.2cqw; margin-left: var(--x); width: var(--w); border-radius: 2cqw; background: var(--c); }
.kms { display: flex; gap: 3cqw; }
.kms img { width: 10.5cqw; height: 10.5cqw; filter: drop-shadow(0 1.6cqw 2cqw rgba(0,0,0,.18)); }
.klic { display: flex; align-items: center; gap: 1.6cqw; padding: 1.6cqw 4cqw 1.6cqw 2.4cqw; border-radius: 10cqw; background: #fff; box-shadow: 0 0 0 1px #d6e9dc, 0 2cqw 5cqw -2cqw rgba(16,124,65,.45); font-size: 3.3cqw; font-weight: 700; color: #107c41; }
.klic svg { width: 5cqw; height: 5cqw; }
.kcover img { transform: none !important; scale: none !important; }

/* Quy trình ghim khi cuộn (desktop): khối dính 100vh, track trượt ngang theo tiến độ cuộn dọc */
/* Khối dính cao theo nội dung (không còn 100vh) nên khoảng trống phía trên luôn đúng nhịp 96px;
   vị trí dính (top) do main.js tính để nội dung nằm giữa phần màn hình dưới header. */
.journey.is-pinned { box-sizing: border-box; padding: 96px 0 0; }
.journey.is-pinned .journey__pin { position: sticky; top: 108px; display: flex; flex-direction: column; padding: 0 0 72px; }
.journey.is-pinned .journey__progress { margin-top: 26px; height: 3px; }
.journey.is-pinned .journey__viewport { overflow: hidden; cursor: default; scroll-snap-type: none; }
.journey.is-pinned .journey__track { padding-top: 22px; padding-bottom: 22px; will-change: transform; }
.journey.is-pinned .jstep { opacity: .45; transition: opacity .5s, transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.journey.is-pinned .jstep.is-active { opacity: 1; }
.jstep.is-current { border-color: var(--red); box-shadow: 0 22px 50px rgba(186,19,26,.16); }
.jstep.is-current .jstep__img img { transform: scale(1.05); }
.jstep.is-current .jstep__ic { background: var(--red); color: #fff; }
.jstep.is-current .jstep__no { -webkit-text-stroke-color: var(--red); }

/* Hộp đỏ – be (.stat / .scard): rê chuột có đường sáng chạy quanh viền + quầng sáng lan từ góc, chuyển mềm (theo VMI) */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.stat, .scard { --glow: var(--red); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.stat--red, .scard--red { --glow: rgba(255,255,255,.95); }
.stat::after, .scard::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--glow) 72%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.stat::before, .scard::before {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(186,19,26,.14), transparent 70%);
  scale: .3; opacity: 0; transition: scale .9s var(--ease), opacity .6s var(--ease); pointer-events: none;
}
.stat--red::before, .scard--red::before { background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.stat__label, .scard__label { transition: border-color .5s var(--ease); }
.stat__logo { transition: translate .6s var(--ease), box-shadow .6s var(--ease); }
@keyframes spinAng { to { --ang: 360deg; } }
@media (hover: hover) {
  .stat:hover::after, .scard:hover::after { opacity: 1; animation: spinAng 3.2s linear infinite; }
  .stat:hover::before, .scard:hover::before { scale: 1.6; opacity: 1; }
  .stat--red:hover .stat__label, .scard--red:hover .scard__label { border-color: #fff; }
  .stat--light:hover .stat__label, .scard--light:hover .scard__label { border-color: var(--red); }
  .stat:hover .stat__logo { translate: 0 -4px; box-shadow: 0 16px 26px -16px rgba(0,0,0,.5); }
}
@media (prefers-reduced-motion: reduce) { .stat:hover::after, .scard:hover::after { animation: none; } }

/* Thẻ thách thức (.pcase): nền đỏ lan mềm từ icon + đường sáng chạy quanh viền khi rê chuột */
.pcase { transition: transform .7s var(--ease), box-shadow .7s var(--ease), color .5s var(--ease); }
.pcase::before { opacity: 1; clip-path: circle(0% at 51px 55px); transition: clip-path .8s cubic-bezier(.65,0,.35,1); }
.pcase:hover::before { clip-path: circle(150% at 51px 55px); }
.pcase::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang), transparent 0 55%, rgba(255,255,255,.95) 72%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .6s var(--ease); pointer-events: none;
}
.pcase h3, .pcase__fix, .pcase__fix b { transition-duration: .5s; }
.pcase__ic { transition: scale .6s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) {
  .pcase:hover::after { opacity: 1; animation: spinAng 3.2s linear infinite; transition-delay: .25s; }
  .pcase:hover .pcase__ic { scale: 1.06; box-shadow: 0 14px 26px -12px rgba(0,0,0,.45); }
}
@media (prefers-reduced-motion: reduce) { .pcase:hover::after { animation: none; } }

/* Số liệu lăn kiểu công tơ mét */
.odo { display: inline-block; height: 1.15em; overflow: hidden; line-height: 1.15em; vertical-align: bottom; }
.odo__col { display: block; transition: transform 1.9s cubic-bezier(.16, .84, .24, 1); will-change: transform; }
.odo__col span { display: block; height: 1.15em; line-height: 1.15em; text-align: center; }
.odo__sep { display: inline-block; line-height: 1.15em; vertical-align: bottom; }
[data-count] .odo, [data-count] .odo span, [data-count] .odo__sep { font-size: inherit; font-weight: inherit; color: inherit; letter-spacing: inherit; }
[data-count] .odo, [data-count] .odo__col span, [data-count] .odo__sep { line-height: 1.15em; }

/* Form liên hệ rút gọn: ô chọn giải pháp */

/* Liên hệ: thẻ tư vấn và form thành hai khối kính bằng nhau */
@media (min-width: 1025px) {
}

/* Nhịp dọc trang chủ: 96 / 72 / 56px; các khối liền nhau cùng nền trắng chia đôi khoảng đệm */
@media (max-width: 1024px) {
  .trust.intro { padding: 72px 0 36px; }
  .about.partners { padding: 36px 0; }
  .pain { padding: 36px 0 72px; }
  .products { padding: 72px 0 48px; }
  .journey, .news { padding: 72px 0; }
}
@media (max-width: 640px) {
  .trust.intro { padding: 56px 0 28px; }
  .about.partners { padding: 28px 0; }
  .pain { padding: 28px 0 56px; }
  .products { padding: 56px 0 40px; }
  .journey, .news { padding: 56px 0; }
}
