/* Landing BingeDose (bingedose.com). Màu + font lấy từ design/tokens.json của repo client (nền tối, một màu nhấn cam #FF782A).
   Bố cục: hero 2 cột (chữ | điện thoại "quay màn hình") → 3 bước → bento 4 ô → FAQ → lời kêu gọi cuối → footer.
   Chuyển động chỉ dùng transform / opacity; mọi thứ tắt khi người xem bật "giảm chuyển động" (cuối file). */

@font-face {
    font-family: "Be Vietnam Pro";
    src: url("/landing/fonts/be-vietnam-pro-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/landing/fonts/inter-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    interpolate-size: allow-keywords;
    --bg: #08070D;
    --card: #11101A;
    --raised: #191624;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: #3A3840;
    --fg: #F8F7FA;
    --fg-2: #C9C5D1;
    --muted: #96929F;
    --accent: #FF782A;
    --accent-pressed: #E0631A;
    --accent-tint: rgba(255, 120, 42, 0.15);
    --gold: #FFB23F;
    --wallet: #9945FF;
    --success: #14F195;
    --on-accent: #1A0B04;
    --display: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 16px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --loop: 16s;
    --gutter-l: max(20px, env(safe-area-inset-left, 0px));
    --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding-left: var(--gutter-l);
    padding-right: var(--gutter-r);
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }

/* ---------- Thanh trên cùng + thanh tiến độ cuộn ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 7, 13, 0.82);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 18px; height: 30px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.brand-name span { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--fg-2); text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out); }
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
    .scroll-progress {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg, var(--gold), var(--accent));
        transform-origin: left;
        transform: scaleX(0);
        animation: grow-x linear both;
        animation-timeline: scroll(root block);
    }
}
@keyframes grow-x { to { transform: scaleX(1); } }

/* ---------- Nút (vệt sáng lướt qua khi rê chuột) ---------- */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; background: var(--accent); color: var(--on-accent); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(255, 120, 42, 0.6); }
.btn-primary:hover, .btn-small:hover { background: var(--accent-pressed); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-2); transform: translateY(-1px); }
.btn.is-soon { background: var(--raised); color: var(--fg-2); border-color: var(--line-strong); box-shadow: none; cursor: default; transform: none; }
.btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg) translateX(0);
    transition: transform 0.7s var(--ease-out);
    pointer-events: none;
}
.btn-shine:hover::after { transform: skewX(-20deg) translateX(420%); }
.btn:focus-visible, .nav a:focus-visible, .footer-links a:focus-visible, summary:focus-visible, .brand:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); }
/* Vệt sáng cam trôi chậm sau điện thoại: "ánh sáng có chủ đích" cho tâm điểm. */
.hero-glow {
    position: absolute;
    top: -10%;
    right: -12%;
    width: min(760px, 90vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 120, 42, 0.30), rgba(255, 178, 63, 0.10) 45%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-6%, 8%) scale(1.08); }
    100% { transform: translate(4%, -4%) scale(0.96); }
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
h1 .line > span { display: inline-block; }
.lede { color: var(--fg-2); font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.genres { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.genres li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-2); font-size: 14px; transition: border-color 0.2s ease, color 0.2s ease; }
.genres li:hover { border-color: var(--accent); color: var(--fg); }

/* Chữ hero hiện lần lượt một lần khi tải trang (tiêu đề trượt lên từ dưới mép dòng). */
.rise { animation: rise 0.8s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
h1 .rise { animation-name: rise-line; animation-duration: 0.9s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-line { from { opacity: 0; transform: translateY(105%); } }

/* ---------- Điện thoại 3D ---------- */
.hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.phone-tilt {
    width: min(300px, 100%);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out);
}
.phone-scroll { transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg); transform-style: preserve-3d; }
@supports (animation-timeline: scroll()) {
    /* Cuộn xuống: điện thoại xoay thẳng dần và tiến lại gần. */
    .phone-scroll { animation: straighten linear both; animation-timeline: scroll(root block); animation-range: 0 70vh; }
}
@keyframes straighten {
    from { transform: rotateY(-14deg) rotateX(6deg) rotateZ(-3deg); }
    to { transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) translateZ(40px); }
}
.phone {
    width: 100%;
    aspect-ratio: 9 / 19;
    border-radius: 44px;
    padding: 10px;
    background: linear-gradient(160deg, #34303F, #121019 55%, #1C1924);
    box-shadow:
        0 40px 90px -20px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 60px -10px rgba(255, 120, 42, 0.25);
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.screen {
    position: relative;
    height: 100%;
    border-radius: 35px;
    background: var(--bg);
    overflow: hidden;
    isolation: isolate;
}
.screen::after {
    /* Phản chiếu kính nhẹ trên màn hình. */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 35%);
    pointer-events: none;
    z-index: 5;
}

/* Hai "cảnh" chồng lên nhau trong màn hình. */
.scene { position: absolute; inset: 0; }
.scene-home { display: flex; flex-direction: column; padding: 18px 14px 10px; gap: 10px; }
.home-content { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; overflow: hidden; }
.home-content > * { flex-shrink: 0; }
.scene-home .tabbar { flex: none; }

.app-bar { display: flex; align-items: center; gap: 6px; }
.app-mark { width: 9px; height: 15px; }
.app-name { font-family: var(--display); font-weight: 700; font-size: 14px; }
.app-name span { color: var(--accent); }
.app-chips { display: flex; gap: 5px; overflow: hidden; }
.app-chips span { flex: none; font-size: 9px; padding: 3px 8px; border-radius: 999px; background: var(--raised); color: var(--fg-2); }
.app-chips span.on { background: var(--accent-tint); color: var(--accent); box-shadow: 0 0 0 1px rgba(255, 120, 42, 0.45) inset; }

.feature-poster { position: relative; height: 150px; border-radius: 14px; overflow: hidden; }
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    padding: 10px 10px 38px;
    animation: slides 12s infinite;
}
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8, 7, 13, 0.85)); }
.slide > * { position: relative; z-index: 1; }
.slide:nth-child(2) { animation-delay: -8s; }
.slide:nth-child(3) { animation-delay: -4s; }
@keyframes slides {
    0%, 30% { opacity: 1; transform: scale(1.06); }
    33.3%, 96% { opacity: 0; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.06); }
}
.badge { align-self: flex-start; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.poster-genre { font-size: 9px; color: var(--fg-2); }
.watch {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    text-align: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 10px;
    padding: 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
}
.rail-title { font-family: var(--display); font-weight: 700; font-size: 11px; }
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rail-wide { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; border-radius: 9px; aspect-ratio: 16 / 10; overflow: hidden; }
.tile.tall { aspect-ratio: 2 / 3; }
.tile i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: var(--accent); transform-origin: left; animation: fill 5s var(--ease-out) infinite; }
@keyframes fill { 0% { transform: scaleX(0.2); } 60%, 100% { transform: scaleX(1); } }
.rail-marquee { overflow: hidden; margin-right: -14px; }
.rail-track { display: flex; gap: 6px; width: max-content; animation: marquee 14s linear infinite; }
.rail-track .tile { width: 70px; flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 3px)); } }
.tabbar { display: flex; justify-content: space-around; padding: 7px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.tabbar span { font-size: 8px; color: var(--muted); }
.tabbar span.on { color: var(--accent); }

/* Cảnh trình phát: video dọc (gradient chuyển động thay cho cảnh phim), sheet mở khoá, thông báo. */
.scene-player { opacity: 0; background: #000; }
.clip { position: absolute; inset: 0; overflow: hidden; }
.clip-b { transform: translateY(100%); }
.footage {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(30% 22% at 30% 35%, rgba(255, 255, 255, 0.35), transparent 70%),
        radial-gradient(40% 30% at 70% 65%, rgba(0, 0, 0, 0.55), transparent 70%);
    animation: footage 6s ease-in-out infinite alternate;
}
@keyframes footage {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(6%, -5%) rotate(8deg) scale(1.12); }
}
.clip-label {
    position: absolute;
    left: 14px;
    bottom: 34px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 12px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.clip-progress { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.clip-progress i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.player-rail { position: absolute; right: 10px; bottom: 70px; display: flex; flex-direction: column; gap: 10px; }
.player-rail span { width: 22px; height: 22px; border-radius: 50%; background: rgba(8, 7, 13, 0.55); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset; }
.scrim { position: absolute; inset: 0; background: rgba(8, 7, 13, 0.6); opacity: 0; }
.sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 14px 18px;
    border-radius: 18px 18px 0 0;
    background: var(--raised);
    border-top: 1px solid var(--line);
    transform: translateY(105%);
    text-align: center;
}
.sheet-grip { align-self: center; width: 32px; height: 4px; border-radius: 4px; background: var(--line-strong); }
.sheet b { font-family: var(--display); font-size: 12px; }
.sheet-btn { position: relative; padding: 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 10px; }
.sheet-alt { padding: 7px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 178, 63, 0.5) inset; color: var(--gold); font-size: 9px; font-weight: 600; }
.toast {
    position: absolute;
    left: 50%;
    top: 22px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(20, 241, 149, 0.16);
    box-shadow: 0 0 0 1px rgba(20, 241, 149, 0.5) inset;
    color: var(--success);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, -10px);
    opacity: 0;
}

/* Vòng chạm của ngón tay. */
.tap {
    position: absolute;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}
.tap-watch, .tap-unlock { left: 50%; top: 50%; }
.tap-swipe { left: 50%; top: 72%; }

/* ---------- Kịch bản điện thoại (một vòng = --loop) ----------
   0–24%  Home: đứng, cuộn xuống xem các hàng, cuộn lại đầu
   26%    chạm "Watch now" → 28–32% chuyển sang trình phát
   32–57% EP 3 chạy, thanh tiến độ đầy dần
   57–63% vuốt lên → EP 4
   68–74% sheet "EP 4 is locked" trượt lên
   83%    chạm "Unlock with credits" → 86–92% thông báo "EP 4 unlocked"
   92–97% về lại Home */
.scene-home { animation: home-scene var(--loop) infinite; }
.home-content { animation: home-scroll var(--loop) var(--ease-out) infinite; }
.tap-watch { animation: tap-watch var(--loop) infinite; }
.scene-player { animation: player-scene var(--loop) infinite; }
.clip-a { animation: clip-a var(--loop) var(--ease-out) infinite; }
.clip-b { animation: clip-b var(--loop) var(--ease-out) infinite; }
.clip-a .clip-progress i { animation: progress-a var(--loop) linear infinite; }
.clip-b .clip-progress i { animation: progress-b var(--loop) linear infinite; }
.tap-swipe { animation: tap-swipe var(--loop) var(--ease-out) infinite; }
.scrim { animation: scrim var(--loop) infinite; }
.sheet { animation: sheet var(--loop) var(--ease-out) infinite; }
.sheet-btn { animation: press var(--loop) infinite; }
.tap-unlock { animation: tap-unlock var(--loop) infinite; }
.toast { animation: toast var(--loop) var(--ease-out) infinite; }

@keyframes home-scene {
    0%, 27% { opacity: 1; transform: none; }
    31%, 92% { opacity: 0; transform: scale(0.96); }
    97%, 100% { opacity: 1; transform: none; }
}
@keyframes home-scroll {
    0%, 6% { transform: translateY(0); }
    13%, 17% { transform: translateY(-34%); }
    23%, 100% { transform: translateY(0); }
}
@keyframes tap-watch {
    0%, 24% { opacity: 0; transform: scale(0.4); }
    26% { opacity: 1; transform: scale(1); }
    29%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes player-scene {
    0%, 27% { opacity: 0; transform: scale(1.06); }
    31%, 92% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: none; }
}
@keyframes clip-a {
    0%, 58% { transform: translateY(0); }
    63%, 100% { transform: translateY(-100%); }
}
@keyframes clip-b {
    0%, 58% { transform: translateY(100%); }
    63%, 100% { transform: translateY(0); }
}
@keyframes progress-a {
    0%, 31% { transform: scaleX(0); }
    57%, 100% { transform: scaleX(1); }
}
@keyframes progress-b {
    0%, 63% { transform: scaleX(0); }
    68%, 100% { transform: scaleX(0.12); }
}
@keyframes tap-swipe {
    0%, 55% { opacity: 0; transform: translateY(0); }
    56.5% { opacity: 1; transform: translateY(0); }
    61% { opacity: 1; transform: translateY(-110px); }
    63%, 100% { opacity: 0; transform: translateY(-120px); }
}
@keyframes scrim {
    0%, 68% { opacity: 0; }
    73%, 90% { opacity: 1; }
    94%, 100% { opacity: 0; }
}
@keyframes sheet {
    0%, 68% { transform: translateY(105%); }
    74%, 86% { transform: translateY(0); }
    91%, 100% { transform: translateY(105%); }
}
@keyframes press {
    0%, 82.5% { transform: scale(1); }
    84% { transform: scale(0.94); }
    85.5%, 100% { transform: scale(1); }
}
@keyframes tap-unlock {
    0%, 81.5% { opacity: 0; transform: scale(0.4); }
    83.5% { opacity: 1; transform: scale(1); }
    86.5%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes toast {
    0%, 85.5% { opacity: 0; transform: translate(-50%, -10px); }
    87.5%, 91% { opacity: 1; transform: translate(-50%, 0); }
    94%, 100% { opacity: 0; transform: translate(-50%, -6px); }
}

/* Ảnh poster trừu tượng (gradient), không phải ảnh phim thật */
.art-ember { background: radial-gradient(120% 80% at 30% 20%, #FFB23F 0%, #C2410C 38%, #3B0A0A 75%, #120608 100%); }
.art-night { background: radial-gradient(90% 90% at 70% 30%, #4C6FFF 0%, #1B1F4A 50%, #08070D 100%); }
.art-rose { background: radial-gradient(100% 90% at 30% 30%, #FF7AA8 0%, #7A1F4B 50%, #14070F 100%); }
.art-jade { background: radial-gradient(100% 90% at 60% 25%, #3FE0B0 0%, #0F5946 45%, #061612 100%); }
.art-violet { background: radial-gradient(100% 90% at 40% 25%, #B98AFF 0%, #4B1E8C 50%, #0E0718 100%); }

/* Poster phim thật từ catalog (style="background-image" do Blade đặt) thay cho gradient. */
.has-img { background-color: var(--raised); background-size: cover; background-position: center; background-repeat: no-repeat; }
.poster-title { font-family: var(--display); font-weight: 700; font-size: 12px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.clip.has-img { background: #000; }
.clip-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenburns 9s ease-in-out infinite alternate;
}
.clip-img-alt { background-position: 50% 15%; animation-direction: alternate-reverse; }
.clip.has-img .footage { opacity: 0.35; mix-blend-mode: soft-light; }
.clip.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.7)); }
.clip.has-img .clip-label, .clip.has-img .clip-progress { z-index: 1; }
@keyframes kenburns {
    from { transform: scale(1.02) translate(0, 0); }
    to { transform: scale(1.14) translate(-3%, -2%); }
}
.mini-phone.has-img { background-size: cover; }


/* ---------- Các section ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 36px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.steps li:hover { transform: translateY(-4px); border-color: rgba(255, 120, 42, 0.4); }
.step-no {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent);
    font-family: var(--display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.steps p, .bento p, .faq p { color: var(--fg-2); }

/* Bento: ô cao bên trái, ô rộng trên phải, 2 ô nhỏ dưới. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.cell {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.cell::before {
    /* Ánh sáng theo vị trí chuột (biến --mx/--my do landing.js đặt); không có chuột thì nằm giữa trên. */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 120, 42, 0.12), transparent 60%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cell:hover { border-color: rgba(255, 120, 42, 0.35); }
.cell:hover::before { opacity: 1; }
.cell > * { position: relative; }
.cell-tall { grid-row: span 2; }
.cell-wide { grid-column: span 2; }
.cell-art { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 90px; }

.art-frame { flex-direction: column; gap: 18px; }
.mini-phone {
    width: 110px;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    background: radial-gradient(120% 80% at 30% 20%, #FFB23F 0%, #C2410C 40%, #3B0A0A 80%);
    box-shadow: 0 0 0 6px #1C1924, 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    display: grid;
    place-items: center;
}
.mini-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 7, 13, 0.6); font-size: 13px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.08); } }
.ep-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.ep-strip span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ep-strip .free { background: var(--accent-tint); color: var(--accent); }
.ep-strip .locked { background: var(--raised); color: var(--muted); }
.ep-strip .locked::before { content: ""; display: inline-block; width: 7px; height: 8px; margin-right: 5px; border-radius: 2px; background: currentColor; vertical-align: -0.5px; }

.art-wallet { flex-wrap: wrap; }
.token { padding: 8px 16px; border-radius: 999px; font-family: var(--display); font-weight: 700; background: rgba(39, 117, 202, 0.18); color: #6FB1FF; box-shadow: 0 0 0 1px rgba(111, 177, 255, 0.4) inset; }
.approve { position: relative; padding: 10px 18px; border-radius: 999px; background: var(--wallet); color: #fff; font-weight: 600; font-size: 14px; animation: approve 4s ease-in-out infinite; }
@keyframes approve { 0%, 70%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(153, 69, 255, 0.5); } 78% { transform: scale(0.95); } 86% { transform: scale(1); box-shadow: 0 0 0 14px rgba(153, 69, 255, 0); } }

.art-streak { gap: 6px; }
.art-streak span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    background: var(--raised);
    animation: streak 7s infinite;
}
.art-streak span:nth-child(2) { animation-delay: 0.5s; }
.art-streak span:nth-child(3) { animation-delay: 1s; }
.art-streak span:nth-child(4) { animation-delay: 1.5s; }
.art-streak span:nth-child(5) { animation-delay: 2s; }
.art-streak span:nth-child(6) { animation-delay: 2.5s; }
.art-streak span.big { width: 36px; height: 36px; font-size: 13px; animation: streak-big 7s infinite 3s; }
@keyframes streak { 0%, 5% { background: var(--raised); color: var(--muted); } 10%, 80% { background: var(--accent-tint); color: var(--accent); } 90%, 100% { background: var(--raised); color: var(--muted); } }
@keyframes streak-big { 0%, 5% { background: var(--raised); color: var(--muted); box-shadow: none; } 10%, 50% { background: var(--gold); color: var(--on-accent); box-shadow: 0 0 24px rgba(255, 178, 63, 0.6); } 60%, 100% { background: var(--raised); color: var(--muted); box-shadow: none; } }

.art-progress .bar { width: 80%; height: 8px; border-radius: 8px; background: var(--raised); overflow: hidden; }
.art-progress .bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; animation: resume 5s var(--ease-out) infinite; }
@keyframes resume { 0% { transform: scaleX(0.35); } 70%, 100% { transform: scaleX(0.82); } }

/* Hiện dần khi cuộn tới (CSS scroll-driven). Trạng thái ban đầu vẫn đọc được; trình duyệt chưa hỗ trợ thì hiện tĩnh. */
@supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .steps .reveal:nth-child(2), .bento .reveal:nth-child(2) { animation-range: entry 6% cover 32%; }
    .steps .reveal:nth-child(3), .bento .reveal:nth-child(3) { animation-range: entry 12% cover 36%; }
    .bento .reveal:nth-child(4) { animation-range: entry 18% cover 40%; }
}
@keyframes reveal { from { opacity: 0.25; transform: translateY(28px) scale(0.98); } }

/* ---------- FAQ (mở / đóng mượt khi trình duyệt hỗ trợ ::details-content) ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    transition: color 0.2s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 24px; color: var(--accent); line-height: 1; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 64ch; }
.faq a { color: var(--accent); }

/* ---------- Kêu gọi cuối + footer ---------- */
.closing { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 104px); border-top: 1px solid var(--line); }
.closing::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -60%;
    width: min(900px, 140vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 120, 42, 0.22), transparent 70%);
    transform: translateX(-50%);
    animation: breathe 9s ease-in-out infinite;
    pointer-events: none;
}
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.1); opacity: 0.8; } }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }

.footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.brand-foot .brand-name { font-size: 18px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--fg-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--fg); }
.footer small { color: var(--muted); font-size: 13px; }

/* ---------- Màn hẹp ---------- */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .phone-tilt { width: min(270px, 78%); }
    .hero-glow { top: auto; bottom: -20%; right: 50%; transform: translateX(50%); animation: none; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cell-tall { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 640px) {
    .nav { display: none; }
    .topbar-inner { justify-content: space-between; }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .cell-tall, .cell-wide { grid-column: span 1; }
    .cta-row .btn { width: 100%; white-space: normal; text-align: center; }
    .footer-links { margin-left: 0; }
}

/* ---------- Giảm chuyển động: tắt hết, điện thoại đứng yên ở màn Home ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .scene-player { display: none; }
    .phone-scroll { transform: none; }
    .phone-tilt { transform: none !important; }
    .slide:not(:first-child) { opacity: 0; }
}
