:root {
    --navy: #0b173f;
    --primary: #1e3150;
    --secondary: #6b7a93;
    --line: #e7eaf0;
    --bg: #f5f6fa;
    --green: #2ec060;
    --green-d: #1fa84d;
    --green-l: #e8f8ee;
    --accent: #00b1ff;
    --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--primary); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* ---------- language toggle (spans inline, blocks block) ---------- */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"], html[lang="vi"] [data-lang="vi"] { display: block; }
html[lang="en"] span[data-lang="en"], html[lang="vi"] span[data-lang="vi"] { display: inline; }

/* ---------- shared header (privacy / terms pages) ---------- */
header { background: #fff; border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 20px; color: var(--primary); text-decoration: none; }
.brand img { display: block; height: 32px; width: auto; }
nav a { margin-left: 20px; color: var(--primary); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--green-d); }
.btn-lang { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 12px; cursor: pointer; font-size: 13px; color: var(--primary); font-family: inherit; }
.btn-lang:hover { border-color: var(--green); }
main { padding: 32px 0 56px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.muted { color: var(--secondary); font-size: 13px; }
footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; text-align: center; font-size: 13px; color: var(--secondary); }
footer a { color: var(--secondary); margin: 0 8px; }

/* ---------- landing page ---------- */
body.landing { background: #fff; }
body.landing main { padding: 0; }
body.landing h1, body.landing h2, body.landing h3 { color: var(--navy); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { height: 68px; gap: 16px; }
.site-header .brand img { height: 30px; }
.menu { display: flex; gap: 4px; }
.menu a { margin: 0; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.menu a:hover { background: var(--green-l); }
.bar-actions { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: linear-gradient(135deg, #34d36b, #1fa84d); color: #fff; box-shadow: 0 8px 20px -8px rgba(46, 192, 96, .7); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(46, 192, 96, .8); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; color: var(--green-d); }
.ico-xl { width: 40px; height: 40px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background: linear-gradient(180deg, #f3fbf6 0%, #fff 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.blob-a { width: 380px; height: 380px; background: #b8f0cd; top: -120px; left: -80px; }
.blob-b { width: 340px; height: 340px; background: #bfe9ff; right: -80px; top: 40px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #cdeedb; color: var(--green-d); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, #2ec060, #00b1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--primary); max-width: 540px; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.ticks .ico { color: var(--green-d); background: var(--green-l); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }

/* hero mock */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(11, 23, 63, .25); overflow: hidden; }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: #d5dae4; }
.mock-top span { margin-left: 8px; font-size: 12px; color: var(--secondary); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 300px; }
.mock-list { border-right: 1px solid var(--line); padding: 10px; display: grid; gap: 4px; align-content: start; }
.mock-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; }
.mock-item.active { background: var(--green-l); }
.mock-item strong { display: block; font-size: 13px; color: var(--navy); }
.mock-item small { display: block; font-size: 11px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-style: normal; }
.a1 { background: #2ec060; } .a2 { background: #00b1ff; } .a3 { background: #fea220; } .a4 { background: #8e6bff; }
.ch { font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.ch.zalo, .chip.zalo { background: #e5f2ff; color: #0a6cff; }
.ch.voice, .chip.voice { background: var(--green-l); color: var(--green-d); }
.ch.fb, .chip.fb { background: #e8edff; color: #3b5bdb; }
.ch.sms, .chip.sms { background: #fff3df; color: #c77700; }
.chip.auto { background: #f0e9ff; color: #6b3fd4; }
.mock-chat { padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafbfd; }
.bubble { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; align-self: flex-start; }
.bubble.out { background: var(--green); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.mock-note { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 10px; border-radius: 10px; background: #fff7e8; color: #a86400; font-size: 12px; font-weight: 600; }
.mock-cap { margin: 0; padding: 8px; text-align: center; font-size: 11px; color: var(--secondary); border-top: 1px solid var(--line); }

/* channels strip */
.channels { padding: 28px 0 8px; }
.channels-title { text-align: center; color: var(--secondary); font-size: 14px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2, .split h2, .trust h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.015em; margin: 10px 0 12px; }
.section-head p { color: var(--secondary); font-size: 16px; margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature, .usecase, .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover, .usecase:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11, 23, 63, .25); border-color: #cdeedb; }
.feature-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f8ee, #d6f3e1); color: var(--green-d); margin-bottom: 16px; }
.feature-ico .ico { width: 26px; height: 26px; }
.feature h3, .usecase h3, .step h3 { font-size: 18px; margin: 0 0 8px; }
.feature p, .usecase p, .step p { margin: 0; color: var(--secondary); }
.usecase .ico { margin-bottom: 14px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 16px; }

/* split + timeline */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.lead-sm { font-size: 16px; color: var(--primary); margin: 0 0 6px; }
.timeline { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 10px; box-shadow: 0 24px 50px -24px rgba(11, 23, 63, .2); position: relative; }
.timeline::before { content: ""; position: absolute; left: 38px; top: 40px; bottom: 40px; width: 2px; background: var(--line); }
.tl { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 0 22px; }
.tl strong { display: block; color: var(--navy); font-size: 14px; }
.tl small { color: var(--secondary); font-size: 12px; }
.dot { width: 26px; height: 26px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1; flex: none; }
.dot.voice { background: var(--green); } .dot.zalo { background: #0a6cff; } .dot.tk { background: #fea220; } .dot.sms { background: #8e6bff; }

/* trust */
.trust { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #f3fbf6, #eef8ff); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.trust h2 { margin-top: 0; }
.trust-ico { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: #fff; color: var(--green-d); box-shadow: 0 12px 30px -14px rgba(46, 192, 96, .6); }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* faq */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--green-d); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--secondary); }

/* cta band */
.cta-band { text-align: center; color: #fff; padding: 56px 24px; border-radius: 28px; background: radial-gradient(circle at 20% 0%, #1b3a7a 0%, transparent 55%), radial-gradient(circle at 90% 100%, #14803c 0%, transparent 50%), var(--navy); }
body.landing .cta-band h2 { color: #fff; font-size: 32px; margin: 0 0 10px; }
.cta-band p { margin: 0 0 26px; color: #cfd8ee; font-size: 16px; }

/* footer */
.site-footer { background: #fff; text-align: left; padding: 40px 0 20px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand img { height: 28px; display: block; margin-bottom: 10px; }
.foot-brand p { margin: 0; color: var(--secondary); max-width: 280px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: flex-start; max-width: 520px; }
.foot-links a { margin: 0; }
.foot-links a:hover { color: var(--green-d); }
.copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--secondary); }

/* reveal on scroll (only when JS is on) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 960px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .menu { display: none; }
}
@media (max-width: 620px) {
    .hero { padding: 48px 0 36px; }
    .hero h1 { font-size: 32px; }
    .lead { font-size: 16px; }
    .section { padding: 56px 0; }
    .section-head h2, .split h2, .trust h2, .cta-band h2 { font-size: 26px; }
    .grid-3 { grid-template-columns: 1fr; }
    .trust { grid-template-columns: 1fr; padding: 28px; }
    .mock-body { grid-template-columns: 1fr; }
    .mock-list { border-right: 0; border-bottom: 1px solid var(--line); }
    .bar-actions .btn { display: none; }
}
