/* ChatNow — giao diện marketing */
:root {
  --brand: #5b4bff;
  --brand-2: #9b5cff;
  --brand-3: #22d3ee;
  --brand-soft: #efedff;
  --accent: #10b981;
  --accent-soft: #e7f8f1;
  --warn: #f59e0b;
  --danger: #ef4444;
  --ink: #0b1020;
  --ink-2: #2f3650;
  --muted: #667085;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-2: #f7f8fc;
  --night: #070a1a;
  --night-2: #0f1430;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .05);
  --shadow: 0 2px 4px rgba(11, 16, 32, .04), 0 12px 32px rgba(11, 16, 32, .08);
  --shadow-lg: 0 30px 80px rgba(91, 75, 255, .25);
  --grad: linear-gradient(135deg, #5b4bff 0%, #9b5cff 55%, #ff6fb1 100%);
  --grad-cool: linear-gradient(135deg, #5b4bff, #22d3ee);
  --zalo: #0068ff;
  --facebook: #0866ff;
  --telegram: #229ed9;
  --whatsapp: #25d366;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
  background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: #d9d4ff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--night); color: #e6e9ff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18.5px; }
.dark .section-head p { color: #a3a9cc; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand); background: var(--brand-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.dark .eyebrow { background: rgba(155, 92, 255, .14); color: #c9b8ff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-primary { background: var(--grad); background-size: 160% 160%; color: #fff; box-shadow: 0 10px 28px rgba(91, 75, 255, .35); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 36px rgba(91, 75, 255, .45); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9cde0; }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Announcement + Nav ---------- */
.announce {
  background: linear-gradient(90deg, #ff4f8b, #9b5cff, #5b4bff); color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  padding: 9px 16px; position: relative; z-index: 60;
}
.announce a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.announce .cd { display: inline-flex; gap: 4px; margin-left: 8px; font-variant-numeric: tabular-nums; font-weight: 700; }
.announce .cd span { background: rgba(0, 0, 0, .22); padding: 1px 6px; border-radius: 6px; }

.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav.on-dark { color: #fff; }
.nav.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); border-color: rgba(230, 232, 240, .8); color: var(--ink); box-shadow: var(--shadow-sm); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; color: inherit; letter-spacing: -.03em; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; display: block; box-shadow: 0 8px 20px rgba(91, 75, 255, .35); flex: none; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-word { display: block; line-height: 0; }
.logo-word svg { height: 22px; width: auto; display: block; }
/* Trên nền tối, “Now” sáng hơn để luôn nổi */
.nav.on-dark:not(.scrolled) .logo, .sidebar .logo, footer .logo, .auth-side .logo, .hero .logo { --cn-now1: #ffe04a; --cn-now2: #ff9419; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: inherit; opacity: .78; font-weight: 500; font-size: 15px; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav.on-dark:not(.scrolled) .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 64px 0 120px; margin-top: -72px; padding-top: 140px; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 620px; height: 620px; background: #5b4bff; top: -180px; left: -120px; }
.aurora i:nth-child(2) { width: 520px; height: 520px; background: #ff4f8b; top: 80px; right: -160px; animation-delay: -6s; opacity: .35; }
.aurora i:nth-child(3) { width: 480px; height: 480px; background: #22d3ee; bottom: -260px; left: 35%; animation-delay: -12s; opacity: .3; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.04em; }
.hero h1 .grad-text { background: linear-gradient(90deg, #a99bff, #ff8ac2, #7ee8fa); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: 19.5px; color: #b9bfe0; max-width: 580px; }
.hero .lead b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 30px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); margin-bottom: 26px; color: #dfe3ff;
}
.live-pill .tag { background: var(--grad); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.trust { display: flex; align-items: center; gap: 14px; color: #a3a9cc; font-size: 14px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--night); margin-left: -10px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.stars { color: #fbbf24; letter-spacing: 1px; }
.hero-visual { position: relative; perspective: 1400px; }
.hero-visual .phone { transform: rotateY(-10deg) rotateX(4deg); transition: transform .6s var(--ease); }
.hero-visual:hover .phone { transform: none; }
.orbit {
  position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  animation: float 5s ease-in-out infinite; z-index: 2;
}
.orbit svg { width: 60%; height: 60%; }
@keyframes float { 50% { transform: translateY(-12px); } }
.glass-card {
  position: absolute; z-index: 3; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center;
  animation: float 6s ease-in-out infinite; backdrop-filter: blur(10px);
}
.glass-card small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.glass-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex: none; }
.glass-card .big { font-size: 20px; font-weight: 800; color: var(--accent); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.spark i { width: 6px; border-radius: 3px 3px 0 0; background: #2a78d6; }

/* ---------- Phone mock ---------- */
.phone {
  width: 340px; max-width: 100%; margin-inline: auto; background: linear-gradient(160deg, #1d2240, #0b0e20); border-radius: 46px; padding: 11px;
  box-shadow: 0 50px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset; position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.phone-screen { background: #eef1f7; border-radius: 36px; overflow: hidden; height: 610px; display: flex; flex-direction: column; color: var(--ink); }
.phone-top { background: #fff; padding: 48px 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.phone-top .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: linear-gradient(135deg, #fef3c7, #fde68a); flex: none; }
.phone-top b { display: block; font-size: 15px; }
.phone-top small { color: var(--accent); font-size: 12px; font-weight: 500; }
.chat { flex: 1; padding: 16px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.45; animation: pop .3s var(--ease); word-wrap: break-word; white-space: pre-wrap; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.msg.staff { align-self: flex-start; background: #ecfdf5; border-bottom-left-radius: 6px; }
.msg.attach { padding: 6px; background: #fff; }
.msg.attach img { border-radius: 12px; max-height: 220px; object-fit: cover; }
.msg.attach .file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--ink); font-weight: 600; font-size: 13px; }
.msg.attach .file i { font-style: normal; font-size: 22px; }
.msg .who { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; outline: none; font-size: 14px; min-width: 0; background: #fff; }
.chat-input input:focus { border-color: var(--brand); }
.chat-input button { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--grad); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 10px; background: #fff; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.chip:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Channel icons ---------- */
.ch-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ch-icon svg { width: 60%; height: 60%; }
.ch-zalo { background: var(--zalo); }
.ch-facebook { background: linear-gradient(135deg, #00b2ff, #006aff 50%, #a033ff); }
.ch-telegram { background: var(--telegram); }
.ch-whatsapp { background: var(--whatsapp); }

/* ---------- Logo marquee ---------- */
.logos { padding: 44px 0; background: var(--night); border-top: 1px solid rgba(255, 255, 255, .06); }
.logos p { text-align: center; color: #8b91b8; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.partner { display: flex; align-items: center; gap: 10px; color: #c7cbe6; opacity: .75; font-weight: 700; font-size: 19px; white-space: nowrap; transition: opacity .2s; letter-spacing: -.02em; }
.partner:hover { opacity: 1; }
.partner .pm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(255, 255, 255, .08); }
.partner small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; opacity: .7; text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: -70px; position: relative; z-index: 3; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }
.stat .ic { font-size: 22px; margin-bottom: 8px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(240px, auto); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: 24px; padding: 30px; background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s; display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: 21px; }
.tile p { color: var(--muted); font-size: 15.5px; margin: 0; }
.tile .demo { margin-top: auto; padding-top: 20px; }
.t-4 { grid-column: span 4; } .t-3 { grid-column: span 3; } .t-2 { grid-column: span 2; }
.tile.dark { background: linear-gradient(160deg, #141a3a, #0b0e22); color: #fff; border-color: transparent; }
.tile.dark p { color: #a3a9cc; }
.tile.grad { background: var(--grad); color: #fff; border: 0; }
.tile.grad p { color: rgba(255, 255, 255, .85); }
.tone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tone-chips span { padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; }
.tile.dark .tone-chips span { background: rgba(255, 255, 255, .08); color: #d9d4ff; }
.mini-chat { display: grid; gap: 8px; }
.mini-chat div { padding: 9px 13px; border-radius: 14px; font-size: 14px; max-width: 88%; }
.mini-chat .c { background: rgba(255, 255, 255, .1); justify-self: end; }
.mini-chat .b { background: #fff; color: var(--ink); }
.file-stack { display: flex; gap: 10px; }
.file-stack div { flex: 1; border-radius: 14px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-align: center; }
.file-stack div i { display: block; font-style: normal; font-size: 26px; margin-bottom: 4px; }

/* ---------- Insight showcase ---------- */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.showcase h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800;
  display: grid; place-items: center; font-size: 13px; margin-top: 1px;
}
.dark .check-list li::before { background: rgba(16, 185, 129, .16); }
.dash-mock { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); color: var(--ink); position: relative; }
.dash-mock .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi-mini { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi-mini small { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-mini b { display: block; font-size: 22px; font-weight: 800; }
.kpi-mini .up { color: var(--accent); font-size: 12px; font-weight: 700; }
.reason-bars { display: grid; gap: 10px; }
.reason-bars .rb { display: grid; grid-template-columns: 170px 1fr 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.reason-bars .bar { height: 12px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.reason-bars .bar i { display: block; height: 100%; border-radius: 0 6px 6px 0; background: #2a78d6; width: 0; transition: width 1.2s var(--ease); }
.reason-bars .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.insight-pop { position: absolute; right: -24px; bottom: -30px; max-width: 280px; background: var(--ink); color: #fff; border-radius: 16px; padding: 14px 16px; font-size: 13.5px; box-shadow: var(--shadow-lg); }
.insight-pop b { display: block; margin-bottom: 2px; }

/* ---------- Follow-up timeline ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.flow::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); opacity: .35; }
.flow-step { position: relative; text-align: center; }
.flow-step .dot { width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; font-size: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; z-index: 1; }
.flow-step .time { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 8px; }
.flow-step h4 { font-size: 17px; }
.flow-step p { color: var(--muted); font-size: 14.5px; }
.flow-step .bubble { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; margin-top: 10px; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  cursor: pointer; transition: all .25s var(--ease); text-align: left; width: 100%; color: var(--ink);
}
.industry:hover { border-color: #c9c2ff; box-shadow: var(--shadow); transform: translateY(-2px); }
.industry.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(91, 75, 255, .15); }
.industry .ic { font-size: 28px; line-height: 1; flex: none; width: 54px; height: 54px; display: grid; place-items: center; background: var(--bg-2); border-radius: 15px; }
.industry b { display: block; font-size: 16px; margin-bottom: 2px; }
.industry span { color: var(--muted); font-size: 14px; }

/* ---------- Demo ---------- */
.demo-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: center; }
.demo-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.pick { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s; }
.pick.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; }
.step-num { width: 50px; height: 50px; border-radius: 15px; background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(91, 75, 255, .3); }
.step-card .time { position: absolute; top: 30px; right: 24px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* ---------- Testimonials ---------- */
.tm-row { display: flex; gap: 20px; width: max-content; animation: scroll 60s linear infinite; }
.tm-row.rev { animation-direction: reverse; margin-top: 20px; }
.quote { width: 380px; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.quote p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.quote .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.quote .who small { display: block; color: var(--muted); }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.billing-toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 15px; color: var(--muted); transition: color .2s; }
.billing-toggle button.active { color: #fff; }
.billing-toggle .pill { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: all .35s var(--ease); }
.save-tag { display: inline-block; margin-left: 6px; background: #dcfce7; color: #15803d; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 800; }
.billing-toggle button.active .save-tag { background: #22c55e; color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-top: 44px; }
.price { display: flex; flex-direction: column; padding: 34px; border-radius: 26px; border: 1px solid var(--line); background: #fff; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price.hot { background: linear-gradient(170deg, #141a3a, #0b0e22); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.price.hot .muted, .price.hot li { color: #c3c8e8; }
.price .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.price h3 { font-size: 20px; }
.price .amount { font-size: 44px; font-weight: 800; margin: 10px 0 0; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price .was { font-size: 15px; color: var(--muted); text-decoration: line-through; min-height: 24px; }
.price .bill { font-size: 13.5px; color: var(--accent); font-weight: 600; min-height: 22px; }
.price ul { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 11px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.price li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ---------- Quote form ---------- */
.quote-box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: linear-gradient(160deg, #141a3a, #0b0e22); color: #fff; border-radius: 32px; padding: 56px; position: relative; overflow: hidden; }
.quote-box::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: #5b4bff; filter: blur(120px); opacity: .35; right: -200px; top: -200px; }
.quote-box h2 { font-size: clamp(28px, 3.6vw, 40px); }
.quote-box p { color: #b9bfe0; }
.qform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.qform .full { grid-column: 1 / -1; }
.qform input, .qform select, .qform textarea { width: 100%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: 13px 15px; color: #fff; outline: none; }
.qform input::placeholder, .qform textarea::placeholder { color: #8b91b8; }
.qform select option { color: var(--ink); }
.qform input:focus, .qform textarea:focus, .qform select:focus { border-color: #a99bff; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 24px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* ---------- CTA + footer ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: 32px; padding: 72px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .25), transparent 40%); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); position: relative; }
.cta-band p { opacity: .92; font-size: 18px; position: relative; }
footer { padding: 72px 0 32px; background: var(--night); color: #8b91b8; font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 36px; margin-bottom: 40px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
footer a { display: block; color: #8b91b8; margin-bottom: 9px; }
footer a:hover { color: #fff; }
footer .logo { color: #fff; margin-bottom: 14px; }
footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-line { display: flex !important; align-items: center; gap: 10px; }

/* ---------- Floating contact ---------- */
.fab-stack { position: fixed; right: 20px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 28px rgba(11, 16, 32, .28); cursor: pointer; border: 0; position: relative; transition: transform .2s var(--ease); }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 28px; height: 28px; }
.fab .tip { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab:hover .tip { opacity: 1; }
.fab-zalo { background: var(--zalo); }
.fab-phone { background: #ef4444; animation: ring-shake 2.6s infinite; }
.fab-phone::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #ef4444; animation: ripple 2s infinite; }
@keyframes ripple { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.4); opacity: 0; } }
@keyframes ring-shake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(8deg); } }
.fab-chat { background: var(--grad); width: 62px; height: 62px; }
.fab-chat .badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; display: none; place-items: center; border: 2px solid #fff; }
.fab-chat .badge.on { display: grid; }

/* ---------- Support widget ---------- */
.sw { position: fixed; right: 20px; bottom: 96px; z-index: 81; width: 380px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 120px); background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(11, 16, 32, .3); display: none; flex-direction: column; overflow: hidden; animation: pop .3s var(--ease); }
.sw.open { display: flex; }
.sw-head { background: var(--grad); color: #fff; padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.sw-head .av { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 22px; position: relative; flex: none; }
.sw-head .av::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #34d399; border: 2px solid #fff; }
.sw-head b { display: block; }
.sw-head small { opacity: .85; }
.sw-head button { margin-left: auto; background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.sw-body { flex: 1; overflow-y: auto; padding: 16px; background: #f5f6fb; display: flex; flex-direction: column; gap: 8px; }
.sw-start { display: grid; gap: 10px; padding: 18px; }
.sw-start h4 { margin: 0; font-size: 17px; }
.sw-start p { color: var(--muted); font-size: 14px; margin: 0; }
.sw-start input, .sw-start select, .sw-start textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 14px; outline: none; background: #fff; }
.sw-start input:focus, .sw-start textarea:focus { border-color: var(--brand); }
.sw-quick { display: flex; gap: 8px; }
.sw-quick a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line); color: var(--ink); }

/* ---------- Popup ---------- */
.pp-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(7, 10, 26, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; } }
.pp { position: relative; width: min(520px, 100%); border-radius: 28px; overflow: hidden; color: #fff; text-align: center; padding: 44px 36px 34px; animation: popin .5s var(--ease); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
@keyframes popin { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.pp.rose { background: radial-gradient(circle at 20% 0%, #ff8ac2, transparent 50%), linear-gradient(150deg, #ff3d77, #b5179e 60%, #7209b7); }
.pp.night { background: radial-gradient(circle at 80% 0%, #5b4bff, transparent 50%), linear-gradient(160deg, #141a3a, #05060f); }
.pp.gold { background: radial-gradient(circle at 20% 0%, #ffe08a, transparent 45%), linear-gradient(150deg, #e11d48, #b91c1c 55%, #7f1d1d); }
.pp.ocean { background: radial-gradient(circle at 80% 0%, #7ee8fa, transparent 50%), linear-gradient(150deg, #2563eb, #5b4bff 60%, #312e81); }
.pp::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 18px 18px; opacity: .25; pointer-events: none; }
.pp > * { position: relative; }
.pp .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 20px; cursor: pointer; z-index: 2; }
.pp .badge { display: inline-block; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.pp h3 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.pp p { opacity: .9; font-size: 16px; }
.pp img { max-height: 160px; margin: 0 auto 16px; border-radius: 16px; }
.pp .code { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 10px 12px 10px 20px; border-radius: 14px; font-weight: 800; font-size: 20px; letter-spacing: .08em; margin: 6px 0 18px; border: 2px dashed rgba(0, 0, 0, .15); }
.pp .code button { border: 0; background: var(--ink); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; cursor: pointer; letter-spacing: 0; font-weight: 700; }
.pp .cd { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }
.pp .cd div { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 8px 10px; min-width: 62px; }
.pp .cd b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.pp .cd small { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.pp .btn-cta { background: #fff; color: var(--ink); font-size: 17px; padding: 15px 30px; border-radius: 14px; font-weight: 800; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.pp .later { display: block; margin: 14px auto 0; background: none; border: 0; color: #fff; opacity: .75; cursor: pointer; font-size: 14px; text-decoration: underline; }

/* ---------- Consent ---------- */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; opacity: 0; transition: all .25s; z-index: 200; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .container, .demo-wrap, .showcase, .quote-box { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-grid, .price-grid, .steps { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .t-4, .t-3, .t-2 { grid-column: span 1; }
  .t-4 { grid-column: span 2; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow::before { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; color: var(--ink); flex-direction: column; padding: 18px 20px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .insight-pop { right: 10px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 112px; padding-bottom: 110px; }
  .hero-visual .phone { transform: none; }
  .orbit, .glass-card { display: none; }
  .industry-grid, .price-grid, .steps, .bento, .flow, .qform { grid-template-columns: 1fr; }
  .t-4 { grid-column: span 1; }
  .stats { gap: 12px; }
  .stat { padding: 18px 14px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 13px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
  .logo { font-size: 18px; }
  .btn { white-space: normal; text-align: center; }
  .quote-box { padding: 36px 22px; }
  .cta-band { padding: 48px 22px; }
  .quote { width: 300px; }
  .dash-mock .row { grid-template-columns: 1fr 1fr; }
  .dash-mock .row .kpi-mini:last-child { display: none; }
  .reason-bars .rb { grid-template-columns: 120px 1fr 36px; font-size: 12.5px; }
  .insight-pop { position: static; margin-top: 14px; max-width: none; }
  .fab-stack { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 50px; height: 50px; }
  .fab-chat { width: 56px; height: 56px; }
  .sw { right: 12px; bottom: 84px; }
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .billing-toggle button { padding: 9px 14px; font-size: 14px; }
}
