/* ══════════════════════════════════════════════════════════════════════════
   ERP AI AGENT · Trang giới thiệu sản phẩm · Nền trắng, hiệu ứng nhẹ
   Bảng màu: trắng chủ đạo, chữ mực đậm, điểm nhấn xanh dương → lam → tím.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Mực & nền */
  --ink: #0a1020;
  --ink-2: #1b2436;
  --muted: #56607a;
  --muted-2: #8b93a8;
  --line: #e9ecf3;
  --line-2: #f1f4fa;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;

  /* Điểm nhấn */
  --brand: #2563eb;
  --brand-d: #1d4ed8;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;

  --grad: linear-gradient(100deg, #2563eb 0%, #0ea5e9 42%, #7c3aed 100%);
  --grad-soft: linear-gradient(100deg, #eff6ff 0%, #ecfeff 50%, #f5f3ff 100%);

  /* Màu điểm nhấn của khối đang đọc — mỗi ý một màu, xem mục "Điểm nhấn" */
  --acc: #2563eb;
  --acc-d: #1d4ed8;
  --acc-soft: #e9f0ff;
  --acc-glow: rgba(37, 99, 235, .28);
  --hl-c: #c7dbff;   /* vệt bút dạ quang — đậm hơn --acc-soft để nhìn thấy rõ */

  /* Bo góc */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  /* Đổ bóng */
  --sh-1: 0 1px 2px rgba(10, 16, 32, .04), 0 1px 3px rgba(10, 16, 32, .05);
  --sh-2: 0 10px 30px -8px rgba(10, 16, 32, .10), 0 3px 8px -3px rgba(10, 16, 32, .06);
  --sh-3: 0 28px 60px -18px rgba(10, 16, 32, .18), 0 10px 24px -12px rgba(10, 16, 32, .10);
  --sh-4: 0 60px 120px -30px rgba(10, 16, 32, .28), 0 20px 48px -20px rgba(10, 16, 32, .14);

  --nav-h: 68px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ── Nền tảng ───────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: #dbeafe; color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1360px; }

/* ── Chữ ────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -.028em; font-weight: 700; }

.h1 { font-size: clamp(2.35rem, 5.4vw, 4.15rem); font-weight: 700; }
.h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.18rem, 1.7vw, 1.4rem); letter-spacing: -.02em; }

.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  color: var(--muted);
  line-height: 1.72;
  font-weight: 400;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: hue 9s ease-in-out infinite alternate;
}
@keyframes hue { to { background-position: 100% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .775rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--acc-d);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 3px; border-radius: 3px;
  background: var(--acc);
}

.sec { padding: clamp(76px, 9vw, 132px) 0; position: relative; }
.sec-soft { background: var(--bg-soft); }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .lead { margin-top: 18px; }

/* ── Thanh tiến độ cuộn ─────────────────────────────────────────────────── */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform .08s linear;
}

/* ── Điều hướng ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 24px -12px rgba(10, 16, 32, .14); }
.nav .wrap { display: flex; align-items: center; gap: 28px; max-width: 1360px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; }
.brand small { display: block; font-size: .66rem; font-weight: 500; color: var(--muted-2); letter-spacing: .04em; line-height: 1.2; }
.brand b { font-size: 1.02rem; line-height: 1.2; letter-spacing: .01em; }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 13px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--muted);
  transition: color .22s var(--ease), background .22s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-links a.is-active { color: var(--brand-d); background: #eff6ff; }

/* ── Nút ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease),
              background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-1 { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn-1:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-1::after {
  content: ''; position: absolute; inset: 0;
  background: var(--grad); opacity: 0; transition: opacity .3s var(--ease); z-index: -1;
}
.btn-1:hover::after { opacity: 1; }
.btn-2 {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.btn-2:hover { transform: translateY(-2px); border-color: #cfd8ea; box-shadow: var(--sh-2); }
.btn-sm { padding: 10px 18px; font-size: .86rem; }

/* Ánh sáng quét ngang nút chính */
.btn-1 .shine {
  position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn-1:hover .shine { animation: sweep .85s var(--ease); }
@keyframes sweep { to { left: 130%; } }

/* ── Hiệu ứng hiện dần khi cuộn ─────────────────────────────────────────── */
.rv {
  opacity: 0; transform: translateY(26px);
  filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.rv.is-in { opacity: 1; transform: none; filter: none; }
.rv-l { transform: translateX(-30px); }
.rv-r { transform: translateX(30px); }
.rv-s { transform: scale(.955) translateY(20px); }

/* ── Nền trang trí ──────────────────────────────────────────────────────── */
.aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.aurora i:nth-child(1) {
  width: 620px; height: 620px; top: -160px; left: -80px;
  background: radial-gradient(circle at 30% 30%, #bfdbfe, transparent 68%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  width: 560px; height: 560px; top: -60px; right: -60px;
  background: radial-gradient(circle at 60% 40%, #cffafe, transparent 68%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(3) {
  width: 520px; height: 520px; top: 260px; left: 44%;
  background: radial-gradient(circle at 50% 50%, #ede9fe, transparent 68%);
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(90px, 60px, 0) scale(1.14); } }
@keyframes drift2 { to { transform: translate3d(-80px, 90px, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(60px, -70px, 0) scale(1.18); } }

.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10, 16, 32, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 16, 32, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 22%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 22%, #000 20%, transparent 78%);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(64px, 8vw, 108px);
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-top { max-width: 940px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 8px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--muted);
  box-shadow: var(--sh-1); margin-bottom: 26px;
}
.pill b {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 999px;
  background: var(--grad-soft); color: var(--brand-d);
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); animation: pulse 2.1s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 660px; font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Dải chỉ số dưới hero */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(44px, 5vw, 64px);
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.stat-strip div { background: #fff; padding: 22px 24px; transition: background .3s var(--ease); }
.stat-strip div:hover { background: #fbfcff; }
.stat-strip .v {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-strip .k { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* Cụm ảnh hero */
.hero-vis {
  position: relative; margin-top: clamp(52px, 6vw, 78px);
  perspective: 1600px;
}
.hero-vis .frame { transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, 0deg)); }

.float-card {
  position: absolute; z-index: 4;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 14px 17px;
  animation: bob 6.5s ease-in-out infinite;
}
.float-card .t { font-size: .7rem; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.float-card .n { font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.float-card .s { font-size: .78rem; color: var(--muted); }
.fc-1 { left: -8px; top: 16%; animation-delay: -1.2s; }
.fc-2 { right: -10px; top: 64%; animation-delay: -3.4s; }
@keyframes bob { 50% { transform: translateY(-14px); } }

/* ── Khung ảnh kiểu trình duyệt ─────────────────────────────────────────── */
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
  transform-style: preserve-3d;
}
.frame-xl { box-shadow: var(--sh-4); }
.frame:hover { box-shadow: var(--sh-4); }
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, #fdfdff, #f8fafc);
}
.frame-bar i {
  width: 9px; height: 9px; border-radius: 50%; background: #e2e6ee; flex: none;
}
.frame-bar i:nth-child(1) { background: #ffbdb5; }
.frame-bar i:nth-child(2) { background: #ffe0a3; }
.frame-bar i:nth-child(3) { background: #bdebc8; }
.frame-bar > span {
  margin-left: 8px; font-size: .73rem; color: var(--muted-2);
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%;
  min-width: 0; /* để nhãn dài không kéo cả cột lưới phình ra */
}
.fb-app { color: var(--brand-d); font-weight: 600; }
.frame-img { position: relative; overflow: hidden; background: #fbfcfe; }
.frame-img img {
  width: 100%; height: auto;
  transition: transform 1.1s var(--ease);
}
.frame.zoom:hover .frame-img img { transform: scale(1.035); }
.frame-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(255, 255, 255, .55));
}
.frame.clip .frame-img { max-height: 460px; }

.cap {
  font-size: .84rem; color: var(--muted); line-height: 1.6;
  margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--line);
}
.cap b { color: var(--ink-2); font-weight: 600; }

/* ── Bố cục chia đôi ────────────────────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1.12fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.split.rev > *:first-child { order: 2; }
.split + .split { margin-top: clamp(72px, 8vw, 112px); }

/* Ô lưới mặc định rộng tối thiểu bằng nội dung dài nhất bên trong. Một nhãn
   không xuống dòng (nhãn trên thanh khung ảnh) là đủ để đẩy cả cột phình ra
   quá màn hình điện thoại — nên mọi ô lưới đều phải cho co lại. */
.split > *, .cards > *, .figs > *, .pillars > *,
.doms > *, .rules > *, .warns > *, .checks > * { min-width: 0; }

/* ── Danh sách gạch đầu dòng ────────────────────────────────────────────── */
.checks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; color: var(--muted); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks .ic {
  flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc-d);
}
.checks .ic svg { width: 13px; height: 13px; }

/* ── Thẻ ────────────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 20px; }
.c-2 { grid-template-columns: repeat(2, 1fr); }
.c-3 { grid-template-columns: repeat(3, 1fr); }
.c-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc-d);
  transition: transform .4s var(--ease);
}
.card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 9px; font-size: 1.03rem; }
.card p { font-size: .92rem; color: var(--muted); }
.card .tag {
  display: inline-block; margin-top: 14px; padding: 4px 11px;
  border-radius: 999px; background: var(--line-2);
  font-size: .74rem; font-weight: 600; color: var(--muted);
}

/* Thẻ số liệu */
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.figs.c-4 { grid-template-columns: repeat(4, 1fr); }
.fig {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 24px 26px; position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fig:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.fig .v {
  font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.05;
}
.fig .u { font-size: .5em; font-weight: 600; color: var(--muted-2); margin-left: 4px; }
.fig .k { font-size: .95rem; font-weight: 600; margin-top: 6px; }
.fig .s { font-size: .85rem; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.fig-crit .v { color: var(--danger); }
.fig-warn .v { color: var(--warn); }
.fig-ok .v { color: var(--ok); }
.fig-brand .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Khung nhấn mạnh ────────────────────────────────────────────────────── */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  border-radius: var(--r-lg); padding: 22px 24px;
  background: var(--acc-soft); border: 1px solid rgba(10, 16, 32, .06);
  border-left: 3px solid var(--acc);
  margin-top: 30px;
}
.note .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--acc-d); box-shadow: var(--sh-1); }
.note .ic svg { width: 17px; height: 17px; }
.note b { display: block; margin-bottom: 3px; }
.note p { font-size: .9rem; color: var(--muted); }

/* ── Bảng cảnh báo ──────────────────────────────────────────────────────── */
.warns { display: grid; gap: 10px; margin-top: 26px; }
.warn-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 17px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.warn-row:hover { transform: translateX(4px); border-color: #d9e1f2; box-shadow: var(--sh-1); }
.warn-row .lv {
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  letter-spacing: .03em;
}
.lv-crit { background: #fef2f2; color: var(--danger); }
.lv-warn { background: #fffbeb; color: var(--warn); }
.lv-nhe { background: #f4f6fb; color: var(--muted); }
.warn-row .txt { font-size: .92rem; }
.warn-row .num { font-size: .88rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }

/* ── Băng chạy ──────────────────────────────────────────────────────────── */
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 6px 0;
}
.marquee-in { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-in { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 18px; margin-right: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .875rem; color: var(--muted-2); white-space: nowrap;
}
.marquee span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Danh sách chốt chặn ────────────────────────────────────────────────── */
.rules { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.rule {
  display: grid; grid-template-columns: 54px 1fr; gap: 22px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: background .35s var(--ease), padding-left .35s var(--ease);
}
.rule:hover { background: #fbfcff; padding-left: 14px; }
.rule .no {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: .92rem; font-weight: 700; letter-spacing: -.01em;
  background: var(--acc-soft); color: var(--acc-d);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rule:hover .no { transform: scale(1.06); box-shadow: 0 12px 24px -12px var(--acc-glow); }
.rule h3 { font-size: 1.06rem; margin-bottom: 7px; }
.rule p { font-size: .93rem; color: var(--muted); }

/* ── Đầu trang con ──────────────────────────────────────────────────────── */
.subhero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(34px, 5vw, 62px)) 0 clamp(48px, 6vw, 78px);
}
.subhero .wrap { position: relative; z-index: 2; }
.subhero .h1 { font-size: clamp(1.95rem, 4.2vw, 3.3rem); margin-bottom: 20px; }
.subhero .lead { max-width: 800px; }
.subhero .stat-strip { margin-top: clamp(30px, 3.4vw, 46px); }
.subhero .hero-vis { margin-top: clamp(34px, 4vw, 54px); }

.crumb {
  display: flex; align-items: center; gap: 9px;
  font-size: .82rem; color: var(--muted-2); margin-bottom: 18px;
}
.crumb a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumb a:hover { color: var(--acc-d); border-bottom-color: currentColor; }
.crumb b { color: var(--ink-2); font-weight: 600; }

/* Dải chuyển giữa bốn trang nghiệp vụ */
.dtabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.dtabs a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .87rem; font-weight: 500; color: var(--muted);
  box-shadow: var(--sh-1);
  transition: transform .26s var(--ease), border-color .26s var(--ease),
              color .26s var(--ease), box-shadow .26s var(--ease);
}
.dtabs a svg { width: 16px; height: 16px; color: var(--acc); }
.dtabs a:hover {
  transform: translateY(-2px); color: var(--ink);
  border-color: var(--acc); box-shadow: 0 14px 26px -14px var(--acc-glow);
}
.dtabs a.on {
  background: var(--acc); border-color: var(--acc); color: #fff;
  box-shadow: 0 14px 26px -14px var(--acc-glow);
}
.dtabs a.on svg { color: #fff; }

/* ── Bốn thẻ nghiệp vụ ở trang tổng quan ────────────────────────────────── */
.doms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dom {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 30px 26px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .42s var(--ease);
}
.dom::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--acc); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease); z-index: 2;
}
.dom::after {
  content: ''; position: absolute; right: -74px; top: -74px;
  width: 214px; height: 214px; border-radius: 50%;
  background: var(--acc-soft); opacity: .6;
  transition: transform .6s var(--ease); z-index: 0;
}
.dom > * { position: relative; z-index: 1; }
.dom:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 34px 64px -26px var(--acc-glow), var(--sh-3);
}
.dom:hover::before { transform: none; }
.dom:hover::after { transform: scale(1.18); }

.dom .hd { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dom .ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--acc); color: #fff;
  box-shadow: 0 14px 26px -12px var(--acc-glow);
  transition: transform .4s var(--ease);
}
.dom:hover .ico { transform: scale(1.08) rotate(-5deg); }
.dom .ico svg { width: 23px; height: 23px; }
.dom .eyebrow { margin-bottom: 4px; }
.dom h3 { font-size: 1.28rem; line-height: 1.2; letter-spacing: -.025em; }
.dom .punch { font-size: 1.02rem; margin: 0 0 18px; }
.dom .nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); overflow: hidden; margin-bottom: 18px;
}
.dom .nums div { background: #fff; padding: 13px 14px; }
.dom .nums b {
  display: block; font-size: 1.14rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--acc-d); line-height: 1.2;
}
.dom .nums span { display: block; font-size: .73rem; color: var(--muted-2); line-height: 1.4; margin-top: 3px; }
.dom ul { display: grid; gap: 9px; margin-bottom: 22px; }
.dom li { display: flex; gap: 10px; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.dom li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--acc); }
.dom .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--acc-d);
}
.dom .go svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.dom:hover .go svg { transform: translateX(5px); }

/* ── Chuyển trang ở cuối bài ────────────────────────────────────────────── */
.pagenav {
  display: flex; justify-content: space-between; align-items: stretch; gap: 16px;
  margin-top: clamp(56px, 6vw, 88px); padding-top: 30px; border-top: 1px solid var(--line);
}
.pn {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 14px 22px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.pn:hover { transform: translateY(-3px); border-color: #cfd8ea; box-shadow: var(--sh-2); }
.pn svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.pn small { display: block; font-size: .72rem; color: var(--muted-2); }
.pn b { font-size: .96rem; font-weight: 600; letter-spacing: -.01em; }
.pn.sau { margin-left: auto; flex-direction: row-reverse; text-align: right; }

/* ── Hiệu ứng hiện dần — khung phóng to màn mô phỏng dùng ───────────────── */
@keyframes fade { from { opacity: 0; } }

/* ── Kết ────────────────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: #0a1020;
  color: #fff; padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 72px);
  isolation: isolate;
}
.cta::before {
  content: ''; position: absolute; inset: -60%;
  background:
    radial-gradient(circle at 20% 25%, rgba(37, 99, 235, .55), transparent 45%),
    radial-gradient(circle at 78% 70%, rgba(124, 58, 237, .45), transparent 45%),
    radial-gradient(circle at 55% 10%, rgba(6, 182, 212, .35), transparent 42%);
  animation: swirl 26s linear infinite; z-index: -1;
}
@keyframes swirl { to { transform: rotate(360deg); } }
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 65%);
  transition: background .12s linear;
}
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 18ch; }
.cta p { color: #c4cddf; margin-top: 18px; max-width: 58ch; font-size: 1.03rem; }
.cta .hero-cta { margin-top: 32px; }
.cta .btn-1 { background: #fff; color: var(--ink); }
.cta .btn-1::after { display: none; }
.cta .btn-2 { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.cta .btn-2:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }

.ccard {
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px; padding: 26px 24px 24px;
  transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.ccard::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee, #a78bfa);
  transform: scaleX(.18); transform-origin: 0 50%;
  transition: transform .55s var(--ease);
}
.ccard:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); transform: translateY(-4px); }
.ccard:hover::before { transform: none; }
.ccard .ct {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #7dd3fc; margin-bottom: 12px;
}
.ccard b { display: block; font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.32; color: #fff; margin-bottom: 9px; }
.ccard p { color: #b8c3d8; font-size: .9rem; margin: 0; line-height: 1.62; }

.quote {
  max-width: 900px; margin: 0 auto; text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.95rem); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.42;
}
.quote span { color: var(--muted-2); }

/* ── Chân trang ─────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 44px 0 52px; background: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot p { font-size: .84rem; color: var(--muted-2); }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot .links a { font-size: .86rem; color: var(--muted); transition: color .22s var(--ease); }
.foot .links a:hover { color: var(--brand-d); }

/* ── Nút lên đầu trang ──────────────────────────────────────────────────── */
.top {
  position: fixed; right: 22px; bottom: 22px; z-index: 140;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: all .34s var(--ease);
}
.top.on { opacity: 1; transform: none; pointer-events: auto; }
.top:hover { transform: translateY(-3px); }
.top svg { width: 18px; height: 18px; }

/* ══ ĐIỂM NHẤN ════════════════════════════════════════════════════════════
   Mỗi ý lớn mang một màu riêng. Gắn class acc-1…acc-4 lên <section> là toàn bộ
   eyebrow, biểu tượng, khung nhấn mạnh, số thứ tự bên trong đổi màu theo.
   ═══════════════════════════════════════════════════════════════════════ */
.acc-1 { --acc: #2563eb; --acc-d: #1d4ed8; --acc-soft: #e9f0ff; --acc-glow: rgba(37, 99, 235, .30); --hl-c: #c7dbff; }
.acc-2 { --acc: #7c3aed; --acc-d: #6d28d9; --acc-soft: #f2edff; --acc-glow: rgba(124, 58, 237, .30); --hl-c: #ddd0ff; }
.acc-3 { --acc: #0891b2; --acc-d: #0e7490; --acc-soft: #e3f7fb; --acc-glow: rgba(8, 145, 178, .30); --hl-c: #b8ecf6; }
.acc-4 { --acc: #059669; --acc-d: #047857; --acc-soft: #e5f7ef; --acc-glow: rgba(5, 150, 105, .30); --hl-c: #bdeeda; }

/* Bút dạ quang chạy ngang khi khối hiện ra — dùng cho cụm chữ quan trọng nhất */
.hl {
  font-weight: 600; color: var(--ink);
  background-image: linear-gradient(var(--hl-c), var(--hl-c));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 0% .42em;
  transition: background-size .85s var(--ease) .25s;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .1em; margin: 0 -.1em; border-radius: .2em;
}
.is-in .hl, .rv.is-in.hl { background-size: 100% .42em; }

/* Câu chốt của từng ý */
.punch {
  margin-top: 22px; padding: 3px 0 3px 18px;
  border-left: 3px solid var(--acc);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem); font-weight: 600;
  line-height: 1.5; letter-spacing: -.02em;
}

/* Ba lối tắt ngay dưới hero — nói trước "có ba ý" */
.tri { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tri a {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 18px 9px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tri a b {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--acc); color: #fff; font-size: .74rem; letter-spacing: 0;
}
.tri a:hover { transform: translateY(-3px); border-color: var(--acc); box-shadow: 0 16px 30px -14px var(--acc-glow); }

/* Đầu chương của mỗi ý */
.chap {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 28px);
  padding-bottom: clamp(22px, 2.6vw, 30px);
  margin-bottom: clamp(34px, 4vw, 54px);
  border-bottom: 1px solid var(--line); position: relative;
}
.chap::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 132px; height: 3px; border-radius: 3px; background: var(--acc);
}
.chap .n {
  flex: none; position: relative;
  width: clamp(56px, 6vw, 76px); height: clamp(56px, 6vw, 76px); border-radius: 20px;
  display: grid; place-items: center;
  background: var(--acc); color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.72rem); font-weight: 700; letter-spacing: -.03em;
  box-shadow: 0 22px 44px -18px var(--acc-glow);
}
.chap .n::before {
  content: ''; position: absolute; inset: -7px; border-radius: 27px;
  border: 1px solid var(--acc); opacity: .28;
}
.chap .tx { flex: 1; min-width: 0; }
.chap .eyebrow { margin-bottom: 9px; }
.chap .h2 { font-size: clamp(1.65rem, 3.1vw, 2.55rem); }
.chap-tag {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: .8rem; font-weight: 600; color: var(--acc-d); white-space: nowrap;
}

/* Ba thẻ trụ cột — bản có điểm nhấn */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  position: relative; overflow: hidden; isolation: isolate;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px 28px 26px;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .42s var(--ease);
}
.pcard::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--acc); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.pcard::after {
  content: ''; position: absolute; right: -80px; top: -80px; z-index: -1;
  width: 250px; height: 250px; border-radius: 50%;
  background: radial-gradient(circle, var(--acc-glow), transparent 68%);
  opacity: .32; transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.pcard:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 34px 64px -26px var(--acc-glow), var(--sh-3); }
.pcard:hover::before { transform: none; }
.pcard:hover::after { opacity: .6; transform: scale(1.15); }
.pcard .no {
  position: absolute; right: 20px; top: 8px;
  font-size: 3.6rem; font-weight: 700; letter-spacing: -.05em; line-height: 1;
  color: var(--acc); opacity: .14;
}
.pcard .ico {
  width: 50px; height: 50px; border-radius: 15px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--acc); color: #fff;
  box-shadow: 0 16px 30px -14px var(--acc-glow);
  transition: transform .45s var(--ease);
}
.pcard:hover .ico { transform: scale(1.08) rotate(-5deg); }
.pcard .ico svg { width: 23px; height: 23px; }
.pcard h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pcard p { font-size: .92rem; color: var(--muted); }
.pcard .kpis {
  display: flex; gap: 26px; margin-top: 20px; padding-top: 17px;
  border-top: 1px dashed var(--line);
}
.pcard .kpis b {
  display: block; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.035em; line-height: 1.15; color: var(--acc-d);
}
.pcard .kpis span { font-size: .76rem; color: var(--muted-2); line-height: 1.4; display: block; }
.pcard .go {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-size: .86rem; font-weight: 700; color: var(--acc-d);
}
.pcard .go svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.pcard:hover .go svg { transform: translateX(5px); }

/* Một con số to hơn hẳn để mắt bám vào trước */
.figs.focal { grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; }
.figs.focal > .fig:first-child {
  background: linear-gradient(170deg, #fff 42%, var(--acc-soft));
  border-color: rgba(10, 16, 32, .07);
}
.figs.focal > .fig-crit:first-child { --acc-soft: #fdeceb; --fig-c: var(--danger); }
.figs.focal > .fig-warn:first-child { --acc-soft: #fdf4e4; --fig-c: var(--warn); }
.figs.focal > .fig:first-child::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--fig-c, var(--acc));
}
.figs.focal > .fig:first-child .v { font-size: clamp(2.9rem, 5.6vw, 4.5rem); }
.figs.focal > .fig:first-child .k { font-size: 1.05rem; }

/* ── Màn hình nhỏ ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr; }
  .figs.focal { grid-template-columns: repeat(2, 1fr); }
  .chap { flex-wrap: wrap; }
  .chap-tag { order: 3; }
  .nav .wrap { gap: 14px; }
  .nav-links {
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 8px 11px; font-size: .84rem; }
  .split { grid-template-columns: 1fr; }
  .split.rev > *:first-child { order: 0; }
  .c-4 { grid-template-columns: repeat(2, 1fr); }
  .figs { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .doms { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .c-2, .c-3, .c-4, .figs, .figs.c-4, .figs.focal { grid-template-columns: 1fr; }
  .dom .nums { grid-template-columns: 1fr; }
  .pagenav { flex-direction: column; }
  .pn.sau { margin-left: 0; }
  .rule { grid-template-columns: 40px 1fr; gap: 16px; }
  .chap .n { border-radius: 16px; }
  .tri a { flex: 1 1 100%; }
  .warn-row { grid-template-columns: auto 1fr; }
  .warn-row .num { grid-column: 2; }
  .hero-cta .btn { flex: 1 1 100%; }
  .brand small { display: none; } /* dòng phụ xuống 3 hàng trên máy hẹp */
  .brand b { white-space: nowrap; font-size: .95rem; } /* tên sản phẩm giữ trên một dòng */
  .doms { gap: 18px; }
  .lead { font-size: 1rem; }
}

/* ── Tôn trọng thiết lập giảm chuyển động ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1; transform: none; filter: none; }
  .hl { background-size: 100% .42em; }
}

/* ── In ─────────────────────────────────────────────────────────────────── */
@media print {
  .nav, .top, .progress, .aurora, .grid-bg { display: none !important; }
  .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hl { background-size: 100% .42em; }
  .sec { padding: 24px 0; break-inside: avoid; }
  .chap, .pcard, .dom, .rule { break-inside: avoid; }
  .dtabs, .pagenav, .crumb { display: none !important; }
}
