/* Auto Video Studio: trang giới thiệu. Một tệp CSS, không cần công cụ dựng. */

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #fbfbfd;
  --bg-2: #f2f3f8;
  --ink: #0c0d12;
  --ink-2: #3c404d;
  --muted: #7a7f8d;
  --line: rgba(12, 14, 24, .09);
  --brand: #2f6bff;
  --brand-2: #7a5cff;
  --warm: #ff8a3d;
  --ok: #19b36b;
  --amber: #f5a524;
  --night: #07080d;
  --night-2: #11131b;
  --night-line: rgba(255, 255, 255, .09);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
section { position: relative; scroll-margin-top: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center { text-align: center; margin-inline: auto; }
.sep { opacity: .45; margin: 0 .25em; }

/* ───────── Chữ ───────── */
.display {
  font-size: clamp(2.5rem, 5.45vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}
.display.sm { font-size: clamp(2.3rem, 5.6vw, 4.8rem); }
.title {
  font-size: clamp(1.95rem, 4.5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -.034em;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
.title.left, .eyebrow.left { text-align: left; }
.line { display: block; }
.soft, .soft .w > span { color: #9ba0ad; }
.dark .soft, .dark .soft .w > span { color: rgba(255, 255, 255, .42); }
.grad { font-style: normal; }
.grad, .grad .w > span {
  background: linear-gradient(100deg, var(--brand) 5%, var(--brand-2) 55%, var(--warm) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow { font-size: .95rem; font-weight: 600; color: var(--brand); text-align: center; margin-bottom: .9rem; letter-spacing: .01em; }
.dark .eyebrow { color: #86a8ff; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.lede.center { text-align: center; margin-top: 1.1rem; }
.dark .lede { color: rgba(255, 255, 255, .66); }
.fine { font-size: .86rem; color: var(--muted); }
.dark .fine { color: rgba(255, 255, 255, .5); }
.tags { color: var(--brand); }

/* ───────── Biểu tượng nét mảnh (SVG dùng chung) ───────── */
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.ck { width: .95em; height: .95em; stroke-width: 2.6; }

/* ───────── Nút ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px -10px rgba(47, 107, 255, .75); }
.btn-primary:hover { background: #2460f2; box-shadow: 0 16px 34px -10px rgba(47, 107, 255, .8); }
.btn-ghost { background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 15%, transparent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border-color: rgba(255, 255, 255, .26); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { font-size: 1.06rem; padding: 1em 1.7em; }
.btn-sm { font-size: .9rem; padding: .58em 1.15em; }
.btn-block { width: 100%; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dark .link { color: #9ab6ff; }

/* ───────── Hiện dần khi cuộn tới ───────── */
/* :where() cho độ ưu tiên bằng 0: thẻ có thêm hiệu ứng riêng (tilt, hover) tự khai báo transition của mình,
   và phải ghi cả opacity, translate với độ trễ var(--d) để vẫn hiện dần lần lượt */
:where(.js [data-reveal]) {
  opacity: 0; translate: 0 30px;
  transition: opacity .85s var(--ease), translate .95s var(--ease), scale .95s var(--ease), filter .85s var(--ease);
  transition-delay: var(--d, 0s);
}
:where(.js [data-reveal="left"]) { translate: -40px 0; }
:where(.js [data-reveal="right"]) { translate: 40px 0; }
:where(.js [data-reveal="scale"]) { translate: 0 40px; scale: .94; filter: blur(6px); }
/* màn hẹp: trượt ngang sẽ làm trang rộng ra trước khi hiện, nên chuyển sang trượt dọc */
@media (max-width: 980px) {
  :where(.js [data-reveal="left"]), :where(.js [data-reveal="right"]) { translate: 0 30px; }
}
:where(.js [data-reveal].in) { opacity: 1; translate: 0 0; scale: 1; filter: none; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .02em .16em; margin: -.2em -.02em -.16em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(118%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 48ms); }
.js [data-split].in .w > span { transform: none; }

/* ───────── Thanh tiến độ cuộn ───────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--warm)); }

/* ───────── Thanh điều hướng ───────── */
.nav {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 50;
  width: min(1080px, 100% - 24px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .74); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 40px -18px rgba(20, 30, 80, .28);
  transition: width .5s var(--ease), background .4s, border-color .4s, color .4s, box-shadow .4s;
}
.nav.scrolled { width: min(940px, 100% - 24px); }
.nav.on-dark { background: rgba(22, 24, 34, .62); border-color: var(--night-line); color: #fff; box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: url("assets/favicon.svg") center / cover no-repeat; box-shadow: 0 6px 14px -6px rgba(47, 107, 255, .8); flex: none; }
.brand-mark.sm { width: 20px; height: 20px; border-radius: 6px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); padding: .5em .85em; border-radius: 999px; transition: background .3s, color .3s; }
.nav-links a:hover, .nav-links a.active { background: rgba(12, 14, 24, .06); color: var(--ink); }
.nav.on-dark .nav-links a { color: rgba(255, 255, 255, .7); }
.nav.on-dark .nav-links a:hover, .nav.on-dark .nav-links a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(12, 14, 24, .06); cursor: pointer; place-items: center; gap: 5px; align-content: center; }
.nav.on-dark .nav-burger { background: rgba(255, 255, 255, .12); }
.nav-burger span { width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.500px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.500px) rotate(-45deg); }
.nav-sheet { position: fixed; top: 76px; left: 12px; right: 12px; z-index: 49; display: grid; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px rgba(20, 30, 80, .35); animation: sheet .35s var(--ease); }
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: 13px 16px; border-radius: 14px; font-weight: 600; }
.nav-sheet a:active { background: var(--bg-2); }
@keyframes sheet { from { opacity: 0; translate: 0 -10px; } }

/* ───────── Mở đầu ───────── */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 150px 0 110px; overflow: hidden; overflow: clip; }
.hero-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; text-align: center; }
.hero .lede { max-width: 38ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: .6em; padding: .45em 1.05em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink-2); box-shadow: 0 6px 20px -12px rgba(20, 30, 80, .3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(25, 179, 107, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(25, 179, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 179, 107, 0); } }

.hero-glow, .hero-float { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .6; animation: drift 16s ease-in-out infinite alternate; }
.b1 { width: 560px; height: 560px; left: -160px; top: -120px; background: #a9c5ff; }
.b2 { width: 520px; height: 520px; right: -140px; top: 60px; background: #d3c4ff; animation-delay: -5s; }
.b3 { width: 620px; height: 420px; left: 50%; bottom: -220px; margin-left: -310px; background: #ffd9bd; animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.12); } }
.chip-f { position: absolute; padding: .5em 1em; border-radius: 14px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px -18px rgba(20, 30, 80, .35); animation: bob 7s ease-in-out infinite alternate; }
.f1 { left: 6%; top: 21%; }
.f2 { right: 7%; top: 17%; animation-delay: -2s; }
.f3 { left: 11%; bottom: 17%; animation-delay: -4s; }
.f4 { right: 10%; bottom: 21%; animation-delay: -1s; }
@keyframes bob { from { transform: translateY(-10px) rotate(-3deg); } to { transform: translateY(12px) rotate(3deg); } }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border-radius: 16px; border: 2px solid rgba(12, 14, 24, .22); z-index: 2; }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--brand); animation: wheel 1.800s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ───────── Cả hệ thống: lưới các dây chuyền ───────── */
.suite { padding: clamp(40px, 8vh, 90px) 0 clamp(90px, 14vh, 150px); }
.suite-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 50px; }
.mod {
  --mc: var(--brand);
  position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border-radius: 26px; background: #fff; border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .4s, border-color .4s, opacity .85s var(--ease) var(--d, 0s), translate .95s var(--ease) var(--d, 0s);
}
.mod.big { grid-column: span 3; background: linear-gradient(150deg, color-mix(in srgb, var(--mc) 11%, #fff), #fff 72%); }
.mod:hover { border-color: color-mix(in srgb, var(--mc) 42%, transparent); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--mc) 62%, transparent); }
.mod-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 16px; color: var(--mc); background: color-mix(in srgb, var(--mc) 14%, transparent); }
.mod-ico .ic { width: 26px; height: 26px; }
.mod b { font-size: 1.1rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.mod.big b { font-size: 1.35rem; }
.mod p { font-size: .92rem; color: var(--ink-2); }
.mod.big p { max-width: 46ch; }
.mod .go { margin-top: auto; padding-top: 10px; font-size: .88rem; font-weight: 700; color: var(--mc); transition: translate .3s var(--ease); }
.mod:hover .go { translate: 4px 0; }
/* dải khung hình thật ở hai thẻ lớn */
.mod.big { min-height: 250px; padding-right: 47%; overflow: hidden; }
.mod-shots { position: absolute; right: 14px; top: 16px; bottom: 16px; width: 44%; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
.mod-shots img { height: 84%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; margin-left: -40px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 16px 30px -14px rgba(12, 14, 24, .55); transition: transform .5s var(--ease); }
.mod-shots img:nth-child(1) { rotate: -7deg; translate: 0 4px; }
.mod-shots img:nth-child(2) { rotate: 1deg; translate: 0 -6px; z-index: 1; }
.mod-shots img:nth-child(3) { rotate: 7deg; translate: 0 6px; }
.mod:hover .mod-shots img:nth-child(1) { transform: translateX(-8px); }
.mod:hover .mod-shots img:nth-child(3) { transform: translateX(8px); }

/* ───────── Cách làm: cửa sổ ứng dụng ghim giữa màn hình ───────── */
.story { position: relative; height: calc(460vh + 170px + var(--sv-h)); padding-bottom: calc(170px + var(--sv-h)); background: linear-gradient(var(--bg), #eef1fb 22%, #efeefc 70%, var(--bg)); }
.story { --sv-h: calc(min(940px, 100vw - 48px) * .5625 + 230px); }
.story-video { position: absolute; left: 0; right: 0; bottom: 0; width: min(940px, 100% - 48px); padding-bottom: 80px; text-align: center; }
.sv-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
.sv-sub { margin: .6rem auto 1.6rem; max-width: 52ch; color: var(--ink-2); text-wrap: pretty; }
.sv-player { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 26px; background: #0b0d14; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(20, 30, 90, .45), 0 10px 30px -18px rgba(20, 30, 90, .25); }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 2.6vh, 30px); padding: 92px 0 30px; overflow: hidden; }
.story-head { width: 100%; display: grid; justify-items: center; flex: none; }
.story-head .eyebrow { margin-bottom: .5rem; }
.story-titles { position: relative; width: 100%; height: 1.3em; font-size: clamp(1.8rem, 4.3vw, 3.5rem); font-weight: 700; letter-spacing: -.034em; line-height: 1.3; }
.story-title { position: absolute; inset: 0; text-align: center; opacity: 0; transform: translateY(45%); filter: blur(10px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.story-title.on { opacity: 1; transform: none; filter: none; }
.story-title.past { transform: translateY(-45%); }
.story-dots { display: flex; gap: 6px; margin-top: 12px; }
.story-dots i { width: 8px; height: 4px; border-radius: 4px; background: rgba(12, 14, 24, .15); transition: width .5s var(--ease), background .5s; }
.story-dots i.on { width: 30px; background: var(--brand); }

.win-wrap { position: relative; flex: 1 1 auto; min-height: 0; width: min(1120px, 94vw); perspective: 1800px; display: flex; justify-content: center; }
.win-wrap::before { content: ""; position: absolute; inset: 8% 4% -4%; border-radius: 40px; filter: blur(70px); opacity: .7; background: linear-gradient(110deg, #8fb2ff, #c2b0ff 50%, #ffc9a3); transition: filter 1s, opacity 1s; z-index: 0; }
.win {
  position: relative; z-index: 1; width: 100%; height: 100%; max-height: 640px;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: #15171e; color: #e8eaf1; font-size: 13px; line-height: 1.45;
  box-shadow: 0 50px 110px -34px rgba(20, 30, 90, .55), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--t, 0)) * 24deg)) scale(calc(.84 + var(--t, 0) * .16));
  will-change: transform;
}
.win-bar { height: 38px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #1c1f28; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.win-bar b { margin: 0 auto; translate: -30px 0; font-size: 12px; font-weight: 500; color: #9198a8; }
.win-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 188px 1fr; }
.win-side { display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; background: #191b23; border-right: 1px solid rgba(255, 255, 255, .06); }
.ws-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-weight: 600; font-size: 12.500px; }
.ws-item { padding: 8px 10px; border-radius: 8px; color: #a4aab9; }
.ws-item.on { background: rgba(255, 255, 255, .09); color: #fff; }
.win-main { display: flex; flex-direction: column; gap: 14px; padding: 16px; min-width: 0; min-height: 0; }

.steps { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.step { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.500px; color: #8a90a0; background: rgba(255, 255, 255, .06); transition: color .5s, background .5s; }
.step::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.step.doing { color: #fff; background: rgba(47, 107, 255, .3); }
.step.doing::before { background: #8fb0ff; opacity: 1; animation: blink 1s infinite; }
.step.done { color: #7ee2ad; background: rgba(25, 179, 107, .15); }
.step.done::before { background: var(--ok); opacity: 1; }
@keyframes blink { 50% { opacity: .25; } }

.work { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.stage { position: relative; min-height: 0; border-radius: 14px; overflow: hidden; background: #0c0e13; }
.scene { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: scale(1.1); transition: opacity 1s var(--ease), transform 1.4s var(--ease); background: #0c0e13; }
.sc-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) brightness(.5) saturate(1.2); }
.sc-fr { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 9 / 16; translate: -50% 0; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 20px 50px rgba(0, 0, 0, .5); }

.drop { position: absolute; inset: 14px; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.500px dashed rgba(255, 255, 255, .26); border-radius: 12px; color: #a9afbf; transition: opacity .6s, transform .6s var(--ease), border-color .6s; }
.drop svg { width: 36px; height: 36px; margin-bottom: 6px; animation: nudge 1.600s ease-in-out infinite alternate; }
.drop b { color: #e8eaf1; font-size: 14px; }
@keyframes nudge { to { transform: translateY(-6px); } }
.story.go .drop { border-color: rgba(111, 155, 255, .8); }

.file { position: absolute; z-index: 2; padding: 7px 12px; border-radius: 10px; font-size: 12px; white-space: nowrap; background: #272b38; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.fl1 { left: 9%; top: 15%; transform: translate(-140px, -80px) rotate(-14deg); }
.fl2 { right: 8%; top: 28%; transform: translate(160px, -60px) rotate(12deg); transition-delay: .12s; }
.fl3 { left: 16%; bottom: 16%; transform: translate(-120px, 90px) rotate(10deg); transition-delay: .24s; }
.story.go .fl1 { opacity: 1; transform: rotate(-5deg); }
.story.go .fl2 { opacity: 1; transform: rotate(4deg); }
.story.go .fl3 { opacity: 1; transform: rotate(-2deg); }

.lang-tag, .voice-chip { position: absolute; top: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11.500px; font-weight: 500; background: rgba(10, 12, 18, .6); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .6s var(--ease); }
.lang-tag { left: 12px; } .lang-tag i { font-style: normal; color: #8fb0ff; }
.voice-chip { right: 12px; } .voice-chip small { color: #9aa0b0; }
.mini-orb { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(#39d0c1, #5a8cff, #a78bff, #39d0c1); }
.sub { position: absolute; z-index: 3; left: 50%; bottom: 40px; width: max-content; max-width: 88%; margin: 0; padding: 6px 12px; border-radius: 8px; text-align: center; font-weight: 600; font-size: clamp(12px, 1.8vh, 16px); background: rgba(0, 0, 0, .86); opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.sub-src { transform: translateX(-50%); }
.sub-vi { transform: translateX(-50%) translateY(12px); color: #ffe58a; }
.wave { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 12px; height: 26px; display: flex; align-items: center; gap: 3px; opacity: 0; transition: opacity .5s; }
.wave i, .d-wave i { flex: 1; height: 18%; border-radius: 2px; background: linear-gradient(#7aa2ff, #a98dff); animation: eq 1.100s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -137ms); animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 16%; } 35% { height: 100%; } 60% { height: 42%; } 80% { height: 76%; } }

.panel { position: relative; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: #1b1e27; border: 1px solid rgba(255, 255, 255, .06); }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: #d0d4df; }
.panel-h small { font-weight: 400; color: #7d8393; }
.row { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.row:nth-child(2) { --k: 0; } .row:nth-child(3) { --k: 1; } .row:nth-child(4) { --k: 2; }
.row time { padding-top: 2px; font-size: 11px; color: #7d8393; }
.row p { margin: 0; }
.row .src { font-size: 12px; color: #8d93a3; }
.row .vi { max-height: 0; opacity: 0; overflow: hidden; color: #fff; font-weight: 500; transition: max-height .6s var(--ease), opacity .6s, margin .6s; }

.result { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #1b1e27; transform: translateY(104%); transition: transform .85s var(--ease); }
.res-h { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #7ee2ad; }
.tick { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; }
.tick .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.res-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.rb { padding: 6px 12px; border-radius: 8px; font-size: 12px; background: rgba(255, 255, 255, .08); }
.rb.primary { background: var(--brand); color: #fff; }
.post { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.post b { display: block; margin-bottom: 4px; }
.post p { font-size: 12px; color: #a8aebc; }
.post .tags { margin-top: 6px; color: #8fb2ff; }
.res-covers { display: flex; align-items: flex-end; gap: 10px; }
.rc { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: 62px; aspect-ratio: 9 / 16; padding: 6px; border-radius: 8px; background: linear-gradient(170deg, rgba(10, 14, 24, .05) 30%, rgba(10, 14, 24, .88)), var(--bg, #101726) center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.rc.t { aspect-ratio: 3 / 4; }
/* Real covers already carry their own title, so no darkening and no extra text; the size tag moves to the top corner. */
.rc.real { justify-content: flex-start; align-items: flex-start; background: var(--bg) center / cover; }
.rc.real small { padding: 1px 4px; border-radius: 4px; background: rgba(10, 14, 24, .7); font-size: 6.5px; }
.rc small { font-size: 7px; font-weight: 700; letter-spacing: .04em; color: #ffd84d; }
.rc b { font-size: 9px; line-height: 1.2; }
.rc-note { align-self: center; font-size: 11.500px; color: #8d93a3; }

/* các pha: p1 = đã có video, p2 = đang đọc giọng Việt, p3 = xong */
.win.p1 .scene { opacity: 1; transform: none; }
.win.p1 .drop { opacity: 0; transform: scale(.94); }
.story.go .win.p1 .file { opacity: 0; transform: translate(0, 0) scale(.6); transition-delay: 0s; }
.win.p1 .lang-tag { opacity: 1; transform: none; }
.win.p1 .sub-src { opacity: 1; }
.win.p1 .row { opacity: 1; transform: none; transition-delay: calc(var(--k) * .18s); }
.win.p1 .row .vi { max-height: 3.200em; opacity: 1; margin-top: 2px; transition-delay: calc(.55s + var(--k) * .3s); }
.win.p2 .sub-src { opacity: 0; transform: translateX(-50%) translateY(-12px); }
.win.p2 .sub-vi { opacity: 1; transform: translateX(-50%); }
.win.p2 .voice-chip { opacity: 1; transform: none; }
.win.p2 .wave { opacity: 1; }
.win.p2 .wave i { animation-play-state: running; }
.win.p3 .result { transform: none; }
.win-wrap[data-phase="2"]::before { background: linear-gradient(110deg, #7fe0d3, #8fb2ff 50%, #c2b0ff); }
.win-wrap[data-phase="3"]::before { background: linear-gradient(110deg, #8fe6b6, #8fb2ff 60%, #ffd9a3); opacity: .85; }

/* ───────── Làm video tự động: điện thoại đứng yên, các bước cuộn qua ───────── */
/* dưới phần này là phần nền tối có dải mờ cao 160px, nên chừa đáy rộng */
.factory { padding: clamp(40px, 8vh, 90px) 0 max(18vh, 240px); }
.fac-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(30px, 6vw, 90px); margin-top: 40px; }

/* đường dọc nối các bước: chạy từ tâm bước đầu tới tâm bước cuối, phần tô theo --fp */
.fac-steps { --half: 26vh; position: relative; isolation: isolate; list-style: none; margin: 0; padding: 0; }
.fac-steps::before, .fac-steps::after { content: ""; position: absolute; left: 22px; top: var(--half); width: 2px; border-radius: 2px; z-index: 0; }
.fac-steps::before { bottom: var(--half); background: var(--line); }
.fac-steps::after { height: calc((100% - var(--half) * 2) * var(--fp, 0)); background: linear-gradient(var(--brand), var(--brand-2)); }
.fstep { display: grid; grid-template-columns: 46px 1fr; gap: 20px; align-content: center; align-items: center; min-height: calc(var(--half) * 2); }
.fstep > span { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 700; transition: background .5s, border-color .5s, color .5s, box-shadow .5s; }
.fstep.on > span, .fstep.past > span { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent); }
.js .fstep > div { opacity: .35; transition: opacity .5s; }
.js .fstep.on > div { opacity: 1; }
.fstep b { display: block; margin-bottom: 8px; font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.fstep p { max-width: 38ch; color: var(--ink-2); }

.fac-sticky { position: sticky; top: max(110px, calc(50vh - 310px)); align-self: start; display: flex; justify-content: center; }
.phone {
  position: relative; display: flex; padding: 10px; border-radius: 46px; background: #0b0c12;
  width: min(300px, 76vw); aspect-ratio: 9 / 18.5;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 70px 110px -40px rgba(20, 30, 90, .6), 0 30px 60px -30px rgba(20, 30, 90, .45);
}
/* máy thấp thì thu điện thoại lại cho vừa màn hình */
@supports (height: 100svh) {
  .phone { width: min(300px, 76vw, max(250px, calc((100svh - 150px) * .4865))); }
}
.phone::before { content: ""; position: absolute; z-index: 3; top: 19px; left: 50%; translate: -50% 0; width: 28%; height: 20px; border-radius: 999px; background: #0b0c12; }
.ph-screen { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 36px; background: #f4f5fa; color: var(--ink); font-size: 12.5px; line-height: 1.4; }

.ph-layer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 52px 14px 16px; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.phone[data-f="0"] .l0, .phone[data-f="1"] .l1, .phone[data-f="2"] .l2, .phone[data-f="3"] .l3, .phone[data-f="4"] .l4 { opacity: 1; transform: none; }
.ph-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .88em; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.ph-layer > .ph-h:not(:first-child) { margin-top: 4px; }

.idea { display: grid; gap: 2px; padding: 9px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.idea b { display: block; font-weight: 650; }
.idea small { display: block; color: var(--muted); font-size: .88em; }
.idea.pick { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.phone .hot { display: inline-block; padding: 0 6px; margin-right: 2px; border-radius: 999px; background: rgba(226, 87, 28, .12); color: #d4491a; font-weight: 600; font-size: .92em; }

.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fmt { display: grid; place-items: center; padding: 9px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: center; font-size: .92em; font-weight: 600; }
.fmt.pick { background: var(--brand); border-color: var(--brand); color: #fff; }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 30px; height: 30px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatches .pick { outline: 2px solid var(--brand); outline-offset: 2px; }

.sline { margin: 0; padding: 9px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.phone[data-f="2"] .sline { opacity: 1; transform: none; }
.phone[data-f="2"] .sline:nth-of-type(1) { transition-delay: .2s; }
.phone[data-f="2"] .sline:nth-of-type(2) { transition-delay: .5s; }
.phone[data-f="2"] .sline:nth-of-type(3) { transition-delay: .8s; }
.phone[data-f="2"] .sline:nth-of-type(4) { transition-delay: 1.1s; }
.okline { display: inline-flex; align-items: center; gap: 3px; color: #0d8a50; font-weight: 600; font-size: .92em; letter-spacing: 0; }

.img-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.img { position: relative; overflow: hidden; border-radius: 14px; background: var(--g) 50% 22% / cover no-repeat; }
.img .bd { position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.6; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.img.swap .bd { background: var(--amber); }
.img.swap::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 150% 0 / 250% 100% no-repeat; }
.phone[data-f="3"] .img.swap::before { animation: shimmer 1.8s linear infinite; }
.phone[data-f="3"] .img.swap .bd { animation: rot 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -60% 0; } }
.ph-note { display: block; text-align: center; color: var(--muted); font-size: .88em; }

.ph-layer.l4 { padding: 0; background: #0b0c12; transform: scale(1.06); }
.ph-layer.l4 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-done { position: absolute; display: inline-flex; align-items: center; gap: 5px; left: 50%; bottom: 18px; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: var(--ok); color: #fff; font-size: .92em; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }

/* ───────── Phần nền tối ───────── */
.dark { background: var(--night); color: #fff; }
.dark::before, .dark::after { content: ""; position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; z-index: 3; }
.dark::before { bottom: calc(100% - 1px); background: linear-gradient(rgba(7, 8, 13, 0), var(--night)); }
.dark::after { top: calc(100% - 1px); background: linear-gradient(var(--night), rgba(7, 8, 13, 0)); }
.spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 134, 255, .16), transparent 62%); }
[data-spot]:hover .spot { opacity: 1; }
.dark > .wrap { position: relative; z-index: 2; }

/* ───────── Dải video trượt ngang ───────── */
.gallery-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3.6vh, 40px); padding: 90px 0 30px; overflow: hidden; }
.track { display: flex; gap: 22px; width: max-content; padding-inline: max(24px, calc((100vw - 1180px) / 2)); transform: translate3d(calc(var(--x, 0) * -1px), 0, 0); will-change: transform; }
.vcard {
  --abs: max(var(--c, 0), calc(var(--c, 0) * -1));
  --h: min(50vh, 470px);
  position: relative; flex: none; display: flex; flex-direction: column; gap: 12px; width: calc(var(--h) * 9 / 16); margin: 0;
  transform: translateY(calc(var(--abs) * 38px)) rotate(calc(var(--c, 0) * 3deg)) scale(calc(1 - var(--abs) * .07));
  transition: transform .2s linear;
}
.v-shot { position: relative; height: var(--h); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #151826; box-shadow: 0 30px 60px -30px #000; }
.v-shot img { width: 100%; height: 100%; object-fit: cover; }
.v-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vcard figcaption { padding: 0 4px; }
.vcard figcaption b { display: block; font-size: 1rem; color: #fff; }
.vcard figcaption small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.gallery-note { font-size: .82rem; color: rgba(255, 255, 255, .42); text-align: center; }
.gallery.free { height: auto !important; }
.gallery.free .gallery-pin { position: static; height: auto; padding: 130px 0 150px; overflow: visible; }
.gallery.free .track-clip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 30px; }
.gallery.free .track-clip::-webkit-scrollbar { display: none; }
.gallery.free .track { transform: none; }
.gallery.free .vcard { --h: min(60vh, 440px); scroll-snap-align: center; transform: none; }

/* ───────── Giao diện thật: ảnh chụp ứng dụng trong khung trình duyệt ───────── */
.shots { padding: 240px 0 clamp(60px, 10vh, 110px); }
.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; margin-top: 56px; align-items: start; }
.shot { margin: 0; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.shot.s2 { margin-top: 90px; }
.shot.s3 { grid-column: 1 / -1; width: min(1040px, 100%); justify-self: center; }
.browser { overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(20, 30, 90, .45), 0 10px 30px -18px rgba(20, 30, 90, .25); }
.br-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f1f2f6; border-bottom: 1px solid var(--line); }
.br-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.br-bar i:nth-child(2) { background: #febc2e; } .br-bar i:nth-child(3) { background: #28c840; }
.br-bar span { margin: 0 auto; translate: -26px 0; font-size: .74rem; font-weight: 500; color: var(--muted); }
.browser img { width: 100%; height: auto; }
.shot figcaption { margin-top: 18px; padding: 0 6px; font-size: .95rem; color: var(--ink-2); }
.shot figcaption b { display: block; margin-bottom: 2px; font-size: 1.05rem; color: var(--ink); }

/* ───────── Giọng đọc ───────── */
.voices { padding: clamp(60px, 10vh, 110px) 0 clamp(90px, 14vh, 160px); }
.voice-box { position: relative; margin-top: 44px; padding: clamp(18px, 3vw, 34px); border-radius: 36px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(120deg, #fff0e8, #f3efff 45%, #e7f0ff); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { padding: .46em 1.05em; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .72); font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .3s, color .3s, transform .3s var(--ease); }
.chip:hover { transform: translateY(-1px); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-gap { width: 14px; }
.orbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 26px 8px; padding: 40px 0 26px; }
.orb-btn { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; transition: opacity .4s, scale .5s var(--ease); }
.orb-btn[hidden] { display: none; }
.orb-btn.pop { animation: pop .5s var(--ease) backwards; animation-delay: calc(var(--j, 0) * 50ms); }
@keyframes pop { from { opacity: 0; scale: .6; } }
.orb { position: relative; width: clamp(62px, 8.200vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from var(--a), var(--c1), var(--c2), var(--c3), var(--c1)); box-shadow: 0 20px 40px -16px var(--c2), inset 0 -10px 22px rgba(0, 0, 0, .14), inset 0 8px 18px rgba(255, 255, 255, .35); animation: spin 14s linear infinite; transition: scale .45s var(--ease); }
@keyframes spin { to { --a: 360deg; } }
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .7), transparent 42%); }
.orb::after { content: ""; position: relative; width: 38%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.500v11l9-5.500-9-5.500Z' fill='%230c0d12'/%3E%3C/svg%3E") center / 62% no-repeat; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); transition: scale .3s var(--ease); }
.orb-btn:hover .orb { scale: 1.06; }
.orb-btn.playing .orb { animation-duration: 2.400s; scale: 1.1; }
.orb-btn.playing .orb::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6h3v12H8zM13 6h3v12h-3z' fill='%230c0d12'/%3E%3C/svg%3E"); }
.orb-btn.playing .orb { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c2) 22%, transparent), 0 0 0 18px color-mix(in srgb, var(--c2) 10%, transparent), 0 20px 40px -16px var(--c2); }
.orb-btn b { font-size: .95rem; font-weight: 600; }
.orb-btn small { margin-top: -8px; font-size: .78rem; color: var(--muted); }
.now { display: grid; justify-items: center; gap: 4px; padding: 18px 12px 8px; border-top: 1px solid var(--line); text-align: center; }
.now b { font-size: 1.3rem; letter-spacing: -.02em; }
.now small { color: var(--muted); }
.now p { margin-top: 6px; max-width: 46ch; color: var(--ink-2); font-size: .98rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; }
.trio-item { padding-top: 18px; border-top: 2px solid var(--ink); }
.trio-item b { display: block; margin-bottom: 6px; font-size: 1.1rem; }
.trio-item p { color: var(--ink-2); font-size: .96rem; }

/* ───────── Đoạn chữ sáng dần ───────── */
.manifesto { padding: 16vh 0 max(20vh, 230px); }
.words { max-width: 21em; margin: 0 auto; font-size: clamp(1.55rem, 3.7vw, 3.050rem); font-weight: 600; letter-spacing: -.026em; line-height: 1.3; }
.words span { color: rgba(12, 14, 24, .14); transition: color .35s; }
.words span.lit { color: var(--ink); }

/* ───────── Chạy trên máy + con số ───────── */
.local { padding: clamp(100px, 15vh, 160px) 0; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.lcard { padding: 28px; border-radius: 26px; background: var(--night-2); border: 1px solid var(--night-line); transition: border-color .4s, opacity .85s var(--ease) var(--d, 0s), translate .95s var(--ease) var(--d, 0s); }
.lcard:hover { border-color: rgba(134, 168, 255, .45); }
.l-ico { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: rgba(96, 134, 255, .16); }
.l-ico svg { width: 24px; height: 24px; fill: none; stroke: #9ab6ff; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.lcard b { display: block; margin-bottom: 8px; font-size: 1.12rem; line-height: 1.3; }
.lcard p { color: rgba(255, 255, 255, .62); font-size: .96rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.stat b { display: block; font-size: clamp(2.800rem, 6.400vw, 5.200rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; background: linear-gradient(120deg, #fff 20%, #9ab6ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat p { margin-top: 6px; color: rgba(255, 255, 255, .58); font-size: .95rem; max-width: 20ch; }

/* ───────── Tính năng ───────── */
.features { padding: 250px 0 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 26px; border-radius: 30px; background: #fff; border: 1px solid var(--line); overflow: hidden; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .4s, opacity .85s var(--ease) var(--d, 0s), translate .95s var(--ease) var(--d, 0s); }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(47, 107, 255, .09), transparent 60%); }
.card:hover { box-shadow: 0 34px 70px -36px rgba(20, 30, 90, .4); }
.card:hover::after { opacity: 1; }
.c-wide { grid-column: span 2; }
.card h3 { padding: 6px 12px 0; font-size: 1.16rem; font-weight: 650; letter-spacing: -.015em; }
.card > p { padding: 0 12px; color: var(--ink-2); font-size: .96rem; }
.viz { position: relative; height: 178px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: var(--bg-2); }
.card .tag { align-self: flex-start; margin: 6px 12px 0; padding: .2em .8em; border-radius: 999px; font-size: .72rem; font-weight: 600; line-height: 1.5; }
.t-dub { color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); }
.t-make { color: color-mix(in srgb, var(--brand-2) 82%, #000); background: color-mix(in srgb, var(--brand-2) 12%, transparent); }
.t-all { color: #0d8a50; background: color-mix(in srgb, var(--ok) 14%, transparent); }

.viz-sign { grid-auto-flow: column; gap: 26px; background: linear-gradient(135deg, #ffe9e4, #fff4dc); }
.sign { display: inline-grid; padding: 12px 20px; border-radius: 12px; background: #c9362c; color: #fff; font-weight: 700; font-size: 1.25rem; rotate: -4deg; box-shadow: 0 14px 26px -12px rgba(160, 30, 20, .7); overflow: hidden; }
.sign.s2 { background: #1f2a44; rotate: 3deg; font-size: 1.050rem; }
.sign i { grid-area: 1 / 1; font-style: normal; text-align: center; white-space: nowrap; }
.s-a { animation: signA 5s var(--ease) infinite; } .s-b { animation: signB 5s var(--ease) infinite; }
.s2 .s-a, .s2 .s-b { animation-delay: .5s; }
@keyframes signA { 0%, 38% { opacity: 1; transform: none; filter: none; } 46%, 92% { opacity: 0; transform: translateY(-70%); filter: blur(4px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes signB { 0%, 38% { opacity: 0; transform: translateY(70%); filter: blur(4px); } 46%, 92% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translateY(70%); } }

.viz-split { background: linear-gradient(135deg, #e9f0ff, #f4ecff); }
.trk { position: absolute; left: 16%; right: 16%; height: 34px; top: 50%; margin-top: -17px; display: flex; align-items: center; gap: 4px; }
.trk i { flex: 1; border-radius: 3px; height: 30%; animation: eq 1.300s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -173ms); }
.t1 i { background: var(--brand); } .t2 i { background: var(--warm); opacity: .9; }
.t1 { animation: up 4.500s var(--ease) infinite alternate; } .t2 { animation: down 4.500s var(--ease) infinite alternate; }
@keyframes up { 0%, 25% { transform: none; } 55%, 100% { transform: translateY(-30px); } }
@keyframes down { 0%, 25% { transform: none; } 55%, 100% { transform: translateY(30px); } }
.lbl { position: absolute; left: 14px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #fff; animation: lbl 4.500s var(--ease) infinite alternate; }
.lbl.l1 { top: 22px; color: var(--brand); } .lbl.l2 { bottom: 22px; color: #d96a1c; }
@keyframes lbl { 0%, 40% { opacity: 0; } 65%, 100% { opacity: 1; } }

.viz-frame { grid-auto-flow: column; gap: 30px; background: linear-gradient(135deg, #e6f6f1, #e9f0ff); }
.fr { display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #2f6bff, #7a5cff); box-shadow: 0 14px 26px -12px rgba(47, 107, 255, .8); animation: reframe 5s var(--ease) infinite alternate; }
.fr i { width: 22px; height: 22px; border-radius: 50%; background: #fff; opacity: .9; }
@keyframes reframe { 0%, 25% { width: 150px; height: 84px; } 60%, 100% { width: 72px; height: 128px; } }
.parts { display: flex; gap: 6px; }
.parts i { display: grid; place-items: center; width: 34px; height: 60px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-style: normal; font-weight: 700; font-size: .85rem; color: var(--brand); animation: part 5s var(--ease) infinite alternate; }
.parts i:nth-child(2) { animation-delay: .15s; } .parts i:nth-child(3) { animation-delay: .3s; }
@keyframes part { 0%, 50% { opacity: 0; transform: translateY(14px) scale(.8); } 75%, 100% { opacity: 1; transform: none; } }

.viz-cast { grid-template-columns: repeat(3, auto); grid-template-rows: auto auto; column-gap: 26px; row-gap: 12px; align-content: center; justify-content: center; background: linear-gradient(135deg, #f3ecff, #ffeef4); }
.av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-weight: 700; animation: talk 3.600s infinite; }
.a1 { background: #2f6bff; } .a2 { background: #e2558f; animation-delay: 1.200s; } .a3 { background: #17a58f; animation-delay: 2.400s; }
.cw { height: 6px; width: 52px; border-radius: 6px; animation: talkw 3.600s infinite; transform-origin: 50% 50%; }
.w1 { background: #2f6bff; } .w2 { background: #e2558f; animation-delay: 1.200s; } .w3 { background: #17a58f; animation-delay: 2.400s; }
@keyframes talk { 0%, 30% { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(47, 107, 255, .12); } 36%, 100% { transform: none; box-shadow: none; } }
@keyframes talkw { 0%, 30% { opacity: 1; transform: scaleX(1); } 36%, 100% { opacity: .25; transform: scaleX(.4); } }

.viz-post { grid-template-columns: auto 1fr; gap: 22px; padding: 0 26px; justify-items: start; background: linear-gradient(135deg, #e9f0ff, #fff1e6); }
.cover { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; width: 92px; height: 138px; padding: 10px; border-radius: 12px; color: #fff; background: linear-gradient(170deg, rgba(16, 23, 38, .08) 25%, rgba(16, 23, 38, .9)), var(--bg, #101726) center / cover; box-shadow: 0 16px 30px -14px rgba(16, 23, 38, .8); rotate: -4deg; }
.cover small { font-size: .56rem; font-weight: 700; letter-spacing: .06em; color: #ffd84d; }
.cover b { font-size: .8rem; line-height: 1.2; }
.typed { display: grid; gap: 4px; width: 100%; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-align: left; }
.typed b { font-size: .74rem; color: var(--muted); font-weight: 600; }
.typed p { font-size: .95rem; font-weight: 600; min-height: 2.800em; }
.typed p[data-type]::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
.typed .tags { min-height: 0; font-size: .86rem; font-weight: 500; }

.viz-queue { gap: 10px; padding: 0 22%; align-content: center; justify-items: stretch; background: linear-gradient(135deg, #e6f6f1, #f1f6e6); }
.viz-queue span { height: 12px; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.viz-queue i { display: block; height: 100%; width: var(--w); border-radius: 12px; background: linear-gradient(90deg, var(--ok), #7ad8a8); transform-origin: 0 50%; animation: fill 4s var(--ease) infinite; }
.viz-queue span:nth-child(2) i { animation-delay: .25s; } .viz-queue span:nth-child(3) i { animation-delay: .5s; } .viz-queue span:nth-child(4) i { animation-delay: .75s; }
@keyframes fill { 0% { transform: scaleX(0); } 45%, 100% { transform: none; } }

.viz-chan { grid-auto-flow: column; gap: 10px; align-content: center; justify-content: center; flex-wrap: wrap; background: linear-gradient(135deg, #ecebff, #e6f6f1); }
.viz-chan span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.viz-chan i { font-style: normal; font-size: .76rem; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); }
.viz-chan .ok { background: var(--ok); border-color: var(--ok); color: #fff; animation: stamp 3.500s var(--ease) infinite; }
@keyframes stamp { 0%, 20% { opacity: 0; transform: scale(1.6) rotate(-10deg); } 32%, 100% { opacity: 1; transform: rotate(-4deg); } }

/* xu hướng: bốn thẻ từ khóa lần lượt hiện ra */
.viz-trend { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 9px; padding: 0 22px; background: linear-gradient(135deg, #fff0e6, #ffe8f0); }
.tr { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; box-shadow: 0 10px 20px -14px rgba(150, 60, 40, .5); animation: trIn1 6s var(--ease) infinite; }
.tr i { font-style: normal; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #0d8a50; background: color-mix(in srgb, var(--ok) 16%, transparent); }
.tr .fl { width: 13px; height: 13px; margin-left: -2px; color: #e2571c; stroke-width: 2; }
.tr:nth-child(-n+2) i { color: #d4491a; background: rgba(226, 87, 28, .13); }
.tr:nth-child(2) { animation-name: trIn2; } .tr:nth-child(3) { animation-name: trIn3; } .tr:nth-child(4) { animation-name: trIn4; }
/* bốn thẻ hiện lần lượt, cùng biến mất ở cuối vòng */
@keyframes trIn1 { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 8%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes trIn2 { 0%, 8% { opacity: 0; transform: translateY(14px) scale(.8); } 16%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes trIn3 { 0%, 16% { opacity: 0; transform: translateY(14px) scale(.8); } 24%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes trIn4 { 0%, 24% { opacity: 0; transform: translateY(14px) scale(.8); } 32%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* video dài: thời lượng và các chương lần lượt đầy lên */
.viz-long { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #fff3e0, #f6e9ff); }
.long-t { order: -1; font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.long-l { font-size: .78rem; font-weight: 600; color: var(--muted); }
.chap { display: flex; gap: 4px; width: min(270px, 76%); height: 12px; }
.chap i { position: relative; flex: 1; overflow: hidden; border-radius: 6px; background: rgba(12, 14, 24, .09); }
.chap i:nth-child(1) { flex: 1.3; } .chap i:nth-child(2) { flex: .9; } .chap i:nth-child(3) { flex: 1.5; } .chap i:nth-child(5) { flex: 1.1; }
.chap i::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: chapFill 6s var(--ease) infinite backwards; }
.chap i:nth-child(2)::after { animation-delay: .5s; } .chap i:nth-child(3)::after { animation-delay: 1s; } .chap i:nth-child(4)::after { animation-delay: 1.5s; } .chap i:nth-child(5)::after { animation-delay: 2s; }
@keyframes chapFill { 0% { transform: scaleX(0); opacity: 1; } 14%, 80% { transform: scaleX(1); opacity: 1; } 92%, 100% { transform: scaleX(1); opacity: 0; } }

/* thiếu nhi: bốn hình nhún nhảy */
.viz-kids { padding: 0; }
.viz-kids img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; animation: kidsPan 11s ease-in-out infinite alternate; }
@keyframes kidsPan { to { transform: scale(1.1) translateX(-2%); } }

/* nhiều thứ tiếng: dòng được chọn chạy lần lượt */
.viz-lang { align-content: center; justify-items: center; gap: 8px; background: linear-gradient(135deg, #e5f4ff, #efe9ff); }
.lg { display: flex; align-items: center; gap: 10px; width: min(290px, 84%); padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; white-space: nowrap; animation: lgOn 6s ease-in-out infinite; }
.lg i { flex: none; padding: 1px 7px; border-radius: 6px; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--bg-2); animation: lgBadge 6s ease-in-out infinite; }
.lg.g1, .lg.g1 i { animation-delay: 0s; } .lg.g2, .lg.g2 i { animation-delay: 2s; } .lg.g3, .lg.g3 i { animation-delay: 4s; }
@keyframes lgOn { 0%, 36%, 100% { border-color: var(--line); box-shadow: none; transform: none; } 6%, 30% { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); transform: scale(1.03); } }
@keyframes lgBadge { 0%, 36%, 100% { color: var(--muted); background: var(--bg-2); } 6%, 30% { color: #fff; background: var(--brand); } }

/* chỉnh video: dòng thời gian thu nhỏ, đầu phát quét qua */
.viz-ed { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 9px; padding: 0 22px; background: linear-gradient(135deg, #2a3350, #151a2c); }
.ed-row { display: flex; gap: 4px; height: 26px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.ed-row i { display: block; height: 100%; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.r1 i { flex: 1; background: linear-gradient(135deg, #4f8bff, #2f6bff); }
.r1 i:nth-child(2) { flex: 1.4; background: linear-gradient(135deg, #8a6dff, #6a4af0); }
.r2 i { width: 86%; background: linear-gradient(90deg, #19b36b, #4fd69c); }
.r3 i { width: 42%; background: linear-gradient(90deg, #ff8a3d, #ffb05c); animation: edSlide 7s ease-in-out infinite alternate; }
.ed-head { position: absolute; top: 13px; bottom: 13px; left: 22px; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .45); animation: edSweep 7s linear infinite; }
.ed-head::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
@keyframes edSlide { to { transform: translateX(138%); } }
@keyframes edSweep { from { left: 22px; } to { left: calc(100% - 24px); } }

.marquee { display: grid; gap: 12px; margin-top: 70px; padding-bottom: 240px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.mq-row span { padding: .6em 1.2em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; white-space: nowrap; }

/* ───────── Trải nghiệm ───────── */
.demo { padding: clamp(100px, 15vh, 160px) 0; }
.demo .wrap { text-align: center; }
.demo-tabs { display: inline-flex; vertical-align: top; max-width: 100%; margin-top: 28px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); }
.demo-tabs button { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: .62em 1.3em; border: 0; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .6); font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer; transition: background .3s, color .3s; }
.demo-tabs button:hover:not(.on) { color: #fff; }
.demo-tabs button.on { background: #fff; color: var(--ink); }
.demo-tabs .ic { width: 18px; height: 18px; }
.demo-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.150fr); gap: 22px; margin-top: 22px; text-align: left; padding: clamp(14px, 2.400vw, 26px); border-radius: 36px; background: var(--night-2); border: 1px solid var(--night-line); }
.demo-form { padding: 8px 10px; }
.field { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--night-line); }
.f-hint { margin-left: 6px; font-size: .78rem; font-weight: 400; color: var(--muted); }
.f-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(96, 134, 255, .2); color: #9ab6ff; font-weight: 700; font-size: .85rem; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opt { display: grid; gap: 1px; padding: 10px 14px; border-radius: 14px; text-align: left; cursor: pointer; font-weight: 600; font-size: .92rem; color: #dfe3ee; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.opt:hover { transform: translateY(-2px); }
.opt small { font-weight: 400; font-size: .76rem; color: #8b91a1; }
.opt.on { background: rgba(47, 107, 255, .2); border-color: #5c8aff; color: #fff; }
.demo-run { width: 100%; margin-top: 20px; }
.demo-run[disabled] { opacity: .6; cursor: progress; transform: none; }

.demo-out { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding: 18px; border-radius: 24px; background: #0a0b11; border: 1px solid var(--night-line); }
.demo-out[data-frame="wide"] { grid-template-columns: 1fr; }
.d-screen { position: relative; height: 420px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #151826; }
.demo-out[data-frame="wide"] .d-screen { height: auto; width: 100%; aspect-ratio: 16 / 9; }
.d-scene { position: absolute; inset: 0; overflow: hidden; background: #10121b; }
.d-bg { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(16px) brightness(.5); }
.d-fr { position: absolute; top: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; aspect-ratio: 9 / 16; object-fit: cover; opacity: 0; filter: blur(0); transition: opacity .9s ease, filter .9s ease; }
.d-fr.on { opacity: 1; }
.demo-out[data-sharp="off"] .d-fr { filter: blur(7px) brightness(.55); }
.demo-out[data-sub="off"] .d-sub { opacity: 0; }
.d-badge { position: absolute; left: 10px; top: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 13px; font-size: .72rem; font-weight: 600; line-height: 1.3; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16); }
.d-sub { position: absolute; left: 50%; bottom: 40px; translate: -50% 0; width: max-content; max-width: 90%; padding: 6px 10px; border-radius: 8px; text-align: center; font-size: .86rem; font-weight: 600; line-height: 1.35; background: rgba(0, 0, 0, .88); transition: opacity .3s, transform .4s var(--ease); }
.d-sub.swap { opacity: 0; transform: translateY(8px); }
.d-sub.vi { color: #ffe58a; }
.d-wave { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 22px; display: flex; align-items: center; gap: 3px; opacity: 0; transition: opacity .4s; }
.demo-out[data-voice="on"] .d-wave { opacity: 1; }
.demo-out[data-voice="on"] .d-wave i { animation-play-state: running; }
.d-steps { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
.d-steps li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: .9rem; color: #7c8293; background: rgba(255, 255, 255, .04); transition: color .3s, background .3s; }
.d-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.d-steps li.doing { color: #fff; background: rgba(47, 107, 255, .2); }
.d-steps li.doing::before { border-top-color: transparent; animation: rot .8s linear infinite; }
.d-steps li.done { color: #7ee2ad; }
.d-steps li.done::before { background: var(--ok); border-color: var(--ok); }
@keyframes rot { to { transform: rotate(360deg); } }
.d-bar { height: 6px; margin: 12px 0; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.d-bar i { display: block; height: 100%; width: var(--w, 0%); background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .5s var(--ease); }
.d-post { display: none; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); animation: rise .6s var(--ease); }
.demo-out[data-state="done"] .d-post { display: grid; }
.demo-out[data-state="done"] .d-steps li:not(:last-child) { display: none; }
.d-post p { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.d-post .tags { color: #9ab6ff; }
.d-post .btn { margin-top: 8px; white-space: normal; text-align: center; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } }

/* ───────── Bảng giá ───────── */
.pricing { padding: 250px 0 60px; }
.pricing .wrap { text-align: center; }
.cycle { position: relative; display: inline-flex; margin-top: 30px; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.cycle button { position: relative; z-index: 1; padding: .62em 1.3em; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .3s; }
.cycle button.on { color: var(--ink); }
.cycle em { margin-left: .4em; white-space: nowrap; padding: .15em .6em; border-radius: 999px; font-style: normal; font-size: .74rem; color: #0d8a50; background: rgba(25, 179, 107, .14); }
.cycle-thumb { position: absolute; top: 5px; bottom: 5px; left: 0; width: var(--tw, 50%); translate: var(--tx, 5px) 0; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px -4px rgba(20, 30, 80, .3); transition: translate .45s var(--ease), width .45s var(--ease); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 26px; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border-radius: 30px; background: #fff; border: 1px solid var(--line); transition: opacity .85s var(--ease) var(--d, 0s), translate .95s var(--ease) var(--d, 0s), box-shadow .4s; }
.plan:hover { box-shadow: 0 34px 70px -40px rgba(20, 30, 90, .45); }
.plan.hot { color: #fff; border-color: transparent; background: linear-gradient(180deg, #10142a, #171c36); box-shadow: 0 44px 90px -40px rgba(47, 107, 255, .7); }
.plan.hot::before { content: ""; position: absolute; inset: 0; padding: 1.500px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--a), #2f6bff, #7a5cff, #ff8a3d, #2f6bff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: spin 6s linear infinite; }
.ribbon { position: absolute; top: 20px; right: 20px; padding: .3em .85em; border-radius: 999px; font-size: .74rem; font-weight: 600; color: #fff; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.plan h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.p-for { color: var(--muted); font-size: .95rem; }
.plan.hot .p-for { color: rgba(255, 255, 255, .6); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 12px; }
.price b { display: inline-block; font-size: 2.700rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price b.flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { opacity: 0; transform: translateY(-40%) rotateX(60deg); } }
.price span { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.plan.hot .price span { color: rgba(255, 255, 255, .6); }
.plan.hot .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.plan ul { list-style: none; display: grid; gap: 10px; padding: 0; margin: 18px 0 0; }
.plan li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--ink-2); }
.plan.hot li { color: rgba(255, 255, 255, .82); }
.plan li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.500 3.500 3.500L17 9' fill='none' stroke='%2319b36b' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* ───────── Thanh toán ───────── */
.pay { padding: 80px 0 clamp(80px, 12vh, 140px); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(30px, 6vw, 80px); align-items: center; }
.pay-steps { list-style: none; display: grid; gap: 0; padding: 0; margin: 34px 0 0; }
.pay-steps li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding-bottom: 30px; }
.pay-steps li:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 10%, transparent)); }
.pay-steps span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 10%, #fff); color: var(--brand); font-weight: 700; }
.pay-steps b { display: block; padding-top: 4px; font-size: 1.15rem; }
.pay-steps p { color: var(--ink-2); font-size: .98rem; }
.checkout { display: grid; gap: 12px; padding: 26px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 100px -50px rgba(20, 30, 90, .5); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, opacity .85s var(--ease) var(--d, 0s), translate .95s var(--ease) var(--d, 0s); }
.co-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.co-state { display: inline-flex; align-items: center; gap: 6px; padding: .3em .8em; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #9a6400; background: rgba(245, 165, 36, .16); }
.co-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: blink 1.400s infinite; }
.co-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .96rem; }
.co-line span, .co-total span { color: var(--muted); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 4px; }
.co-total b { font-size: 1.900rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co-methods button { padding: .7em .5em; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600; font-size: .9rem; transition: border-color .3s, background .3s; }
.co-methods button.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); color: var(--brand); }
.co-qr { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--bg-2); color: var(--muted); font-size: .88rem; }
.qr { flex: none; width: 84px; height: 84px; border-radius: 10px; background-color: #fff; background-image: linear-gradient(90deg, rgba(12, 13, 18, .82) 50%, transparent 50%), linear-gradient(rgba(12, 13, 18, .82) 50%, transparent 50%); background-size: 14px 100%, 100% 14px; background-blend-mode: difference; filter: blur(3px) contrast(.7); opacity: .5; }
.checkout .fine { text-align: center; }

/* ───────── Câu hỏi ───────── */
.faq { padding: clamp(60px, 10vh, 120px) 0 250px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.500fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 120px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { position: relative; list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.120rem; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand); }
.qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%230c0d12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat; transition: rotate .4s var(--ease), background-color .3s; }
.qa details[open] summary::after { rotate: 135deg; background-color: color-mix(in srgb, var(--brand) 14%, #fff); }
.qa .a { padding: 0 44px 22px 0; color: var(--ink-2); }
.qa details[open] .a { animation: rise .45s var(--ease); }

/* ───────── Kết + chân trang ───────── */
.final { padding: 24vh 0 22vh; text-align: center; }
.final-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.final::after { display: none; }
.final .wrap { display: grid; justify-items: center; gap: 26px; }
.final-glow { position: absolute; left: 50%; bottom: -46%; width: min(1100px, 130vw); aspect-ratio: 1.6; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 107, 255, .55), rgba(122, 92, 255, .25) 55%, transparent); filter: blur(30px); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { transform: scale(1.12); opacity: .75; } }
.foot { background: var(--night); color: rgba(255, 255, 255, .7); border-top: 1px solid var(--night-line); padding: 34px 0 44px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.foot .brand { color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; }
.foot nav a:hover { color: #fff; }
.foot .link { color: #9ab6ff; }
.foot .fine { width: 100%; color: rgba(255, 255, 255, .4); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px rgba(20, 30, 80, .45); opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .4s, translate .5s var(--ease); }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top svg { width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top circle { stroke: var(--line); }
.to-top .ring { stroke: var(--brand); stroke-dasharray: 100.530; stroke-dashoffset: calc(100.530 * (1 - var(--sp, 0))); transform: rotate(-90deg); transform-origin: 50% 50%; }

/* ───────── Hộp báo bảo trì ───────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(8, 10, 22, .56); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .35s; }
.modal-card { position: relative; width: min(450px, 100%); padding: 34px 28px 22px; border-radius: 30px; background: #fff; text-align: center; display: grid; justify-items: center; gap: 10px; box-shadow: 0 60px 120px -40px rgba(8, 10, 40, .7); animation: popIn .5s var(--ease); outline: none; }
.modal.closing .modal-card { animation: popOut .25s ease-in forwards; }
.modal.closing .modal-back { animation: fade .25s reverse forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.92); } }
@keyframes popOut { to { opacity: 0; transform: translateY(16px) scale(.96); } }
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg-2); cursor: pointer; font-size: 1.300rem; line-height: 1; color: var(--ink-2); }
.m-ico { width: 78px; height: 78px; margin-bottom: 4px; }
.m-ico svg { width: 100%; height: 100%; }
.m-ring { fill: rgba(245, 165, 36, .12); stroke: var(--amber); stroke-width: 1.500; stroke-dasharray: 5 6; transform-origin: 50% 50%; animation: rot 12s linear infinite; }
.m-tool { fill: var(--amber); transform-origin: 50% 50%; animation: wobble 2.400s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(14deg); } }
.m-kicker { padding: .25em .9em; border-radius: 999px; font-size: .78rem; font-weight: 600; color: #9a6400; background: rgba(245, 165, 36, .16); }
.modal-card h2 { font-size: 1.650rem; letter-spacing: -.025em; line-height: 1.2; }
.modal-card > p:not(.m-kicker) { color: var(--ink-2); max-width: 34ch; }
.m-contact { display: grid; gap: 8px; width: 100%; margin: 10px 0 2px; }
.m-contact:empty { display: none; }
.m-contact .btn { width: 100%; }

/* ───────── Màn hình hẹp ───────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .chip-f { display: none; }
  .orbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .suite-grid .mod { grid-column: span 3; }
  .suite-grid .mod.big { grid-column: span 6; }
  .fac-grid { grid-template-columns: 1fr; gap: 24px; }
  .fac-sticky { order: -1; position: static; }
  .phone { width: 220px; }
  .ph-screen { font-size: 11px; }
  .fac-steps::before, .fac-steps::after { display: none; }
  .fstep { min-height: auto; align-items: start; padding: 18px 0; }
  .js .fstep > div { opacity: 1; }
  .fstep b { margin-bottom: 4px; }
  .fstep p { max-width: 46ch; }
  .mod.big { min-height: 230px; }
  .shots-grid { gap: 36px 28px; }
  .shot.s2 { margin-top: 50px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-wide { grid-column: span 2; }
  .bento > .c-wide:last-child { grid-column: auto; }
  .local-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
  .demo-box { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pay-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
  .checkout { max-width: 520px; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 36px); }
  .brand-name { font-size: .95rem; }
  .hero { padding: 120px 0 100px; }
  .story { height: calc(420vh + var(--sv-h)); }
  .story-pin { padding-top: 84px; }
  .win { font-size: 12px; }
  .work { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1.100fr); }
  .steps { flex-wrap: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
  .step { white-space: nowrap; }
  .voice-chip small, .res-covers { display: none; }
  .viz-trend { gap: 7px; }
  .tr { padding: 5px 11px; font-size: .82rem; }
  .orbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip-gap { display: none; }
  .trio { grid-template-columns: 1fr; }
  .suite-grid .mod, .suite-grid .mod.big { grid-column: span 6; }
  .mod.big { min-height: 0; padding-right: 22px; }
  .mod-shots { position: static; width: auto; height: 150px; margin-top: 10px; justify-content: flex-start; }
  .mod-shots img { height: 100%; margin-left: -28px; } .mod-shots img:first-child { margin-left: 0; }
  .shots { padding-top: 220px; }
  .shots-grid { grid-template-columns: 1fr; gap: 34px; }
  .shot.s2 { margin-top: 0; } .shot { transform: none !important; }
  .br-bar span { display: none; }
  .cycle em span { display: none; } .cycle em::before { content: "\2212"; }
  .cycle em { margin-left: .3em; padding: .15em .45em; }
  .demo-tabs button { padding: .58em .85em; font-size: .86rem; }
  .bento { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; }
  .viz-post { grid-template-columns: 1fr; padding: 0 16px; }
  .viz-post .cover { display: none; }
  .viz-sign { gap: 12px; } .sign { font-size: 1rem; padding: 10px 14px; } .sign.s2 { font-size: .9rem; }
  .demo-out { grid-template-columns: 1fr; justify-items: center; }
  .demo-out .d-side { width: 100%; }
  .d-screen { height: 360px; }
  .cycle button { padding: .58em .72em; font-size: .85rem; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .to-top { right: 14px; bottom: 14px; }
}

/* ───────── Chọn ý tưởng rồi bấm Tạo ───────── */
.credit-note { display: block; margin-top: 4px; }
.credit-note a { text-decoration: underline; text-underline-offset: 3px; color: rgba(255, 255, 255, .6); }
.ideas { padding: clamp(60px, 10vh, 110px) 0 clamp(80px, 12vh, 130px); }
.ib { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(22px, 4vw, 54px); margin-top: 48px; padding: clamp(14px, 2.4vw, 26px); border-radius: 36px; background: var(--bg-2); border: 1px solid var(--line); text-align: left; align-items: start; }
.ib-main { display: grid; gap: 14px; min-width: 0; }
.ib-card { position: relative; padding: 18px 20px 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(20, 30, 90, .35); }
.ib-card:not(:last-of-type)::after { content: ""; position: absolute; left: 33px; top: 100%; width: 2px; height: 14px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: .45; }
.ib-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ib-card header .n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font-weight: 700; font-size: .9rem; }
.ib-card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.ib-card header small { margin-left: auto; font-size: .82rem; color: var(--muted); }
.ib-scan { margin-left: auto; padding: .4em 1em; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand); font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .25s; }
.ib-scan:hover { background: color-mix(in srgb, var(--brand) 16%, transparent); }
.ib-srcs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ib-srcs li { display: inline-flex; align-items: center; gap: 8px; padding: .42em .95em; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); }
.ib-srcs li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ib-srcs.scan li { animation: ibScan .6s calc(var(--i) * .2s) both; }
.ib-srcs.scan li::before { animation: blink .6s calc(var(--i) * .2s) 2; }
@keyframes ibScan { 0% { background: var(--bg-2); } 40% { background: color-mix(in srgb, var(--brand) 16%, #fff); border-color: var(--brand); } 100% { background: var(--bg-2); } }
.ib-status { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.ib-tabs { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.ib-tabs button { padding: .38em 1.05em; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .86rem; cursor: pointer; transition: background .25s, color .25s; }
.ib-tabs button.on { background: var(--ink); color: #fff; }
.ib-pane[hidden] { display: none; }
.ib-ideas { display: grid; gap: 8px; }
.ib-idea { display: grid; gap: 2px; width: 100%; padding: 12px 15px; border-radius: 16px; text-align: left; cursor: pointer; background: #fff; border: 1.5px solid var(--line); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.ib-idea:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.ib-idea b { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.ib-idea small { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .8rem; color: var(--muted); }
.ib-idea small span { padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 600; }
.ib-idea.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 11%, transparent); }
.ib-own { display: block; margin-bottom: 8px; font-weight: 600; font-size: .92rem; }
#ib-own { width: 100%; padding: .85em 1em; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
#ib-own:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.ib-hint { margin-top: 10px; font-size: .84rem; color: var(--muted); }
.ib-set { display: grid; gap: 12px; margin: 0; }
.ib-set > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.ib-set dt { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.ib-set dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ib-set dd small { font-size: .8rem; color: var(--muted); }
.ib-pill { display: inline-flex; align-items: center; gap: 7px; padding: .42em 1em; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
button.ib-pill:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.ib-pill.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); color: var(--brand); }
span.ib-pill { cursor: default; }
.ib-pill i { font-style: normal; font-weight: 600; font-size: .68rem; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); }
.ib-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 4px 4px 0; }
.ib-go .ib-hint { flex: 1 1 260px; margin: 0; }
.ib-go .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.ib-out { position: sticky; top: max(96px, calc(50vh - 330px)); display: grid; justify-items: center; gap: 14px; }
.ib-phone { width: min(300px, 100%); padding: 9px; border-radius: 42px; background: #0b0c12; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 60px 90px -40px rgba(20, 30, 90, .55); }
.ib-screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 34px; background: #151826; }
.ib-screen img { width: 100%; height: 100%; object-fit: cover; transition: filter .8s var(--ease), transform .8s var(--ease); }
.ib-out[data-state="idle"] .ib-screen img { filter: blur(9px) brightness(.62) saturate(.9); transform: scale(1.06); }
.ib-out[data-state="run"] .ib-screen img { filter: blur(6px) brightness(.5); transform: scale(1.04); }
.ib-idle, .ib-steps { position: absolute; inset: 0; display: none; }
.ib-idle { place-content: center; justify-items: center; gap: 2px; text-align: center; color: #fff; }
.ib-idle b { font-size: 1.15rem; }
.ib-idle small { color: rgba(255, 255, 255, .75); }
.ib-out[data-state="idle"] .ib-idle { display: grid; }
.ib-steps { list-style: none; margin: 0; padding: 0 26px; place-content: center; gap: 8px; }
.ib-out[data-state="run"] .ib-steps { display: grid; }
.ib-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 12px; font-size: .92rem; color: rgba(255, 255, 255, .62); background: rgba(10, 12, 20, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ib-steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; }
.ib-steps li.doing { color: #fff; background: rgba(47, 107, 255, .55); }
.ib-steps li.doing::before { border-top-color: transparent; animation: rot .8s linear infinite; }
.ib-steps li.done { color: #7ee2ad; }
.ib-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.ib-meta { display: grid; gap: 2px; max-width: 300px; text-align: center; }
.ib-meta b { font-size: .98rem; line-height: 1.35; }
.ib-meta small { font-size: .84rem; color: var(--muted); min-height: 1.4em; }
@media (max-width: 980px) {
  .ib { grid-template-columns: 1fr; }
  .ib-out { position: static; }
}
@media (max-width: 640px) {
  .ib { border-radius: 26px; padding: 10px; }
  .ib-card { padding: 16px 14px 16px; }
  .ib-set > div { grid-template-columns: 1fr; gap: 6px; }
  .ib-card header { flex-wrap: wrap; }
}

/* ───────── Người dùng tắt chuyển động ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; translate: 0 0; scale: 1; filter: none; transform: none; }
  .story { height: auto; }
  .story-pin { position: static; height: auto; padding-bottom: 80px; }
  .win-wrap { height: 560px; flex: none; }
  .win { transform: none; }
  .words span { color: var(--ink); }
}
