:root {
  --bg: #0b0816;
  --bg2: #110d22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece9f8;
  --muted: #a9a3c8;
  --violet: #7c3aed;
  --violet2: #a78bfa;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Be Vietnam Pro", "Noto Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--violet2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 0.88em; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; }
pre { background: #07050f; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; }
pre code { background: none; padding: 0; font-size: 14px; }
kbd { display: inline-block; font-family: inherit; font-size: 0.82em; font-weight: 600; padding: 1px 8px; border-radius: 7px; background: #241f3d; border: 1px solid rgba(196, 181, 253, 0.3); box-shadow: 0 2px 0 #120f24; color: #ede9fe; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); }

.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: rgba(11, 8, 22, 0.72); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--text); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 16px; color: #fff; background: linear-gradient(135deg, #7c3aed, #a855f7); box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.7); border: 0; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(168, 85, 247, 0.9); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }

.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; background: radial-gradient(600px 420px at 75% 30%, rgba(124, 58, 237, 0.38), transparent 70%), radial-gradient(500px 400px at 10% 10%, rgba(192, 38, 211, 0.16), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 14px; font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -1.5px; margin: 0 0 20px; font-weight: 800; }
.kbd-inline { display: inline-block; font-size: 0.72em; padding: 0 14px; border-radius: 12px; background: linear-gradient(#2d2650, #1d1838); border: 1px solid rgba(196, 181, 253, 0.35); box-shadow: 0 5px 0 #120f24; vertical-align: 0.1em; line-height: 1.45; }
.plus { color: var(--muted); margin: 0 8px; font-weight: 600; font-size: 0.7em; vertical-align: 0.15em; }
.lead { font-size: 19px; color: #cfcae6; margin: 0 0 28px; max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 16px; }

.hero-demo { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#demo { width: 100%; display: flex; justify-content: center; }
#demo .jv-palette { width: 100%; max-width: 560px; }
.demo-label { color: var(--muted); font-size: 14px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.demo-label button { font: inherit; font-size: 13px; color: #ddd6fe; background: rgba(124, 58, 237, 0.2); border: 1px solid rgba(167, 139, 250, 0.35); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.demo-label button:hover { background: rgba(124, 58, 237, 0.35); }
.demo-note { color: #6f6990; font-size: 12px; margin-top: 12px; }
.jv-row { cursor: pointer; }

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 22px 16px; text-align: center; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; }
.strip-in b { display: block; font-size: 22px; font-weight: 800; background: linear-gradient(90deg, #c4b5fd, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip-in span { color: var(--muted); font-size: 14px; }

.section { padding: 88px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.8px; line-height: 1.2; margin: 0 0 12px; text-align: center; font-weight: 800; }
.sub { color: var(--muted); text-align: center; margin: 0 auto 44px; max-width: 640px; }
.sub.left, .two h2, .video-in h2 { text-align: left; margin-left: 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.card .ic { font-size: 26px; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.video-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.video-box { border-radius: 22px; overflow: hidden; border: 1px solid rgba(167, 139, 250, 0.3); box-shadow: 0 40px 90px -30px rgba(124, 58, 237, 0.6); background: #000; aspect-ratio: 1 / 1; }
.video-box video { width: 100%; height: 100%; display: block; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: rgba(124, 58, 237, 0.25); border: 1px solid rgba(167, 139, 250, 0.35); color: #ddd6fe; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { padding: 28px; border-radius: 22px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.dl.current { border-color: rgba(167, 139, 250, 0.6); background: linear-gradient(160deg, rgba(124, 58, 237, 0.2), rgba(255, 255, 255, 0.03)); box-shadow: 0 30px 70px -30px rgba(124, 58, 237, 0.6); }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-head svg { width: 30px; height: 30px; color: #ddd6fe; }
.dl-head h3 { margin: 0; font-size: 24px; }
.dl .req { color: var(--muted); font-size: 14px; margin: 0 0 8px; min-height: 44px; }
.dl.current .dl-head h3::after { content: "Máy bạn"; margin-left: 10px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #4ade80; color: #052e16; vertical-align: middle; }

.tabs { display: flex; justify-content: center; gap: 8px; margin: 28px 0 24px; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 20px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #fff; background: rgba(124, 58, 237, 0.3); border-color: rgba(167, 139, 250, 0.5); }
.panel { max-width: 780px; margin: 0 auto; }
.panel ol { margin: 0; padding-left: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.panel li { color: #d4d0ee; min-width: 0; }

.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
.csv { border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.csv th, .csv td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
.csv th { background: rgba(124, 58, 237, 0.18); font-weight: 600; }
.fine { color: var(--muted); font-size: 14px; }
.keys td { padding: 12px 0; border-bottom: 1px solid var(--line); color: #d4d0ee; }
.keys td:first-child { white-space: nowrap; padding-right: 20px; }

details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; background: rgba(255, 255, 255, 0.02); }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--violet2); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0 0 16px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-in, .video-in, .two { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .strip-in { grid-template-columns: repeat(2, 1fr); }
  .strip-in div:nth-child(3) { border-left: 0; }
  .section { padding: 64px 0; }
  .hero { padding-top: 44px; }
  .jv-row .tag { display: none; }
}
.hero-in > *, .video-in > *, .two > * { min-width: 0; }
code { overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { #demo .jv-list { height: 230px; } .jv-status span:last-child { display: none; } }
