/* KSIC · Easy Pro Sound Event — landing page ksic.ketx.vn
 * Giao diện: nền tối, cam theo logo KSIC và giao diện phần mềm. Phiên bản trang 1.0 (03/12/2026). */
:root {
  --bg: #0a0b0e;
  --bg-2: #0f1115;
  --surface: #15181e;
  --surface-2: #1b1f27;
  --line: #262b35;
  --line-2: #333947;
  --ink: #f5f6f8;
  --muted: #a6adba;
  --dim: #7c8492;
  --accent: #ff7a00;
  --accent-2: #ffae1a;
  --accent-ink: #1a0d00;
  --ok: #22c55e;
  --bad: #ef4444;
  --grad: linear-gradient(135deg, #ff5a00 0%, #ff8a00 45%, #ffc233 100%);
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1200px;
  --pad: clamp(18px, 4vw, 32px);
  --head: 68px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --logo: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Chữ ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 4.4vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 62ch; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.muted { color: var(--muted); }
kbd { font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace; padding: 4px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }

/* ---------- Logo KSIC ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo-bars { display: inline-flex; align-items: center; gap: 3px; height: 28px; }
.logo-bars i { display: block; width: 4px; border-radius: 3px; background: var(--grad); }
.logo-bars i:nth-child(1) { height: 30%; } .logo-bars i:nth-child(2) { height: 62%; } .logo-bars i:nth-child(3) { height: 100%; }
.logo-bars i:nth-child(4) { height: 62%; } .logo-bars i:nth-child(5) { height: 30%; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-word { font: italic 900 26px/0.9 var(--logo); letter-spacing: -0.01em; color: #fff; }
.logo-word b { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 1px; }
.logo-sub { font: italic 800 8.5px/1 var(--logo); letter-spacing: 0.16em; color: #dfe2e8; text-transform: uppercase; }
.logo:hover .logo-bars i { animation: eq 0.9s ease-in-out infinite alternate; }
.logo:hover .logo-bars i:nth-child(2) { animation-delay: 0.15s; } .logo:hover .logo-bars i:nth-child(3) { animation-delay: 0.3s; }
.logo:hover .logo-bars i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { to { transform: scaleY(0.45); } }

/* ---------- Đầu trang ---------- */
.site-head { position: sticky; top: 0; z-index: 100; height: var(--head); background: rgba(10, 11, 14, 0.78); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; white-space: nowrap; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--muted); border-radius: 8px; transition: color 0.2s; }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; border-radius: 2px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a.nav-pro { color: var(--accent-2); font-weight: 700; }
.head-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.25s, background 0.25s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded='true'] span { background: transparent; }
.menu-btn[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s, border-color 0.25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 8px 28px -10px rgba(255, 122, 0, 0.7); }
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(255, 140, 0, 0.85); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 122, 0, 0.08); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.link { color: var(--accent-2); font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.3s; padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }

/* ---------- Khối chung ---------- */
section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 + .lead { margin-top: 18px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glow::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 80% 0%, rgba(255, 122, 0, 0.12), transparent 70%); }

/* Khung cửa sổ phần mềm */
.app-frame { position: relative; border-radius: 14px; overflow: hidden; background: #0d0f13; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.app-frame .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #161a21; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.app-frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a404c; }
.app-frame .bar i:nth-child(1) { background: #ff5f57; } .app-frame .bar i:nth-child(2) { background: #febc2e; } .app-frame .bar i:nth-child(3) { background: #28c840; }
.app-frame .bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-frame .shot { overflow: hidden; }
.app-frame img { width: 100%; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.app-frame:hover img { transform: scale(1.025); }
a.app-frame { display: block; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -10% -10% auto; height: 90%; pointer-events: none; background: radial-gradient(45% 55% at 75% 30%, rgba(255, 110, 0, 0.22), transparent 70%), radial-gradient(30% 40% at 10% 10%, rgba(255, 174, 26, 0.08), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); padding: 0; margin: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.hero-visual { position: relative; }
.hero-visual .app-frame { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.hero-badge { position: absolute; left: -18px; bottom: -22px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(21, 24, 30, 0.92); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); font-size: 14px; }
.hero-badge b { display: block; font-size: 15px; }
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }

/* Vào trang: hero hiện một lần */
[data-enter] > * { animation: enter 0.8s cubic-bezier(.2, .7, .2, 1) both; }
[data-enter] > *:nth-child(2) { animation-delay: 0.12s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }

/* Dải số liệu */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.stats-wrap { margin-top: clamp(48px, 6vw, 72px); position: relative; }

/* Hàng chia đôi */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.split.rev > .split-text { order: 2; }
.split-text h2 { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 122, 0, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffae1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.split-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Thẻ */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s ease, border-color 0.25s, background 0.25s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(145deg, rgba(255, 122, 0, 0.22), rgba(255, 174, 26, 0.06)); border: 1px solid rgba(255, 140, 0, 0.3); color: var(--accent-2); }
.card .ic svg { width: 22px; height: 22px; }
.card .key { position: absolute; top: 22px; right: 22px; }
.card-img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-img .shot { overflow: hidden; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; }
.card-img .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.card-img:hover .shot img { transform: scale(1.03); }
.card-img .body { padding: 24px 26px 26px; }

/* Nhãn mức hỗ trợ */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.tag-full { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.tag-basic { color: var(--accent-2); border-color: rgba(255, 174, 26, 0.35); background: rgba(255, 174, 26, 0.08); }
.tag-dsp { color: #60a5fa; border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.08); }
.tag-no { color: #a1a1aa; border-color: rgba(161, 161, 170, 0.3); background: rgba(161, 161, 170, 0.06); }

/* Tường hãng bàn */
.brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.brand.try { border-style: dashed; border-color: rgba(255, 122, 0, 0.45); background: rgba(255, 122, 0, 0.06); }
.brand.try b { color: var(--accent-2); }
@media (max-width: 980px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brand { padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.brand:hover { transform: translateY(-2px); border-color: rgba(255, 122, 0, 0.5); }
.brand b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.brand span { display: block; color: var(--dim); font-size: 13.5px; margin-top: 4px; line-height: 1.45; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-top: 28px; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marq 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--muted); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Sơ đồ kết nối */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.node { text-align: center; padding: 20px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); }
.node.main { border-color: rgba(255, 122, 0, 0.55); box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.08); }
.node svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--accent-2); }
.node b { display: block; font-size: 15.5px; }
.node span { display: block; font-size: 13px; color: var(--dim); margin-top: 3px; }
.wire { position: relative; width: clamp(40px, 6vw, 90px); height: 2px; background: var(--line-2); overflow: hidden; border-radius: 2px; }
.wire::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--grad); animation: pulse 2.6s linear infinite; }
.wire.back::after { animation-direction: reverse; }
.wire-label { display: block; text-align: center; font-size: 12px; color: var(--dim); margin-top: 8px; white-space: nowrap; }
@keyframes pulse { to { left: 100%; } }

/* Bước */
.steps { counter-reset: s; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 20px 22px 20px 72px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-weight: 800; font-size: 22px; color: var(--accent); letter-spacing: -0.02em; }
.steps li b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16.5px; }
.steps.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Bảng giá */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.plan:hover { transform: translateY(-2px); border-color: var(--line-2); }
.plan.hot { border-color: rgba(255, 122, 0, 0.7); background: linear-gradient(180deg, rgba(255, 122, 0, 0.12), var(--surface) 55%); box-shadow: 0 24px 50px -30px rgba(255, 122, 0, 0.6); }
.plan .ribbon { position: absolute; top: -12px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.plan h3 { font-size: 18px; }
.plan .note { color: var(--dim); font-size: 13.5px; margin-top: 4px; min-height: 2.6em; }
.plan .price { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 2px; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan .per { color: var(--dim); font-size: 13px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); flex: 1; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 18px 22px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; }
.pay-row b { color: var(--ink); }

/* Hướng dẫn */
.doc { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: start; }
.doc-cover { aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(160deg, #1d222b, #121419); border: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: space-between; padding: 12px 10px; position: relative; overflow: hidden; }
.doc-cover::after { content: 'PDF'; position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 800; color: var(--accent-ink); background: var(--grad); padding: 2px 6px; border-radius: 4px; }
.doc-cover .logo-bars { height: 18px; } .doc-cover .logo-bars i { width: 3px; }
.doc-cover small { font-size: 10px; font-weight: 700; line-height: 1.3; color: #dfe2e8; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.doc .meta { font-size: 13.5px; color: var(--dim); margin-top: 8px; }

/* Bảng tương thích */
.table-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color 0.2s; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; color: var(--dim); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.18s; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: rgba(255, 122, 0, 0.14); border-color: var(--accent); color: var(--ink); }
.compat { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.compat-row { display: grid; grid-template-columns: minmax(0, 1.05fr) 110px minmax(0, 1.6fr) minmax(0, 1.1fr); gap: 18px; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 14.5px; align-items: start; }
.compat-row:first-child { border-top: 0; }
.compat-row.head { background: var(--bg-2); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.compat-row b { display: block; font-size: 15.5px; }
.compat-row small { display: block; color: var(--dim); margin-top: 2px; font-size: 13px; }
.compat-row .can { color: var(--ink); }
.compat-row .cant { color: var(--dim); }
.compat-row[hidden] { display: none; }
.compat-empty { padding: 26px; text-align: center; color: var(--muted); }

/* Hỏi đáp */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq details { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 16.5px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent-2); }
.faq .ans { padding: 0 22px 22px; color: var(--muted); }
.faq .ans p + p { margin-top: 10px; }

/* Lời kêu gọi cuối */
.close { text-align: center; overflow: hidden; }
.close::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 100%, rgba(255, 110, 0, 0.25), transparent 70%); pointer-events: none; }
.close h2 { font-size: clamp(32px, 4.6vw, 56px); max-width: 18ch; margin: 0 auto 18px; }
.close .lead { margin: 0 auto 32px; }
.close .hero-actions { justify-content: center; }

/* Chân trang */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #08090b; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-grid h4 { font-size: 14px; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-grid ul a { display: inline-flex; min-height: 32px; align-items: center; transition: color 0.2s; }
.foot-grid ul a:hover { color: var(--accent-2); }
.foot-grid p { margin-top: 14px; max-width: 34ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.coder { color: var(--muted); font-weight: 600; }

/* Nút nổi Zalo / gọi */
.float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.8); transition: transform 0.2s; font-weight: 800; font-size: 13px; }
.float a:hover { transform: translateY(-2px) scale(1.04); }
.float .f-zalo { background: #0068ff; color: #fff; }
.float .f-call { background: var(--grad); color: var(--accent-ink); }
.float svg { width: 22px; height: 22px; }

/* ---------- Hộp mua key ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: flex-start; justify-content: center; padding: 4vh 16px; overflow-y: auto; background: rgba(5, 6, 8, 0.78); backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: 100%; max-width: 560px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px #000; animation: pop 0.25s cubic-bezier(.2, .7, .2, 1); }
.modal-box.wide { max-width: 1000px; }
@keyframes pop { from { transform: translateY(14px) scale(0.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-x { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); }
.modal-x:hover { color: var(--ink); border-color: var(--accent); }
.modal-body { padding: 22px; }
.pdf-frame { width: 100%; height: 76vh; border: 0; background: #fff; display: block; border-radius: 0 0 16px 16px; }
.co-steps { display: flex; gap: 6px; margin-bottom: 20px; font-size: 13px; color: var(--dim); }
.co-steps span { flex: 1; padding-top: 8px; border-top: 3px solid var(--line-2); }
.co-steps span.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.co-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.co-plan { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; min-height: 44px; transition: border-color 0.2s, background 0.2s; }
.co-plan:hover { border-color: var(--accent); }
.co-plan[aria-pressed='true'] { border-color: var(--accent); background: rgba(255, 122, 0, 0.12); }
.co-plan b { display: block; font-size: 14.5px; }
.co-plan span { font-size: 14px; color: var(--accent-2); font-weight: 700; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); outline: none; transition: border-color 0.2s; width: 100%; }
.field input:focus { border-color: var(--accent); }
.field input[aria-invalid='true'] { border-color: var(--bad); }
.field .err { color: #fca5a5; font-size: 13px; min-height: 0; }
.field .hint { color: var(--dim); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; margin-bottom: 6px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.voucher { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.voucher .field { margin-bottom: 0; }
.sum { margin: 18px 0; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { font-size: 18px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); }
.form-msg { font-size: 14px; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); color: #fecaca; }
.form-msg[hidden] { display: none; }
.fine { font-size: 13px; color: var(--dim); margin-top: 14px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qr-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.qr-img { background: #fff; border-radius: 12px; padding: 10px; }
.qr-img img { width: 100%; }
.bank { display: grid; gap: 8px; font-size: 14.5px; }
.bank div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.bank span { color: var(--dim); }
.bank b { text-align: right; word-break: break-all; }
.copy { margin-left: 8px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 6px; font-size: 12px; padding: 2px 8px; cursor: pointer; color: var(--muted); min-height: 28px; }
.copy:hover { color: var(--ink); border-color: var(--accent); }
.wait { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 174, 26, 0.08); border: 1px solid rgba(255, 174, 26, 0.3); font-size: 14.5px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 174, 26, 0.3); border-top-color: var(--accent-2); animation: rot 0.8s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }
.done-ic { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; background: rgba(34, 197, 94, 0.14); color: var(--ok); }
.done-ic svg { width: 32px; height: 32px; }
.keybox { margin: 16px 0; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--accent); text-align: center; }
.keybox code { display: block; font: 700 clamp(15px, 3.4vw, 19px)/1.5 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; color: var(--accent-2); word-break: break-all; }
.dl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }

/* Tải về */
.dl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dl { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform 0.25s, border-color 0.25s; }
.dl:hover { transform: translateY(-2px); border-color: var(--accent); }
.dl svg { width: 30px; height: 30px; color: var(--ink); margin-bottom: 8px; }
.dl b { font-size: 18px; }
.dl span { color: var(--dim); font-size: 14px; }
.dl em { margin-top: 12px; font-style: normal; font-weight: 700; color: var(--accent-2); }

/* ---------- Đáp ứng ---------- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .compat-row { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1.4fr); }
  .compat-row > :nth-child(4) { grid-column: 3; }
}
@media (max-width: 1140px) {
  .nav, .head-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: flex; position: fixed; top: var(--head); left: 0; right: 0; bottom: 0; height: calc(100vh - var(--head)); flex-direction: column; align-items: stretch; gap: 0; padding: 20px var(--pad); background: #0a0b0e; overflow-y: auto; }
  .nav.open a { font-size: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
  .nav.open a::after { display: none; }
}
@media (max-width: 980px) {
  .hero-grid, .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > .split-text { order: 0; }
  .hero-visual .app-frame { transform: none; }
  .hero-badge { left: 12px; bottom: -18px; }
  .g3, .steps.row, .steps.row4, .dl-cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; justify-items: center; }
  .flow .node { width: 100%; max-width: 360px; }
  .wire { width: 2px; height: 36px; }
  .wire::after { left: 0; top: -40%; width: 100%; height: 40%; animation-name: pulsev; }
  @keyframes pulsev { to { top: 100%; } }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .g2, .g3, .g4, .steps.row, .steps.row4, .dl-cards, .plans, .row2 { grid-template-columns: 1fr; }
  .hero-actions .btn, .close .btn, .split-actions .btn { width: 100%; }
  .head-cta .btn-primary { padding: 0 14px; }
  .logo-word { font-size: 23px; } .logo-sub { font-size: 7.5px; }
  .compat-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px; }
  .compat-row > :nth-child(3), .compat-row > :nth-child(4) { grid-column: 1 / -1; }
  .compat-row.head { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .qr-wrap { grid-template-columns: 1fr; }
  .qr-img { max-width: 240px; margin: 0 auto; }
  .doc { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .dl-row { grid-template-columns: 1fr; }
  .hero-badge { position: relative; left: 0; bottom: 0; margin-top: 14px; }
  .float { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
