/* =========================================================================
   Vinaweb – Trang Trợ lý AI tri thức cho toàn doanh nghiệp (pages/tro-ly-ai-tri-thuc.php)
   Nạp SAU about.css, gws.css và odoo.css: banner dùng phero, khối chữ–hình dùng od-*,
   hỏi đáp và thanh mục lục dùng gw-*. File này chỉ gồm phần riêng (tiền tố ka-).
   Màu nhấn của biểu tượng: đỏ thương hiệu + hổ phách, lục, lam, tím, ngọc, xanh Zalo.
   ========================================================================= */
.ka-hero, .kai { --ka-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); --ka-zalo: #0068ff; --ka-soft: #ff8a8e; }
.ka-h2 { margin-top: 22px; }
.ka-lead { margin-top: 18px; font-size: 16.5px; line-height: 1.75; }

/* ---------- Ô biểu tượng màu & ô loại tệp ---------- */
.ka-tile { --f: #ba131a; --b: #fde8e9; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--b); color: var(--f); }
.ka-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ka-tile img { width: 26px; height: 26px; }
.ka-tile--amber { --f: #b45309; --b: #fef1d6; }
.ka-tile--green { --f: #15803d; --b: #dcf5e6; }
.ka-tile--blue { --f: #2563eb; --b: #dfeafe; }
.ka-tile--violet { --f: #6d28d9; --b: #ece5fd; }
.ka-tile--teal { --f: #0f766e; --b: #d5f3ee; }
.ka-tile--zalo { --f: #0068ff; --b: #e0edff; }
.ka-ft { flex: none; display: inline-grid; place-items: center; width: 30px; height: 34px; border-radius: 6px 12px 6px 6px; background: #e5252a; color: #fff; font-size: 8.5px; font-weight: 800; font-style: normal; letter-spacing: .03em; line-height: 1; }
.ka-ft--doc { background: #2b7cd3; }
.ka-ft--xls { background: #1e9e5a; }
.ka-ft--ppt { background: #e8632b; }
.ka-src { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.ka-src span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e7e3d9; font-size: 12.5px; font-weight: 600; color: #363636; }
.ka-src .ka-ft { width: 24px; height: 27px; font-size: 7px; }
.ka-src--dark span { background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.ka-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--red); }
.ka-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease); }
.ka-more:hover svg { translate: 4px 0; }
@keyframes kaFloat { from { translate: 0 -6px; } to { translate: 0 8px; } }
@keyframes kaPulse { from { opacity: .9; scale: .92; } to { opacity: 0; scale: 1.25; } }
@keyframes kaBlink { 50% { opacity: 0; } }

/* ---------- Banner ---------- */
.ka-powered { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 7px 15px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); font-size: 13.5px; font-weight: 600; color: #fff; animation: pheroIn 1s var(--ease) both; }
.ka-powered img { width: 20px; height: 20px; }
.ka-ticks { display: grid; gap: 10px; max-width: 540px; margin-top: 18px; list-style: none; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); animation: pheroIn 1s var(--ease) .2s both; }
.ka-ticks li { position: relative; padding-left: 30px; }
.ka-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 19px; height: 19px; border-radius: 50%; background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ka-ticks b { color: #fff; font-weight: 700; }
.ka-hero .phero__actions { margin-top: 30px; }

.ka-shot { position: relative; padding: 10px 6px 96px 130px; }
/* Cô gái Vinaweb đứng bên trái, tay giới thiệu khung trợ lý */
.ka-host { position: absolute; z-index: 3; left: -128px; bottom: -110px; width: 500px; aspect-ratio: 1000 / 667; pointer-events: none; }
.ka-host img { position: relative; display: block; width: 100%; height: 100%; -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }
.ka-host__halo { position: absolute; left: 44%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,120,110,.34), rgba(237,28,36,.12) 55%, transparent); }
.ka-win { overflow: hidden; border-radius: 20px; background: #fff; color: var(--black); box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 40px 80px -30px rgba(0,0,0,.8); rotate: 1.2deg; }
.ka-win__bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid #eee; font-size: 14px; }
.ka-win__logo { display: grid; place-items: center; width: 28px; height: 31px; background: linear-gradient(150deg, #ed1c24, #ba131a); color: #fff; clip-path: var(--ka-hex); }
.ka-win__logo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ka-win__bar small { font-size: 12.5px; color: var(--gray); }
.ka-win__bar i { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.ka-win__body { display: grid; gap: 14px; padding: 20px 18px 18px; background: linear-gradient(180deg, #fff, #fbfaf6); }
.ka-b { margin: 0; max-width: 88%; padding: 12px 16px; font-size: 14.5px; line-height: 1.55; }
.ka-b p { margin: 0; }
.ka-b--me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--red); color: #fff; }
.ka-b--ai { border-radius: 16px 16px 16px 4px; background: var(--beige); color: var(--black); }
.ka-b mark { padding: 1px 5px; border-radius: 5px; background: #fde8e9; color: #ba131a; font-weight: 600; }
.ka-ask { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 7px 7px 7px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e7e3d9; font-size: 13.5px; color: var(--gray); }
.ka-ask > svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ka-ask span { flex: 1; }
.ka-ask b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; }
.ka-ask b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

.ka-orb { position: absolute; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 18px 34px -14px rgba(0,0,0,.65); animation: kaFloat 5s ease-in-out infinite alternate; }
.ka-orb img { width: 32px; height: 32px; }
.ka-orb::after { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 1px solid rgba(255,255,255,.22); animation: kaPulse 2.8s ease-out infinite; }
.ka-orb--1 { left: 96px; top: 64px; }
.ka-orb--2 { right: -20px; top: -18px; width: 66px; height: 66px; animation-delay: -1.5s; }
.ka-orb--2 img { width: 38px; height: 38px; }
.ka-orb--3 { right: -30px; top: 176px; animation-delay: -3s; }
.ka-orb--4 { left: 62%; top: -38px; width: 50px; height: 50px; border-radius: 14px; animation-delay: -2.2s; }
.ka-orb--4 img { width: 28px; height: 28px; }
.ka-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px; border-radius: 16px; background: #fff; color: var(--black); box-shadow: 0 22px 44px -20px rgba(0,0,0,.6); animation: kaFloat 6s ease-in-out infinite alternate; }
.ka-float p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--gray); }
.ka-float b { display: block; font-size: 13.5px; color: var(--black); }
.ka-float--b { right: -8px; bottom: 40px; gap: 0; animation-delay: -3s; }
.ka-float--b .ka-ft { margin-right: 4px; }
.ka-float--b p { margin-left: 8px; }

/* ---------- Dải nguồn dữ liệu chạy ngang ---------- */
.ka-logos { padding: 54px 0 46px; background: #fff; overflow: hidden; }
.ka-logos__title { margin: 0 auto 26px; padding: 0 16px; text-align: center; font-size: 16px; color: var(--gray); }
.ka-logos__title b { color: var(--black); }
.ka-marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ka-marquee__track { display: flex; gap: 14px; width: max-content; list-style: none; animation: kaMarquee 60s linear infinite; }
.ka-marquee:hover .ka-marquee__track { animation-play-state: paused; }
.ka-marquee li { display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 14px; border: 1px solid #ececec; background: #fff; font-size: 16px; font-weight: 600; color: var(--black); white-space: nowrap; }
.ka-marquee img { width: 30px; height: 30px; }
@keyframes kaMarquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- Giới thiệu: cụm ảnh + câu hỏi bay quanh ---------- */
.ka-intro { padding-top: 70px; }
.ka-collage { position: relative; padding: 0 40px 70px 0; }
.ka-collage figure { margin: 0; overflow: hidden; }
.ka-collage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ka-collage__main { aspect-ratio: 4 / 3.4; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(40,30,20,.45); }
.ka-collage__main img { transition: transform 1.2s var(--ease); }
.ka-collage:hover .ka-collage__main img { transform: scale(1.04); }
.ka-collage__sub { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border-radius: 18px; border: 6px solid #fff; box-shadow: 0 24px 40px -20px rgba(40,30,20,.5); }
.ka-q { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 16px 10px 11px; border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 18px 36px -18px rgba(40,30,20,.55); font-size: 13.5px; font-weight: 600; color: var(--black); animation: kaFloat 6s ease-in-out infinite alternate; }
.ka-q svg { width: 20px; height: 20px; fill: none; stroke: #b45309; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ka-q--1 { left: -18px; top: 26px; }
.ka-q--2 { right: 14px; top: 42%; animation-delay: -2s; }
.ka-q--2 svg { stroke: #2563eb; }
.ka-q--3 { left: 18px; bottom: 26px; animation-delay: -4s; background: linear-gradient(150deg, #ba131a, #7f070c); color: #fff; }
.ka-q--3 svg { stroke: #fff; }
.ka-pains, .ka-groups, .ka-zlist { display: grid; gap: 12px; margin-top: 26px; list-style: none; }
.ka-pains { grid-template-columns: 1fr 1fr; }
.ka-pains li, .ka-groups li, .ka-zlist li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 3px; align-items: start; padding: 16px; border-radius: 16px; background: var(--beige); transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), background .3s, box-shadow .3s; }
.ka-pains .ka-tile, .ka-groups .ka-tile, .ka-zlist .ka-tile { grid-row: span 2; }
.ka-pains b, .ka-groups b, .ka-zlist b { font-size: 16px; color: var(--black); }
.ka-pains li > span:last-child, .ka-groups li > span:last-child, .ka-zlist li > span:last-child { font-size: 14px; line-height: 1.55; color: var(--gray); }
@media (hover: hover) { .ka-pains li:hover, .ka-zlist li:hover { background: #fff; box-shadow: 0 0 0 1px #e7e3d9, 0 16px 30px -20px rgba(40,30,20,.35); } }
.ka-groups li { background: #fff; }

/* ---------- 6 tính năng: lưới thẻ có hình minh hoạ ---------- */
.ka-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 44px; }
.ka-card { --a: #ba131a; --t: #fdeeee; grid-column: span 5; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s; }
.ka-card--wide { grid-column: span 7; display: grid; grid-template-columns: 1fr 1.08fr; }
.ka-c-green { --a: #15803d; --t: #e6f7ed; } .ka-c-violet { --a: #6d28d9; --t: #f1ecfe; } .ka-c-amber { --a: #b45309; --t: #fef4de; }
.ka-c-blue { --a: #2563eb; --t: #e6effe; } .ka-c-zalo { --a: #0068ff; --t: #e3efff; }
@media (hover: hover) { .ka-card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -34px color-mix(in srgb, var(--a) 70%, #000); } }
.ka-card__text { padding: 28px 28px 22px; }
.ka-card h3 { margin-top: 18px; font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--black); }
.ka-card__text > p { margin-top: 10px; font-size: 15px; line-height: 1.65; }
.ka-art { margin: auto 0 0; padding: 22px 24px 26px; background: linear-gradient(180deg, transparent, var(--t) 40%); list-style: none; }
.ka-card--wide .ka-art { margin: 0; padding: 26px 24px; background: var(--t); display: flex; flex-direction: column; justify-content: center; }

.ka-find { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--a), 0 14px 26px -18px var(--a); font-size: 14px; font-weight: 600; color: var(--black); }
.ka-find svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--a); stroke-width: 2.2; stroke-linecap: round; }
.ka-find span::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -.18em; background: var(--a); animation: kaBlink 1s steps(1) infinite; }
.ka-hits, .ka-feed { display: grid; gap: 8px; margin-top: 12px; list-style: none; }
.ka-hits li, .ka-feed li { display: flex; align-items: center; gap: 11px; padding: 9px 12px 9px 9px; border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--black); }
.ka-hits li > span, .ka-feed li > span:not(.ka-tile) { flex: 1; min-width: 0; }
.ka-hits small, .ka-feed small { display: block; font-size: 11.5px; font-weight: 500; color: var(--gray); }
.ka-hits em { flex: none; padding: 3px 9px; border-radius: 999px; background: #f3f1ea; font-style: normal; font-size: 11px; font-weight: 700; color: var(--gray); }
.ka-hits li:first-child { box-shadow: 0 0 0 1.5px rgba(186,19,26,.35); }
.ka-hits li:first-child em { background: #fde8e9; color: #ba131a; }

.ka-art--roles { display: grid; gap: 8px; }
.ka-art--roles li { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; color: var(--black); }
.ka-art--roles li > i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }
.ka-art--roles li > span { flex: 1; }
.ka-art--roles em { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #f3f1ea; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--gray); white-space: nowrap; }
.ka-art--roles em.is-all { background: #dcf5e6; color: #15803d; }
.ka-art--roles em svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.ka-art--jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ka-art--jobs li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--black); }
.ka-art--jobs .ka-tile { width: 36px; height: 36px; border-radius: 10px; }
.ka-art--jobs .ka-tile svg { width: 18px; height: 18px; }

.ka-art--sync .ka-feed { margin-top: 0; }
.ka-feed .ka-tile { width: 30px; height: 34px; border-radius: 8px; }
.ka-feed .ka-tile svg { width: 16px; height: 16px; }
.ka-feed li > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.ka-grow { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 14px; padding: 0 2px 22px; }
.ka-grow span { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: color-mix(in srgb, #f59e0b calc(30% + var(--i) * 14%), #fff); transform-origin: bottom; }
.ka-card.is-in .ka-grow span { animation: kaBar .9s var(--ease) calc(var(--i) * 90ms + .3s) both; }
@keyframes kaBar { from { transform: scaleY(0); } }
.ka-grow small { position: absolute; left: 2px; bottom: 0; font-size: 11.5px; font-weight: 600; color: #92400e; }

.ka-art--apps { flex-direction: row !important; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; }
.ka-art--apps span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; background: #fff; box-shadow: 0 14px 26px -18px rgba(37,99,235,.7); animation: kaFloat 4.5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.7s); }
.ka-art--apps img { width: 32px; height: 32px; }
.ka-art--apps .ka-art__api { background: #363636; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; }

.ka-art--zalo { display: grid; gap: 8px; }
.ka-art--zalo p { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 13.5px; line-height: 1.5; color: var(--black); }
.ka-art--zalo p.is-me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--ka-zalo); color: #fff; }

/* ---------- Trải nghiệm theo phòng ban + Bảo mật (nền tối) ---------- */
.ka-demo-sec, .ka-trust { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec, 110px) 0; color: #fff; background: radial-gradient(900px 500px at 85% 0%, rgba(186,19,26,.45), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(186,19,26,.18), transparent 65%), #121212; }
.ka-demo-sec__hex { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0H42L56 24.25L42 48.5H14L0 24.25ZM56 24.25H84' fill='none' stroke='%23fff' stroke-opacity='.06'/%3E%3C/svg%3E") 0 0 / 84px 48.5px; }
.ka-demo-sec .badge, .ka-trust .badge { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; filter: none; }
.ka-demo-sec .h2, .ka-trust .h2 { margin-top: 22px; color: #fff; }
.ka-demo-sec .h2 em, .ka-trust .h2 em { color: var(--ka-soft); }
.ka-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.ka-head > div { max-width: 640px; }
.ka-head > p { max-width: 400px; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.72); }
.ka-demo { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-top: 48px; scroll-margin-top: 150px; }
.ka-demo__tabs { display: grid; gap: 8px; align-content: start; }
.ka-demo__tabs button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 14px 10px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.03); color: rgba(255,255,255,.78); font: inherit; font-size: 15.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background .3s, border-color .3s, color .3s, translate .3s var(--ease); }
.ka-demo__tabs button:hover { color: #fff; border-color: rgba(255,255,255,.25); translate: 4px 0; }
.ka-demo__tabs button[aria-selected="true"] { color: var(--black); border-color: transparent; background: #fff; box-shadow: 0 16px 30px -16px rgba(0,0,0,.8); }
.ka-demo__tabs .ka-tile { width: 40px; height: 40px; border-radius: 12px; }
.ka-demo__stage { position: relative; min-height: 400px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); overflow: hidden; }
.ka-pane { display: flex; flex-direction: column; height: 100%; min-height: 400px; }
.ka-pane[hidden] { display: none; }
.ka-pane.is-on { animation: kaPaneIn .5s var(--ease) both; }
@keyframes kaPaneIn { from { opacity: 0; translate: 0 12px; } }
.ka-pane__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.ka-pane__bar span { display: flex; align-items: center; gap: 10px; }
.ka-pane__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.ka-pane__bar img { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #fff; }
.ka-pane__chat { display: grid; gap: 16px; padding: 26px 24px; }
.ka-msg { margin: 0; max-width: 86%; padding: 14px 18px; border-radius: 18px; font-size: 15.5px; line-height: 1.6; }
.ka-msg p { margin: 0; }
.ka-msg--me { justify-self: end; border-bottom-right-radius: 5px; background: #fff; color: var(--black); }
.ka-msg--ai { display: flex; gap: 12px; align-items: flex-start; border-bottom-left-radius: 5px; background: rgba(255,255,255,.1); color: #fff; }
.ka-msg__av { flex: none; display: grid; place-items: center; width: 32px; height: 36px; background: linear-gradient(150deg, #ed1c24, #ba131a); color: #fff; clip-path: var(--ka-hex); }
.ka-msg__av svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ka-msg__text.is-typing::after { content: ""; display: inline-block; width: 7px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--ka-soft); animation: kaBlink .8s steps(1) infinite; }
.ka-pane__result { display: flex; align-items: center; gap: 10px; margin: auto 24px 24px; padding: 12px 16px; border-radius: 12px; background: rgba(61,220,132,.1); color: #9ff0c4; font-size: 14.5px; font-weight: 600; }
.ka-pane__result svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Phân quyền: đổi vai trò ---------- */
.ka-roles { max-width: 1040px; margin: 40px auto 0; scroll-margin-top: 150px; }
.ka-roles__switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 22px; background: var(--beige); }
.ka-roles__switch button { display: grid; gap: 2px; padding: 13px 16px; border: 0; border-radius: 17px; background: none; font: inherit; text-align: center; color: var(--gray); cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.ka-roles__switch b { font-size: 16px; color: var(--black); }
.ka-roles__switch small { font-size: 13px; }
.ka-roles__switch button:not([aria-pressed="true"]):hover { background: rgba(255,255,255,.7); }
.ka-roles__switch [aria-pressed="true"] { background: linear-gradient(150deg, #ba131a, #7f070c); color: rgba(255,255,255,.8); box-shadow: 0 16px 28px -16px rgba(186,19,26,.8); }
.ka-roles__switch [aria-pressed="true"] b { color: #fff; }
.ka-roles__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; margin-top: 18px; }
.ka-vault { padding: 22px; border-radius: 22px; background: var(--beige); }
.ka-vault__title { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--black); }
.ka-vault__title svg { width: 20px; height: 20px; fill: none; stroke: #b45309; stroke-width: 1.9; stroke-linejoin: round; }
.ka-vault__title span { margin-left: auto; padding: 4px 11px; border-radius: 999px; background: #dcf5e6; font-size: 12px; color: #15803d; }
.ka-vault ul { display: grid; gap: 8px; list-style: none; }
.ka-vault li { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 13px; background: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--black); transition: background .35s, opacity .35s; }
.ka-vault li > span { flex: 1; min-width: 0; transition: filter .35s; }
.ka-vault small { display: block; font-size: 12px; font-weight: 500; color: var(--gray); }
.ka-vault li > i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.ka-vault li > i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ka-vault__ok { background: #dcf5e6; color: #15803d; }
.ka-vault__lock { display: none !important; background: #e9e6de; color: #8a8578; }
.ka-roles[data-role="0"] .ka-vault li:not([data-min="0"]), .ka-roles[data-role="1"] .ka-vault li[data-min="2"] { background: rgba(255,255,255,.45); }
.ka-roles[data-role="0"] .ka-vault li:not([data-min="0"]) > span, .ka-roles[data-role="1"] .ka-vault li[data-min="2"] > span { filter: blur(4px); user-select: none; }
.ka-roles[data-role="0"] .ka-vault li:not([data-min="0"]) > .ka-ft, .ka-roles[data-role="1"] .ka-vault li[data-min="2"] > .ka-ft { filter: grayscale(1); opacity: .5; }
.ka-roles[data-role="0"] .ka-vault li:not([data-min="0"]) .ka-vault__ok, .ka-roles[data-role="1"] .ka-vault li[data-min="2"] .ka-vault__ok { display: none; }
.ka-roles[data-role="0"] .ka-vault li:not([data-min="0"]) .ka-vault__lock, .ka-roles[data-role="1"] .ka-vault li[data-min="2"] .ka-vault__lock { display: grid !important; }
.ka-reply { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 22px; color: #fff; background: radial-gradient(420px 260px at 100% 0%, rgba(186,19,26,.5), transparent 70%), #161616; }
.ka-reply__q { align-self: flex-end; max-width: 86%; margin: 0; padding: 13px 18px; border-radius: 18px 18px 5px 18px; background: #fff; font-size: 15.5px; line-height: 1.55; color: var(--black); }
.ka-reply__a { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px 18px 18px 5px; background: rgba(255,255,255,.1); animation: kaPaneIn .45s var(--ease) both; }
.ka-reply__a[hidden] { display: none; }
.ka-reply__a small { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ka-soft); }
.ka-reply__a p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.ka-reply__note { margin: auto 0 0; font-size: 12px; color: rgba(255,255,255,.45); }

/* ---------- Kết nối: sơ đồ lõi – nguồn dữ liệu ---------- */
.ka-hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ka-hub { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin-inline: auto; }
.ka-hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ka-hub__lines circle { fill: none; stroke: rgba(186,19,26,.16); stroke-width: .6; }
.ka-hub__lines line { stroke: rgba(186,19,26,.45); stroke-width: .7; stroke-dasharray: 2.4 3; animation: kaFlow 1.6s linear infinite; }
@keyframes kaFlow { to { stroke-dashoffset: -10.8; } }
.ka-hub__node { position: absolute; left: var(--x); top: var(--y); display: grid; place-items: center; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 18px; background: #fff; box-shadow: 0 16px 30px -18px rgba(40,30,20,.6); animation: kaNode 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .36s); }
.ka-hub__node img { width: 34px; height: 34px; }
@keyframes kaNode { 50% { scale: 1.1; } }
.ka-hub__core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; align-content: center; gap: 4px; width: 148px; height: 166px; margin: -83px 0 0 -74px; background: linear-gradient(155deg, #d2161e, #7f070c); color: #fff; text-align: center; clip-path: var(--ka-hex); }
.ka-hub__core svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.ka-hub__core b { font-size: 14.5px; line-height: 1.3; }

/* ---------- Trợ lý qua Zalo ---------- */
.ka-zalo { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.ka-zalo__kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ka-zalo); }
.ka-zalo__kicker img { width: 30px; height: 30px; padding: 4px; border-radius: 9px; background: #e0edff; }
.ka-zalo .ka-h2 { margin-top: 14px; }
.ka-zalo .btn { margin-top: 28px; }
.ka-phone-wrap { position: relative; display: grid; justify-items: end; padding: 30px 6px 30px 0; isolation: isolate; }
.ka-zgirl { position: absolute; z-index: 2; left: -70px; bottom: 30px; width: 250px; height: auto; filter: drop-shadow(0 24px 30px rgba(0,60,150,.28)); -webkit-mask: linear-gradient(#000 86%, transparent); mask: linear-gradient(#000 86%, transparent); }
.ka-phone-wrap::before { content: ""; position: absolute; inset: 0 10px; z-index: -1; border-radius: 40px; background: radial-gradient(closest-side, #cfe2ff, rgba(207,226,255,0) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0H42L56 24.25L42 48.5H14L0 24.25ZM56 24.25H84' fill='none' stroke='%230068ff' stroke-opacity='.14'/%3E%3C/svg%3E") center / 84px 48.5px; }
.ka-phone { width: 300px; overflow: hidden; border: 9px solid #1b1b1b; border-radius: 42px; background: #e8eef6; box-shadow: 0 40px 70px -34px rgba(0,60,150,.6); }
.ka-phone__top { display: flex; align-items: center; gap: 10px; padding: 26px 16px 13px; background: linear-gradient(120deg, #0068ff, #2a8bff); color: #fff; }
.ka-phone__av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--red); }
.ka-phone__av svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ka-phone__top p { margin: 0; line-height: 1.3; }
.ka-phone__top b { display: flex; align-items: center; gap: 5px; font-size: 14.5px; }
.ka-phone__top b svg { width: 15px; height: 15px; }
.ka-phone__top small { font-size: 11.5px; color: rgba(255,255,255,.8); }
.ka-phone__chat { display: grid; gap: 9px; padding: 16px 12px; }
.ka-z { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 14px; background: #fff; font-size: 13px; line-height: 1.5; color: #1f2937; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.ka-z--me { justify-self: end; background: #d5e9ff; }
.ka-z__file { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; background: #f1f5fb; font-size: 12px; font-weight: 600; }
.ka-z__file .ka-ft { width: 24px; height: 27px; font-size: 7px; }
.ka-z--typing { display: flex; gap: 4px; width: max-content; padding: 12px 14px; }
.ka-z--typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa7b8; animation: kaDot 1.2s ease-in-out infinite; }
.ka-z--typing i:nth-child(2) { animation-delay: .15s; } .ka-z--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kaDot { 30% { translate: 0 -4px; opacity: .5; } }
.ka-phone__input { display: flex; align-items: center; gap: 10px; padding: 10px 12px 16px; background: #fff; font-size: 13px; color: #9aa7b8; }
.ka-phone__input span { flex: 1; }
.ka-phone__input svg { width: 22px; height: 22px; fill: var(--ka-zalo); }
.ka-zbadge--a { position: absolute; right: 22px; top: 8px; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: #fff; box-shadow: 0 20px 36px -18px rgba(0,60,150,.6); animation: kaFloat 5s ease-in-out infinite alternate; }
.ka-zbadge--a img { width: 46px; height: 46px; }
.ka-zbadge--b { left: -60px; bottom: 14px; z-index: 4; box-shadow: 0 22px 44px -20px rgba(0,60,150,.5); animation-delay: -2.5s; }

/* ---------- Bảo mật: Gemini Enterprise ---------- */
.ka-trust { background: radial-gradient(620px 460px at 12% 18%, rgba(66,133,244,.26), transparent 65%), radial-gradient(900px 500px at 95% 0%, rgba(186,19,26,.5), transparent 60%), #121212; }
.ka-trust__top { display: grid; grid-template-columns: 340px 1fr; gap: 70px; align-items: center; }
.ka-trust__kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 7px 15px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 13.5px; font-weight: 600; }
.ka-trust .h2 { margin-top: 18px; }
.ka-trust__lead { max-width: 660px; margin-top: 18px; font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,.75); }
.ka-shield { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin-inline: auto; }
.ka-shield__ring { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 90.7 26.5v47L50 97 9.3 73.5v-47z' fill='none' stroke='%23fff' stroke-opacity='.22' stroke-width='.7' stroke-dasharray='3 3'/%3E%3C/svg%3E") center / contain no-repeat; animation: kaSpin 60s linear infinite; }
.ka-shield__ring:nth-child(2) { inset: 13%; animation-duration: 44s; animation-direction: reverse; opacity: .8; }
.ka-shield__ring:nth-child(3) { inset: 26%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 90.7 26.5v47L50 97 9.3 73.5v-47z' fill='%23fff' fill-opacity='.07' stroke='%23fff' stroke-opacity='.4' stroke-width='1'/%3E%3C/svg%3E"); animation: none; }
@keyframes kaSpin { to { rotate: 360deg; } }
.ka-shield__core { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 34%; aspect-ratio: 1 / 1.12; translate: -50% -50%; background: #fff; clip-path: var(--ka-hex); }
.ka-shield__core img { width: 52%; height: auto; }
.ka-shield__lock { position: absolute; left: 60%; top: 58%; display: grid; place-items: center; width: 46px; height: 51px; background: linear-gradient(150deg, #ed1c24, #ba131a); color: #fff; clip-path: var(--ka-hex); }
.ka-shield__lock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ka-shield__tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(28,28,28,.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: 12.5px; font-weight: 600; white-space: nowrap; animation: kaFloat 6s ease-in-out infinite alternate; }
.ka-shield__tag svg { width: 16px; height: 16px; fill: none; stroke: #6ee7a8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ka-shield__tag--a { left: -6px; top: 12%; }
.ka-shield__tag--b { right: -10px; bottom: 12%; animation-delay: -3s; }
.ka-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; list-style: none; }
.ka-trust__grid li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 20px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), background .3s, border-color .3s; }
.ka-trust__grid li:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.26); }
.ka-trust__grid li.is-main { border-color: transparent; background: linear-gradient(150deg, #ba131a, #7f070c); }
.ka-trust__ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; }
.ka-trust__ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ka-trust__grid b { font-size: 17.5px; line-height: 1.35; }
.ka-trust__grid li > span:last-child { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.75); }
.ka-trust__foot { margin: 28px 0 0; font-size: 14px; color: rgba(255,255,255,.55); }
.ka-trust__foot a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-weight: 700; color: #fff; }
.ka-trust__foot svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease); }
.ka-trust__foot a:hover svg { translate: 4px 0; }

/* ---------- Triển khai: thẻ ảnh thực tế ---------- */
.ka-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; padding: 0; list-style: none; }
.ka-step { position: relative; isolation: isolate; aspect-ratio: 4 / 3.3; border-radius: 20px; overflow: hidden; color: #fff; background: #222; transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), box-shadow .4s; }
.ka-step img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ka-step::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(10,10,10,.6) 55%, rgba(10,10,10,.94) 100%); transition: background .4s; }
.ka-step__no { position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 44px; height: 50px; background: var(--red); color: #fff; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; clip-path: var(--ka-hex); }
.ka-step__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.ka-step h3 { font-size: 19px; font-weight: 700; line-height: 1.35; }
.ka-step p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.9); }
@media (hover: hover) {
  .ka-step:hover img { transform: scale(1.07); }
  .ka-step:hover::after { background: linear-gradient(180deg, rgba(127,7,12,.1) 10%, rgba(127,7,12,.92) 100%); }
}
.ka-why { display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 32px; margin-top: 22px; padding: 14px 32px 14px 14px; border-radius: 24px; color: #fff; background: linear-gradient(150deg, #ba131a, #7f070c); }
.ka-why__photo { margin: 0; height: 170px; border-radius: 16px; overflow: hidden; }
.ka-why__photo img { width: 100%; height: 100%; object-fit: cover; }
.ka-why__kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.ka-why h3 { margin-top: 6px; font-size: 21px; font-weight: 700; line-height: 1.35; }
.ka-why h3 em { font-style: normal; color: #ffc59a; }
.ka-why__stats { display: flex; gap: 30px; margin-top: 14px; list-style: none; }
.ka-why__stats b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.ka-why__stats span { font-size: 13px; color: rgba(255,255,255,.78); }

.ka-faqgirl { position: relative; width: 250px; margin-top: 34px; }
.ka-faqgirl::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; z-index: 0; aspect-ratio: 1 / 1.12; background: linear-gradient(160deg, #fff, rgba(255,255,255,.35)); clip-path: var(--ka-hex); }
.ka-faqgirl img { position: relative; display: block; width: 100%; height: auto; -webkit-mask: linear-gradient(#000 88%, transparent); mask: linear-gradient(#000 88%, transparent); }
.ka-faqgirl span { position: absolute; left: 94%; top: -18px; padding: 10px 16px; border-radius: 16px 16px 16px 4px; background: linear-gradient(150deg, #ba131a, #7f070c); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; box-shadow: 0 16px 28px -16px rgba(186,19,26,.8); animation: kaFloat 5s ease-in-out infinite alternate; }
/* ---------- Hai điểm nổi bật: Zalo & bảo mật ---------- */
.ka-duo { padding: 56px 0 0; background: #fff; }
.ka-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ka-hl { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; min-height: 330px; padding: 32px 34px 30px; border-radius: 26px; color: #fff; transition: opacity .8s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s), transform .35s var(--ease), box-shadow .35s; }
.ka-hl--zalo { background: radial-gradient(420px 300px at 100% 100%, rgba(255,255,255,.28), transparent 70%), linear-gradient(140deg, #0052cc, #0068ff 45%, #3d95ff); box-shadow: 0 30px 50px -34px rgba(0,104,255,.9); }
.ka-hl--safe { background: radial-gradient(420px 300px at 100% 0%, rgba(186,19,26,.75), transparent 70%), radial-gradient(360px 260px at 0% 100%, rgba(66,133,244,.3), transparent 70%), #151515; box-shadow: 0 30px 50px -34px rgba(0,0,0,.9); }
.ka-hl::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M14 0H42L56 24.25L42 48.5H14L0 24.25ZM56 24.25H84' fill='none' stroke='%23fff' stroke-opacity='.09'/%3E%3C/svg%3E") 0 0 / 84px 48.5px; }
@media (hover: hover) { .ka-hl:hover { transform: translateY(-5px); } .ka-hl:hover .ka-hl__more svg { translate: 5px 0; } }
.ka-hl__kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px 6px 7px; border-radius: 999px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); font-size: 13.5px; font-weight: 700; }
.ka-hl__kicker img { width: 26px; height: 26px; padding: 3px; border-radius: 50%; background: #fff; }
.ka-hl h2 { margin-top: 18px; max-width: 62%; font-size: clamp(25px, 2.5vw, 32px); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: #fff; }
.ka-hl h2 em { font-style: normal; }
.ka-hl--zalo h2 em { padding: 0 10px 2px; border-radius: 10px; background: #fff; color: #0068ff; }
.ka-hl--safe h2 em { color: var(--ka-soft); }
.ka-hl--safe h2 em { white-space: nowrap; }
.ka-hl > p { margin-top: 12px; max-width: 60%; font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,.88); }
.ka-hl ul { display: grid; gap: 8px; margin-top: 16px; list-style: none; font-size: 15px; font-weight: 600; }
.ka-hl li { position: relative; padding-left: 28px; }
.ka-hl li::before { content: ""; position: absolute; left: 0; top: .15em; width: 19px; height: 19px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230068ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ka-hl--safe li::before { background-color: #22c55e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.ka-hl__more { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 22px; font-size: 15px; font-weight: 700; }
.ka-hl__more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--ease); }
.ka-hl__girl { position: absolute; right: 8px; bottom: -70px; z-index: -1; width: 230px; height: auto; filter: drop-shadow(0 20px 30px rgba(0,30,90,.45)); }
.ka-hl__lock { position: absolute; right: 26px; bottom: 30px; z-index: -1; display: grid; place-items: center; width: 210px; aspect-ratio: 1; }
.ka-hl__lock i { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 3 90.7 26.5v47L50 97 9.3 73.5v-47z' fill='none' stroke='%23fff' stroke-opacity='.3' stroke-width='.8' stroke-dasharray='3 3'/%3E%3C/svg%3E") center / contain no-repeat; animation: kaSpin 50s linear infinite; }
.ka-hl__lock i + i { inset: 15%; animation-direction: reverse; animation-duration: 36s; }
.ka-hl__lock b { display: grid; place-items: center; width: 44%; aspect-ratio: 1 / 1.12; background: linear-gradient(150deg, #ed1c24, #ba131a); clip-path: var(--ka-hex); }
.ka-hl__lock svg { width: 44%; height: auto; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ka-duo + .ka-logos { padding-top: 46px; }

/* Zalo: 3 bước dùng */
.ka-zsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 50px; padding: 8px; border-radius: 24px; background: linear-gradient(120deg, #0052cc, #0068ff 55%, #3d95ff); list-style: none; color: #fff; box-shadow: 0 30px 50px -36px rgba(0,104,255,.9); }
.ka-zsteps li { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 26px 18px 20px; }
.ka-zsteps li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .8; }
.ka-zsteps b { flex: none; display: grid; place-items: center; width: 46px; height: 51px; background: #fff; color: #0068ff; font-size: 20px; font-weight: 800; clip-path: var(--ka-hex); }
.ka-zsteps span { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.88); }
.ka-zsteps strong { display: block; font-size: 17px; color: #fff; }

/* Bảo mật: AI tự phát so với trợ lý AI tri thức */
.ka-vs { display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: stretch; gap: 14px; margin-top: 56px; }
.ka-vs__col { padding: 26px 28px; border-radius: 22px; }
.ka-vs__col--bad { border: 1px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.03); color: rgba(255,255,255,.62); }
.ka-vs__col--good { background: #fff; color: var(--black); box-shadow: 0 0 0 4px rgba(34,197,94,.35), 0 30px 60px -30px rgba(0,0,0,.8); }
.ka-vs__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17.5px; font-weight: 700; line-height: 1.35; }
.ka-vs__col--bad .ka-vs__title { color: rgba(255,255,255,.85); }
.ka-vs__title svg { flex: none; width: 24px; height: 24px; fill: none; stroke: #f87171; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ka-vs__col--good .ka-vs__title svg { stroke: #16a34a; }
.ka-vs ul { display: grid; gap: 12px; list-style: none; font-size: 15.5px; line-height: 1.55; }
.ka-vs li { position: relative; padding-left: 30px; }
.ka-vs li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: rgba(248,113,113,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m7 7 10 10M17 7 7 17'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ka-vs__col--good li::before { background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ka-vs__col--good b { color: #15803d; }
.ka-vs__mid { align-self: center; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); white-space: nowrap; }
.ka-vs + .ka-trust__grid { margin-top: 18px; }
@media (max-width: 1024px) {
  .ka-duo__grid { grid-template-columns: 1fr; }
  .ka-vs { grid-template-columns: 1fr; }
  .ka-vs__mid { justify-self: center; }
}
@media (max-width: 680px) {
  .ka-duo { padding-top: 34px; }
  .ka-hl { min-height: 0; padding: 24px 22px 24px; border-radius: 22px; }
  .ka-hl h2 { max-width: none; }
  .ka-hl > p { max-width: none; }
  .ka-hl__girl { right: -14px; bottom: -60px; width: 150px; }
  .ka-hl--zalo ul, .ka-hl--zalo .ka-hl__more { max-width: 62%; }
  .ka-hl__lock { right: -30px; bottom: -20px; width: 150px; opacity: .8; }
  .ka-zsteps { grid-template-columns: 1fr; margin-top: 34px; }
  .ka-zsteps li + li::before { left: 34px; top: -9px; margin: 0; rotate: 90deg; }
  .ka-vs { margin-top: 40px; }
  .ka-vs__col { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ka-hl__lock i { animation: none; } }

/* Hỏi đáp nền be để xen kẽ với khối Triển khai (nền trắng) phía trên */
.kai .gw-faq { background: var(--beige); }
.kai .gw-faq .gw-qa { background: #fff; }

@media (max-width: 1024px) {
  .ka-shot { max-width: 600px; margin-inline: auto; }
  .ka-phone-wrap { max-width: 440px; margin-inline: auto; }
  .ka-faqgirl { display: none; }
  .ka-collage { max-width: 620px; margin-inline: auto; }
  .ka-card, .ka-card--wide { grid-column: span 12; }
  .ka-card:not(.ka-card--wide) { display: grid; grid-template-columns: 1fr 1.08fr; }
  .ka-card:not(.ka-card--wide) .ka-art { margin: 0; padding: 26px 24px; background: var(--t); align-content: center; }
  .ka-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ka-demo { grid-template-columns: 1fr; }
  .ka-demo__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .ka-demo__tabs button:hover { translate: none; }
  .ka-hub-grid, .ka-zalo { grid-template-columns: 1fr; gap: 40px; }
  .ka-trust__top { grid-template-columns: 1fr; gap: 40px; }
  .ka-shield { max-width: 280px; }
  .ka-trust__grid { grid-template-columns: 1fr 1fr; }
  .ka-steps { grid-template-columns: 1fr 1fr; }
  .ka-why { grid-template-columns: 200px 1fr; }
  .ka-why .btn { grid-column: 1 / -1; justify-self: start; margin: 0 0 10px 6px; }
}
@media (max-width: 680px) {
  .ka-shot { padding: 10px 0 170px; }
  .ka-host { left: -70px; bottom: -40px; width: 330px; }
  .ka-orb { width: 46px; height: 46px; border-radius: 13px; }
  .ka-orb img { width: 26px; height: 26px; }
  .ka-orb--1 { display: none; }
  .ka-orb--2 { right: -6px; width: 52px; height: 52px; }
  .ka-orb--3 { right: -8px; top: 150px; }
  .ka-float--b { right: 0; bottom: 44px; }
  .ka-logos { padding: 40px 0 34px; }
  .ka-marquee li { padding: 9px 16px 9px 10px; font-size: 14px; }
  .ka-marquee img { width: 24px; height: 24px; }
  .ka-collage { padding: 0 18px 50px 0; }
  .ka-q { padding: 8px 12px 8px 9px; font-size: 12px; }
  .ka-q--1 { left: -6px; top: 14px; }
  .ka-q--2 { display: none; }
  .ka-pains { grid-template-columns: 1fr; }
  .ka-card, .ka-card--wide, .ka-card:not(.ka-card--wide) { display: flex; flex-direction: column; }
  .ka-card__text { padding: 22px 20px 18px; }
  .ka-card .ka-art, .ka-card:not(.ka-card--wide) .ka-art { padding: 20px 16px 22px; }
  .ka-art--apps span { width: 52px; height: 52px; border-radius: 15px; }
  .ka-demo__stage, .ka-pane { min-height: 0; }
  .ka-pane__chat { padding: 20px 16px; }
  .ka-msg { max-width: 94%; font-size: 14.5px; }
  .ka-pane__result { margin: 0 16px 18px; }
  .ka-roles__switch { border-radius: 18px; }
  .ka-roles__switch button { padding: 10px 6px; border-radius: 13px; }
  .ka-roles__switch b { font-size: 14px; }
  .ka-roles__switch small { display: none; }
  .ka-roles__grid { grid-template-columns: 1fr; }
  .ka-vault, .ka-reply { padding: 16px; }
  .ka-hub__node { width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 14px; }
  .ka-hub__node img { width: 26px; height: 26px; }
  .ka-hub__core { width: 112px; height: 126px; margin: -63px 0 0 -56px; }
  .ka-hub__core b { font-size: 12px; }
  .ka-phone-wrap { justify-items: center; padding-right: 0; }
  .ka-zgirl { display: none; }
  .ka-zbadge--a { right: 0; width: 58px; height: 58px; border-radius: 18px; }
  .ka-zbadge--a img { width: 38px; height: 38px; }
  .ka-zbadge--b { left: -4px; bottom: -8px; }
  .ka-trust__grid { grid-template-columns: 1fr; margin-top: 40px; }
  .ka-shield__tag--a { left: 0; } .ka-shield__tag--b { right: 0; }
  .ka-steps { grid-template-columns: 1fr; gap: 12px; }
  .ka-why { grid-template-columns: 1fr; padding: 14px 18px 20px 14px; gap: 18px; }
  .ka-why__stats { gap: 18px; }
  .ka-why__stats b { font-size: 22px; }
  .ka-why .btn { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ka-marquee__track, .ka-orb, .ka-orb::after, .ka-float, .ka-q, .ka-art--apps span, .ka-hub__lines line, .ka-hub__node, .ka-shield__ring, .ka-shield__tag, .ka-zbadge--a, .ka-z--typing i, .ka-find span::after { animation: none; }
}
