/* BSAP — trang giới thiệu */
:root {
  --blue: #00599D;
  --blue-600: #004B85;
  --blue-50: #EAF3FB;
  --blue-100: #D6E8F7;
  --navy: #1B3A5F;
  --orange: #F77F00;
  --orange-text: #B45309;
  --orange-50: #FFF4E5;
  --ink: #1E2228;
  --muted: #5F6875;
  --faint: #8A9099;
  --line: #E3E8F0;
  --line-soft: #EEF1F6;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --ok: #2E7D32;
  --ok-bg: #E8F5E9;
  --p-high: #D62828;
  --p-med: #F77F00;
  --p-low: #1F6FEB;
  --p-un: #8D99AE;
  --st-ns: #6B7688; --st-ns-bg: #F1F3F7;
  --st-ip: #B45309; --st-ip-bg: #FFF4E5;
  --st-co: #2E7D32; --st-co-bg: #E8F5E9;
  --st-na: #5B4B8A; --st-na-bg: #EFEBF7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 10px 30px -12px rgba(16, 42, 80, .22), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow-lg: 0 30px 60px -20px rgba(16, 42, 80, .35), 0 8px 20px -8px rgba(16, 24, 40, .12);
  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(0, 89, 157, .45); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 13px 24px; font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 89, 157, .7); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(0, 89, 157, .75); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(247, 127, 0, .7); }
.btn-orange:hover { transform: translateY(-2px); background: #E57400; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- thanh điều hướng ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; letter-spacing: .02em; flex: none; }
.brand .mark { width: 50px; height: 36px; }
.brand b { font-size: 23px; line-height: 1.05; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; line-height: 1.1; }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 8px 13px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--blue-50); }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #EEF2F7; }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.menu-btn { display: none; border: 0; background: #fff; width: 42px; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--orange)); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 64px; overflow: hidden;
  background: radial-gradient(1100px 600px at 85% 10%, #DCEBF8 0%, rgba(220, 235, 248, 0) 60%),
              radial-gradient(900px 500px at 0% 100%, #FFF1E2 0%, rgba(255, 241, 226, 0) 55%), #F9FBFE;
}
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(0, 89, 157, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 89, 157, .07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; pointer-events: none; animation: float 16s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: #BFDCF4; top: 8%; right: 6%; }
.blob.b2 { width: 260px; height: 260px; background: #FFD9AE; bottom: 6%; left: 34%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.06); } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--navy); }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-50); color: var(--orange); }
.eyebrow .dot svg { width: 12px; height: 12px; }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero h1 .hl { color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 .hl2 { background: linear-gradient(90deg, var(--orange), #FF9F43); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .under { position: absolute; left: 0; right: 0; bottom: -6px; height: 12px; color: var(--orange); }
.hero h1 .under path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 560px; }
.lead b { color: var(--ink); font-weight: 600; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--navy); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 40px; border-radius: 14px; border: 2px solid rgba(27, 58, 95, .25); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--navy); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* sân khấu hero: điện thoại + thẻ đầu ra */
.stage { position: relative; height: 620px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 612px; border-radius: 46px; padding: 11px; background: #0F1B2D;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3A52; flex: none;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #0F1B2D; z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #F9F9F9; display: flex; flex-direction: column; font-size: 12px; }
.out-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--navy); opacity: 0; transform: translateY(14px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease); z-index: 4; white-space: nowrap;
}
.out-card.show { opacity: 1; transform: none; }
.out-card small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.out-card .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.out-card .ck { width: 18px; height: 18px; color: var(--ok); margin-left: 4px; }
.fi.xl { background: #1D7044; } .fi.wd { background: #2B579A; } .fi.pdf { background: #C8372D; } .fi.map { background: var(--orange); } .fi.img { background: var(--blue); } .fi.zip { background: var(--navy); }
.stage .phone { transform: translateX(-96px); }
.oc1 { top: 150px; right: 0; } .oc2 { top: 236px; right: 18px; } .oc3 { top: 322px; right: 0; } .oc4 { top: 408px; right: 18px; }
.sync-pill { position: absolute; top: 18px; left: 50%; margin-left: -60px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; color: var(--navy); }
.sync-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(247, 127, 0, .18); transition: background .3s, box-shadow .3s; }
.sync-pill.ok i { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 125, 50, .18); }

/* ---------- màn hình minh hoạ ---------- */
.app-top { flex: none; padding: 34px 12px 8px; background: #fff; border-bottom: 1px solid #E6E6E2; }
.app-top .row1 { display: flex; align-items: center; gap: 8px; }
.app-top .logo { width: 26px; height: 18px; }
.app-top .bld { flex: 1; min-width: 0; }
.app-top .bld b { display: block; font-size: 12.5px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top .bld span { font-size: 10.5px; color: var(--muted); }
.app-top .st { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.app-top .st.wait { background: var(--orange); }
.app-top .bar { height: 2px; margin: 8px -12px -8px; background: linear-gradient(90deg, var(--orange) 0 28%, transparent 28%); }
.app-body { flex: 1; overflow: hidden; padding: 8px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.f-row { display: grid; grid-template-columns: 82px 1fr; align-items: center; background: #fff; border: 1px solid #EDEDEA; border-radius: 10px; min-height: 34px; overflow: hidden; }
.f-row > span { padding: 0 8px; color: var(--muted); font-size: 10.5px; font-weight: 600; background: #FEFEFE; align-self: stretch; display: flex; align-items: center; border-right: 1px solid #EDEDEA; }
.f-row > b { padding: 6px 8px; font-size: 11.5px; font-weight: 600; color: var(--ink); background: #F9F9F9; min-height: 100%; display: flex; align-items: center; gap: 6px; transition: background .35s; }
.f-row > b.miss { background: rgba(255, 221, 51, .18); color: var(--faint); font-weight: 500; }
.f-row > b.fill { animation: fillflash .7s var(--ease); }
@keyframes fillflash { 0% { background: rgba(46, 125, 50, .22); } 100% { background: #F9F9F9; } }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.choice { border: 1.5px solid #E3E8F0; border-radius: 9px; background: #fff; padding: 6px 2px 5px; text-align: center; font-size: 9.5px; font-weight: 600; color: var(--ink); transition: border-color .25s, box-shadow .25s, transform .25s; }
.choice .ic { width: 26px; height: 26px; margin: 0 auto 3px; border-radius: 50%; display: grid; place-items: center; background: var(--p-un); }
.choice .ic svg { width: 15px; height: 15px; }
.choice.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 89, 157, .18); transform: scale(1.03); }
.prio-row { display: flex; gap: 5px; }
.prio { flex: 1; border-radius: 8px; padding: 6px 0; text-align: center; font-size: 10px; font-weight: 700; border: 1.5px solid #E3E8F0; background: #fff; color: var(--muted); transition: all .25s; }
.prio.on.h { background: var(--p-high); border-color: var(--p-high); color: #fff; }
.mini-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.mini-photo div { position: relative; height: 62px; border-radius: 9px; overflow: hidden; border: 1px solid #E3E8F0; background: #EEE; }
.mini-photo div svg { width: 100%; height: 100%; }
.mini-photo div em { position: absolute; left: 4px; bottom: 3px; font-style: normal; font-size: 8.5px; font-weight: 700; color: #fff; background: rgba(15, 27, 45, .65); padding: 1px 5px; border-radius: 4px; }
.app-foot { flex: none; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px 8px 16px; background: #FEFEFE; border-top: 1px solid #E6E6E2; }
.app-foot span { border: 1px solid #E3E8F0; border-radius: 10px; text-align: center; padding: 8px 0; font-size: 11px; font-weight: 700; color: var(--navy); background: #fff; }
.app-foot span.save { background: var(--blue); border-color: var(--blue); color: #fff; transition: transform .15s, background .2s; }
.app-foot span.save.press { transform: scale(.93); background: var(--blue-600); }
.toast { position: absolute; left: 10px; right: 10px; bottom: 8px; padding: 9px 11px; border-radius: 11px; background: #12263F; color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(10px); transition: all .35s var(--ease); }
.toast svg { width: 14px; height: 14px; color: #6EE7A0; flex: none; }
.toast.show { opacity: 1; transform: none; }

/* ---------- section chung ---------- */
section { position: relative; }
.sec { padding: 112px 0; }
.sec-alt { background: #fff; }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--orange); }
.sec-head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.025em; }
.sec-head p { margin-top: 16px; font-size: 17.5px; color: var(--muted); }
.tag-demo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--orange-50); color: var(--orange-text); font-size: 12px; font-weight: 700; }

/* xuất hiện khi cuộn */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- dải số ---------- */
.facts { margin-top: -54px; position: relative; z-index: 5; }
.facts-card { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 26px 22px; border-right: 1px solid var(--line-soft); }
.fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 34px; font-weight: 800; color: var(--blue); letter-spacing: -.02em; line-height: 1.1; }
.fact b em { font-style: normal; color: var(--orange); }
.fact > span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* ---------- trước / sau ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.cmp { border-radius: var(--radius); padding: 30px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cmp.bsap { background: linear-gradient(160deg, #F1F8FF, #fff 60%); border-color: var(--blue-100); box-shadow: var(--shadow); }
.cmp h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.cmp h3 .pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F1F3F7; color: var(--muted); }
.cmp.bsap h3 .pill { background: var(--blue); color: #fff; }
.cmp ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.cmp li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.cmp li .i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.cmp li .i svg { width: 16px; height: 16px; }
.cmp.old li .i { background: #FDEDEB; color: #C0392B; }
.cmp.bsap li .i { background: var(--ok-bg); color: var(--ok); }
.cmp li small { display: block; color: var(--muted); font-size: 13.5px; }
.cmp-arrow { display: grid; place-items: center; }
.cmp-arrow div { width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(247, 127, 0, .8); animation: nudge 2.4s ease-in-out infinite; }
.cmp-arrow svg { width: 28px; height: 28px; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.cmp-note { margin-top: 18px; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- quy trình ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.flow-line { position: absolute; top: 34px; left: 10%; right: 10%; height: 3px; background: var(--line); border-radius: 3px; }
.flow-line i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width 2.2s var(--ease); }
.flow.in .flow-line i { width: 100%; }
/* quy trình */
.flow-line .pulse { position: absolute; top: -2px; left: 0; width: 64px; height: 7px; margin-left: -32px; border-radius: 7px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 55%, rgba(255, 255, 255, 0)); box-shadow: 0 0 14px 3px rgba(62, 160, 240, .45); transition: opacity .3s; }
.flow-line .pulse.on { opacity: 1; }
/* bước nhận dữ liệu: nhấc nhẹ + tick xanh */
.step .n { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step.hit .n { transform: translateY(-3px); box-shadow: 0 0 0 2px rgba(0, 89, 157, .22), var(--shadow); }
.step .tick { position: absolute; left: -7px; bottom: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: #fff; border: 3px solid #fff;
  display: grid; place-items: center; transform: scale(0); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.step .n .tick svg { width: 13px; height: 13px; }
.step .tick path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .2s; }
.step.done .tick { transform: scale(1); opacity: 1; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
.step.done .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .35s .15s ease-out; }
.flow.all-done .step .tick { box-shadow: 0 0 0 4px rgba(46, 125, 50, .12); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step .n { position: relative; z-index: 1; width: 70px; height: 70px; margin: 0 auto; border-radius: 22px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue); transition: transform .3s var(--ease); }
.step:hover .n { transform: translateY(-4px) rotate(-3deg); }
.step .n svg { width: 30px; height: 30px; }
.step .n em { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; font-style: normal; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; border: 3px solid var(--bg); }
.sec-alt .step .n em { border-color: #fff; }
.step h3 { margin-top: 18px; font-size: 17px; }
.step .who { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: 2px 9px; border-radius: 999px; }
.step p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- Field showcase ---------- */
.show { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { border: 0; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: 0 8px 18px -8px rgba(27, 58, 95, .7); }
.panel-text { margin-top: 28px; min-height: 290px; }
.panel-text h3 { font-size: 26px; }
.panel-text > p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; }
.ticks li svg { width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }
.ticks li b { color: var(--ink); }
.fade-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.show .phone { margin: 0 auto; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .35s; }
.scr.on { opacity: 1; pointer-events: auto; }

/* map trong điện thoại + bản đồ tương tác */
.plan-wrap { position: relative; flex: 1; background: #fff; border-radius: 10px; border: 1px solid #E3E8F0; overflow: hidden; touch-action: manipulation; }
.plan-wrap svg.plan { width: 100%; height: 100%; }
.mk { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); border: 2px solid #fff; cursor: pointer; transition: transform .2s var(--ease); }
.mk svg { width: 14px; height: 14px; }
.mk:hover, .mk.sel { transform: scale(1.25); z-index: 2; }
.mk.pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
.mk.dim { opacity: .18; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 10px; color: var(--muted); padding: 6px 2px 0; }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* danh sách trong điện thoại */
.li-card { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid #EDEDEA; border-radius: 10px; padding: 7px 8px; }
.li-card .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.li-card .ic svg { width: 16px; height: 16px; }
.li-card b { font-size: 11.5px; color: var(--navy); display: block; }
.li-card span { font-size: 10px; color: var(--muted); }
.li-card em { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.li-card em.w { background: var(--orange-50); color: var(--orange-text); }
.chip-row { display: flex; gap: 5px; overflow: hidden; }
.chip-row span { flex: none; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid #E3E8F0; color: var(--muted); }
.chip-row span.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- bản đồ khuyết tật tương tác (section riêng) ---------- */
.mapdemo { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: stretch; }
.map-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fchip { border: 0; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #F1F3F7; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.fchip i { width: 9px; height: 9px; border-radius: 50%; }
.fchip[aria-pressed="true"] { background: var(--navy); color: #fff; }
.map-tools .sp { flex: 1; }
.map-hint { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.map-hint svg { width: 16px; height: 16px; color: var(--orange); }
.map-card .plan-wrap { aspect-ratio: 16 / 10; flex: none; cursor: crosshair; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.side-card h3 { font-size: 18px; }
.dcard { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dcard .ph { height: 150px; position: relative; background: #DDD; }
.dcard .ph svg { width: 100%; height: 100%; }
.dcard .meta { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; }
.dcard .meta span { color: var(--muted); font-size: 11.5px; display: block; }
.dcard .meta b { font-weight: 600; }
.dcard .hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.dcard .hd .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.dcard .hd .ic svg { width: 17px; height: 17px; }
.dcard .hd b { font-size: 16px; color: var(--navy); }
.dcard .hd small { margin-left: auto; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; color: #fff; }
.stats-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats-mini div { text-align: center; border-radius: 12px; background: #F6F8FB; padding: 10px 4px; }
.stats-mini b { display: block; font-size: 20px; }
.stats-mini span { font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- ảnh ---------- */
.photo-demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ph-frame { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.ph-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 3px solid var(--orange); background: #fff; transition: all .4s; }
.ph-head .logo { width: 34px; height: 24px; }
.ph-head div { flex: 1; min-width: 0; }
.ph-head b { display: block; font-size: 13.5px; color: var(--navy); }
.ph-head span { font-size: 11.5px; color: var(--muted); }
.ph-img { position: relative; aspect-ratio: 4 / 3; background: #CFCAC0; }
.ph-img svg.wall { width: 100%; height: 100%; }
.ph-img svg.marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph-img svg.marks .mk-draw { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.1s var(--ease); }
.ph-frame.marks-on svg.marks .mk-draw { stroke-dashoffset: 0; }
.ph-foot { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px 14px; padding: 10px 14px; font-size: 12px; background: #fff; transition: all .4s; }
.ph-foot span { color: var(--muted); }
.ph-foot b { color: var(--ink); font-weight: 600; }
.ph-frame.clean .ph-head, .ph-frame.clean .ph-foot { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; }
.ph-head, .ph-foot { max-height: 80px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #EEF2F7; margin-top: 22px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }

/* ---------- đầu ra ---------- */
.outputs { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.export-box { background: #0F1F35; color: #DCE7F5; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg); font-size: 13.5px; position: sticky; top: calc(var(--nav-h) + 20px); }
.export-box .top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.export-box .top b { color: #fff; font-size: 15px; }
.export-box .top span { color: #8FA6C3; font-size: 12.5px; }
.export-box .btn { margin-left: auto; }
.ex-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 14px; }
.ex-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3EA0F0, var(--orange)); transition: width .3s linear; }
.ex-status { font-size: 12.5px; color: #8FA6C3; min-height: 20px; margin-bottom: 10px; }
.tree { list-style: none; margin: 0; padding: 0; font: 12.8px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.tree li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; opacity: .25; transition: opacity .35s, background .2s; white-space: nowrap; overflow: hidden; }
.tree li.on { opacity: 1; }
.tree li:hover { background: rgba(255, 255, 255, .06); }
.tree li .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tree li em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(62, 160, 240, .18); color: #8CC8FF; font-family: "Be Vietnam Pro", sans-serif; flex: none; }
.tree .ind1 { padding-left: 26px; } .tree .ind2 { padding-left: 46px; }
.tree svg { width: 16px; height: 16px; flex: none; }
.out-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ocard { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.ocard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ocard .top { display: flex; align-items: center; gap: 12px; }
.ocard .code { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--blue); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; }
.ocard h3 { font-size: 16.5px; }
.ocard p { margin-top: 10px; font-size: 14px; color: var(--muted); }
.ocard .pv { margin-top: 14px; height: 120px; border-radius: 12px; background: #F6F8FB; border: 1px solid var(--line-soft); overflow: hidden; position: relative; }
.ocard.wide { grid-column: span 2; }
.outputs > *, .out-grid > *, .mapdemo > *, .show > *, .platform > *, .trace > *, .photo-demo > * { min-width: 0; }
.xl-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.xl-table th { background: #1F3864; color: #fff; font-weight: 600; padding: 4px 5px; text-align: left; white-space: nowrap; }
.xl-table td { padding: 3.5px 5px; border-bottom: 1px solid #E6EAF0; white-space: nowrap; color: var(--ink); }
.xl-table tr:nth-child(even) td { background: #F4F7FB; }
.doc-page { position: absolute; inset: 10px 18px; background: #fff; box-shadow: var(--shadow-sm); border-radius: 4px; padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.doc-page div { border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.doc-page div svg { flex: 1; width: 100%; }
.doc-page div i { display: block; height: 5px; margin-top: 3px; border-radius: 3px; background: #E3E8F0; }
.doc-page div i + i { width: 60%; }

/* ---------- thiết bị ---------- */
.devices-fit { position: relative; height: 440px; overflow: hidden; padding-top: 8px; }
.devices { position: relative; height: 440px; width: 980px; margin: 0 auto; transform-origin: top left; }
.dv { position: absolute; transition: transform .5s var(--ease); }
.dv:hover { transform: translateY(-8px); }
.laptop { left: 6%; top: 10px; width: 62%; }
.laptop .lid { border-radius: 16px 16px 0 0; background: #0F1B2D; padding: 12px 12px 14px; }
.laptop .base { height: 16px; margin: 0 -6%; background: linear-gradient(#DCE2EA, #B8C1CD); border-radius: 0 0 16px 16px; }
.dv-screen { background: #F9F9F9; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 10; display: flex; flex-direction: column; font-size: 9px; }
.tablet { right: 4%; top: 40px; width: 30%; background: #0F1B2D; border-radius: 22px; padding: 10px; }
.tablet .dv-screen { aspect-ratio: 3 / 4; border-radius: 13px; }
.mphone { right: 30%; bottom: 0; width: 14%; background: #0F1B2D; border-radius: 22px; padding: 6px; }
.mphone .dv-screen { aspect-ratio: 9 / 19; border-radius: 17px; }
.dv-label { position: absolute; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; z-index: 3; }
.dv-label i { width: 8px; height: 8px; border-radius: 50%; }
.o-bar { display: flex; align-items: center; gap: 6px; padding: 6px 9px; background: #fff; border-bottom: 2px solid var(--orange); }
.o-bar b { color: var(--navy); font-size: 9.5px; }
.o-bar span { margin-left: auto; font-size: 8px; color: var(--muted); }
.o-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 5px; padding: 6px; align-content: start; }
.o-kpi { background: #fff; border-radius: 5px; border: 1px solid #EEF1F6; padding: 5px 6px; }
.o-kpi b { display: block; font-size: 13px; }
.o-kpi span { font-size: 7px; color: var(--muted); }
.o-tbl { grid-column: span 4; background: #fff; border-radius: 5px; border: 1px solid #EEF1F6; overflow: hidden; }
.o-tbl div { display: grid; grid-template-columns: 1.1fr 2fr 1fr 1fr; gap: 4px; padding: 3.5px 6px; border-bottom: 1px solid #F1F3F7; font-size: 7.5px; align-items: center; }
.o-tbl div:first-child { background: #F6F8FB; font-weight: 700; color: var(--muted); }
.o-tbl em { font-style: normal; font-weight: 700; font-size: 7px; padding: 1px 5px; border-radius: 999px; justify-self: start; }
.roles-3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 980px) { .roles-3 { grid-template-columns: 1fr !important; } }
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.role { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.role .ri { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.role .ri svg { width: 22px; height: 22px; }
.role h3 { margin-top: 14px; font-size: 17px; }
.role .who { font-size: 12px; font-weight: 700; color: var(--orange-text); margin-top: 3px; }
.role p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- đám mây / kiến trúc ---------- */
.arch { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 0; align-items: center; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 36px 30px; position: relative; overflow: hidden; }
.arch-col { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.node { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.node .ni { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #fff; }
.node .ni svg { width: 20px; height: 20px; }
.node b { display: block; font-size: 14.5px; color: var(--navy); }
.node span { font-size: 12.5px; color: var(--muted); }
.core { margin: 0 34px; border-radius: 22px; padding: 22px; background: linear-gradient(160deg, #0D2A4C, #154A80); color: #DCE7F5; box-shadow: 0 30px 60px -24px rgba(13, 42, 76, .7); position: relative; z-index: 1; }
.core h3 { color: #fff; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.core h3 svg { width: 24px; height: 24px; color: #7CC4FF; }
.core-list { margin-top: 14px; display: grid; gap: 8px; }
.core-list div { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.core-list svg { width: 18px; height: 18px; color: #7CC4FF; flex: none; }
.core-list b { color: #fff; font-weight: 600; }
.arch svg.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.arch svg.links path { fill: none; stroke: #B8D3EC; stroke-width: 2; stroke-dasharray: 6 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.feat { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.feat .fi2 { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.feat .fi2.o { background: var(--orange-50); color: var(--orange); }
.feat .fi2 svg { width: 21px; height: 21px; }
.feat h3 { margin-top: 14px; font-size: 16px; }
.feat p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ---------- truy vết ---------- */
.trace { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 30px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline li.o::before { border-color: var(--orange); }
.timeline li.g::before { border-color: var(--ok); }
.timeline .t { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.timeline b { display: block; margin-top: 2px; font-size: 15px; color: var(--navy); }
.timeline p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.timeline code { font: 600 12.5px ui-monospace, Consolas, monospace; background: #F1F3F7; padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.trace-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }

/* ---------- trạng thái + nền tảng ---------- */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.dash { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.dash h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.dash h3 .live { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.dash-body { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; margin-top: 18px; }
.donut { width: 170px; height: 170px; position: relative; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; transition: stroke-dasharray 1.4s var(--ease); }
.donut .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .c b { font-size: 30px; color: var(--navy); line-height: 1; }
.donut .c span { font-size: 12px; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-weight: 700; }
.bars { margin-top: 20px; display: grid; gap: 9px; }
.bars div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.bars s { display: block; height: 8px; border-radius: 8px; background: #EEF2F7; overflow: hidden; text-decoration: none; }
.bars s i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 1.4s var(--ease); }
.bars b { color: var(--ink); text-align: right; }
.future { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fcard { border-radius: var(--radius); padding: 20px; background: #fff; border: 1.5px dashed #C9D6E6; position: relative; transition: border-color .3s, transform .3s var(--ease); }
.fcard:hover { border-color: var(--blue); transform: translateY(-3px); }
.fcard .fi2 { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.fcard .fi2 svg { width: 20px; height: 20px; }
.fcard h3 { margin-top: 12px; font-size: 15.5px; }
.fcard p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.fcard .soon { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: var(--muted); background: #F1F3F7; padding: 2px 8px; border-radius: 999px; }
.fcard.now { border-style: solid; border-color: var(--blue-100); background: linear-gradient(160deg, #F3F9FF, #fff); }
.fcard.now .soon { background: var(--ok-bg); color: var(--ok); }

/* ---------- quy mô ---------- */
.scale { background: linear-gradient(135deg, #0D2A4C 0%, #00599D 100%); color: #DCE7F5; overflow: hidden; }
.scale .sec-head h2 { color: #fff; }
.scale .sec-head p { color: #B9CDE4; }
.scale .kicker { color: #FFB46B; }
.scale-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sc { border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.sc b { display: block; font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.05; }
.sc b em { font-style: normal; font-size: 20px; color: #FFB46B; margin-left: 4px; }
.sc > span { display: block; margin-top: 8px; font-size: 14px; color: #B9CDE4; }
.scale-rings { position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02); pointer-events: none; }
.scale-note { margin-top: 22px; font-size: 13px; color: #9FB6D2; text-align: center; }

/* ---------- dự án ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proj { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.proj:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.proj .cover { height: 160px; position: relative; overflow: hidden; }
.proj .cover svg { width: 100%; height: 100%; }
.proj .cover .st { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.proj .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj h3 { font-size: 17px; }
.proj .loc { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.proj .loc svg { width: 14px; height: 14px; }
.proj p { font-size: 14px; color: var(--muted); }
.proj .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 6px; }
.proj .nums div { background: #F6F8FB; border-radius: 10px; padding: 8px; text-align: center; }
.proj .nums b { display: block; font-size: 17px; color: var(--navy); }
.proj .nums span { font-size: 11px; color: var(--muted); font-weight: 600; }
.proj .pbar { height: 7px; border-radius: 7px; background: #EEF2F7; overflow: hidden; }
.proj .pbar i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--blue), #3EA0F0); transition: width 1.4s var(--ease); }
.proj .prow { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- lợi ích ---------- */
.ben-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ben { border-radius: var(--radius); padding: 26px; background: #fff; border: 1px solid var(--line); }
.ben .bi { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), #2C86CF); color: #fff; display: grid; place-items: center; }
.ben .bi svg { width: 24px; height: 24px; }
.ben:nth-child(even) .bi { background: linear-gradient(135deg, var(--orange), #FFA040); }
.ben h3 { margin-top: 16px; font-size: 18px; }
.ben p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.ben-note { margin-top: 22px; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.qa { background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.qa[open] { box-shadow: var(--shadow); border-color: var(--blue-100); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 14px; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; margin-left: auto; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300599D' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }
.qa .ans b { color: var(--ink); }

/* ---------- liên hệ ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; background: linear-gradient(135deg, #F1F8FF, #FFF7EE); border-radius: 28px; padding: 48px; border: 1px solid var(--line); }
.contact h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; }
.contact .lead { margin-top: 14px; }
.cinfo { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.cinfo li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.cinfo .ci { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--blue); flex: none; }
.cinfo .ci svg { width: 19px; height: 19px; }
.cinfo li > span:last-child > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.form { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.form label.full { grid-column: span 2; }
.form input, .form textarea, .form select { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 15px; font-weight: 500; background: #FBFCFE; transition: border-color .2s, box-shadow .2s; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 89, 157, .12); background: #fff; }
.form textarea { min-height: 104px; resize: vertical; }
.form .actions { grid-column: span 2; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form .actions small { color: var(--muted); font-size: 12.5px; }
.form-ok { grid-column: span 2; display: none; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.form-ok svg { width: 22px; height: 22px; flex: none; }
.form.sent .form-ok { display: flex; }

/* ---------- footer ---------- */
.foot { padding: 56px 0 36px; background: #0D1E33; color: #9FB0C6; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .brand { color: #fff; }
.foot .brand small { color: #8EA2BC; }
.foot p { margin-top: 14px; max-width: 340px; }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #9FB0C6; transition: color .2s; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: all .3s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* logo */
.logo-anim .bsap-1, .logo-anim .bsap-2 path { transform-box: fill-box; transform-origin: bottom; animation: rise .9s var(--ease) both; }
.logo-anim .bsap-2-1 { animation-delay: .1s !important; } .logo-anim .bsap-2-2 { animation-delay: .18s !important; }
.logo-anim .bsap-2-3 { animation-delay: .24s !important; } .logo-anim .bsap-2-4 { animation-delay: .3s !important; }
.logo-anim .bsap-3, .logo-anim .bsap-4 { transform-box: fill-box; transform-origin: left center; animation: sweep 1s .35s var(--ease) both; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sweep { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* ---------- responsive ---------- */
.nav-links a { white-space: nowrap; }
@media (max-width: 1140px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 4px; padding: 14px 16px 20px; margin: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); box-shadow: 0 12px 24px -12px rgba(16, 24, 40, .25); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
  .nav.open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.open { background: #fff; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .menu-btn { display: inline-flex; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  .scale-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  :root { --nav-h: 62px; }
  .nav-right .btn { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .stage { height: 600px; }
  .stage .phone { transform: none; }
  .oc1 { top: 96px; right: auto; left: calc(50% - 250px); } .oc2 { top: 210px; right: calc(50% - 260px); }
  .oc3 { top: auto; bottom: 150px; right: auto; left: calc(50% - 260px); } .oc4 { top: auto; bottom: 46px; right: calc(50% - 250px); }
  .facts-card { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .compare { grid-template-columns: 1fr; }
  .cmp-arrow div { transform: rotate(90deg); animation: none; }
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow-line { display: none; }
  .step { display: grid; grid-template-columns: 70px 1fr; gap: 16px; text-align: left; align-items: start; }
  .step .n { margin: 0; }
  .step h3 { margin-top: 4px; }
  .show, .mapdemo, .photo-demo, .outputs, .trace, .platform, .contact { grid-template-columns: 1fr; }
  .export-box { position: relative; top: 0; }
  .arch { grid-template-columns: 1fr; gap: 18px; padding: 24px 18px; }
  .core { margin: 0; }
  .arch svg.links { display: none; }
  .proj-grid, .ben-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 38px; }
  .nav .brand { display: grid; grid-template-columns: 40px auto; justify-content: start; justify-items: start; align-items: center; column-gap: 7px; row-gap: 2px; }
  .nav .brand > span { display: contents; }
  .nav .brand .mark { width: 40px; height: 29px; }
  .nav .brand b { font-size: 26px; line-height: 1; letter-spacing: .03em; }
  .nav .brand small { grid-column: 1 / -1; font-size: 9.5px; font-weight: 600; letter-spacing: .015em; line-height: 1; white-space: nowrap; color: var(--muted); }
  .hero { padding-bottom: 80px; }
  .stage { height: 640px; padding-top: 28px; }
  .sync-pill { top: 0; }
  .out-card .fi { font-size: 9px; }
  .out-card { font-size: 12px; padding: 8px 10px 8px 8px; }
  .out-card .fi { width: 30px; height: 30px; }
  .oc1 { left: 0; } .oc2 { right: 0; } .oc3 { left: 0; } .oc4 { right: 0; }
  .out-card small, .out-card .ck { display: none; }
  .out-card { width: max-content; height: auto; }
  .facts-card { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 1px solid var(--line-soft) !important; border-top: 1px solid var(--line-soft); padding: 20px 16px; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(even) { border-right: 0 !important; }
  .fact:last-child { grid-column: span 2; border-right: 0 !important; }
  .fact b { font-size: 28px; }
  .ticks { grid-template-columns: 1fr; }
  .feat-grid, .roles, .proj-grid, .ben-grid, .future, .out-grid { grid-template-columns: 1fr; }
  .feat, .ben, .role { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px; }
  .feat > div, .ben > div, .role > div:first-child { grid-row: span 3; }
  .feat h3, .ben h3, .role h3 { margin-top: 0; }
  .feat p, .ben p, .role p { margin-top: 4px; }
  .ben .bi, .role .ri { width: 44px; height: 44px; }
  .ocard.wide { grid-column: auto; }
  .scale-grid { grid-template-columns: 1fr 1fr; }
  .sc { padding: 18px; } .sc b { font-size: 30px; }
  .dash-body { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
  .contact { padding: 26px 18px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form label.full, .form .actions, .form-ok { grid-column: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .dv-label { display: none; }
  .mk { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .mk svg { width: 11px; height: 11px; }
  .stats-mini b { font-size: 17px; }
  .tab { padding: 9px 13px; font-size: 13px; }
}
@media (max-width: 349px) { .nav .brand small { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
