/* NhaQri — nhaqrigroup.uk
   Mực đen + giấy ngà, một điểm nhấn xanh chanh. Be Vietnam Pro cho chữ, Fraunces nghiêng cho chữ nhấn. */

:root {
  --ink: #0A0C10;
  --ink-2: #101318;
  --ink-3: #181C23;
  --ink-line: rgba(255, 255, 255, .09);
  --ink-text: #E9ECEF;
  --ink-muted: #98A1AC;

  --paper: #F4F2ED;
  --paper-2: #ECE9E1;
  --card: #FFFFFF;
  --text: #0A0C10;
  --muted: #5B636E;
  --line: rgba(10, 12, 16, .09);

  --lime: #C9F24C;
  --lime-2: #B4E02F;
  --lime-deep: #557309;
  --lime-soft: #EEF7D2;
  --violet: #8A7CFF;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(10, 12, 16, .05), 0 8px 24px -12px rgba(10, 12, 16, .12);
  --shadow-lg: 0 30px 80px -30px rgba(10, 12, 16, .45);

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }
.ink :focus-visible, .hero :focus-visible, .nav :focus-visible { outline-color: var(--lime); }
section[id] { scroll-margin-top: 72px; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; font-weight: 700; text-wrap: balance; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -.01em; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 0 rgba(201, 242, 76, .5); }
.btn-lime:hover { background: #D6FA63; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(201, 242, 76, .7); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: transparent; border-color: rgba(10, 12, 16, .18); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Thanh điều hướng ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; color: #fff;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(10, 12, 16, .9); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--ink-line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .78); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .04); color: #fff; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--ink-text); padding: 148px 0 0; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 78% 30%, rgba(138, 124, 255, .32), transparent 70%),
    radial-gradient(35% 40% at 62% 62%, rgba(201, 242, 76, .16), transparent 70%),
    radial-gradient(30% 35% at 12% 8%, rgba(64, 196, 255, .10), transparent 70%);
  will-change: transform;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 4%, 0) scale(1.06); } }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-bottom: 96px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line); font-size: 13.5px; font-weight: 500; color: #D8DDE2;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201, 242, 76, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(201, 242, 76, 0); } }
.hero h1 { margin: 22px 0 22px; font-size: clamp(42px, 6vw, 76px); line-height: 1.08; font-weight: 750; letter-spacing: -.04em; color: #fff; }
.hero h1 em { color: var(--lime); font-weight: 500; letter-spacing: -.02em; padding-right: .04em; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.65; color: var(--ink-muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: #C3CAD2; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 17px; height: 17px; color: var(--lime); stroke-width: 2.6; }

.hero-visual { position: relative; }
.mock {
  position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 32, 40, .92), rgba(16, 19, 24, .96));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -30px rgba(138, 124, 255, .45);
}
.mock-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ink-line); }
.mock-head b { display: block; font-size: 15px; color: #fff; }
.mock-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); }
.live { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, var(--lime), #8FE3B0); }
.mock-dots { margin-left: auto; display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mock-body { height: 392px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; overflow: hidden; }
.mock-input { display: flex; align-items: center; justify-content: space-between; margin: 0 14px 14px; padding: 12px 14px 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--ink-line); color: #6F7883; font-size: 14px; }
.mock-input .ic { color: var(--lime); }

.hm { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; animation: pop .45s var(--ease) both; }
.hm.u { align-self: flex-end; background: var(--lime); color: var(--ink); border-bottom-right-radius: 6px; font-weight: 500; }
.hm.a { align-self: flex-start; background: rgba(255, 255, 255, .07); color: #E4E8EC; border-bottom-left-radius: 6px; }
.hm.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #CFC8FF; background: rgba(138, 124, 255, .14); border: 1px solid rgba(138, 124, 255, .28); }
.hm.tool .ic { width: 15px; height: 15px; }
.hm.tool.ok { color: #D9F99D; background: rgba(201, 242, 76, .1); border-color: rgba(201, 242, 76, .28); }
.hm.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.hm.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8B95A1; animation: blink 1.2s infinite; }
.hm.typing i:nth-child(2) { animation-delay: .15s; } .hm.typing i:nth-child(3) { animation-delay: .3s; }
.hm.order { align-self: flex-start; width: 82%; background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-line); color: #E4E8EC; }
.hm.order b { color: #fff; } .hm.order .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); }
.hm.order .tot { margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .14); color: var(--lime); font-weight: 700; display: flex; justify-content: space-between; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  animation: bob 6s ease-in-out infinite;
}
.float-card .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--ink); color: var(--lime); }
.float-card b { display: block; font-size: 14px; line-height: 1.3; }
.float-card span { font-size: 12.5px; color: var(--muted); }
.fc-1 { top: 96px; left: -56px; }
.fc-2 { bottom: 86px; right: -36px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.marquee { position: relative; border-top: 1px solid var(--ink-line); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 42s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 0; padding: 0 30px; font-size: 15px; font-weight: 600; color: #7D8792; white-space: nowrap; letter-spacing: -.005em; }
.marquee-track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(201, 242, 76, .55); margin-right: 30px; transform: translateX(-30px); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Khối chung ---------- */
.sec { position: relative; padding: 120px 0; }
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.ink { background: var(--ink); color: var(--ink-text); overflow: hidden; isolation: isolate; }
.ink-2 { background: var(--ink-2); color: var(--ink-text); }
.sec-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.sec-head.left { text-align: left; margin: 0; }
.sec-head p { margin-top: 18px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.sec-head.light p, .ink .sec-head p { color: var(--ink-muted); }
.kicker { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-deep); }
.ink .kicker, .ink-2 .kicker { color: var(--lime); }
.ink h2, .ink-2 h2 { color: #fff; }
.ink h2 em, .ink-2 h2 em { color: var(--lime); }
.paper h2 em, .paper-2 h2 em { color: var(--lime-deep); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Agent ≠ chatbot ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.trio-item { padding: 36px 36px 8px 0; }
.trio-item + .trio-item { padding-left: 36px; border-left: 1px solid var(--line); }
.num { display: block; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--lime-deep); margin-bottom: 26px; }
.trio-item h3 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.trio-item p { color: var(--muted); font-size: 16.5px; }

.compare { margin-top: 72px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; align-items: center; border-top: 1px solid var(--line); }
.cmp-row > span { padding: 18px 26px; font-size: 15.5px; }
.cmp-row > span:first-child { font-weight: 550; }
.cmp-head { border-top: 0; background: #FAFAF7; }
.cmp-head span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-head span:last-child { color: var(--ink); }
.cmp-row .no { color: #8A919A; }
.cmp-row .yes { display: flex; align-items: center; gap: 10px; font-weight: 600; background: linear-gradient(90deg, var(--lime-soft), rgba(238, 247, 210, .3)); height: 100%; }
.cmp-row .yes .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--lime); stroke-width: 3; }
.cmp-head span:last-child { background: var(--lime-soft); align-self: stretch; display: flex; align-items: center; }

/* ---------- Bento giải pháp ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 30px; border-radius: var(--r-lg); background: var(--card);
  border: 1px solid rgba(10, 12, 16, .05); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10, 12, 16, .04), 0 30px 60px -30px rgba(10, 12, 16, .3); }
.card h3 { margin: 22px 0 10px; font-size: 21px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: var(--lime); }
.card-ic .ic { width: 22px; height: 22px; }
.c-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: var(--ink); color: var(--ink-text); border-color: transparent; }
.c-wide::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; background: radial-gradient(closest-side, rgba(138, 124, 255, .35), transparent); pointer-events: none; }
.c-wide .card-ic { background: var(--lime); color: var(--ink); }
.c-wide h3 { color: #fff; font-size: 28px; letter-spacing: -.03em; }
.c-wide p { color: var(--ink-muted); font-size: 16.5px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .07); border: 1px solid var(--ink-line); color: #D5DAE0; }
.mini-chat { margin-top: auto; padding-top: 30px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.mini-chat .b { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; }
.mini-chat .u { align-self: flex-end; background: var(--lime); color: var(--ink); border-bottom-right-radius: 6px; font-weight: 500; }
.mini-chat .a { align-self: flex-start; background: rgba(255, 255, 255, .08); color: #E4E8EC; border-bottom-left-radius: 6px; }
.mini-chat .tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: #CFC8FF; background: rgba(138, 124, 255, .14); border: 1px solid rgba(138, 124, 255, .28); }
.mini-chat .tool .ic { width: 15px; height: 15px; }

.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 86px; margin-top: 22px; padding: 12px 14px 0; border-radius: 14px; background: linear-gradient(180deg, #F6F5F1, #EFEDE6); }
.mini-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: #D6D2C7; transform-origin: bottom; transition: transform 1s var(--ease); }
.mini-bars i.hi { background: var(--ink); box-shadow: inset 0 3px 0 var(--lime); }
.reveal:not(.in) .mini-bars i { transform: scaleY(.15); }

.mini-news { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: #F6F5F1; border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #3D444D; }
.mini-news b { font-size: 13px; letter-spacing: .02em; color: var(--ink); }
.mini-news em { font-family: var(--font); font-style: normal; font-weight: 700; color: var(--lime-deep); }
.mini-news .warn { color: #B4501E; }

.mini-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; font-size: 12.5px; font-weight: 600; }
.mini-flow span { padding: 6px 10px; border-radius: 8px; background: #F1EFE9; color: #3D444D; }
.mini-flow span.me { background: var(--ink); color: var(--lime); }
.mini-flow i { width: 12px; height: 2px; background: #C9C4B8; border-radius: 2px; }

.mini-cv { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.mini-cv div { display: grid; grid-template-columns: 26px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; color: #3D444D; }
.mini-cv b { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; background: #F1EFE9; color: var(--ink); }
.mini-cv div:first-child b { background: var(--ink); color: var(--lime); }
.mini-cv span { height: 7px; border-radius: 4px; background: #EEEBE4; position: relative; overflow: hidden; }
.mini-cv span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 4px; background: var(--ink); transition: width 1s var(--ease); }
.reveal:not(.in) .mini-cv span::after { width: 0; }
.mini-cv div:not(:first-child) span::after { background: #BDB7A9; }
.mini-cv em { font-family: var(--font); font-style: normal; font-weight: 700; font-size: 12.5px; text-align: right; }

.mini-kb { margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: #F6F5F1; font-size: 13.5px; color: #3D444D; }
.mini-kb p { color: #3D444D; font-size: 13.5px; }
.mini-kb span { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 9px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--lime-deep); }
.mini-kb span .ic { width: 13px; height: 13px; }

/* ---------- Dùng thử ---------- */
.demo-glow, .contact-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 85% 0%, rgba(138, 124, 255, .22), transparent 70%), radial-gradient(40% 35% at 0% 100%, rgba(201, 242, 76, .10), transparent 70%);
}
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.tab {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--ink-line); color: var(--ink-text);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.tab:hover { background: rgba(255, 255, 255, .07); }
.tab .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #D5DAE0; transition: background .25s, color .25s; }
.tab b { display: block; font-size: 15px; font-weight: 650; color: #fff; }
.tab small { display: block; font-size: 13px; color: var(--ink-muted); }
.tab.on { background: rgba(201, 242, 76, .08); border-color: rgba(201, 242, 76, .45); }
.tab.on .ic { background: var(--lime); color: var(--ink); }

.demo-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
.demo-side { padding: 28px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .035); border: 1px solid var(--ink-line); display: flex; flex-direction: column; }
.demo-side h3 { color: #fff; font-size: 20px; }
.demo-side p { margin-top: 10px; color: var(--ink-muted); font-size: 15px; }
.tools-title { margin: 26px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6F7883; }
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tool-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #D5DAE0; }
.tool-list .ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: rgba(138, 124, 255, .16); color: #CFC8FF; }
.tool-list code { display: block; font-size: 12px; color: #7D8792; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.side-note { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; font-size: 13px; color: #7D8792; }
.side-note .ic { width: 16px; height: 16px; margin-top: 2px; }

/* Khung chat (dùng chung cho demo + nút nổi) */
#demoChat > div { display: contents; }
#demoChat > div[hidden] { display: none; }
.chat-win { display: flex; flex-direction: column; height: 620px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); color: var(--text); box-shadow: var(--shadow-lg); }
.cw-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.cw-head .avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 15px; }
.cw-head .avatar .ic { width: 20px; height: 20px; }
.cw-head b { display: block; font-size: 15px; line-height: 1.3; }
.cw-head span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cw-badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--lime-soft); color: var(--lime-deep); white-space: nowrap; }
.cw-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.cw-btn:hover { background: var(--paper); color: var(--ink); }
.cw-btn .ic { width: 17px; height: 17px; }
.cw-body { flex: 1; overflow-y: auto; padding: 22px 18px 10px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.cw-body::-webkit-scrollbar { width: 8px; } .cw-body::-webkit-scrollbar-thumb { background: rgba(10, 12, 16, .14); border-radius: 8px; }

.m { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; animation: pop .35s var(--ease) both; }
.m.u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.m.a { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.m.a.err { background: #FFF4EE; border-color: #F5D0BD; color: #8A3B12; }
.m.a p + p, .m.a p + ul, .m.a ul + p, .m.a p + ol, .m.a ol + p, .m.a p + .tbl, .m.a .tbl + p { margin-top: 8px; }
.m.a ul, .m.a ol { margin: 0; padding-left: 20px; }
.m.a li + li { margin-top: 3px; }
.m.a strong { font-weight: 700; }
.m.a code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 1px 5px; border-radius: 5px; background: #F1EFE9; }
.m.a a { color: var(--lime-deep); font-weight: 600; }
.m.a .h { display: block; font-weight: 700; margin-top: 4px; }
.tbl { overflow-x: auto; margin: 2px -4px; }
.tbl table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.tbl th, .tbl td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { font-weight: 700; font-size: 12.5px; color: var(--muted); background: #FAFAF7; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.caret::after { content: ""; display: inline-block; width: 8px; height: 16px; margin-left: 3px; vertical-align: -2px; background: var(--ink); animation: blink 1s infinite; border-radius: 2px; }

.tchip { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; border-radius: 14px; background: #EFEDFF; border: 1px solid #DCD7FF; font-size: 13px; color: #3F35A8; animation: pop .35s var(--ease) both; }
.tchip-top { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.tchip-top .ic { width: 15px; height: 15px; }
.tchip-top b { font-weight: 700; }
.tchip.ok { background: var(--lime-soft); border-color: #D9EDA0; color: #3E5506; }
.tchip.warn { background: #FFF1E8; border-color: #F7D4BF; color: #9A4515; }
.tchip details { border-top: 1px solid rgba(63, 53, 168, .14); }
.tchip summary { padding: 6px 12px; cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; opacity: .8; }
.tchip summary::-webkit-details-marker { display: none; }
.tchip pre { margin: 0; padding: 4px 12px 10px; max-height: 220px; overflow: auto; font-size: 12px; line-height: 1.5; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; color: #2B2470; }

.chart { align-self: stretch; padding: 16px 16px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); animation: pop .35s var(--ease) both; }
.chart b { display: block; font-size: 14px; margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; max-height: 250px; overflow: visible; }
.chart .ax { font-size: 10.5px; fill: #7A828C; font-family: var(--font); }
.chart .val { font-size: 10.5px; fill: var(--ink); font-weight: 700; font-family: var(--font); }

.typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 15px 18px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA1AA; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.typing span { margin-left: 6px; font-size: 13px; color: var(--muted); }

.cw-sugg { display: flex; gap: 8px; padding: 6px 18px 12px; overflow-x: auto; scrollbar-width: none; }
.cw-sugg::-webkit-scrollbar { display: none; }
.cw-sugg button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(10, 12, 16, .14); background: var(--card); font-size: 13.5px; cursor: pointer; transition: background .2s, border-color .2s; white-space: nowrap; }
.cw-sugg button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cw-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 14px; background: var(--card); border-top: 1px solid var(--line); }
.cw-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; overflow-y: hidden; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(10, 12, 16, .14); background: var(--paper); line-height: 1.45; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.cw-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 12, 16, .06); }
.cw-send { width: 46px; height: 46px; flex: none; border-radius: 14px; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--lime); cursor: pointer; transition: transform .2s, opacity .2s; }
.cw-send:hover { transform: translateY(-1px); }
.cw-send:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.cw-empty { margin: auto; max-width: 420px; text-align: center; padding: 10px 20px; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
.cw-empty .avatar { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; font-size: 20px; }
.cw-empty .avatar .ic { width: 26px; height: 26px; }
.cw-empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- Quy trình ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 30px 26px 30px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.step::after { content: ""; position: absolute; top: 52px; right: -18px; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, #C9C4B8 0 4px, transparent 4px 8px); }
.step:last-child::after { display: none; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: var(--ink); }
.step-t { position: absolute; top: 32px; right: 22px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--lime-soft); color: var(--lime-deep); }
.step h3 { margin: 26px 0 10px; font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- An toàn ---------- */
.trust { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.trust-copy p { margin: 20px 0 32px; font-size: 18px; color: var(--ink-muted); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.t-item { padding: 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .035); border: 1px solid var(--ink-line); transition: border-color .3s, background .3s; }
.t-item:hover { border-color: rgba(201, 242, 76, .35); background: rgba(255, 255, 255, .05); }
.t-item .ic { width: 44px; height: 44px; padding: 11px; border-radius: 13px; background: rgba(201, 242, 76, .12); color: var(--lime); }
.t-item h3 { margin: 18px 0 8px; color: #fff; font-size: 18px; }
.t-item p { color: var(--ink-muted); font-size: 14.5px; }

/* ---------- Gói ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); border: 1px solid rgba(10, 12, 16, .05); }
.plan h3 { font-size: 24px; letter-spacing: -.02em; }
.plan-for { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 48px; }
.plan-price { margin: 26px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 34px; font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.plan-price span { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 50%; background: var(--lime-soft); color: var(--lime-deep); stroke-width: 3; }
.plan .btn { margin-top: auto; }
.plan-hot { background: var(--ink); color: var(--ink-text); border-color: transparent; box-shadow: 0 40px 80px -40px rgba(10, 12, 16, .6); transform: translateY(-10px); }
.plan-hot.reveal.in { transform: translateY(-10px); }
.plan-hot h3 { color: #fff; }
.plan-hot .plan-for, .plan-hot .plan-price span { color: var(--ink-muted); }
.plan-hot .plan-price { color: #fff; border-color: var(--ink-line); }
.plan-hot li .ic { background: rgba(201, 242, 76, .16); color: var(--lime); }
.plan-badge { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 12.5px; font-weight: 700; }

/* ---------- Hỏi đáp ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid rgba(10, 12, 16, .12); }
.faq details:first-child { border-top: 1px solid rgba(10, 12, 16, .12); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 32px; height: 32px; padding: 7px; border-radius: 50%; border: 1px solid rgba(10, 12, 16, .15); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--ink); color: var(--lime); border-color: var(--ink); }
.faq details p { padding: 0 52px 26px 0; color: var(--muted); font-size: 16px; }

/* ---------- Liên hệ ---------- */
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-copy p { margin: 20px 0 28px; font-size: 18px; color: var(--ink-muted); }
.contact-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #D5DAE0; }
.contact-points .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--lime); color: var(--ink); stroke-width: 3; }
.form { padding: 32px; border-radius: var(--r-lg); background: var(--card); color: var(--text); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); display: flex; flex-direction: column; gap: 16px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: #3D444D; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(10, 12, 16, .14); background: var(--paper);
  font-size: 15px; font-weight: 400; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 92px; }
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235B636E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(10, 12, 16, .06); }
.form input[aria-invalid="true"] { border-color: #D2602A; box-shadow: 0 0 0 4px rgba(210, 96, 42, .1); }
.form .btn { margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 22px; font-size: 14px; text-align: center; color: var(--muted); }
.form-msg.ok { color: var(--lime-deep); font-weight: 600; }
.form-msg.err { color: #B4501E; }
.form.sent { align-items: center; justify-content: center; text-align: center; min-height: 460px; }
.sent-ic { width: 72px; height: 72px; border-radius: 22px; background: var(--ink); color: var(--lime); display: grid; place-items: center; margin-bottom: 8px; }
.sent-ic .ic { width: 34px; height: 34px; stroke-width: 2.6; }
.form.sent h3 { font-size: 26px; }
.form.sent p { color: var(--muted); max-width: 340px; }

/* ---------- Chân trang ---------- */
.foot { background: var(--ink); color: var(--ink-muted); border-top: 1px solid var(--ink-line); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.foot .logo { color: #fff; }
.foot-brand p { margin-top: 14px; max-width: 320px; font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-col b { color: #fff; font-size: 14px; margin-bottom: 4px; }
.foot-col a { text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--lime); }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; padding-right: 104px; border-top: 1px solid var(--ink-line); font-size: 13px; color: #6F7883; }

/* ---------- Nút chat nổi ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 22px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--lime); color: var(--ink); box-shadow: 0 18px 40px -12px rgba(10, 12, 16, .55); transition: transform .3s var(--ease), border-radius .3s; }
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab .ic { width: 26px; height: 26px; grid-area: 1 / 1; transition: transform .3s var(--ease), opacity .3s; }
.fab .ic-close { opacity: 0; transform: rotate(-90deg); }
.fab[aria-expanded="true"] { border-radius: 50%; }
.fab[aria-expanded="true"] .ic-open { opacity: 0; transform: rotate(90deg); }
.fab[aria-expanded="true"] .ic-close { opacity: 1; transform: none; }
.fab-ping { position: absolute; top: -3px; right: -3px; width: 16px; height: 16px; border-radius: 50%; background: var(--violet); border: 3px solid var(--paper); }
.fab[aria-expanded="true"] .fab-ping, .fab.seen .fab-ping { display: none; }
.fab-panel { position: fixed; right: 24px; bottom: 100px; z-index: 60; width: 400px; max-width: calc(100vw - 32px); animation: panel .35s var(--ease) both; }
.fab-panel[hidden] { display: none; }
.fab-panel .chat-win { height: min(620px, calc(100vh - 130px)); box-shadow: 0 40px 100px -30px rgba(10, 12, 16, .6), 0 0 0 1px rgba(10, 12, 16, .06); }
@keyframes panel { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
  .fc-1 { left: -18px; } .fc-2 { right: -14px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .c-wide { grid-row: auto; }
  .demo-tabs { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { order: -1; padding: 22px; }
  .tool-list { flex-direction: row; flex-wrap: wrap; }
  .tool-list li { flex: 1 1 220px; }
  .side-note { padding-top: 18px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .trust, .faq-wrap, .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .faq-wrap .sec-head { position: static; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan-hot, .plan-hot.reveal.in { transform: none; }
  .plan-for { min-height: 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-in { height: 64px; gap: 12px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 12px 16px; background: rgba(10, 12, 16, .97); border-bottom: 1px solid var(--ink-line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .hero { padding-top: 112px; }
  .hero-in { padding-bottom: 64px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mock-body { height: 360px; }
  .float-card { display: none; }
  .sec { padding: 84px 0; }
  .sec-head { margin-bottom: 44px; }
  .sec-head p { font-size: 16.5px; }
  .trio { grid-template-columns: 1fr; border-top: 0; }
  .trio-item, .trio-item + .trio-item { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .num { margin-bottom: 12px; }
  .compare { margin-top: 44px; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; }
  .cmp-row > span { padding: 12px 16px; font-size: 14.5px; }
  .cmp-head > span:first-child { display: none; }
  .bento { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; }
  .card { padding: 24px; }
  .demo-tabs { display: flex; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; scroll-snap-align: start; padding: 12px 14px; }
  .tab small { display: none; }
  .tab .ic { width: 34px; height: 34px; padding: 7px; }
  .demo-side { display: none; }
  .chat-win { height: 72vh; min-height: 480px; border-radius: 20px; }
  .steps { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .faq summary { font-size: 16.5px; padding: 20px 0; }
  .faq details p { padding-right: 0; }
  .form { padding: 22px; }
  .f-row { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bot { padding-right: 16px; padding-bottom: 96px; }
  .fab { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .fab[aria-expanded="true"] { display: none; }
  .fab.an { opacity: 0; pointer-events: none; transform: translateY(16px) scale(.9); transition: opacity .25s, transform .25s; }
  .fab-panel { right: 0; left: 0; bottom: 0; width: 100%; max-width: none; }
  .fab-panel .chat-win { height: calc(100dvh - 16px); border-radius: 20px 20px 0 0; }
}

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