/* ==========================================================
   Intellix Pro — style.css
   Bố cục theo nhịp của 5u.ai. Đổi màu thương hiệu ở :root
   khi có logo chính thức.
   ========================================================== */

:root {
  /* Màu lấy từ logo, hạ độ đậm để nền vẫn nhẹ */
  --brand: #283090;
  --brand-2: #3c468f;
  --accent: #0b9b86;
  --accent-2: #3db8a6;

  /* Nền & chữ — nền lạnh hơn trắng để thẻ và nút tách ra */
  --bg: #e7ebf6;
  --bg-soft: #dce2f2;
  --bg-tint: #e3e7f5;
  --bg-sky: #dff3ef;
  --surface: #ffffff;
  --ink: #0f0f10;
  --ink-2: #3a3c44;
  --muted: #6e7080;
  --line: #d0d5e6;
  --line-2: #c5cbe0;

  /* Trạng thái */
  --warn: #de5531;
  --warn-bg: #fdf0ec;
  --ok: #1b8a5a;
  --ok-bg: #e7f5ee;
  --orange: #f57c00;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(22, 28, 82, .05), 0 10px 28px rgba(40, 48, 144, .09);
  --shadow-lg: 0 8px 20px rgba(22, 28, 82, .08), 0 24px 48px rgba(40, 48, 144, .14);

  --sans: "Be Vietnam Pro", "Geist", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --container: 1200px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at -8% -10%, rgba(40, 48, 144, .18), transparent 62%),
    radial-gradient(860px 520px at 108% 0%, rgba(11, 155, 134, .16), transparent 58%),
    radial-gradient(900px 520px at 78% 108%, rgba(40, 48, 144, .1), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.1; font-weight: 700; }
p { margin: 0; }

/* ---------- Song ngữ ---------- */
html[data-lang="vi"] [lang="en"]:not(html),
html[data-lang="en"] [lang="vi"]:not(html) { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint {
  background:
    linear-gradient(180deg, rgba(11, 155, 134, .1), rgba(40, 48, 144, .06)),
    #e3eaf8;
}
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}
.eyebrow--plain::before { display: none; }

.display { font-size: clamp(34px, 4.5vw, 64px); letter-spacing: -.02em; line-height: 1.22; }
.h2 { font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -.02em; line-height: 1.22; }
.h2 .soft, .display .soft { display: block; color: var(--muted); }
.display br, .h2 br { display: none; }
@media (min-width: 760px) {
  .display .soft, .h2 .soft { white-space: nowrap; }
}
.h3 { font-size: 22px; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 640px; }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 20px; margin-bottom: 64px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; justify-items: center; }
.section-head--split {
  max-width: none; grid-template-columns: 1.35fr 0.85fr; align-items: end; gap: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(40, 48, 144, .28); }
.btn--dark:hover { background: #1e2574; }
.btn--light { background: #fff; color: var(--brand); border-color: #b7c0dc; box-shadow: 0 1px 2px rgba(22, 28, 82, .06), 0 6px 16px rgba(40, 48, 144, .1); }
.btn--light:hover { border-color: var(--brand); background: #f4f6fc; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 12px; border-radius: 10px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 7px; background: rgba(40, 48, 144, .1); color: var(--brand);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
}
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--dark { background: var(--ink); color: #fff; }
.tag--line { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot--live { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Chỗ chờ nội dung thật */
.ph {
  display: inline-block; padding: 0 .35em; border-radius: 6px;
  background: repeating-linear-gradient(135deg, #fff5e6 0 6px, #ffecd1 6px 12px);
  color: #9a5a00; font-weight: 600;
}

/* ==========================================================
   Header
   ========================================================== */
.site-top { position: sticky; top: 0; z-index: 50; }
.announce {
  background: #1c2468; color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500;
  text-align: center; padding: 9px 16px;
}
.announce a { display: inline-flex; gap: 8px; align-items: center; opacity: .9; }
.announce a:hover { opacity: 1; }
.announce .tag { background: rgba(255, 255, 255, .12); color: #fff; height: 20px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .04em; }

.site-header {
  position: relative; z-index: 2; height: var(--header-h);
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(40, 48, 144, .1); transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(40, 48, 144, .06); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 42px; width: auto; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--ink-2); padding: 8px 12px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 3px; background: var(--accent); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .btn { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line);
}
.lang-switch button {
  border: 0; background: transparent; padding: 5px 9px; border-radius: 7px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
}
.lang-switch button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--top-h, 110px); right: 0; bottom: 0; left: 0; z-index: 40; background: #fff;
  padding: 24px; display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.mobile-menu a:not(.btn) {
  font-size: 28px; font-weight: 600; letter-spacing: -.02em; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; padding: 96px 0 120px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 48% at 12% 0%, rgba(40, 48, 144, .2), transparent 70%),
    radial-gradient(42% 42% at 92% 18%, rgba(11, 155, 134, .18), transparent 72%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-inner { display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero-inner .lead { margin: 0 auto; }
.hero--left .hero-inner { justify-items: start; text-align: left; }
.hero--left .hero-inner .lead { margin: 0; }

/* Minh hoạ nổi trong hero */
.hero-visual { position: relative; margin-top: 72px; height: 440px; }
.hero-visual .float {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px; text-align: left;
}
.float-main { left: 50%; top: 20px; width: min(560px, 92%); transform: translateX(-50%); padding: 22px !important; }
.float-a { left: 2%; top: 70px; width: 250px; animation: bob 6s ease-in-out infinite; }
.float-b { right: 2%; top: 30px; width: 260px; animation: bob 7s ease-in-out infinite .6s; }
.float-c { right: 8%; bottom: 10px; width: 240px; animation: bob 6.5s ease-in-out infinite 1.2s; }
.float-d { left: 7%; bottom: 0; width: 230px; animation: bob 7.5s ease-in-out infinite .3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ui-title { font-weight: 600; font-size: 15px; }
.ui-sub { font-size: 12px; color: var(--muted); }
.ui-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; margin-top: 8px;
}
.ui-row b { font-weight: 600; }
.ui-bar { height: 6px; border-radius: 6px; background: var(--bg-tint); overflow: hidden; margin-top: 10px; }
.ui-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.ui-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(40, 48, 144, .1); color: var(--brand); flex: none;
  box-shadow: inset 0 0 0 1px rgba(40, 48, 144, .1);
}
.ui-icon svg { width: 18px; height: 18px; }
.ui-kpi { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.ui-chart { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 10px; }
.ui-chart i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--bg-tint); }
.ui-chart i.on { background: linear-gradient(180deg, var(--accent), var(--brand)); }

/* Trang con: hero nhỏ */
.page-hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.page-hero .section-head { max-width: none; }

/* ==========================================================
   Stats / Impact cards (hiệu ứng chữ trượt khi hover)
   ========================================================== */
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.impact-card {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.impact-card:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.impact-card .roll { height: 1.45em; overflow: hidden; font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.45; }
.impact-card .roll-inner { display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.7, 0, .2, 1); }
.impact-card:hover .roll-inner { transform: translateY(-50%); }
.impact-card .roll-inner span:nth-child(even) { color: var(--accent); }
.impact-card .desc { color: var(--ink-2); margin-top: 14px; font-size: 17px; line-height: 1.65; }
.impact-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.45; text-transform: none; color: var(--muted); }
.impact-card .foot .arrow { transition: transform .3s; }
.impact-card:hover .foot .arrow { transform: translate(3px, -3px); color: var(--accent); }
.impact-card--dark { background: #161c52; color: #fff; border-color: #161c52; }
.impact-card--dark .desc { color: rgba(255, 255, 255, .7); }
.impact-card--dark .foot { border-color: rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .5); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.stat-strip--3 { grid-template-columns: repeat(3, 1fr); }
.stat-strip--mix { grid-template-columns: 0.85fr 1fr 0.75fr 1.5fr; }
.stat-strip > div { padding: 32px 28px; }
.stat-strip > div + div { border-left: 1px solid var(--line); }
.stat-strip .num { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat-strip .num--text { font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -.03em; line-height: 1.15; }
.stat-strip .num--long { font-size: clamp(18px, 1.45vw, 22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; text-wrap: balance; }
.stat-strip .lbl { margin-top: 10px; color: var(--muted); font-size: 14px; }
.stat-strip--mix > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; min-height: 0; }
.stat-strip--mix .stat-body { width: 100%; }
.stat-strip--mix .num { font-size: clamp(36px, 3.2vw, 48px); line-height: 1.05; }
.stat-strip--mix .num--text { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.15; }
.stat-strip--mix .num--long { font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; line-height: 1.45; text-wrap: balance; }
.stat-strip--mix .lbl { margin-top: 8px; }
.stat-strip--mix .icon-box { width: 44px; height: 44px; border-radius: 12px; }

/* ==========================================================
   Cards chung
   ========================================================== */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card--soft { background: var(--bg-soft); border-color: var(--line-2); }
.card h3 { font-size: 21px; letter-spacing: -.02em; margin: 18px 0 10px; }
.card p { color: var(--ink-2); }
.card .num-tag { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(40, 48, 144, .1); color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(40, 48, 144, .12);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box--dark { background: var(--ink); color: #fff; }

/* Thẻ giải pháp dạng Bài toán / Giải pháp (khung Use Cases) */
.solution-card {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  border-radius: var(--radius-lg); padding: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s, box-shadow .35s, border-color .35s; overflow: hidden;
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.solution-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(31, 111, 255, .12), transparent 65%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.solution-card:hover::after { opacity: 1; }
.solution-card .sc-top { display: flex; align-items: center; justify-content: space-between; }
.solution-card .sc-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.solution-card h3 { font-size: 26px; letter-spacing: -.025em; }
.solution-card .sc-block { display: grid; gap: 8px; }
.solution-card .sc-block p { color: var(--ink-2); font-size: 15px; }
.solution-card .sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.solution-card .sc-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.solution-card .sc-list li::before { content: "→"; color: var(--accent); font-family: var(--mono); }
.solution-card .sc-foot {
  margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; font-weight: 600;
}

/* ==========================================================
   Quy trình (khung "From inbox to invoice")
   ========================================================== */
.flow { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.flow-steps { display: grid; gap: 8px; }
.flow-step {
  text-align: left; border: 1px solid transparent; background: rgba(255, 255, 255, .55); border-radius: var(--radius);
  padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; color: var(--ink);
  transition: background .3s, border-color .3s; position: relative; overflow: hidden;
}
.flow-step .n { font-family: var(--mono); font-size: 13px; color: var(--muted); grid-row: span 2; padding-top: 3px; }
.flow-step .t { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.flow-step .d { color: var(--ink-2); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s, opacity .4s; }
.flow-step.is-active { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.flow-step.is-active .n { color: var(--accent); }
.flow-step.is-active .d { max-height: 120px; opacity: 1; }
.flow-step .progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.flow-step.is-active .progress { animation: grow var(--step-ms, 5000ms) linear forwards; }
@keyframes grow { to { width: 100%; } }

.flow-panel {
  position: relative; border-radius: var(--radius-lg); background: var(--bg-tint);
  padding: 32px; min-height: 440px; overflow: hidden; border: 1px solid #e3e7fb;
}
.flow-pane { position: absolute; inset: 32px; opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; pointer-events: none; }
.flow-pane.is-active { opacity: 1; transform: none; pointer-events: auto; }
.flow-pane .window {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 20px;
}
.window-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li {
  display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px;
  border-radius: 10px; background: var(--bg-soft);
}
.check-list li .ck {
  width: 18px; height: 18px; border-radius: 6px; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-size: 11px; flex: none;
}
.check-list li .ck.wait { background: var(--line); color: var(--muted); }

/* ==========================================================
   Sơ đồ khối có đường nối (khung "Let AI Handle")
   ========================================================== */
.nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.nodes::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 50px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); z-index: 0;
}
.nodes::after {
  content: ""; position: absolute; top: 49px; left: 12%; width: 80px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: travel 4s linear infinite; z-index: 0;
}
@keyframes travel { from { left: 12%; } to { left: calc(88% - 80px); } }
.node {
  position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 24px; text-align: left; transition: transform .3s, box-shadow .3s;
}
.node:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.node .icon-box { margin-bottom: 18px; }
.node h3 { font-size: 20px; margin-bottom: 8px; }
.node p { font-size: 15px; color: var(--ink-2); }
.node .tag { margin-top: 18px; }

/* ==========================================================
   Case study
   ========================================================== */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.case + .case { margin-top: 20px; }
.case-left { padding: 40px; display: grid; gap: 18px; align-content: start; }
.case-right { background: var(--bg-tint); padding: 40px; display: grid; gap: 14px; align-content: center; }
.case-step { background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid #e6e8f2; }
.case-step .tag { margin-bottom: 8px; }
.case-step p { color: var(--ink-2); font-size: 15px; }

/* ==========================================================
   Logo marquee
   ========================================================== */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  height: 88px; min-width: 200px; padding: 0 36px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.marquee-item img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.marquee-item img[src$="logo-hvs.png"] { height: 52px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Vision / Mission
   ========================================================== */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vm-card { border-radius: var(--radius-lg); padding: 44px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.vm-card--dark { background: var(--ink); color: #fff; }
.vm-card--dark .eyebrow { color: rgba(255, 255, 255, .6); }
.vm-card--tint { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vm-card blockquote { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose { display: grid; gap: 18px; color: var(--ink-2); font-size: 18px; line-height: 1.7; }

/* ==========================================================
   CTA cuối trang
   ========================================================== */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 96px 32px; text-align: center;
  background: #161c52; color: #fff; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 70% at 18% 0%, rgba(40, 48, 144, .55), transparent 70%),
    radial-gradient(42% 60% at 88% 100%, rgba(11, 155, 134, .28), transparent 72%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
}
.cta .display { font-size: clamp(34px, 4.2vw, 60px); }
.cta .display .soft { color: rgba(255, 255, 255, .5); }
.cta .lead { color: rgba(255, 255, 255, .75); margin: 24px auto 36px; }
.cta .btn--dark { background: #fff; color: var(--brand); }
.cta .btn--dark:hover { background: var(--bg-sky); }
.cta .btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta .btn--light:hover { border-color: #fff; }

/* ==========================================================
   Liên hệ
   ========================================================== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.info-item .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-item .val { font-weight: 600; margin-top: 2px; word-break: break-word; }
.info-item a.val:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--warn); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #f4f6fb;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(11, 155, 134, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  cursor: pointer; font-family: var(--sans); font-size: 14px; text-transform: none; letter-spacing: 0;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s;
}
.chips input:checked + label { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips input:focus-visible + label { box-shadow: 0 0 0 3px rgba(11, 155, 134, .28); }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 14px; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-status.err { display: block; background: var(--warn-bg); color: var(--warn); }
.hp { position: absolute; left: -9999px; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { padding: 80px 0 32px; border-top: 1px solid var(--line); margin-top: 120px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 280px; font-size: 15px; }
.site-footer .logo img { height: 52px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.footer-wordmark {
  margin-top: 72px; font-size: clamp(56px, 13vw, 200px); font-weight: 700; letter-spacing: -.06em; line-height: .85;
  background: linear-gradient(180deg, rgba(40, 48, 144, .55) 10%, rgba(40, 48, 144, .04)); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ==========================================================
   Hiệu ứng xuất hiện khi cuộn
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .impact, .grid-4, .nodes { grid-template-columns: repeat(2, 1fr); }
  .nodes::before, .nodes::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .float-a, .float-d { left: 0; } .float-b, .float-c { right: 0; }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .section { padding: 88px 0; }
  .section-head--split, .flow, .split, .vm, .contact, .case, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section-head--split { gap: 20px; }
  .flow-panel { min-height: 400px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-strip--3 > div:last-child { grid-column: 1 / -1; }
  .hero-visual { height: auto; margin-top: 48px; display: grid; gap: 14px; }
  .hero-visual .float { position: static; width: 100% !important; transform: none !important; animation: none; }
  .float-c, .float-d { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 80px; }
  .page-hero { padding: 64px 0 48px; }
  .section-head { margin-bottom: 40px; }
  .impact, .grid-4, .nodes { grid-template-columns: 1fr; }
  .impact-card { min-height: 0; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .case-left, .case-right, .vm-card { padding: 26px; }
  .cta { padding: 64px 20px; border-radius: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .announce { font-size: 12px; }
  .logo img { height: 34px; }
  .btn-row .btn { flex: 1 1 auto; }
  .site-footer { margin-top: 72px; }
}


/* ===== Tiện ích thay cho style="…" trong HTML (để CSP không cần 'unsafe-inline') ===== */
.s-1 { margin-bottom:0 !important; max-width:none !important; }
.s-2 { padding-top:0 !important; }
.s-3 { margin-bottom:0 !important; }
.s-4 { display:flex !important; gap:20px !important; }
.s-5 { flex:none !important; }
.s-6 { margin-top:0 !important; }
.s-7 { background:rgba(255,255,255,.1) !important; color:#fff !important; }
.s-8 { display:grid !important; gap:20px !important; }
.s-9 { display:flex !important; justify-content:space-between !important; align-items:center !important; }
.s-10 { font-size:28px !important; }
.s-11 { grid-template-columns:1fr 1fr !important; margin-top:8px !important; }
.s-12 { padding:20px !important; }
.s-13 { font-size:36px !important; }
.s-14 { padding-bottom:48px !important; }
.s-15 { padding-top:24px !important; }
.s-16 { background:var(--bg-sky) !important; border-color:#d7efe9 !important; }
.s-17 { font-size:26px !important; }
.s-18 { margin-top:6px !important; }
.s-19 { width:100% !important; }
.s-20 { display:flex !important; gap:10px !important; align-items:center !important; }
.s-21 { height:30% !important; }
.s-22 { height:45% !important; }
.s-23 { height:40% !important; }
.s-24 { height:60% !important; }
.s-25 { height:75% !important; }
.s-26 { height:92% !important; }
.s-27 { margin-bottom:6px !important; }
.s-28 { font-weight:600 !important; font-size:14px !important; }
.s-29 { width:64% !important; }
.s-30 { margin-top:20px !important; gap:6px !important; }
.s-31 { gap:10px !important; }
.s-32 { padding:14px !important; }
.s-33 { font-weight:600 !important; font-size:14px !important; margin-top:10px !important; }
.s-34 { margin-top:14px !important; }
.s-35 { height:32px !important; }
.s-36 { width:58% !important; }
.s-37 { height:120px !important; }
.s-38 { height:90% !important; }
.s-39 { height:82% !important; }
.s-40 { height:70% !important; }
.s-41 { height:58% !important; }
.s-42 { height:46% !important; }
.s-43 { margin-top:22px !important; }
.s-44 { padding-top:40px !important; }
.s-45 { align-items:center !important; }
.s-46 { background:#fff !important; border-radius:var(--radius-lg) !important; box-shadow:var(--shadow-lg) !important; border:1px solid var(--line) !important; padding:28px !important; }
.s-47 { display:flex !important; gap:10px !important; margin-top:18px !important; }
.s-48 { flex:1 !important; }

/* ===== Ô đồng ý xử lý dữ liệu (Nghị định 13/2023) ===== */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-family: var(--sans); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; }
.consent .req { color: var(--warn); }

/* ===== Trang chính sách ===== */
.policy { max-width: 820px; font-size: 17px; }
.policy > div { display: grid; gap: 14px; }
.policy h2 { font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin-top: 18px; }
.policy a { color: var(--brand); text-decoration: underline; }
