/* taxonomydj.com — một file CSS cho mọi trang. Chủ đề TỐI duy nhất (app
   cũng tối). Màu lấy từ logo đĩa vinyl neon: hồng · tím · xanh trên nền đen.
   Mọi chuyển động tắt khi người dùng bật "giảm chuyển động". */

:root {
  --bg: #050508;
  --bg1: #09090f;
  --bg2: #0f0f18;
  --card: rgba(255, 255, 255, .028);
  --card2: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .15);
  --text: #efeef7;
  --dim: #a4a2b9;
  --faint: #807e96;
  --pink: #ff2bd6;
  --violet: #8b5cff;
  --blue: #3d8bff;
  --cyan: #33d6ff;
  --gold: #f6d77a;
  --green: #3ddc97;
  --grad: linear-gradient(100deg, #ff2bd6 0%, #a44dff 38%, #6a6bff 62%, #33b4ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 43, 214, .16), rgba(61, 139, 255, .12));
  --f-display: "Unbounded", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 22px;
  --r-sm: 14px;
  --hdr: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.hdr { view-transition-name: hdr; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
kbd {
  font: 500 .82em/1 var(--f-mono); padding: .22em .45em; border-radius: 6px;
  border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--card2); color: var(--text);
}
code { font: .9em var(--f-mono); color: #ffc2f2; }
strong { font-weight: 600; color: var(--text); }
::selection { background: rgba(255, 43, 214, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-md { max-width: 900px; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 30px; height: 30px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--text); color: var(--bg); border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ------------------------------------------------ nền: quầng, hạt, thanh cuộn */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-aurora i {
  position: absolute; border-radius: 50%; opacity: .5; will-change: transform;
  animation: troi 28s ease-in-out infinite alternate;
}
.bg-aurora i:nth-child(1) { width: 56vw; height: 56vw; left: -18vw; top: -22vw; background: radial-gradient(circle, rgba(255, 43, 214, .45), transparent 65%); }
.bg-aurora i:nth-child(2) { width: 50vw; height: 50vw; right: -20vw; top: 20vh; background: radial-gradient(circle, rgba(61, 110, 255, .45), transparent 65%); animation-delay: -9s; animation-duration: 34s; }
.bg-aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 25vw; bottom: -25vw; background: radial-gradient(circle, rgba(139, 92, 255, .35), transparent 65%); animation-delay: -17s; }
@keyframes troi {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, -3vh, 0) scale(.95); }
}
.bg-grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0);
  animation: cuon linear both; animation-timeline: scroll(root);
}
@keyframes cuon { to { transform: scaleX(1); } }

/* ------------------------------------------------ header */
.hdr {
  position: fixed; top: 12px; left: 50%; z-index: 60; transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px)); height: 60px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 20px;
  border: 1px solid transparent; border-radius: 18px;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s, top .35s var(--ease);
}
.hdr.is-scrolled {
  top: 8px; background: rgba(12, 12, 20, .62); border-color: var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--f-display); letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; mix-blend-mode: screen; animation: quay 14s linear infinite; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes quay { to { transform: rotate(360deg); } }
.nav { margin: 0 auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--dim); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--card2); }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad);
}
.hdr-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .hdr-act { margin-left: 0; }
/* Mọi chỗ đổi ngôn ngữ mang icon ngôn ngữ (người dùng 2026-10-03). Nút co theo nội dung
   (icon + "EN"), không còn ô vuông 40px cố định. */
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px;
  font: 600 12px/1 var(--f-mono); color: var(--dim); border: 1px solid var(--line); transition: .2s;
}
.lang:hover { color: var(--text); border-color: var(--line2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu-dd {
  position: fixed; inset: 0; z-index: 55; padding: 100px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(5, 5, 8, .94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .6s var(--ease-out);
}
.menu-dd[hidden] { display: flex; visibility: hidden; }
.menu-dd.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.menu-dd ul { list-style: none; margin: 0; padding: 0; }
.menu-dd li { opacity: 0; transform: translateY(24px); transition: .5s var(--ease-out); transition-delay: calc(var(--i) * 45ms + .12s); }
.menu-dd.is-open li { opacity: 1; transform: none; }
.menu-dd li a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; font: 600 clamp(28px, 8vw, 44px)/1.15 var(--f-display); letter-spacing: -.02em; }
.menu-dd li a[aria-current] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dd-so { font: 500 12px var(--f-mono); color: var(--faint); -webkit-text-fill-color: var(--faint); }
.menu-dd-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lang-lg { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 500; }
.lang-lg .ic, .lang .ic { flex: none; }

/* ------------------------------------------------ nút */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 14px; white-space: nowrap;
  font: 600 15px/1 var(--f-body); letter-spacing: .005em;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s, color .2s;
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 16px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-glow {
  color: #fff; background: var(--grad); background-size: 180% 100%; background-position: 0 0;
  box-shadow: 0 8px 30px -8px rgba(255, 43, 214, .55), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  overflow: hidden; isolation: isolate;
}
.btn-glow::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-glow:hover { background-position: 100% 0; box-shadow: 0 14px 44px -8px rgba(164, 77, 255, .75), 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn-glow:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--line2); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--card2); border-color: rgba(255, 255, 255, .28); }
.btn.is-off { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line2); padding-bottom: 3px; transition: border-color .2s, gap .3s var(--ease); }
.link-arrow:hover { border-color: var(--pink); gap: 12px; }

/* ------------------------------------------------ chữ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .03);
  font: 500 13px/1 var(--f-mono); letter-spacing: .04em; color: var(--dim); backdrop-filter: blur(6px);
}
.eb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: nhip 1.875s ease-in-out infinite; }
@keyframes nhip { 0%, 100% { transform: scale(1); opacity: 1; } 12% { transform: scale(1.6); } 40% { opacity: .5; } }
.h-hero, .h-xl, .h-lg, .h-md { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h-hero { font-size: clamp(32px, 6.1vw, 78px); line-height: .98; font-weight: 800; }
.h-xl { font-size: clamp(36px, 6vw, 80px); line-height: 1.04; }
.h-lg { font-size: clamp(28px, 4vw, 52px); line-height: 1.08; margin-bottom: 28px; }
.h-md { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--dim); margin: 18px 0 0; max-width: 62ch; text-wrap: pretty; }
.fine { font-size: 14px; color: var(--faint); margin: 18px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fine.center, .center .fine { justify-content: center; }
.fine a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.fine a:hover { color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.ctas-c { justify-content: center; }

/* Tách chữ theo từ để hiện dần (site.js bọc từng từ). */
/* Khung che rộng .2em trên / .16em dưới để không cắt dấu tiếng Việt: Unbounded có "ỗ" cao 1,05em,
   chấm "ạ" sâu .26em dưới đường chân chữ — với line-height ~1 thì vượt khỏi dòng. */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em 0 .16em; margin: -.2em 0 -.16em; }
[data-split] .w > span { display: inline-block; transform: translateY(125%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 38ms); }
[data-split].is-in .w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-js [data-split] .w > span { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------ hero trang chủ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 60px) 0 120px; overflow: hidden; isolation: isolate; }
.hero-in { position: relative; z-index: 2; }
/* Chừa chỗ dấu (xem [data-split] .w). Lề âm của hai khối kề nhau GỘP chứ không cộng, nên dồn cả
   .32em về lề dưới: nhịp dòng giữ .98 + .06 = 1,04em như trước. */
.h-hero .ln { display: block; overflow: hidden; padding: .2em 0 .18em; margin: -.2em 0 -.32em; }
.h-hero .ln > span { display: inline-block; animation: len 1.2s var(--ease-out) both; }
.h-hero .ln:nth-child(2) > span { animation-delay: .12s; }
@keyframes len { from { transform: translateY(130%) rotate(3deg); } to { transform: none; } }
.hero-lead { animation: mo 1.2s .35s var(--ease-out) both; }
.hero-dau { color: var(--text); font-weight: 500; }
.hero-dau + .hero-lead { margin-top: 10px; animation-delay: .5s; }
.hero .ctas { animation: mo 1.2s .5s var(--ease-out) both; }
.hero .fine { animation: mo 1.2s .65s var(--ease-out) both; }
.hero .eyebrow { animation: mo 1s .05s var(--ease-out) both; }
@keyframes mo { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-spec { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; z-index: -1; opacity: .75;
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent); mask-image: linear-gradient(to top, #000 25%, transparent); }
.hero-lead, .hero .fine { text-shadow: 0 2px 18px #050508, 0 0 4px #050508; }
.hero-disc {
  --kick: 0;
  position: absolute; z-index: -1; right: max(-12vw, -180px); top: 50%; width: min(64vw, 780px); aspect-ratio: 1;
  translate: 0 -50%; scale: calc(1 + var(--kick) * .025); opacity: .9; animation: mo 1.6s .2s var(--ease-out) both;
  will-change: transform;
}
.hero-disc::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--blue), var(--cyan), var(--pink));
  filter: blur(60px); opacity: calc(.28 + var(--kick) * .35); animation: quay 12s linear infinite;
  will-change: transform, opacity;
}
.hero-disc img { position: relative; width: 100%; height: 100%; border-radius: 50%; mix-blend-mode: screen; animation: quay 40s linear infinite; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid var(--line2); border-radius: 14px; transform: translateX(-50%); }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--text); transform: translateX(-50%); animation: cuon-xuong 1.8s ease-in-out infinite; }
@keyframes cuon-xuong { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ------------------------------------------------ chip + marquee */
.chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 15px; font-weight: 500; color: var(--text);
}
.chip-mono { font: 500 14px var(--f-mono); color: var(--dim); }
.chip-cam { font: 600 14px var(--f-mono); color: #0b0b12; background: #8fe36a; border-color: transparent; }
.marquee { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .012); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-row { display: flex; overflow: hidden; }
.mq-row + .mq-row { margin-top: 12px; }
.mq-track { display: flex; gap: 12px; padding-right: 12px; flex: none; animation: mq 50s linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; animation-duration: 60s; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-row:first-child .chip:nth-child(3n+1) { border-color: rgba(255, 43, 214, .45); box-shadow: 0 0 20px -6px rgba(255, 43, 214, .5) inset; }
.mq-row:first-child .chip:nth-child(3n+2) { border-color: rgba(139, 92, 255, .45); }
.mq-row:first-child .chip:nth-child(3n) { border-color: rgba(51, 214, 255, .4); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ------------------------------------------------ section chung */
.sec { position: relative; padding: clamp(80px, 11vw, 150px) 0 0; }
.sec-tight { padding-top: clamp(40px, 5vw, 64px); }
.sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 60px; align-items: end; margin-bottom: 48px; }
.sec-head .h-lg { margin: 0; }
.sec-head .lead { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: start; }

/* ------------------------------------------------ 4 bước (sticky) */
/* Chuỗi chặng dưới tiêu đề khối cách hoạt động: ô bo tròn + vạch nối gradient;
   ô cuối (đích đến) viền gradient. */
.flow { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 12px; }
.flow li { display: flex; align-items: center; }
.flow li + li::before { content: ""; width: 34px; height: 2px; margin: 0 8px; border-radius: 2px; background: var(--grad); opacity: .75; }
.flow a {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 9px; border-radius: 999px;
  background: var(--card2); border: 1px solid var(--line2); color: var(--text);
  font: 600 17px/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap;
  transition: border-color .25s, transform .3s var(--ease);
}
.flow a:hover { border-color: rgba(255, 43, 214, .6); transform: translateY(-2px); }
.flow-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font: 600 12px/1 var(--f-mono); letter-spacing: .02em; }
.flow li:last-child a { background: linear-gradient(var(--bg1), var(--bg1)) padding-box, var(--grad) border-box; border-color: transparent; box-shadow: 0 10px 40px -14px rgba(255, 43, 214, .55); }
.steps { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; margin-top: 24px; }
.steps-vis { position: relative; }
.stage {
  position: sticky; top: calc(var(--hdr) + 60px); aspect-ratio: 5 / 4; border-radius: var(--r);
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 20, 32, .9), rgba(8, 8, 14, .9));
  overflow: hidden; box-shadow: 0 40px 100px -40px rgba(139, 92, 255, .4);
}
.steps-txt { padding: 8vh 0 4vh; }
.step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; opacity: .5; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step-n { font: 500 14px var(--f-mono); color: var(--pink); letter-spacing: .08em; }
.step h3 { font: 700 clamp(34px, 4.6vw, 64px)/1 var(--f-display); letter-spacing: -.04em; margin: 12px 0 18px; }
.step.is-on h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { font-size: 19px; color: var(--dim); margin: 0; max-width: 44ch; }

/* cảnh trong sân khấu (site.js dựng) */
.scene { position: absolute; inset: 0; padding: 26px; opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease-out); pointer-events: none; }
.scene.is-on { opacity: 1; transform: none; }
.sc-title { font: 500 12px var(--f-mono); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; display: flex; justify-content: space-between; }
.folders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fold { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); transform: translateY(20px); opacity: 0; transition: .7s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.scene.is-on .fold { transform: none; opacity: 1; }
.fold svg { width: 26px; height: 26px; color: var(--c); margin-bottom: 10px; }
.fold b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold span { font: 12px var(--f-mono); color: var(--faint); }
.fold i { display: block; height: 3px; border-radius: 3px; margin-top: 10px; background: var(--c); width: 0; transition: width 1.4s var(--ease-out) .5s; box-shadow: 0 0 10px var(--c); }
.scene.is-on .fold i { width: var(--w, 100%); }
/* Bước Huấn luyện: thư mục mẫu -> vạch nối -> thẻ "Đã học gu của bạn" (hiện sau khi các vạch học chạy đầy). */
.scene.sc-hoc > .folders { flex: none; margin-top: auto; }
.hoc-noi { align-self: center; width: 2px; height: 22px; margin: 10px 0; border-radius: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-out); }
.scene.is-on .hoc-noi { transform: none; transition-delay: 1.3s; }
.hoc {
  position: relative; overflow: hidden; margin-bottom: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid transparent; background: linear-gradient(var(--bg1), var(--bg1)) padding-box, var(--grad) border-box;
  opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .7s var(--ease-out);
}
.scene.is-on .hoc { opacity: 1; transform: none; transition-delay: 1.6s; }
.hoc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%); transform: translateX(-100%); }
.scene.is-on .hoc::after { animation: quet 1.4s 2.1s var(--ease-out) both; }
@keyframes quet { to { transform: translateX(100%); } }
.hoc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; }
.hoc-ic svg { width: 22px; height: 22px; }
.hoc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hoc-txt b { font: 600 15px/1.2 var(--f-display); letter-spacing: -.01em; }
.hoc-txt span { font: 12px var(--f-mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoc-dots { margin-left: auto; display: flex; gap: 6px; }
.hoc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: .15; transition: opacity .4s; }
.scene.is-on .hoc-dots i { opacity: 1; transition-delay: calc(2s + var(--i) * 110ms); }
/* Bước Phân loại: file nằm lộn xộn trong "đống" (--fx/--fy/--rot do JS tính), vào cảnh là bay về thư mục nhãn. */
.dong { position: relative; flex: none; height: 104px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(255, 255, 255, .02); transition: border-color .6s; }
.dong span { position: absolute; left: 14px; top: 10px; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; transition: opacity .5s; }
.dong-a { color: var(--gold); }
.dong-b { color: var(--green); opacity: 0; }
.scene.is-on .dong { border-color: rgba(61, 220, 151, .45); transition-delay: 2.1s; }
.scene.is-on .dong-a { opacity: 0; transition-delay: 2s; }
.scene.is-on .dong-b { opacity: 1; transition-delay: 2.1s; }
.bins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 auto; }
.bin { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.bin h4 { margin: 0 0 2px; font-size: 13px; display: flex; align-items: center; gap: 7px; min-width: 0; }
.bin h4 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bin h4 svg { flex: none; width: 17px; height: 17px; color: var(--c); }
.file {
  position: relative; z-index: 1; height: 26px; padding: 0 8px; border-radius: 7px; background: #1a1a26; border: 1px solid var(--line2);
  font: 11px/24px var(--f-mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--rot, 0deg)) scale(.92); transition: transform .9s var(--ease-out);
}
.scene.is-on .file { transform: none; transition-delay: calc(.7s + var(--i) * 110ms); }
.sc-play { --c1: 255, 43, 214; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr 64px 44px 70px; gap: 10px; align-items: center; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; opacity: 0; transform: translateX(-16px); transition: .6s var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.scene.is-on .row { opacity: 1; transform: none; }
.row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); }
.row .v { font: 500 12px var(--f-mono); color: var(--text); opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i) * 140ms + .5s); }
.scene.is-on .row .v { opacity: 1; }
.row .cam { display: inline-grid; place-items: center; height: 22px; border-radius: 6px; color: #0b0b12; font-weight: 700; }
.row-lab { grid-template-columns: 1fr 110px 90px; }
.lab { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); white-space: nowrap; overflow: hidden; }
.conf { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.conf i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 1.2s var(--ease-out); transition-delay: calc(var(--i) * 120ms + .4s); }
.scene.is-on .conf i { width: var(--w); }
.row.flag { border-color: rgba(246, 215, 122, .5); background: rgba(246, 215, 122, .06); }
.row.flag .lab { border-color: rgba(246, 215, 122, .6); color: var(--gold); }
.row.on { border-color: rgba(var(--c1), .5); background: rgba(var(--c1), .08); transition: border-color 1s, background-color 1s; }
.row.on .nm { color: var(--text); }
.sc-pho { position: relative; flex: 1.3; min-height: 90px; margin-bottom: 12px; }
.step-lk { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 15px; }

/* ------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento-card {
  --mx: 50%; --my: 50%; --c: var(--pink);
  position: relative; grid-column: span 2; min-height: 380px; display: flex; flex-direction: column;
  border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), border-color .3s;
}
.bento-card.big { grid-column: span 3; min-height: 440px; }
.bento-sm .bento-card { grid-column: span 2; min-height: 330px; }
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 22%, transparent), transparent 45%);
}
.bento-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), var(--c), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.bento-card:hover::before, .bento-card:hover::after { opacity: 1; }
.bento-card:hover { transform: translateY(-4px); }
.bento-card .demo { flex: 1; min-height: 180px; position: relative; }
.bento-txt { padding: 0 26px 24px; }
.bento-txt h3 { font: 700 21px/1.2 var(--f-display); letter-spacing: -.02em; margin: 0 0 8px; }
.bento-txt p { margin: 0; color: var(--dim); font-size: 15.5px; line-height: 1.55; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--c); transition: gap .3s var(--ease); }
.bento-card:hover .more { gap: 10px; }
.c-pink { --c: var(--pink); }
.c-violet { --c: var(--violet); }
.c-cyan { --c: var(--cyan); }
.c-blue { --c: var(--blue); }

/* demo chung — site.js vẽ vào đây */
.demo canvas, .demo svg.full { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-lg { aspect-ratio: 16 / 11; position: relative; }
.demo-xl { aspect-ratio: 16 / 7; position: relative; }

/* ------------------------------------------------ player mock */
.player-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.ticks { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--dim); }
.ticks li .ic { color: var(--green); margin-top: 3px; }
.ticks li strong { color: var(--text); }
/* Dòng "không có" trong khối Free/Premium của trang Giá: dấu x nhạt, chữ vẫn đọc rõ. */
.ticks li.khong .ic { color: var(--faint); }
.player-mock {
  border-radius: var(--r); border: 1px solid var(--line2); background: linear-gradient(170deg, #12121c, #08080d);
  box-shadow: 0 50px 120px -40px rgba(255, 43, 214, .35), 0 0 0 1px rgba(255, 255, 255, .03) inset; overflow: hidden;
  transform-style: preserve-3d;
}
.pm-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pm-dots { display: flex; gap: 7px; }
.pm-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.pm-dots i:nth-child(2) { background: #febc2e; }
.pm-dots i:nth-child(3) { background: #28c840; }
.pm-title { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-chips { display: flex; gap: 8px; padding: 14px 18px 0; flex-wrap: wrap; }
.pm-chips .chip { height: 28px; padding: 0 11px; font-size: 12.5px; }
.pm-wave { position: relative; height: 110px; margin: 14px 0 0; }
.pm-spec { position: relative; height: 250px; border-top: 1px solid var(--line); }

/* ------------------------------------------------ số liệu */
.stats { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 20px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-n { display: inline-block; font: 800 clamp(40px, 4.4vw, 64px)/1 var(--f-display); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-u { display: block; font: 500 13px var(--f-mono); color: var(--text); margin-top: 8px; letter-spacing: .04em; }
.stat p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--faint); }

/* ------------------------------------------------ riêng tư */
.privs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.priv { padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.priv .ic { color: var(--cyan); filter: drop-shadow(0 0 10px rgba(51, 214, 255, .5)); }
.priv h3 { font: 700 19px/1.25 var(--f-display); letter-spacing: -.02em; margin: 20px 0 8px; }
.priv p { margin: 0; color: var(--dim); font-size: 15.5px; }

/* ------------------------------------------------ gói / giá */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 34px 32px 32px; border-radius: 26px;
  border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transform-style: preserve-3d;
}
.plan-pro { border-color: transparent; background: linear-gradient(180deg, #16101f, #0b0a12) padding-box, conic-gradient(from var(--goc, 0deg), var(--pink), var(--violet), var(--blue), var(--cyan), var(--pink)) border-box; border: 1.5px solid transparent; animation: xoay-vien 6s linear infinite; box-shadow: 0 40px 100px -40px rgba(255, 43, 214, .55); }
@property --goc { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes xoay-vien { to { --goc: 360deg; } }
.plan-badge { position: absolute; top: -13px; right: 26px; padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: .03em; color: #1a0f00; background: linear-gradient(90deg, #ffe7a3, var(--gold)); box-shadow: 0 6px 20px -4px rgba(246, 215, 122, .6); }
.plan h2, .plan h3 { font: 700 30px/1 var(--f-display); letter-spacing: -.03em; margin: 0; }
.plan-pro h2, .plan-pro h3 { background: linear-gradient(90deg, #fff3c7, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Mèo thần tài vẫy tay (dải khung từ `web/lam_meo.py`: 24 khung, một vòng = 1 / TAN_SO_VAY 1,1 Hz). */
.plan-ten { display: flex; align-items: center; gap: 12px; }
.meo { --s: 48px; flex: none; display: inline-block; width: var(--s); height: var(--s); background: url("../img/meo-vay.webp") 0 0 / calc(var(--s) * 24) var(--s) no-repeat; animation: meo-vay .909s steps(24) infinite; }
.meo-nho { --s: 22px; background-image: url("../img/meo-vay-nho.webp"); }
@keyframes meo-vay { to { background-position-x: calc(var(--s) * -24); } }
.plan-sub { margin: 8px 0 0; color: var(--faint); font: 500 13px var(--f-mono); }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price + .price { margin-top: 6px; }
.price-n { font: 800 44px/1 var(--f-display); letter-spacing: -.04em; }
.price-txt { font-size: 22px; letter-spacing: -.02em; }
.price-u { color: var(--dim); font-size: 14px; }
.price-txt + .price-u { flex-basis: 100%; }
.price-note { margin: 10px 0 0; font: 600 13px var(--f-mono); color: var(--gold); }
.price-alt { margin: 6px 0 0; color: var(--dim); font-size: 15px; }
.price-alt b { color: var(--text); font-weight: 700; }
.price-fine { margin: 6px 0 0; color: var(--faint); font-size: 13px; line-height: 1.5; }
.plan-desc { color: var(--dim); margin: 16px 0 0; font-size: 15.5px; }
.plan-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 11px; flex: 1; align-content: start; } /* flex: 1 đẩy nút xuống đáy; align-content giữ dòng sát nhau, chỗ trống dồn xuống dưới */
.plan-list li { display: flex; gap: 11px; font-size: 15px; color: var(--dim); align-items: flex-start; }
.plan-list .ic { color: var(--green); width: 18px; height: 18px; margin-top: 3px; }
.plan-pro .plan-list .ic { color: var(--gold); }

.note-app { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line2); background: var(--grad-soft), var(--bg1); overflow: hidden; }
.note-app::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 43, 214, .28), transparent 65%); pointer-events: none; }
.note-head { display: flex; gap: 20px; align-items: flex-start; }
.note-head > .ic { color: var(--pink); margin-top: 4px; }
.note-head .lead { margin-top: 10px; }
.ol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 34px 0 !important; }
.ol-grid li { flex-direction: column; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.pay { padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line2); }
.pay h3 { margin: 0 0 4px; font-size: 16px; }
.pay p { margin: 0; color: var(--dim); font-size: 14.5px; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { font: 600 13px var(--f-mono); letter-spacing: .05em; color: var(--faint); background: rgba(255, 255, 255, .02); }
.cmp thead th.pro { color: var(--gold); }
.cmp tbody th { font-weight: 500; color: var(--text); }
.cmp td { color: var(--dim); width: 26%; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr:hover { background: rgba(255, 255, 255, .02); }
.yes { color: var(--green); }
.no { color: var(--faint); }

/* ------------------------------------------------ hỏi đáp */
.faq { border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font: 600 clamp(17px, 1.6vw, 20px)/1.4 var(--f-body); transition: color .2s; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary:hover { color: #fff; }
.faq-i summary i { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line2); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq-i summary i::before, .faq-i summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq-i summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq-i[open] summary i { background: var(--grad); border-color: transparent; transform: rotate(180deg); }
.faq-i[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 60px 26px 4px; color: var(--dim); }
.faq-i[open] .faq-a { animation: mo-faq .5s var(--ease-out); }
@keyframes mo-faq { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------------------------------------ CTA cuối */
.cta-end { position: relative; margin-top: clamp(100px, 12vw, 170px); padding: 110px 0 120px; overflow: hidden; border-top: 1px solid var(--line); isolation: isolate; }
.cta-end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 110%, rgba(164, 77, 255, .35), transparent 70%); }
.cta-marquee { position: absolute; inset: 50% 0 auto; transform: translateY(-50%) rotate(-4deg); z-index: -1; display: flex; flex-direction: column; gap: 4px; opacity: .5; }
.cta-marquee div { white-space: nowrap; font: 800 clamp(70px, 12vw, 170px)/1 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); animation: mq 40s linear infinite; }
.cta-marquee div:nth-child(2) { animation-direction: reverse; -webkit-text-stroke-color: rgba(255, 43, 214, .14); }
.cta-in { text-align: center; }
.cta-in .lead { margin-left: auto; margin-right: auto; }
.cta-in .ctas, .cta-in .fine { justify-content: center; }

/* ------------------------------------------------ footer */
.ftr { position: relative; margin-top: 0; border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5)); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 40px; }
.ftr-brand p { color: var(--dim); font-size: 15px; margin: 16px 0 0; max-width: 34ch; }
.ftr-brand .ftr-os { color: var(--faint); font: 12.5px var(--f-mono); }
.ftr h2 { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 6px 0 16px; }
.ftr h2.mt { margin-top: 28px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a { color: var(--dim); font-size: 15px; transition: color .2s; }
.ftr ul a:hover { color: var(--text); }
.socs { display: flex; gap: 8px; margin-top: 22px; }
.soc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--dim); transition: .25s var(--ease); }
.soc:hover { color: #fff; border-color: transparent; background: var(--grad); transform: translateY(-3px); }
.ftr-word {
  margin-top: 70px; text-align: center; white-space: nowrap; user-select: none;
  font: 800 min(12vw, 190px)/.8 var(--f-display); letter-spacing: -.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(12%);
}
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); position: relative; }
.ftr-bot a { color: var(--dim); }

.lang-hint { position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(14, 14, 22, .85); backdrop-filter: blur(14px); font-size: 14px; box-shadow: 0 20px 60px -20px #000; animation: mo .6s var(--ease-out); max-width: calc(100% - 24px); }
.lang-hint b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-hint button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--dim); }
.lang-hint button:hover { background: var(--card2); color: var(--text); }

/* ------------------------------------------------ hero trang con */
.hero-sm { position: relative; padding: calc(var(--hdr) + 90px) 0 20px; }
.hero-sm .lead { font-size: clamp(18px, 1.7vw, 21px); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; font: 500 13px var(--f-mono); color: var(--faint); }
.crumb a { color: var(--dim); }
.crumb a:hover { color: var(--text); }
.crumb [aria-current] { color: var(--c, var(--pink)); }
.feat-stage { margin-top: 64px; border-radius: 28px; border: 1px solid var(--line2); overflow: hidden; background: linear-gradient(170deg, #11111b, #07070b); box-shadow: 0 60px 140px -50px color-mix(in srgb, var(--c) 55%, transparent); }

.frows { display: grid; gap: clamp(80px, 10vw, 140px); }
.frow { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.frow.rev .frow-demo { order: 2; }
.frow-demo { border-radius: 26px; border: 1px solid var(--line2); background: linear-gradient(170deg, #11111b, #07070b); overflow: hidden; box-shadow: 0 50px 120px -50px color-mix(in srgb, var(--c) 55%, transparent); }
.frow-n { font: 500 14px var(--f-mono); color: var(--c); letter-spacing: .08em; }
.frow-txt .h-md { font-size: clamp(26px, 3vw, 40px); margin: 12px 0 0; letter-spacing: -.035em; }
.frow-txt .h-md a:hover { color: var(--c); }
.frow-txt .ticks { margin: 24px 0 30px; }
.frow-txt .ticks li { font-size: 15.5px; }

.problem { margin: 0; padding: 0 0 0 28px; border-left: 3px solid; border-image: var(--grad) 1; font: 500 clamp(21px, 2.3vw, 30px)/1.45 var(--f-body); color: var(--text); letter-spacing: -.01em; text-wrap: pretty; }

.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.point { --mx: 50%; --my: 50%; position: relative; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); overflow: hidden; isolation: isolate; }
.point::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--c, var(--pink)) 16%, transparent), transparent 50%); }
.point:hover::before { opacity: 1; }
.point-n { font: 500 13px var(--f-mono); color: var(--c, var(--pink)); }
.point h3 { font: 700 19px/1.3 var(--f-display); letter-spacing: -.02em; margin: 16px 0 8px; }
.point p { margin: 0; color: var(--dim); font-size: 15.5px; }

.ol-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: b; }
.ol-steps li { display: flex; gap: 16px; align-items: flex-start; }
.ol-steps p { margin: 0; color: var(--dim); }
.ol-n { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; font: 600 14px var(--f-mono); color: #fff; background: var(--grad-soft); border: 1px solid var(--line2); }
.h-md + .ol-steps { margin-top: 24px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 40% 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 13px/1.6 var(--f-mono); color: var(--faint); letter-spacing: .02em; }
.specs dd { margin: 0; color: var(--text); font-size: 15.5px; }
.h-md + .specs { margin-top: 24px; }

/* ------------------------------------------------ tải về */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.dl-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: 26px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); overflow: hidden; isolation: isolate; }
.dl-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(164, 77, 255, .2), transparent 50%); }
.dl-card:hover::before { opacity: 1; }
.dl-ic { width: 46px; height: 46px; }
/* Nút tải ghim ĐÁY thẻ: thẻ có dòng yêu cầu dài hơn (xuống dòng) không được đẩy nút lệch khỏi hàng. */
.dl-card > .btn { margin-top: auto; }
.dl-card h2 { font: 700 30px/1 var(--f-display); letter-spacing: -.03em; margin: 22px 0 8px; }
.dl-req { color: var(--dim); margin: 0; font-size: 15px; }
.dl-meta { font: 13px var(--f-mono); color: var(--faint); margin: 22px 0 22px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.dl-meta b { color: var(--text); font-weight: 500; }
.dl-ext { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line2); }
.card-soft { padding: 30px; border-radius: var(--r); background: var(--grad-soft); border: 1px solid var(--line2); }
/* Thẻ có khung đứng cạnh nhau phải cao bằng nhau (cặp Free/Premium ở trang Giá, Tải về). */
.two-col > .card-soft { align-self: stretch; }
.card-soft .ic-lg { color: var(--cyan); margin-bottom: 16px; }
.card-soft p { color: var(--dim); margin: 12px 0 0; }

/* ------------------------------------------------ tài liệu (hướng dẫn, pháp lý) */
.doc-date { font: 13px var(--f-mono); color: var(--faint); margin-top: 18px; }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
.toc-in { position: sticky; top: calc(var(--hdr) + 40px); max-height: calc(100vh - var(--hdr) - 70px); overflow: auto; padding-right: 8px; scrollbar-width: thin; }
.toc-h { font: 500 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--faint); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.is-on { color: var(--text); border-left-color: var(--pink); }
.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { font: 700 clamp(24px, 2.6vw, 32px)/1.2 var(--f-display); letter-spacing: -.03em; margin: 64px 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font: 600 19px/1.35 var(--f-body); margin: 34px 0 10px; color: #fff; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: #cfcde0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--pink); }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(51, 214, 255, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.prose em { color: var(--text); font-style: normal; font-weight: 600; }
.tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--text); background: rgba(255, 255, 255, .03); }
.prose td { color: var(--dim); }
.prose tr:last-child td { border-bottom: 0; }
.prose [id] { scroll-margin-top: calc(var(--hdr) + 30px); }

/* ------------------------------------------------ hỗ trợ */
.chans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chan { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; padding: 28px 26px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), border-color .3s; }
.chan::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 43, 214, .2), transparent 55%); }
.chan:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .25); }
.chan:hover::before { opacity: 1; }
.chan > .ic { color: var(--pink); }
.chan:nth-child(2) > .ic { color: #3d8bff; }
.chan:nth-child(3) > .ic { color: var(--cyan); }
.chan:nth-child(4) > .ic { color: var(--violet); }
.chan h2 { font: 700 21px/1 var(--f-display); margin: 22px 0 6px; letter-spacing: -.02em; }
.chan-v { font: 500 14px var(--f-mono); color: var(--text); margin: 0 0 12px; word-break: break-all; }
.chan p:not(.chan-v) { color: var(--dim); font-size: 14.5px; margin: 0; flex: 1; }
.chan .more { color: var(--text); margin-top: 18px; }

/* ------------------------------------------------ về TDope */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.about-art { position: relative; aspect-ratio: 1; }
.about-logo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; border-radius: 28px; }
.about-logo-app { border-radius: 50%; mix-blend-mode: screen; animation: quay 40s linear infinite; }
.about-ring { position: absolute; inset: -6%; border-radius: 50%; background: conic-gradient(from 0deg, var(--pink), var(--violet), var(--blue), var(--cyan), var(--pink)); filter: blur(70px); opacity: .35; animation: quay 14s linear infinite; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 1px solid var(--line2); display: grid; gap: 40px; }
.timeline li { position: relative; }
.tl-dot { position: absolute; left: -38px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px var(--bg), 0 0 20px var(--pink); }
.timeline h3 { font: 700 clamp(20px, 2.2vw, 26px)/1.25 var(--f-display); letter-spacing: -.02em; margin: 0 0 8px; }
.timeline p { margin: 0; color: var(--dim); }
.sc-band { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; border-radius: 30px; overflow: hidden; border: 1px solid var(--line2); background: linear-gradient(120deg, rgba(255, 85, 0, .16), rgba(255, 43, 214, .12) 50%, rgba(10, 10, 16, .6)); }
.sc-wave { position: relative; height: 100%; min-height: 280px; }
.sc-txt { padding: 44px 44px 44px 0; }
.sc-txt .btn { margin-top: 28px; }
.socs-lg { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.soc-lg { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); font-weight: 500; font-size: 15px; transition: .25s var(--ease); }
.soc-lg:hover { border-color: transparent; background: var(--grad); transform: translateY(-3px); }

.nf { min-height: 80vh; display: flex; align-items: center; }
/* `nhip` (phóng 1,6×) là của chấm 8px — dùng cho chữ 404 cỡ 120–340px thì tràn mép điện thoại. */
.nf-code { font: 800 clamp(120px, 28vw, 340px)/.8 var(--f-display); letter-spacing: -.08em; margin: 0 0 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: nhip-to 1.875s ease-in-out infinite; }
@keyframes nhip-to { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.04); } }
.nf .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------ màn hình hẹp */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-act, .nav + .hdr-act { margin-left: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(5) { border-left: 0; }
  .stat:nth-child(n+5) { border-top: 1px solid var(--line); }
  .stat:last-child:nth-child(odd) { grid-column: span 2; }
  .chans { grid-template-columns: 1fr 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ol-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --hdr: 64px; }
  .sec-head, .two-col, .player-grid, .frow, .about-grid, .sc-band { grid-template-columns: 1fr; }
  .frow.rev .frow-demo { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps-vis { position: sticky; top: calc(var(--hdr) + 16px); z-index: 2; }
  .stage { position: relative; top: 0; aspect-ratio: 16 / 11; }
  .steps-txt { padding: 20px 0 10vh; }
  .step { min-height: 44vh; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card, .bento-card.big, .bento-sm .bento-card { grid-column: span 1; min-height: 340px; }
  .bento-card.big:first-child { grid-column: span 2; }
  .privs, .points { grid-template-columns: 1fr 1fr; }
  .plans, .dl-grid { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { display: none; }
  .hero-disc { right: -34vw; width: 86vw; opacity: .3; top: 24%; }
  .sc-txt { padding: 0 28px 36px; }
  .sc-wave { min-height: 180px; }
  .about-art { max-width: 420px; }
  .about-ring { inset: 6%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hdr { top: 8px; width: calc(100% - 16px); padding: 0 8px 0 12px; }
  .hdr-act .btn-sm { display: none; }
  .brand span { font-size: 15px; }
  .hero { padding-top: calc(var(--hdr) + 50px); }
  .ctas .btn { flex: 1 1 auto; }
  .bento, .privs, .points, .chans, .pays, .ol-grid { grid-template-columns: 1fr; }
  .bento-card.big:first-child { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); padding: 26px 8px; }
  .stat:nth-child(even) { border-left: 1px solid var(--line) !important; padding-left: 18px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .ftr-grid { grid-template-columns: 1fr; }
  .specs > div { grid-template-columns: 1fr; gap: 4px; }
  .plan, .dl-card { padding: 28px 22px; }
  .row { grid-template-columns: 1fr 52px 40px; }
  .row-lab { grid-template-columns: 1fr 96px 56px; }
  .scene { padding: 16px; }
  .folders { grid-template-columns: 1fr 1fr; }
  .fold:nth-child(n+5) { display: none; }
  /* Điện thoại: 3 ô đều nhau, số trên tên dưới, bỏ vạch nối (gãy dòng thì vạch rơi lên đầu dòng). */
  .flow { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .flow li + li::before { display: none; }
  .flow, .flow li { align-items: stretch; }
  .flow a { width: 100%; height: auto; flex-direction: column; gap: 8px; padding: 12px 6px; border-radius: 16px; font-size: 13px; white-space: normal; text-align: center; }
  .flow-n { width: 28px; height: 28px; font-size: 11px; }
  .sc-play .row:nth-child(n+3), .sc-play .row > :last-child { display: none; }
  .sc-pho { min-height: 60px; }
  .faq-a p { padding-right: 4px; }
  .note-head { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-split] .w > span { opacity: 1; transform: none; filter: none; }
  .bg-grain { display: none; }
}

/* ------------------------------------------------ minh hoạ dựng bằng DOM */
:where([data-demo]) { position: relative; }
.hero-spec { position: absolute; }
[data-demo] > canvas, [data-demo] > svg.full { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo[data-demo="camelot"] > svg.full { inset: 8%; width: 84%; height: 84%; }

.dup { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.dup-r { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; transition: .6s var(--ease-out); }
.dup-r.g1 { margin-top: 0; }
.dup-r.g0.on { border-color: rgba(246, 215, 122, .55); background: rgba(246, 215, 122, .07); }
.dup-r.g1.on { border-color: rgba(51, 214, 255, .5); background: rgba(51, 214, 255, .06); }
.dup-r.g1:nth-child(4) { margin-top: 10px; }
.dup-f { font: 11px var(--f-mono); color: var(--faint); }
.dup-r b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dup-r em { font: normal 500 11px var(--f-mono); color: var(--dim); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line2); }
.dup-s { font: 600 11px var(--f-mono); min-width: 58px; text-align: right; }
.dup-r.keep { border-color: rgba(61, 220, 151, .6) !important; background: rgba(61, 220, 151, .08) !important; }
.dup-r.keep .dup-s { color: var(--green); }
.dup-r.del .dup-s { color: #ff6b8e; }
.dup-r.del b { text-decoration: line-through; text-decoration-color: #ff6b8e; color: var(--faint); }
.dup-r.gone { opacity: .25; transform: translateX(14px) scale(.98); }

.tagd { position: absolute; inset: 0; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.tagd-fn { font: 500 13px/1.6 var(--f-mono); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); min-height: 76px; }
.tagd-old { display: block; color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 107, 142, .7); }
.tagd-arrow { color: var(--pink); margin-right: 6px; }
.tagd-new { color: #fff; }
.tagd-caret { display: inline-block; width: 7px; height: 15px; vertical-align: -2px; background: var(--pink); margin-left: 2px; animation: nhay 1s steps(2) infinite; }
@keyframes nhay { 50% { opacity: 0; } }
.tagd-f { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tagd-f div { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.tagd-f span { font: 500 11px var(--f-mono); color: var(--faint); }
.tagd-f b { font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: .4s var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tagd-f b.on { opacity: 1; transform: none; }

.dl-card.is-rec { border-color: transparent; background: linear-gradient(180deg, #16101f, #0b0a12) padding-box, conic-gradient(from var(--goc, 0deg), var(--pink), var(--violet), var(--blue), var(--cyan), var(--pink)) border-box; border: 1.5px solid transparent; animation: xoay-vien 6s linear infinite; }
.hero-feat .crumb { margin-bottom: 30px; }
.lang-hint[hidden] { display: none; }
.scene { display: flex; flex-direction: column; }
.scene > .rows { flex: 1; justify-content: center; }
.scene > .folders { flex: 1; align-content: center; }
.scene .row { height: 50px; }
/* Điện thoại: khung minh hoạ chỉ ~240px cao — thu gọn ô cho vừa. */
@media (max-width: 600px) {
  .scene .row { height: 36px; }
  .sc-title { margin-bottom: 8px; }
  .row-lab:nth-child(n+5) { display: none; }
  .folders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .fold:nth-child(n+4) { display: none; }
  .fold { padding: 8px 9px; }
  .fold svg { width: 18px; height: 18px; margin-bottom: 3px; }
  .fold b { font-size: 12.5px; }
  .fold span { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fold i { margin-top: 5px; }
  .hoc-noi { height: 10px; margin: 5px 0; }
  .hoc { gap: 10px; padding: 9px 11px; }
  .hoc-ic { width: 30px; height: 30px; border-radius: 9px; }
  .hoc-ic svg { width: 17px; height: 17px; }
  .hoc-txt b { font-size: 13px; }
  .hoc-txt span { font-size: 10.5px; }
  .hoc-dots { display: none; }
  .dong { height: 58px; }
  .dong span { left: 10px; top: 7px; font-size: 9.5px; }
  .bins { gap: 6px; margin-top: 8px; }
  .bin { padding: 7px; gap: 4px; }
  .bin h4 { font-size: 11.5px; gap: 5px; }
  .bin h4 svg { width: 14px; height: 14px; }
  .bin .file:nth-of-type(n+3) { display: none; }
  .file { height: 22px; font-size: 9.5px; line-height: 20px; padding: 0 5px; }
}
@media (max-width: 380px) { .dong { height: 50px; } }
.about-grid > *, .two-col > *, .frow > *, .player-grid > *, .sec-head > *, .steps > *, .sc-band > * { min-width: 0; }
.about-art { width: 100%; }

/* Minh hoạ dựng bằng chữ: không giãn hết khung rộng, phóng to ở khung lớn. */
.dup, .tagd { left: 50%; right: auto; width: min(100%, 600px); transform: translateX(-50%); }
@media (min-width: 900px) {
  .demo-xl .dup, .demo-xl .tagd { transform: translateX(-50%) scale(1.3); }
  .demo-lg .dup, .demo-lg .tagd { transform: translateX(-50%) scale(1.08); }
}
.frow-txt .ticks strong, .ticks strong.blk { display: block; color: var(--text); margin-bottom: 2px; }
.cmp-note { margin-top: 14px; }

/* Link nằm giữa đoạn văn (cú pháp [[khoá|chữ]] trong noi_dung.py). */
.faq-a a, .lead a, .ol-steps a, .point a, .plan-list a, .cmp a, .specs a,
.timeline a, .priv a, .ticks a, .note-app p a, .fine.cmp-note a {
  color: var(--text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; text-decoration-color: rgba(255, 43, 214, .55);
  transition: color .2s, text-decoration-color .2s;
}
.faq-a a:hover, .lead a:hover, .ol-steps a:hover, .point a:hover, .plan-list a:hover, .cmp a:hover,
.specs a:hover, .timeline a:hover, .priv a:hover, .ticks a:hover, .note-app p a:hover {
  color: #fff; text-decoration-color: var(--pink);
}
