/* FireAnt MetaKit 6 — trang giới thiệu. Màu thương hiệu #1480FF, gradient #157CFF → #08D2FD; phông Be Vietnam Pro. */

/* ───────────── Phông chữ (tự host, không gọi dịch vụ ngoài) ───────────── */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/be-vietnam-pro-vietnamese-400-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/be-vietnam-pro-vietnamese-500-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/be-vietnam-pro-vietnamese-600-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/be-vietnam-pro-vietnamese-700-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/be-vietnam-pro-vietnamese-800-normal.woff2) format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/be-vietnam-pro-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/be-vietnam-pro-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/be-vietnam-pro-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/be-vietnam-pro-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/be-vietnam-pro-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/be-vietnam-pro-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/be-vietnam-pro-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/be-vietnam-pro-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/be-vietnam-pro-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-display: swap; font-weight: 800; src: url(../fonts/be-vietnam-pro-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

/* ───────────── Biến thiết kế ───────────── */
:root {
  color-scheme: dark;
  --bg: #04070f;
  --bg-alt: #060b17;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 174, 214, 0.12);
  --line-2: rgba(148, 174, 214, 0.22);
  --text: #eef4ff;
  --text-2: #b9c5da;
  --muted: #8592aa;
  --brand: #1480ff;
  --brand-2: #08d2fd;
  --grad: linear-gradient(105deg, #1e7bff 0%, #08d2fd 100%);
  --grad-text: linear-gradient(100deg, #63adff 0%, #22d3ee 55%, #7cf3d6 100%);
  --grad-ai: linear-gradient(100deg, #8ab4ff 0%, #b69cff 45%, #22d3ee 100%);
  --up: #2bd59b;
  --down: #ff6482;
  --ai: #a78bfa;
  --r: 16px;
  --r-lg: 24px;
  --max: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* ───────────── Nền tảng ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .lead a, .dl-meta a, .plans-note a, .ai-req a, .faq a { color: #8cc8ff; text-underline-offset: 3px; }
p a:hover, .lead a:hover, .dl-meta a:hover, .plans-note a:hover, .ai-req a:hover, .faq a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
p, .lead { text-wrap: pretty; }
button { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); }
kbd {
  display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 0.82em; line-height: 1.5;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); border-bottom-width: 2px; color: var(--text);
}
::selection { background: rgba(20, 128, 255, 0.45); color: #fff; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); }
.up { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: #fff; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid #5aa9ff; outline-offset: 3px; border-radius: 6px; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-ai { background-image: var(--grad-ai); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8cc8ff;
  background: rgba(20, 128, 255, 0.09); border: 1px solid rgba(90, 169, 255, 0.22);
}
.eyebrow .i { width: 15px; height: 15px; }
.eyebrow-ai { color: #c4b5fd; background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.28); }
.h2 { font-size: clamp(2rem, 4.3vw, 3.45rem); }
.h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.lead { color: var(--text-2); font-size: clamp(1.03rem, 1.35vw, 1.18rem); line-height: 1.7; max-width: 760px; }
.caption { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ───────────── Nút ───────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 0.98rem; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.btn .i { width: 19px; height: 19px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.04rem; border-radius: 16px; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 32px -10px rgba(20, 128, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.42) 50%, transparent 68%);
  transform: translateX(-130%); animation: shine 5s 2.4s infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(20, 128, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.055); color: var(--text); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(148, 174, 214, 0.38); transform: translateY(-2px); }
@keyframes shine { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }

/* ───────────── Thanh điều hướng ───────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.nav.is-scrolled, .nav.is-open { background: rgba(4, 7, 15, 0.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.nav-inner { height: 72px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.04rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(20, 128, 255, 0.8); }
.brand b { font-weight: 800; }
.brand i { font-style: normal; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 0.94rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links .only-mobile { display: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-guide { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--text-2); font-weight: 500; font-size: 0.94rem; border-radius: 10px; }
.nav-guide .i { width: 17px; height: 17px; }
.nav-guide:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }
.nav.is-open .nav-toggle .i-open { display: none; }
.nav.is-open .nav-toggle .i-close { display: block; }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding: 148px 0 36px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 -10%; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; animation: drift 20s ease-in-out infinite alternate; }
.orb-1 { width: 680px; height: 680px; left: -12%; top: -24%; background: radial-gradient(circle, rgba(20, 128, 255, 0.9) 0%, transparent 62%); }
.orb-2 { width: 560px; height: 560px; right: -10%; top: -6%; background: radial-gradient(circle, rgba(8, 210, 253, 0.75) 0%, transparent 62%); animation-duration: 24s; }
.orb-3 { width: 520px; height: 520px; left: 34%; top: 38%; background: radial-gradient(circle, rgba(109, 93, 252, 0.6) 0%, transparent 62%); opacity: 0.32; animation-duration: 28s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(70px, 46px, 0) scale(1.14); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148, 174, 214, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 174, 214, 0.07) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 26%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 26%, #000 25%, transparent 72%);
}
.pulse {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero-copy { text-align: center; max-width: 1000px; }
.pill-new {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; max-width: 100%;
  background: rgba(20, 128, 255, 0.1); border: 1px solid rgba(90, 169, 255, 0.32); color: #d4e8ff; font-size: 0.9rem; font-weight: 500;
  transition: background 0.25s, border-color 0.25s;
}
.pill-new:hover { background: rgba(20, 128, 255, 0.18); border-color: rgba(90, 169, 255, 0.5); }
.pill-new b { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 0.72rem; letter-spacing: 0.1em; }
.pill-new span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-new .i { width: 16px; height: 16px; flex: none; }
.hero-title { margin-top: 24px; font-size: clamp(2.3rem, 5.3vw, 4.6rem); line-height: 1.07; letter-spacing: -0.035em; }
.hero .lead { margin: 24px auto 0; }
.hero-ctas { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dl-meta { margin: 14px 0 0; color: var(--muted); font-size: 0.88rem; }
.trust { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--text-2); font-size: 0.92rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { width: 17px; height: 17px; color: var(--up); stroke-width: 2.6; }

.hero-visual { position: relative; margin: 72px auto 0; max-width: 1180px; perspective: 2000px; }
.hero-glow { position: absolute; inset: 6% 6% -4%; z-index: -1; background: radial-gradient(ellipse at 50% 40%, rgba(20, 128, 255, 0.55), transparent 68%); filter: blur(60px); }
.window {
  position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #0b1220;
  border: 1px solid rgba(148, 174, 214, 0.2);
  box-shadow: 0 50px 120px -40px rgba(20, 128, 255, 0.45), 0 30px 70px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.window-tilt { transform-origin: 50% 0; transform: rotateX(var(--tilt, 16deg)) scale(var(--scale, 0.94)); will-change: transform; }
.window-bar { height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 14px; background: #0e1628; border-bottom: 1px solid rgba(148, 174, 214, 0.1); color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.window-bar img { width: 16px; height: 16px; border-radius: 4px; }
.win-ctl { margin-left: auto; display: flex; gap: 22px; }
.win-ctl b { width: 11px; height: 11px; position: relative; opacity: 0.6; }
.win-ctl b:nth-child(1)::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.4px solid currentColor; }
.win-ctl b:nth-child(2) { border: 1.4px solid currentColor; border-radius: 2px; }
.win-ctl b:nth-child(3)::before, .win-ctl b:nth-child(3)::after { content: ''; position: absolute; left: 50%; top: -2px; height: 15px; border-left: 1.4px solid currentColor; transform: rotate(45deg); }
.win-ctl b:nth-child(3)::after { transform: rotate(-45deg); }
.shot { width: 100%; }

/* Thẻ nổi quanh ảnh */
.float {
  position: absolute; z-index: 3; padding: 14px 16px; border-radius: 16px; font-size: 0.86rem; line-height: 1.45;
  background: rgba(9, 16, 31, 0.8); border: 1px solid rgba(148, 174, 214, 0.22);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.6s var(--ease), opacity 0.8s var(--ease);
}
.float > * { animation: bob 7s ease-in-out infinite; }
.float-ai > * { animation-delay: -2.4s; }
.float-bt > * { animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.float-rt { left: -2.5%; top: 13%; width: 238px; }
.float-ai { right: -3.5%; top: 24%; width: 292px; }
.float-bt { right: 6%; bottom: -5%; width: 286px; }
.rt-row { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.rt-row .mono { margin-left: auto; color: var(--text-2); font-size: 0.84rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(43, 213, 155, 0.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(43, 213, 155, 0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(43, 213, 155, 0); } }
.rt-sub { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 10px; }
.eq i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #22d3ee, #1e7bff); opacity: 0.85; height: 30%; animation: eq 1.6s ease-in-out infinite; }
.eq i:nth-child(2n) { animation-duration: 1.2s; } .eq i:nth-child(3n) { animation-duration: 2.1s; } .eq i:nth-child(5n) { animation-duration: 1.4s; }
.eq i:nth-child(1) { animation-delay: -0.3s; } .eq i:nth-child(4) { animation-delay: -0.8s; } .eq i:nth-child(7) { animation-delay: -1.1s; } .eq i:nth-child(10) { animation-delay: -0.5s; }
@keyframes eq { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.fa-head { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #c4b5fd; font-size: 0.84rem; }
.fa-head .i { width: 16px; height: 16px; }
.fa-q { margin: 8px 0 0; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: rgba(20, 128, 255, 0.16); border: 1px solid rgba(90, 169, 255, 0.25); color: #e1eeff; }
.fa-a { display: flex; gap: 8px; margin-top: 9px; color: var(--text-2); font-size: 0.82rem; }
.fa-a .i { width: 16px; height: 16px; color: var(--up); stroke-width: 2.6; margin-top: 2px; }
.fa-a b { color: var(--text); }
.fb-head, .fb-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 0.82rem; }
.fb-head span { color: var(--text-2); font-weight: 600; }
.fb-foot { color: var(--muted); margin-top: 4px; }
.fb-spark { width: 100%; height: 58px; margin-top: 8px; overflow: visible; }
.fb-line { fill: none; stroke: #4ea8ff; stroke-width: 2.2; stroke-linejoin: round; }
.fb-index { fill: none; stroke: rgba(148, 174, 214, 0.55); stroke-width: 1.5; stroke-dasharray: 3 3; }
.fb-area { fill: url(#fb-fill); }

/* ───────────── Băng chạy ───────────── */
.marquee {
  margin-top: 64px; overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee.is-ready .marquee-track { animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticks { display: flex; gap: 12px; padding: 16px 6px; }
.ticks li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 12px; white-space: nowrap; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--text-2); font-size: 0.9rem; }
.ticks code { color: #8cc8ff; font-size: 0.84rem; }

/* ───────────── Khung mục ───────────── */
.section { position: relative; padding: clamp(76px, 8.5vw, 120px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(20, 60, 140, 0.07) 18%, rgba(20, 60, 140, 0.07) 82%, transparent); }
.section-alt::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.section-head { max-width: 860px; margin-bottom: clamp(44px, 6vw, 68px); }
.section-head.center { text-align: center; margin-inline: auto; max-width: 960px; }
.section-head .h2 { margin-top: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head.center .lead { margin-inline: auto; }

/* Hiện dần khi cuộn */
.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Phần đầu trang hiện bằng hoạt ảnh CSS ngay khi tải — không chờ JavaScript */
.js .hero [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; animation: rise 1s var(--ease) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ───────────── Có gì mới (bento) ───────────── */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  position: relative; grid-column: span 4; padding: 28px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line); transition: border-color 0.35s, transform 0.5s var(--ease);
}
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(30, 123, 255, 0.17), transparent 46%); }
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 18px; font-size: 1.22rem; letter-spacing: -0.015em; }
.card p { margin: 10px 0 0; color: var(--text-2); font-size: 0.97rem; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #8cc8ff; background: rgba(20, 128, 255, 0.12); border: 1px solid rgba(90, 169, 255, 0.26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.ico .i { width: 22px; height: 22px; }
.ico-cyan { color: #67e8f9; background: rgba(8, 210, 253, 0.11); border-color: rgba(8, 210, 253, 0.3); }
.ico-green { color: #6ee7b7; background: rgba(43, 213, 155, 0.11); border-color: rgba(43, 213, 155, 0.3); }
.ico-violet { color: #c4b5fd; background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.32); }
.ico-amber { color: #fcd34d; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); }
.ico-rose { color: #fda4af; background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.3); }
.ico-ai { color: #d4c7ff; background: linear-gradient(135deg, rgba(109, 93, 252, 0.3), rgba(8, 210, 253, 0.18)); border-color: rgba(167, 139, 250, 0.35); }
.card-ai { background: radial-gradient(120% 80% at 100% 0%, rgba(109, 93, 252, 0.16), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #9fd0ff; font-weight: 600; font-size: 0.95rem; }
.card-link .i { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.card-link:hover .i { transform: translateX(4px); }
.mini-chat { margin-top: 22px; display: grid; gap: 9px; max-width: 470px; font-size: 0.86rem; }
.mc-q { justify-self: end; max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: rgba(20, 128, 255, 0.18); border: 1px solid rgba(90, 169, 255, 0.28); }
.mc-step { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2); }
.mc-step .i { width: 16px; height: 16px; color: #8cc8ff; }
.mc-step .ok { margin-left: auto; color: var(--up); font-weight: 700; }
.mc-a { padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.24); color: var(--text-2); }
.js .card-ai .mini-chat > * { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .card-ai.is-in .mini-chat > * { opacity: 1; transform: none; }
.js .card-ai.is-in .mini-chat > :nth-child(2) { transition-delay: 0.5s; }
.js .card-ai.is-in .mini-chat > :nth-child(3) { transition-delay: 1s; }
.js .card-ai.is-in .mini-chat > :nth-child(4) { transition-delay: 1.5s; }
/* Khung cắt ảnh: tỉ lệ --ar; ảnh rộng --w, lệch trái --l, lệch trên --t (% của khung) */
.zoom { position: relative; overflow: hidden; aspect-ratio: var(--ar, 1.6); }
.zoom img { position: absolute; max-width: none; width: var(--w, 100%); left: var(--l, 0%); top: var(--t, 0%); }
.crop { margin: 22px -28px -28px; border-top: 1px solid var(--line); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }

/* ───────────── Dữ liệu ───────────── */
.flow { position: relative; padding: 26px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.flow-svg { width: 100%; height: auto; overflow: visible; }
.flow-path { fill: none; stroke: url(#flow-line); stroke-width: 2.4; stroke-dasharray: 2 7; stroke-linecap: round; }
.node rect { fill: rgba(14, 23, 42, 0.96); stroke: rgba(148, 174, 214, 0.24); stroke-width: 1.2; }
.node-main rect { stroke: rgba(90, 169, 255, 0.6); filter: drop-shadow(0 0 22px rgba(20, 128, 255, 0.45)); }
.node-ico { fill: none; stroke: #8cc8ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node-title { fill: var(--text); font: 700 21px var(--font); letter-spacing: -0.01em; }
.node-sub { fill: var(--muted); font: 500 14.5px var(--font); }
.flow-label { fill: #8cc8ff; font: 600 14px var(--font); }
.flow-m { display: none; }
.flow-m li:not(.flow-m-link) { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(14, 23, 42, 0.96); border: 1px solid rgba(148, 174, 214, 0.24); }
.flow-m li.is-main { border-color: rgba(90, 169, 255, 0.6); box-shadow: 0 0 26px -6px rgba(20, 128, 255, 0.55); }
.flow-m .i { width: 26px; height: 26px; color: #8cc8ff; }
.flow-m img { width: 32px; height: 32px; border-radius: 9px; }
.flow-m b { display: block; }
.flow-m span { display: block; color: var(--muted); font-size: 0.86rem; }
.flow-m-link { position: relative; min-height: 58px; display: flex; align-items: center; padding: 6px 0 6px 52px; }
.flow-m-link em { font-style: normal; color: #8cc8ff; font-size: 0.82rem; font-weight: 600; }
.flow-m-link::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; border-left: 2px dashed rgba(34, 211, 238, 0.45); }
.flow-m-link::after { content: ''; position: absolute; left: 23px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #7cf3ff 35%, rgba(8, 210, 253, 0) 70%); animation: flowdown 1.6s linear infinite; }
@keyframes flowdown { 0% { transform: translateY(-4px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.stat { padding: 26px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(2.2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { display: block; margin-top: 12px; color: var(--text); font-weight: 600; line-height: 1.45; }
.stat em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.types { margin-top: 56px; }
.types-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 28px; margin-bottom: 20px; }
.types-head h3 { font-size: 1.35rem; }
.types-head p { margin: 0; color: var(--muted); max-width: 560px; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-grid li { position: relative; display: grid; gap: 4px; padding: 16px 16px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease); }
.type-grid li:hover { border-color: rgba(90, 169, 255, 0.4); background: rgba(20, 128, 255, 0.06); transform: translateY(-3px); }
.type-grid b { font-size: 0.97rem; padding-right: 54px; }
.type-grid code { color: #8cc8ff; font-size: 0.82rem; }
.type-grid .tf { color: var(--muted); font-size: 0.82rem; }
.type-grid .pk { position: absolute; top: 14px; right: 12px; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: #9fd0ff; background: rgba(20, 128, 255, 0.12); border: 1px solid rgba(90, 169, 255, 0.25); }
.type-grid .pk-pro { color: #d4c7ff; background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); }

/* Bộ ảnh có thẻ */
.showcase { margin-top: 56px; }
.tablist { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 22px; padding: 6px; width: fit-content; max-width: 100%; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.tablist [role='tab'] { position: relative; padding: 9px 16px; border-radius: 11px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: color 0.2s, background 0.2s; }
.tablist [role='tab']:hover { color: var(--text); }
.tablist [role='tab'][aria-selected='true'] { color: #fff; background: rgba(20, 128, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.45); }
.tab-progress { position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; overflow: hidden; border-radius: 2px; }
.tab-progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.tabpanels { display: grid; }
.tabpanels > figure { grid-area: 1 / 1; margin: 0; }
.tabpanels > figure[hidden] { display: block; visibility: hidden; opacity: 0; }
.tabpanels > figure { transition: opacity 0.6s var(--ease); }
.tabpanels > figure.is-on { opacity: 1; visibility: visible; }

/* ───────────── Quant AI ───────────── */
#quant-ai { overflow: hidden; }
.ai-aurora { position: absolute; inset: 8% -20% auto; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(40% 60% at 30% 40%, rgba(109, 93, 252, 0.2), transparent 70%), radial-gradient(40% 60% at 72% 46%, rgba(8, 210, 253, 0.14), transparent 70%); filter: blur(30px); }
.ai-demo {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); grid-template-rows: auto auto;
  border-radius: 22px; overflow: hidden; background: rgba(9, 15, 29, 0.92); border: 1px solid rgba(148, 174, 214, 0.2);
  box-shadow: 0 60px 140px -60px rgba(109, 93, 252, 0.55), 0 30px 80px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ai-chat { display: flex; flex-direction: column; min-height: 520px; border-right: 1px solid var(--line); }
.ai-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.ai-badge { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.ai-badge .i { width: 17px; height: 17px; }
.ai-pill { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: #9fd0ff; background: rgba(20, 128, 255, 0.14); border: 1px solid rgba(90, 169, 255, 0.28); }
.ai-log { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; font-size: 0.9rem; }
.ai-log::-webkit-scrollbar { display: none; }
.ai-idle { margin: auto; display: grid; justify-items: center; gap: 8px; max-width: 320px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.ai-idle .i { width: 34px; height: 34px; color: #b69cff; stroke-width: 1.6; animation: think 2.4s ease-in-out infinite; }
.ai-idle b { color: var(--text); font-size: 1.02rem; }
.msg-u { align-self: flex-end; max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: rgba(20, 128, 255, 0.2); border: 1px solid rgba(90, 169, 255, 0.3); animation: pop 0.45s var(--ease) both; }
.tool { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2); animation: pop 0.45s var(--ease) both; }
.tool .i { width: 16px; height: 16px; color: #8cc8ff; }
.tool small { margin-left: auto; color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.tool .spin { width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; border: 2px solid rgba(140, 200, 255, 0.25); border-top-color: #8cc8ff; animation: spin 0.8s linear infinite; flex: none; }
.tool.is-done .spin { display: none; }
.tool .done { display: none; color: var(--up); font-weight: 800; margin-left: 6px; }
.tool.is-done .done { display: inline; }
.tool .bar { position: relative; height: 4px; flex: 1 1 60px; min-width: 50px; max-width: 120px; margin-left: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tool .bar i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
.msg-a { padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.24); color: var(--text-2); animation: pop 0.45s var(--ease) both; }
.msg-a b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; animation: pop 0.45s var(--ease) both; }
.chips span { padding: 6px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #b9dcff; background: rgba(20, 128, 255, 0.1); border: 1px solid rgba(90, 169, 255, 0.28); }
.thinking { display: inline-flex; gap: 5px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); align-self: flex-start; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; animation: think 1s infinite ease-in-out; }
.thinking i:nth-child(2) { animation-delay: 0.15s; } .thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.ai-input { display: flex; align-items: center; gap: 10px; margin: 0 16px 16px; padding: 12px 12px 12px 16px; min-height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); font-size: 0.9rem; }
.ai-typing { flex: 1; min-height: 1.4em; }
.ai-typing:empty::before { content: 'Mô tả chiến lược bạn muốn xây…'; color: var(--muted); }
.ai-typing.is-typing::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #8cc8ff; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-send { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; }
.ai-send .i { width: 17px; height: 17px; }
.ai-side { display: flex; flex-direction: column; min-width: 0; background: rgba(4, 8, 18, 0.55); }
.ai-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); }
.ai-tabs span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 10px; color: var(--muted); font-size: 0.88rem; font-weight: 600; border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
.ai-tabs span .i { width: 15px; height: 15px; }
.ai-tabs span.is-on { color: var(--text); border-bottom-color: #3b93ff; }
.ai-pane { display: none; flex: 1; min-height: 0; }
.ai-pane.is-on { display: block; animation: pop 0.45s var(--ease) both; }
.ai-code pre { margin: 0; padding: 16px 18px; height: 100%; overflow: hidden; font-size: 0.8rem; line-height: 1.75; color: #d6e2f5; white-space: pre; }
.ai-code code { counter-reset: ln; }
.t-c { color: #6f87a8; font-style: italic; }
.t-s { color: #f7b267; }
.t-n { color: #7ee0c3; }
.t-f { color: #6cb6ff; }
.t-k { color: #f48fb1; }
.t-v { color: #e6edf9; }
.caret { display: inline-block; width: 7px; height: 1.1em; vertical-align: -3px; background: rgba(140, 200, 255, 0.85); animation: caret 1s steps(1) infinite; }
.ai-result { padding: 16px 18px 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis > div { padding: 12px 12px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.kpis span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 600; }
.kpis b { display: block; margin-top: 4px; font-size: 1.32rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpis em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eqc { margin-top: 12px; padding: 14px 14px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.eqc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.lg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 8px; }
.lg-s { background: #4ea8ff; }
.lg-i { background: rgba(148, 174, 214, 0.6); }
.eqc svg { display: block; width: 100%; height: 210px; margin-top: 8px; overflow: visible; }
.eq-grid path { stroke: rgba(148, 174, 214, 0.1); stroke-width: 1; fill: none; }
.eq-line { fill: none; stroke: #4ea8ff; stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.eq-index { fill: none; stroke: rgba(148, 174, 214, 0.6); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.eq-area { fill: url(#eq-fill); opacity: 0; transition: opacity 1.2s var(--ease) 0.6s; }
.eq-area.is-on { opacity: 1; }
.eqc-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 0.72rem; }
.ai-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.ai-note { color: var(--muted); font-size: 0.8rem; }
.ai-replay { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text-2); font-size: 0.84rem; font-weight: 600; cursor: pointer; opacity: 0.4; pointer-events: none; transition: opacity 0.3s, background 0.2s; }
.ai-replay .i { width: 15px; height: 15px; }
.ai-replay.is-on { opacity: 1; pointer-events: auto; }
.ai-replay:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.ai-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; margin-top: 46px; }
.ai-points li { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.ai-points .i { width: 22px; height: 22px; color: #b69cff; margin-top: 2px; }
.ai-points b { display: block; font-size: 1rem; }
.ai-points span { display: block; margin-top: 4px; color: var(--text-2); font-size: 0.93rem; }
.ai-req { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: 26px 0 0; color: var(--text-2); }
.ai-req .i { width: 18px; height: 18px; color: #ffcf6b; }

/* ───────────── Tính năng xen kẽ ───────────── */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.feature + .feature { margin-top: clamp(80px, 9vw, 120px); }
.feature-rev .feature-copy { order: 2; }
.feature-copy .h3 { margin-top: 18px; }
.feature-copy > p { margin: 14px 0 0; color: var(--text-2); font-size: 1.05rem; }
.checks { display: grid; gap: 10px; margin-top: 22px; }
.checks li { display: flex; gap: 10px; color: var(--text-2); }
.checks .i { width: 19px; height: 19px; color: var(--up); stroke-width: 2.6; margin-top: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: #9fd0ff; font-weight: 600; }
.text-link .i { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.text-link:hover .i { transform: translateX(4px); }
.feature-shot { transform: perspective(1600px) rotateY(var(--ry, -6deg)); transition: transform 0.8s var(--ease); }
.feature-rev .feature-shot { --ry: 6deg; }
.feature:hover .feature-shot { --ry: 0deg; }
.code-inline { margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(4, 8, 18, 0.7); border: 1px solid var(--line); font-size: 0.86rem; overflow-x: auto; }
.small-note { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; }
.small-note .i { width: 17px; height: 17px; color: #ffcf6b; }

/* ───────────── AmiBroker ───────────── */
.ami-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px; align-items: start; }
.ami-side { display: grid; gap: 16px; }
.code-card { border-radius: 18px; overflow: hidden; background: rgba(4, 8, 18, 0.75); border: 1px solid var(--line-2); }
.code-title { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 0.84rem; font-weight: 600; }
.code-title .i { width: 16px; height: 16px; color: #8cc8ff; }
.code-card pre { margin: 0; padding: 16px; font-size: 0.8rem; line-height: 1.75; overflow-x: auto; color: #d6e2f5; }
.ami-list { display: grid; gap: 12px; }
.ami-list li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.ami-list .i { width: 21px; height: 21px; color: #8cc8ff; margin-top: 2px; }
.ami-list b { display: block; }
.ami-list span { display: block; margin-top: 2px; color: var(--text-2); font-size: 0.93rem; }
.mk5 { display: flex; align-items: center; gap: 22px; margin-top: 28px; padding: 26px 28px; border-radius: var(--r-lg); background: linear-gradient(110deg, rgba(20, 128, 255, 0.14), rgba(8, 210, 253, 0.06) 60%, rgba(255, 255, 255, 0.02)); border: 1px solid rgba(90, 169, 255, 0.28); }
.mk5-ico { width: 54px; height: 54px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(20, 128, 255, 0.8); }
.mk5-ico .i { width: 26px; height: 26px; }
.mk5-copy { flex: 1; }
.mk5-copy h3 { font-size: 1.2rem; }
.mk5-copy p { margin: 6px 0 0; color: var(--text-2); }

/* ───────────── Bắt đầu ───────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 31px; height: 2px; background: linear-gradient(90deg, rgba(30, 123, 255, 0.1), rgba(30, 123, 255, 0.7), rgba(8, 210, 253, 0.7), rgba(8, 210, 253, 0.1)); transform-origin: left; transform: scaleX(var(--line-p, 1)); transition: transform 1.6s var(--ease) 0.2s; }
.js .steps:not(.is-in)::before { --line-p: 0; }
.steps li { position: relative; padding: 0 10px; text-align: center; }
.step-n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-size: 1.35rem; font-weight: 800; color: #fff; background: radial-gradient(circle at 30% 25%, #4ea8ff, #1460d6 70%); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px rgba(90, 169, 255, 0.35), 0 14px 34px -10px rgba(20, 128, 255, 0.8); }
.section-alt .step-n { box-shadow: 0 0 0 6px #060c19, 0 0 0 7px rgba(90, 169, 255, 0.35), 0 14px 34px -10px rgba(20, 128, 255, 0.8); }
.steps h3 { margin-top: 20px; font-size: 1.15rem; }
.steps p { margin: 8px auto 0; max-width: 260px; color: var(--text-2); font-size: 0.95rem; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 46px; }
.reqs li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--text-2); font-size: 0.9rem; }
.reqs .i { width: 17px; height: 17px; color: #8cc8ff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.trust-card { display: grid; gap: 6px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.trust-card .i { width: 24px; height: 24px; color: var(--up); margin-bottom: 6px; }
.trust-card b { font-size: 1rem; }
.trust-card span { color: var(--text-2); font-size: 0.92rem; }

/* ───────────── Bảng gói ───────────── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan h3 { font-size: 1.2rem; letter-spacing: 0.02em; }
.plan-sub { margin: 6px 0 0; color: var(--muted); font-size: 0.92rem; }
.plan ul { display: grid; align-content: start; gap: 11px; margin: 22px 0 26px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text-2); font-size: 0.95rem; }
.plan li .i { width: 18px; height: 18px; color: var(--up); stroke-width: 2.6; margin-top: 3px; }
.plan li b { color: var(--text); }
.plan-hot { background: radial-gradient(130% 60% at 50% 0%, rgba(30, 123, 255, 0.24), transparent 60%), rgba(12, 22, 44, 0.9); border: 1px solid transparent; box-shadow: 0 30px 80px -30px rgba(20, 128, 255, 0.6); }
.plan-hot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(160deg, #4ea8ff, rgba(8, 210, 253, 0.6) 40%, rgba(167, 139, 250, 0.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.plan-badge { position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -6px rgba(20, 128, 255, 0.9); }
.plans-note { margin: 26px 0 0; text-align: center; color: var(--muted); font-size: 0.93rem; }

/* ───────────── Hỏi đáp ───────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: 110px; margin: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: border-color 0.25s, background 0.25s; }
.faq details[open] { border-color: rgba(90, 169, 255, 0.35); background: rgba(20, 128, 255, 0.05); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--muted); transition: transform 0.3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); color: #8cc8ff; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--text-2); }

/* ───────────── Kêu gọi cuối ───────────── */
.cta-final { padding: clamp(40px, 6vw, 80px) 0 clamp(90px, 10vw, 130px); }
.cta-panel { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 32px; background: radial-gradient(80% 120% at 50% 0%, rgba(30, 123, 255, 0.35), transparent 60%), linear-gradient(180deg, #0b1630, #070d1c); border: 1px solid rgba(90, 169, 255, 0.3); box-shadow: 0 50px 120px -50px rgba(20, 128, 255, 0.7); }
.cta-rings { position: absolute; left: 50%; top: 18%; z-index: -1; pointer-events: none; }
.cta-rings i { position: absolute; left: 0; top: 0; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; border: 1px solid rgba(90, 169, 255, 0.35); animation: ring 6s var(--ease) infinite; }
.cta-rings i:nth-child(2) { animation-delay: 2s; }
.cta-rings i:nth-child(3) { animation-delay: 4s; }
@keyframes ring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(6); opacity: 0; } }
.cta-logo { width: 72px; height: 72px; margin: 0 auto; border-radius: 20px; box-shadow: 0 20px 50px -14px rgba(20, 128, 255, 0.95); }
.cta-panel .h2 { margin-top: 26px; }
.cta-panel .lead { margin: 18px auto 0; }
.hotline { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 22px 0 0; color: var(--text-2); }
.hotline a { white-space: nowrap; }
.hotline .i { width: 18px; height: 18px; color: #8cc8ff; }
.hotline a { color: var(--text); font-weight: 700; }

/* ───────────── Chân trang ───────────── */
.footer { border-top: 1px solid var(--line); background: #03060c; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; }
.footer-brand p { margin: 14px 0 0; max-width: 360px; color: var(--muted); font-size: 0.93rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.footer-cols a { display: block; padding: 4px 0; color: var(--text-2); font-size: 0.94rem; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; }

/* ───────────── Màn hình hẹp ───────────── */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; font-size: 0.9rem; }
  .nav-guide { display: none; }
  .float-rt { left: 1%; }
  .float-ai { right: 1%; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px var(--gutter) 18px; background: #060a14; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 12px; font-size: 1rem; }
  .nav-links .only-mobile { display: block; }
  .nav-toggle { display: grid; }
  .span-7, .span-5 { grid-column: span 12; }
  .card { grid-column: span 6; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .ai-demo { grid-template-columns: minmax(0, 1fr); }
  .ai-chat { border-right: 0; border-bottom: 1px solid var(--line); min-height: 440px; }
  .ai-side { min-height: 420px; }
  .ai-points { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature-rev { grid-template-columns: minmax(0, 1fr); }
  .feature-rev .feature-copy { order: 0; }
  .feature-shot, .feature-rev .feature-shot { --ry: 0deg; }
  .ami-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-head { position: static; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hide-sm { display: none !important; }
  .nav-inner { height: 64px; gap: 10px; }
  .nav-links { top: 64px; }
  .brand { font-size: 0.98rem; }
  .hero { padding-top: 118px; }
  .pill-new { font-size: 0.82rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .trust { justify-content: flex-start; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 0.86rem; }
  .hero-visual { margin-top: 44px; }
  .window { border-radius: 12px; }
  .window-bar { height: 26px; font-size: 0.7rem; }
  .float-rt { left: -6px; top: -26px; width: 196px; padding: 10px 12px; }
  .float-rt .eq { display: none; }
  .float-ai { display: none; }
  .float-bt { display: none; }
  .flow-svg { display: none; }
  .flow-m { display: grid; }
  .marquee { margin-top: 70px; }
  .card { grid-column: span 12; padding: 24px; }
  .crop { margin: 20px -24px -24px; }
  .flow { padding: 14px 10px; }
  .stats { gap: 12px; }
  .stat { padding: 20px 18px; }
  .type-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .type-grid li { padding: 14px 12px 12px; }
  .type-grid b { padding-right: 0; font-size: 0.9rem; }
  .type-grid .pk { position: static; justify-self: start; margin-top: 4px; }
  .tablist { width: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist [role='tab'] { white-space: nowrap; flex: none; }
  .ai-chat { min-height: 400px; }
  .ai-log { padding: 14px; font-size: 0.86rem; }
  .ai-code pre { font-size: 0.7rem; padding: 12px; overflow-x: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .ai-foot { flex-direction: column; align-items: flex-start; }
  .ai-points { grid-template-columns: minmax(0, 1fr); }
  .mk5 { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .cta-panel { border-radius: 24px; }
}

/* Người dùng tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .window-tilt { transform: none; }
  .flow-dots, .pulse, .cta-rings { display: none; }
}
