/* =====================================================================
   DUOLINK SOLUTIONS — Giao diện website
   Phong cách: glassmorphism nhẹ · Màu thương hiệu đỏ #E11D2E · Sáng mặc định
   ===================================================================== */

/* ---------- Font Be Vietnam Pro (tự host, giấy phép OFL) ---------- */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-vietnamese-400-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/be-vietnam-pro-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/be-vietnam-pro-vietnamese-500-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/be-vietnam-pro-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/be-vietnam-pro-vietnamese-600-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/be-vietnam-pro-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/be-vietnam-pro-vietnamese-700-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/be-vietnam-pro-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/be-vietnam-pro-vietnamese-800-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/be-vietnam-pro-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Biến màu & kích thước ---------- */
:root {
  /* Chữ logo: sáng = DUOLINK đỏ thương hiệu + SOLUTIONS xám; tối = DUOLINK trắng + SOLUTIONS đỏ */
  --wordmark: #E11D2E;
  --wordmark-sub: #5B6170;
  --logo-gap: #FBFBFC;
  --brand: #E11D2E;
  --brand-strong: #B5121F;
  --brand-light: #FF5A67;
  --brand-text: #C0141F;
  --brand-soft: rgba(225, 29, 46, 0.09);
  --brand-glow: rgba(225, 29, 46, 0.28);
  /* Điểm sáng nhất #E42234 vẫn đạt tương phản 4.5:1 với chữ trắng (WCAG AA) */
  --brand-gradient: linear-gradient(135deg, #E42234 0%, #E11D2E 50%, #B5121F 100%);
  --brand-gradient-text: linear-gradient(135deg, #FF4D5A 0%, #E11D2E 55%, #B5121F 100%);

  --ink: #151821;
  --text: #2A2F3A;
  --muted: #5B6170;
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --line: rgba(21, 24, 33, 0.08);

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(21, 24, 33, 0.06);
  --glass-blur: 18px;
  --shadow-sm: 0 2px 8px -2px rgba(21, 24, 33, 0.08);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 40px -16px rgba(21, 24, 33, 0.20);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 28px 60px -20px rgba(21, 24, 33, 0.28);

  --blob-1: #FF6B76;
  --blob-2: #FFB38A;
  --blob-3: #FF9EB0;
  --blob-opacity: 0.42;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 72px;
  /* Nhịp khoảng cách: mỗi phần đệm trên + dưới = --section-pad → khoảng giữa hai phần = 2 × --section-pad */
  --section-pad: 56px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Giao diện tối: xanh đậm (navy) theo bảng màu gốc của DUOLINK — 950 #071A2B · 900 #0A2239 · 800 #0C2740 · 700 #123354,
   quầng sáng cyan / xanh lục; nút và điểm nhấn vẫn dùng đỏ thương hiệu. */
[data-theme="dark"] {
  --wordmark: #F1F6FB;
  --wordmark-sub: #FF6B77;
  --logo-gap: #0A2239;
  --brand-text: #FF6B77;  /* sáng hơn chút để chữ đỏ đạt tương phản AA trên nền xanh đậm */
  --brand-gradient-text: linear-gradient(135deg, #FF8A93 0%, #FF5A67 50%, #E11D2E 100%);
  --brand-soft: rgba(255, 90, 103, 0.12);
  --brand-glow: rgba(225, 29, 46, 0.35);

  --ink: #F1F6FB;
  --text: #D6E3EF;
  --muted: #9DBAD2;
  --bg: #071A2B;
  --surface: #0C2740;
  --line: rgba(148, 196, 232, 0.14);

  --glass-bg: rgba(148, 196, 232, 0.06);
  --glass-bg-strong: rgba(10, 34, 57, 0.86);
  --glass-border: rgba(148, 196, 232, 0.16);
  --glass-edge: rgba(148, 196, 232, 0.08);
  --shadow-sm: 0 2px 8px -2px rgba(2, 12, 22, 0.5);
  --shadow: 0 1px 0 rgba(148, 196, 232, 0.08) inset, 0 14px 40px -16px rgba(2, 12, 22, 0.75);
  --shadow-lg: 0 1px 0 rgba(148, 196, 232, 0.08) inset, 0 28px 60px -20px rgba(2, 12, 22, 0.85);

  --blob-1: #0EA5E9;
  --blob-2: #34D399;
  --blob-3: #E11D2E;
  --blob-opacity: 0.18;
  color-scheme: dark;
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.nobr { white-space: nowrap; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
/* Bật sau thao tác đầu tiên (site.js) — lần tải trang có #neo thì nhảy ngay, không cuộn chậm vài giây */
html.smooth-scroll { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: 16px; line-height: 1.7; font-weight: 400;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 18px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Nền trang trí (các mảng màu mờ) ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity); will-change: transform; }
.blob-1 { width: 620px; height: 620px; top: -220px; right: -160px; background: var(--blob-1); animation: drift 22s var(--ease) infinite alternate; }
.blob-2 { width: 520px; height: 520px; bottom: -240px; left: -180px; background: var(--blob-2); animation: drift 26s var(--ease) infinite alternate-reverse; }
.blob-3 { width: 420px; height: 420px; top: 38%; left: 46%; background: var(--blob-3); opacity: calc(var(--blob-opacity) * .55); animation: drift 30s var(--ease) infinite alternate; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: .7;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 50px, 0) scale(1.12); } }

/* ---------- Kính mờ ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px var(--glass-edge);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; line-height: 1.3; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 10px 24px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:active { transform: translateY(0); }
.btn-glass { background: var(--glass-bg); color: var(--ink); border-color: var(--glass-border); box-shadow: var(--shadow-sm); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { border-color: var(--brand-glow); color: var(--brand-text); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: .92rem; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-text); text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; padding: 12px 0; transition: padding .25s var(--ease); }
.header-inner {
  display: flex; align-items: center; gap: 20px; min-height: 60px; padding: 8px 10px 8px 18px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px;
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--glass-edge);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { padding: 8px 0; }
.site-header.is-scrolled .header-inner { background: var(--glass-bg-strong); box-shadow: var(--shadow); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { display: inline-flex; width: 50px; height: 34px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
/* Khe hở giữa hai vòng logo lấy màu nền nơi đặt logo */
.logo-gap { stroke: var(--logo-gap); }
.logo-gap-fill { fill: var(--logo-gap); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-weight: 800; font-size: 1.12rem; letter-spacing: .06em; color: var(--wordmark); }
.brand-sub { margin-top: 4px; font-weight: 700; font-size: .62rem; letter-spacing: .38em; color: var(--wordmark-sub); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { position: relative; padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .96rem; white-space: nowrap; text-decoration: none; transition: color .2s, background-color .2s; }
.nav-link[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }
.nav-link:hover { color: var(--brand-text); background: var(--brand-soft); }
.nav-cta { margin-left: 8px; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px;
  border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tool-btn:hover { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.tool-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon, [data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Tiêu đề chung ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-gradient); }
.eyebrow-pill { padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); letter-spacing: .08em; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.eyebrow-pill::before { display: none; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hl { background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; line-height: 1.75; color: var(--muted); }

.section { position: relative; padding: var(--section-pad) 0; }
/* Phần cuối trang không cần đệm dưới — footer tự tạo khoảng cách */
main > .section:last-child { padding-bottom: 0; }
.section-tint::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 0%, var(--brand-soft) 45%, transparent 100%);
}
.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head .lead { margin: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 640px; }

/* ---------- Icon ---------- */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 90, 103, .16), rgba(225, 29, 46, .08));
  border: 1px solid rgba(225, 29, 46, .14); color: var(--brand-text);
}
.icon-badge svg { width: 22px; height: 22px; }
.icon-badge-sm { width: 36px; height: 36px; border-radius: 11px; }
.icon-badge-sm svg { width: 18px; height: 18px; }
.icon-badge-lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-badge-lg svg { width: 26px; height: 26px; }
.icon-badge-xl { width: 76px; height: 76px; border-radius: 22px; background: var(--brand-gradient); color: #fff; border: 0; box-shadow: 0 16px 32px -14px var(--brand-glow); }
.icon-badge-xl svg { width: 36px; height: 36px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { margin: 6px 0 22px; font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.hero-sub { max-width: 560px; font-size: 1.14rem; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-hotline { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.hero-hotline small { display: block; font-size: .78rem; color: var(--muted); }
.hero-hotline strong { font-size: 1.1rem; letter-spacing: .02em; }
.hero-hotline:hover strong { color: var(--brand-text); }

.hero-visual { position: relative; min-height: 470px; padding: 30px 30px 40px 40px; }
.hero-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hv-window { position: relative; padding: 0; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-edge); }
.hv-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hv-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hv-bar span:first-child { background: var(--brand); }
.hv-bar em { margin-left: auto; padding: 3px 12px; border-radius: 999px; background: var(--line); font-size: .72rem; font-style: normal; color: var(--muted); }
.hv-body { display: grid; grid-template-columns: 64px 1fr; min-height: 330px; }
.hv-side { display: flex; flex-direction: column; gap: 14px; padding: 20px 14px; border-right: 1px solid var(--line); }
.hv-side i { display: block; height: 10px; border-radius: 6px; background: var(--line); }
.hv-side i:first-child { height: 28px; border-radius: 9px; background: var(--brand-gradient); }
.hv-main { display: grid; gap: 18px; padding: 20px; align-content: start; }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hv-kpis div { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--glass-bg); border: 1px solid var(--line); }
.hv-kpis b { display: block; width: 44%; height: 8px; border-radius: 4px; background: var(--line); }
.hv-kpis i { display: block; width: 72%; height: 14px; border-radius: 5px; background: var(--ink); opacity: .82; }
.hv-kpis div:first-child i { background: var(--brand-gradient); opacity: 1; }
.hv-chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 14px 14px 0; border-radius: 14px; background: var(--glass-bg); border: 1px solid var(--line); }
.hv-chart i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(225, 29, 46, .35), rgba(225, 29, 46, .08)); transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.hv-chart i:nth-child(1) { height: 38%; } .hv-chart i:nth-child(2) { height: 55%; animation-delay: .05s; }
.hv-chart i:nth-child(3) { height: 44%; animation-delay: .1s; } .hv-chart i:nth-child(4) { height: 70%; animation-delay: .15s; }
.hv-chart i:nth-child(5) { height: 60%; animation-delay: .2s; } .hv-chart i:nth-child(6) { height: 82%; animation-delay: .25s; background: var(--brand-gradient); }
.hv-chart i:nth-child(7) { height: 66%; animation-delay: .3s; } .hv-chart i:nth-child(8) { height: 90%; animation-delay: .35s; }
.hv-chart i:nth-child(9) { height: 76%; animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hv-rows { display: grid; gap: 10px; }
.hv-rows i { display: block; height: 10px; border-radius: 5px; background: var(--line); }
.hv-rows i:nth-child(2) { width: 82%; } .hv-rows i:nth-child(3) { width: 64%; }

.hv-phone {
  position: absolute; left: 0; bottom: 0; width: 132px; height: 236px; padding: 26px 14px 14px;
  display: flex; flex-direction: column; gap: 10px; border-radius: 26px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-edge);
  animation: float 7s ease-in-out infinite;
}
.hv-notch { position: absolute; top: 10px; left: 50%; width: 40px; height: 6px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.hv-phone i { display: block; height: 44px; border-radius: 12px; background: var(--line); }
.hv-phone i:first-of-type { background: linear-gradient(135deg, rgba(255, 90, 103, .3), rgba(225, 29, 46, .12)); }
.hv-phone b { display: block; margin-top: auto; height: 30px; border-radius: 10px; background: var(--brand-gradient); }

.hv-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 10px 16px 10px 10px;
  border-radius: 16px; font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-edge);
  animation: float 6s ease-in-out infinite;
}
.hv-chip-1 { top: 0; right: 0; }
.hv-chip-2 { top: 46%; right: -18px; animation-delay: -2s; }
.hv-chip-3 { bottom: 4px; right: 18%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cam kết ---------- */
.commitments { position: relative; z-index: 2; padding-bottom: var(--section-pad); }
.commit-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px; border-radius: var(--radius-lg); }
.commit-item { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); }
.commit-item + .commit-item { border-left: 1px solid var(--line); border-radius: 0; }
.commit-title { margin: 2px 0 4px; font-size: 1rem; font-weight: 700; }
.commit-item p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }

/* ---------- Thẻ ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card { position: relative; padding: 30px; }
.card h3 { margin: 18px 0 10px; font-size: 1.16rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card-hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-glow); }
.card-index { position: absolute; top: 22px; right: 26px; font-size: 2.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); letter-spacing: -0.02em; }
.card-hover:hover .card-index { -webkit-text-stroke-color: var(--brand-glow); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card .stretched { color: inherit; text-decoration: none; }
/* Viền focus cho cả thẻ; trình duyệt không hỗ trợ :has() vẫn giữ viền mặc định của liên kết */
@supports selector(:has(a)) {
  .card .stretched:focus-visible { outline: none; }
  .card:has(.stretched:focus-visible) { outline: 2px solid var(--brand); outline-offset: 3px; }
}

/* ---------- Giải pháp ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 14px; }
.chip { padding: 8px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { color: var(--brand-text); }
.chip.is-active { background: var(--brand-gradient); color: #fff; box-shadow: 0 8px 18px -10px var(--brand-glow); }

.solution-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.solution-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, rgba(255, 90, 103, .14), rgba(225, 29, 46, .04)); }
.solution-media::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 16px 16px; opacity: .8; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.solution-card:hover .solution-media img { transform: scale(1.05); }
.solution-placeholder { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; height: 100%; color: var(--brand-text); }
.solution-placeholder svg { width: 64px; height: 64px; stroke-width: 1.4; transition: transform .5s var(--ease); }
.solution-card:hover .solution-placeholder svg { transform: scale(1.1) rotate(-4deg); }
.solution-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 26px 26px; }
.solution-body h3 { margin: 0; font-size: 1.15rem; }
.solution-body p { flex: 1; }
.solution-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--muted); background: var(--glass-bg); border: 1px solid var(--line); }
.tag-accent { color: var(--brand-text); background: var(--brand-soft); border-color: transparent; }
.tag-new { color: #fff; background: var(--brand-gradient); border-color: transparent; letter-spacing: .04em; }

/* Dịch vụ: thẻ công nghệ luôn nằm sát đáy card để 6 card thẳng hàng */
.service-card { display: flex; flex-direction: column; }
.service-card > .icon-badge { align-self: flex-start; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 18px 0 0; list-style: none; }

/* ---------- Trang Về chúng tôi ---------- */
/* Hai cột cao bằng nhau: cột trái = giới thiệu + 4 cam kết, cột phải = thông tin doanh nghiệp (nút liên hệ sát đáy) */
.page-about .detail-grid { align-items: stretch; }
.page-about .detail-side { position: static; }
.page-about .side-card { height: 100%; grid-template-rows: auto auto 1fr; }
.page-about .side-card > .btn { align-self: end; }
.about-main { display: flex; flex-direction: column; gap: 20px; }
.about-main > .detail-block { flex: 1; }
.about-commits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-commit { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); }
.about-commit p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--muted); }
.side-title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.side-facts dd a { color: inherit; text-decoration: none; }
.side-facts dd a:hover { color: var(--brand-text); }
.card-title { margin: 18px 0 10px; font-size: 1.16rem; font-weight: 700; }
.value-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.value-list li { display: flex; align-items: flex-start; gap: 10px; }
.value-list svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--brand-text); }
/* Mục AI: mỗi gạch đầu dòng thành một ô — phần in đậm là tên, phần sau là mô tả */
.about-ai ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.about-ai li {
  margin: 0; padding: 22px 24px; border-radius: var(--radius); color: var(--muted);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.about-ai li strong { display: block; margin-bottom: 6px; font-size: 1.05rem; color: var(--ink); }
.about-ai li strong::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: var(--brand-gradient); }
.about-ai > p { max-width: 920px; margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--brand-soft); color: var(--text); }
.about-capabilities { gap: 16px; }
.capability { display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: var(--ink); font-weight: 700; text-decoration: none; }
.capability .icon-badge { flex: none; }

/* Dải lĩnh vực phục vụ dưới tiêu đề phần Dịch vụ */
.section-head-tight { margin-bottom: 26px; }
.industries { margin: 0 0 40px; }
.industries-title { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.industry-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.industry-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 11px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.industry-chip svg { width: 18px; height: 18px; flex: none; color: var(--brand-text); }

.section-more { display: flex; justify-content: center; margin-top: 40px; }
.section-flush { padding-top: 0; }
.empty-note { margin: 0; padding: 40px 24px; text-align: center; color: var(--muted); font-size: 1.05rem; }
.section-toolbar { display: flex; justify-content: flex-start; margin-bottom: 28px; }

/* ---------- Quy trình ---------- */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.process-step { position: relative; padding: 30px; overflow: hidden; }
.process-step::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--brand-gradient); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease); }
.process-step:hover::before { transform: scaleX(1); }
.step-no { position: absolute; top: 18px; right: 24px; font-size: 3rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--brand-glow); }
.process-step h3 { margin: 18px 0 8px; font-size: 1.12rem; }
.process-step p { margin: 0; color: var(--muted); }

/* ---------- Vì sao chọn ---------- */
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 40px); margin: 0; }
.why-head .lead { margin-bottom: 28px; }
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.why-cards .card:nth-child(even) { transform: translateY(32px); }
.why-cards .card:nth-child(even):hover { transform: translateY(26px); }

/* ---------- Đội ngũ & đánh giá ---------- */
.team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.team-card { text-align: center; }
.avatar { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.avatar-icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(255, 90, 103, .18), rgba(225, 29, 46, .06)); color: var(--brand-text); }
.avatar-icon svg { width: 40px; height: 40px; }
.team-role { margin: -4px 0 8px; color: var(--brand-text); font-weight: 600; }
.quote-card { margin: 0; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.05rem; color: var(--text); }
.quote-card figcaption { display: grid; gap: 2px; }
.quote-card figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 0; border-radius: 18px; transition: box-shadow .3s; }
.faq-item[open] { box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-glow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--brand-text); transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 24px 22px; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Liên hệ ---------- */
.contact-shell { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; padding: 48px; border-radius: var(--radius-lg); }
.contact-info h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; }
.contact-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .label { display: block; font-size: .8rem; color: var(--muted); }
.contact-list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--brand-text); }
.map-wrap { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map-wrap iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

.contact-form { display: grid; gap: 18px; align-content: start; padding: 32px; border-radius: var(--radius); background: var(--glass-bg-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--brand-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(225, 29, 46, .3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { background: rgba(22, 163, 74, .12); color: #15803D; }
[data-theme="dark"] .form-status.is-success { color: #4ADE80; }
.form-status.is-error { background: var(--brand-soft); color: var(--brand-text); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.consent a { font-weight: 600; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); }
.form-note svg { width: 15px; height: 15px; }

/* ---------- Trang chi tiết giải pháp ---------- */
.page-hero { padding: 40px 0 var(--section-pad); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero-inner { display: flex; align-items: flex-start; gap: 28px; }
.page-hero h1 { margin: 12px 0 14px; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; }
.page-hero .lead { max-width: 760px; margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-bottom: var(--section-pad); }
.detail-main { display: grid; gap: 22px; }
.cover-image { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.detail-block { padding: 32px; }
.detail-block h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1.3rem; }
.detail-block > p, .prose { color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose h3, .prose h4 { margin-top: 1.4em; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list svg { margin-top: 4px; color: var(--brand-text); }
/* Ghi chú demo, kết quả nổi bật */
.demo-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: var(--glass-bg); border: 1px dashed var(--brand-glow); font-size: .86rem; line-height: 1.5; color: var(--text); }
.demo-note svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-text); width: 15px; height: 15px; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 0 0 32px; padding: 8px; border-radius: var(--radius-lg); }
.result { display: grid; gap: 4px; padding: 18px 22px; }
.result + .result { border-left: 1px solid var(--line); }
.result-value { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.1; background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-label { color: var(--muted); font-size: .94rem; }

/* Video: ảnh bìa + nút phát; iframe YouTube chỉ chèn khi bấm */
.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-sm); background: linear-gradient(135deg, #123354, #071A2B); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.8); transition: filter .3s, transform .5s var(--ease); }
.video-facade:hover img { filter: brightness(.65); transform: scale(1.03); }
.video-play { position: relative; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--brand-gradient); color: #fff; box-shadow: 0 16px 40px -10px rgba(225, 29, 46, .7); transition: transform .25s var(--ease); }
.video-play svg { width: 32px; height: 32px; margin-left: 4px; }
.video-facade:hover .video-play, .video-facade:focus-visible .video-play { transform: scale(1.08); }

/* Bộ ảnh + xem ảnh lớn */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery-item { margin: 0; display: grid; gap: 6px; }
.gallery-item figcaption { font-size: .86rem; color: var(--muted); }
.gallery-thumb { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-thumb:hover img { transform: scale(1.05); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 26, 43, .94); color: #fff; }
.lightbox::backdrop { background: rgba(7, 26, 43, .6); }
.lightbox-inner { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 72px; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-figure figcaption { font-size: .95rem; color: #E5E7EB; text-align: center; }
.lightbox-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: .9rem; color: #C3C7D1; }
.lightbox-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close { top: 14px; right: 14px; font-size: 1.1rem; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lightbox-prev, .lightbox.single .lightbox-next, .lightbox.single .lightbox-count { display: none; }
.lightbox-open { overflow: hidden; }
.detail-side { position: sticky; top: calc(var(--header-h) + 28px); }
.side-card { display: grid; gap: 22px; padding: 28px; }
.side-facts { display: grid; gap: 16px; margin: 0; }
.side-facts dt { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.side-cta { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.side-cta h2 { margin: 0; font-size: 1.12rem; }
.side-cta p { margin: 0 0 6px; font-size: .94rem; color: var(--muted); }
.main-404 { padding-top: var(--section-pad); }
/* Khung kêu gọi liên hệ (trang danh sách giải pháp) */
.cta-box { padding: 48px 40px; text-align: center; border-radius: var(--radius-lg); }
.cta-box h2 { margin-bottom: 10px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.cta-box p { max-width: 560px; margin: 0 auto; color: var(--muted); }
.cta-box .hero-actions { justify-content: center; margin: 28px 0 0; }
.not-found { padding: 64px 40px; text-align: center; }
.page-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.policy { padding: 40px; }
.policy > p:first-child { font-size: 1.05rem; }
.policy h2, .policy h3 { margin: 1.8em 0 .6em; font-size: 1.15rem; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .45em; }
.policy li::marker { color: var(--brand-text); }
.not-found .eyebrow { justify-content: center; font-size: 1rem; }
.not-found .eyebrow::before { display: none; }

/* ---------- Footer ---------- */
/* Footer nền sáng (trắng ngà); chế độ tối dùng nền tối dịu */
.site-footer {
  --footer-bg: #FBF8F4; --logo-gap: #FBF8F4;
  position: relative; margin-top: var(--section-pad); padding-top: var(--section-pad); overflow: hidden;
  color: var(--text); background: var(--footer-bg); border-top: 1px solid rgba(225, 29, 46, .12);
}
.site-footer::before { content: ""; position: absolute; top: -220px; right: -140px; width: 480px; height: 480px; border-radius: 50%; background: var(--brand); opacity: .08; filter: blur(100px); }
.site-footer::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-gradient); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 40px; }
.footer-brand p { max-width: 380px; margin-top: 18px; color: var(--muted); }
.footer-title { margin-bottom: 16px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brand-text); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact svg { margin-top: 4px; color: var(--brand-text); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding: 22px 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--brand-text); }
[data-theme="dark"] .site-footer { --footer-bg: #061626; --logo-gap: #061626; border-top-color: rgba(148, 196, 232, .1); }

/* ---------- Nút nổi Gọi / Zalo ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: grid; gap: 12px; }
.float-btn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: transform .2s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 24px; height: 24px; }
.float-zalo { background: #0068FF; }
.float-top {
  border: 1px solid var(--glass-border); background: var(--glass-bg-strong); color: var(--brand-text); cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.float-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-top:hover { transform: translateY(-2px); }
.float-top svg { width: 22px; height: 22px; }
.float-call { background: var(--brand-gradient); }
.float-call::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Thanh nút dính (trang chi tiết giải pháp, màn hình nhỏ) ---------- */
.sticky-cta { display: none; }

/* ---------- Hiệu ứng xuất hiện khi cuộn ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .why-cards .card.reveal.in:nth-child(even) { transform: translateY(32px); }

/* ---------- Responsive ---------- */
/* Màn vừa (laptop nhỏ): thu gọn menu để 6 mục + nút vẫn nằm trên một hàng */
@media (min-width: 1081px) and (max-width: 1260px) {
  .site-nav { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: .92rem; }
  .nav-cta { margin-left: 6px; }
}

@media (max-width: 1080px) {
  .card-grid, .process-list, .about-ai ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .commit-item + .commit-item { border-left: 0; }
  .commit-item:nth-child(even) { border-left: 1px solid var(--line); }
  .commit-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass-bg-strong); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(21, 24, 33, .18);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .sticky-cta-single { grid-template-columns: 1fr; }
  .sticky-cta .btn { padding: 12px 14px; }
  /* Nút kính lồng trong thanh kính: dùng nền đặc để chữ phía sau không lộ qua */
  .sticky-cta .btn-glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  /* Chừa chỗ cho thanh: nút nổi đẩy lên, cuối trang không bị che */
  .page-solution .float-actions { bottom: 88px; transition: bottom .3s var(--ease); }
  .page-solution.sticky-off .float-actions { bottom: 18px; }
  .page-solution .site-footer { padding-bottom: 76px; }

  /* Menu thu vào nút ba gạch (≤ 1080px: 6 mục + nút không còn đủ chỗ trên một hàng) */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(100% + 6px); left: 24px; right: 24px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    /* Nền đặc: backdrop-filter lồng trong header (đã có blur) không hoạt động */
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .nav-link { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 960px) {
  :root { --glass-blur: 12px; }
  :root { --section-pad: 48px; }
  .hero { padding-top: 36px; }
  .hero-inner, .why-grid, .contact-shell, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; min-height: 0; margin: 0 auto; padding: 24px 20px 32px 28px; }
  .why-head { position: static; }
  .contact-shell { padding: 28px; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .industries { margin-bottom: 32px; }
  .industry-list { gap: 8px; }
  .industry-chip { padding: 6px 12px 6px 9px; gap: 6px; font-size: .82rem; }
  .industry-chip svg { width: 16px; height: 16px; }
  .blob { opacity: calc(var(--blob-opacity) * .7); }
  .blob-1 { width: 380px; height: 380px; top: -170px; right: -170px; }
  .blob-2 { width: 340px; height: 340px; }
  .blob-3 { width: 260px; height: 260px; }
  :root { --section-pad: 36px; }
  .card-grid, .process-list, .why-cards, .feature-list, .field-row, .commit-grid, .about-ai ul, .about-commits { grid-template-columns: 1fr; }
  .commit-item:nth-child(even) { border-left: 0; }
  .commit-item + .commit-item { border-top: 1px solid var(--line); }
  .why-cards .card:nth-child(even), .js .why-cards .card.reveal.in:nth-child(even) { transform: none; }
  .card, .process-step, .detail-block { padding: 24px; }
  .header-inner { padding: 6px 6px 6px 12px; gap: 8px; }
  .site-nav { left: 16px; right: 16px; }
  .brand-mark { width: 44px; height: 30px; }
  .brand-main { font-size: 1rem; }
  .brand-sub { font-size: .56rem; letter-spacing: .3em; }
  .tool-btn { min-width: 38px; height: 38px; padding: 0 8px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  /* Minh họa hero quá chi tiết cho màn hình nhỏ — ẩn đi (ảnh hero do admin tải lên vẫn hiển thị) */
  .hero-visual:not(:has(.hero-img)) { display: none; }
  .hero { padding-bottom: 32px; }
  .contact-shell { padding: 20px; }
  .contact-form { padding: 22px; }
  .policy { padding: 24px; }
  .cta-box { padding: 32px 20px; }
  .result + .result { border-left: 0; border-top: 1px solid var(--line); }
  .lightbox-inner { padding: 56px 12px 72px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .page-hero-inner { flex-direction: column; gap: 16px; }
  .icon-badge-xl { width: 60px; height: 60px; border-radius: 18px; }
  .float-actions { right: 12px; bottom: 12px; }
  .float-btn { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html, html.smooth-scroll { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- In ấn ---------- */
@media print {
  .sticky-cta, .bg-decor, .float-actions, .site-header, .header-tools, .hero-visual, .contact-form, .map-wrap, .filter-bar, .side-cta, .skip-link { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: #fff !important; box-shadow: none !important; border: 1px solid #ddd; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-footer { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  a { color: inherit; }
}
