/* =========================================================
   CS Mod — landing page
   ========================================================= */

/* ---------- 1. Tokens & base ---------- */
:root {
  --bg: #07080e;
  --bg-soft: #0a0c14;
  --panel: #0d0f19;
  --panel-2: #11141f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4fa;
  --muted: #9ba1b8;
  --muted-dim: #767d95;

  --violet: #8b5cf6;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --amber: #fbbf24;
  --pink: #f472b6;
  --blue: #60a5fa;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --header-h: 72px;
  --container: 1160px;

  --shadow-soft: 0 18px 60px -22px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 24px 80px -30px rgba(109, 94, 252, 0.65);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Consolas, monospace; font-size: 0.88em; }

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 2. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 118px);
}

.section--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(99, 102, 241, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
  border-block: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.section--tint > * { position: relative; }

.grad-text {
  background: linear-gradient(105deg, #b79bff 0%, #7dd3fc 55%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. Background decor ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-decor__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-decor__blob--1 {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -160px;
  background: radial-gradient(circle, rgba(114, 78, 255, 0.55), transparent 65%);
}
.bg-decor__blob--2 {
  width: 560px;
  height: 560px;
  top: -120px;
  right: -200px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 65%);
}

.bg-decor__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 8, 14, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}
.brand__icon {
  width: 42px;
  height: 42px;
  margin-left: -4px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.45));
}
.brand__name {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand__name span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 18px);
}
.nav__link {
  position: relative;
  padding: 8px 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- 5. Buttons & bits ---------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, #9a6bff 0%, #6d5efc 52%, #4aa8ff 100%);
  box-shadow: 0 12px 34px -14px rgba(109, 94, 252, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -14px rgba(109, 94, 252, 1), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.btn--ghost .ico { transition: transform 0.25s ease; }
.btn--ghost:hover .ico { transform: translateX(3px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--live {
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.1);
  color: #c9b8ff;
  letter-spacing: 0.09em;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.05); }
}

.badge {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6c7ff;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero__copy { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title .grad-text {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted-dim);
}
.hero__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 7. Phone mockup ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise 0.9s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.phone {
  position: relative;
  width: min(316px, 78vw);
  isolation: isolate;
}
.phone::before {
  content: "";
  position: absolute;
  inset: -14% -22%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 92, 246, 0.42), transparent 70%);
  filter: blur(28px);
}

.phone__frame {
  position: relative;
  padding: 9px;
  border-radius: 44px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0.02) 70%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  border-radius: 999px;
  background: #05060a;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 30px 13px 13px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 55%),
    #0a0b12;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 12px;
}
.mock-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.mock-top__title { font-size: 11px; font-weight: 600; letter-spacing: -0.01em; }
.mock-pill {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 600;
  color: #bda9ff;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.24);
}

.mock-poster {
  position: relative;
  height: 158px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-poster__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 90% at 78% 18%, rgba(255, 214, 170, 0.95), transparent 48%),
    radial-gradient(90% 80% at 20% 30%, rgba(255, 130, 130, 0.55), transparent 60%),
    linear-gradient(160deg, #3b1d5a 0%, #7b2f66 38%, #c8557a 62%, #f6a35c 100%);
}
.mock-poster__art::after {
  content: "";
  position: absolute;
  inset: 55% -10% -20%;
  background: linear-gradient(180deg, rgba(20, 8, 28, 0.1), rgba(8, 6, 14, 0.92));
  border-radius: 50% 50% 0 0 / 32% 32% 0 0;
  transform: rotate(-4deg);
}
.mock-poster__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(7, 8, 14, 0.88));
}
.mock-poster__info {
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 10px;
  display: grid;
  gap: 3px;
}
.mock-tag {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e9e4ff;
  background: rgba(10, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}
.mock-poster__info strong { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.mock-poster__meta { font-size: 9px; color: rgba(255, 255, 255, 0.62); }

.mock-play {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #10131f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.8);
}
.mock-play svg { width: 13px; height: 13px; margin-left: 1px; }

.mock-heading {
  margin: 12px 3px 7px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-card {
  display: grid;
  gap: 4px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.72);
}
.mock-card__art {
  height: 58px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mock-card__art--1 {
  background:
    radial-gradient(60% 70% at 30% 20%, rgba(125, 211, 252, 0.9), transparent 60%),
    linear-gradient(150deg, #122a4a, #1d4f74 55%, #3aa0a6);
}
.mock-card__art--2 {
  background:
    radial-gradient(60% 70% at 70% 15%, rgba(251, 191, 36, 0.75), transparent 60%),
    linear-gradient(150deg, #3a2412, #6d3f1c 55%, #b97a35);
}
.mock-card i { font-style: normal; font-size: 8px; color: rgba(255, 255, 255, 0.4); }

.mock-player {
  margin-top: 12px;
  padding: 9px 10px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 17, 28, 0.9), rgba(10, 11, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.mock-player__bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.mock-player__bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #67e8f9);
}
.mock-sub {
  margin: 9px 0;
  text-align: center;
  font-size: 9.5px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
}
.mock-player__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: rgba(255, 255, 255, 0.55);
}
.mock-player__controls svg { width: 13px; height: 13px; }
.mock-tts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 600;
  color: #d9c9ff;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.38);
}
.mock-tts svg { width: 11px; height: 11px; }

/* Floating status cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 11px;
  border-radius: 15px;
  background: rgba(16, 18, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 4;
  animation: floaty 6s ease-in-out infinite;
}
.float-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.float-card__icon svg { width: 17px; height: 17px; }
.float-card__icon--violet {
  color: #e2d5ff;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.65), rgba(99, 102, 241, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.float-card__icon--cyan {
  color: #d4fbff;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.5), rgba(59, 130, 246, 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.float-card__body {
  display: grid;
  gap: 1px;
  font-size: 10.5px;
  line-height: 1.35;
}
.float-card__body b { font-size: 12px; font-weight: 600; color: #f4f5fb; }
.float-card__body small { color: var(--muted); font-size: 10px; }

.float-card--tts { top: 17%; left: -58px; }
.float-card--cache { bottom: 15%; right: -52px; animation-delay: -3s; }

.wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
  margin-left: 2px;
}
.wave i {
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c4b5fd, #8b5cf6);
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 6px; animation-delay: 0s; }
.wave i:nth-child(2) { height: 13px; animation-delay: 0.12s; }
.wave i:nth-child(3) { height: 9px; animation-delay: 0.24s; }
.wave i:nth-child(4) { height: 15px; animation-delay: 0.36s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- 8. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(36px, 6vw, 60px);
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}
.stats li {
  display: grid;
  gap: 2px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.stats b {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(105deg, #d8ccff, #8ee9f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-size: 12.5px; color: var(--muted-dim); }

/* ---------- 9. Section head ---------- */
.section__head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 5vw, 54px);
  text-align: center;
}
.section__head--left { margin-inline: 0; text-align: left; }
.section__head h2 {
  margin-top: 16px;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section__head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- 10. Feature cards ---------- */
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 160px;
  background: radial-gradient(120% 100% at 50% 0%, var(--accent, rgba(255, 255, 255, 0.12)), transparent 70%);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.card:hover::before { opacity: 0.28; }

.card--accent-violet { --accent: #8b5cf6; }
.card--accent-cyan   { --accent: #22d3ee; }
.card--accent-lime   { --accent: #a3e635; }
.card--accent-amber  { --accent: #fbbf24; }
.card--accent-blue   { --accent: #60a5fa; }
.card--accent-pink   { --accent: #f472b6; }

.card--feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border-radius: 14px;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}
/* Hàng đầu thẻ tính năng: icon và nhãn "Mới · x.y.z" nằm ngang nhau,
   để tiêu đề không bị đẩy xuống thêm một dòng. */
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card__top .card__icon { margin-bottom: 0; }
.card__top .badge { align-self: center; } /* .badge mặc định flex-start, ghi đè để cân giữa icon */
.card--feature h3 {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.card--feature p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}
.card--feature code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #d8dcf0;
}

/* ---------- 11. Split / experience ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.split__copy h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.split__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 52ch;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}
.check-list b { color: var(--text); font-weight: 600; }
.check-list__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.22);
}
.check-list__ico svg { width: 14px; height: 14px; }

/* Player demo */
.player-demo {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.03);
  isolation: isolate;
  background: #0a0b12;
}
.player-demo__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38% 45% at 74% 24%, rgba(255, 226, 186, 0.95), transparent 60%),
    radial-gradient(70% 60% at 18% 18%, rgba(139, 92, 246, 0.55), transparent 65%),
    linear-gradient(160deg, #1b1033 0%, #4a2054 34%, #9c4668 62%, #e08a5a 100%);
}
.player-demo__art::before,
.player-demo__art::after {
  content: "";
  position: absolute;
  bottom: -12%;
  width: 68%;
  height: 58%;
  border-radius: 46% 46% 0 0 / 62% 62% 0 0;
}
.player-demo__art::before {
  left: -12%;
  background: linear-gradient(180deg, rgba(20, 10, 34, 0.55), rgba(8, 6, 14, 0.98));
  transform: rotate(5deg);
}
.player-demo__art::after {
  right: -14%;
  height: 46%;
  background: linear-gradient(180deg, rgba(28, 12, 38, 0.5), rgba(8, 6, 14, 0.98));
  transform: rotate(-6deg);
}
.player-demo__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 12, 0.55) 0%, transparent 26%, transparent 42%, rgba(6, 7, 12, 0.9) 100%);
}

.player-demo__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.player-demo__quality {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #e8f7ff;
  background: rgba(9, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.player-demo__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
.player-demo__play {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #0b0c14;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9);
}
.player-demo__play svg { width: 24px; height: 24px; margin-left: 3px; }

.player-demo__bottom {
  position: absolute;
  inset: auto 0 0;
  padding: 18px clamp(16px, 3vw, 24px) 20px;
  z-index: 2;
}
.player-demo__title {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.player-demo__sub {
  margin-top: 4px;
  font-size: clamp(11px, 1.15vw, 13px);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  max-width: 44ch;
}

.player-demo__bar {
  position: relative;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.player-demo__bar i {
  display: block;
  width: 41%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a78bfa, #67e8f9);
}
.player-demo__bar b {
  position: absolute;
  left: 41%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}
.player-demo__times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

.player-demo__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pd-btn svg { width: 15px; height: 15px; }
.pd-btn--wide {
  font-size: 11.5px;
  font-weight: 600;
  color: #e3d7ff;
  background: rgba(139, 92, 246, 0.34);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* ---------- 12. Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.step__num {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: transparent;
  background: linear-gradient(105deg, #c4b5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.step p { font-size: 13.5px; line-height: 1.68; color: var(--muted); }
.step b { color: #d6d9e8; font-weight: 600; }

.repo-copy {
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.repo-copy code {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.5;
  color: #a5e8f4;
  overflow-wrap: anywhere;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #dcd6ff;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.32);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.copy-btn:hover { background: rgba(139, 92, 246, 0.27); }
.copy-btn:active { transform: scale(0.98); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.is-done {
  color: #d9f99d;
  background: rgba(163, 230, 53, 0.14);
  border-color: rgba(163, 230, 53, 0.4);
}

.install__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-dim);
}
.install__note svg { width: 17px; height: 17px; flex: none; }

/* ---------- 13. Download ---------- */
.download-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(139, 92, 246, 0.26);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(139, 92, 246, 0.2), transparent 55%),
    radial-gradient(80% 100% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(160deg, #12101f, #0b0d16 60%);
  box-shadow: var(--shadow-glow), var(--shadow-soft);
}
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  pointer-events: none;
}

.download-card__main {
  padding: clamp(26px, 4vw, 46px);
}
.download-card__title {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.download-card__lead {
  margin-top: 12px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.specs div { display: grid; gap: 1px; }
.specs dt { font-size: 11.5px; letter-spacing: 0.03em; color: var(--muted-dim); }
.specs dd { font-size: 14px; font-weight: 600; }

.abi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.abi-chips span {
  padding: 4px 9px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  color: #b9c0d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.download-card__btn { margin-top: 24px; width: 100%; max-width: 340px; }
.download-card__fine {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted-dim);
}

/* Mã Downloader — cách cài chính trên Android TV, cùng nhịp với nút tải */
.dl-code {
  margin-top: 22px;
  display: grid;
  gap: 9px;
  max-width: 340px;
}
.dl-code__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.dl-code__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, #9a6bff, #4aa8ff);
  box-shadow: 0 0 10px rgba(154, 107, 255, 0.8);
  flex: none;
}
.dl-code__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid rgba(154, 107, 255, 0.3);
  background: linear-gradient(120deg, rgba(154, 107, 255, 0.18) 0%, rgba(74, 168, 255, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 34px -22px rgba(109, 94, 252, 0.95);
}
.dl-code__value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(105deg, #d3c2ff 0%, #a6dcff 52%, #7ff0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dl-code__copy {
  margin-left: auto;
  padding: 9px 14px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  white-space: nowrap;
}
.dl-code__copy:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
}
.dl-code__hint {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted-dim);
  padding-left: 2px;
}
.dl-code__hint b { color: var(--muted); font-weight: 600; }
@media (max-width: 400px) {
  .dl-code__value { font-size: 23px; }
  .dl-code__row { padding-left: 18px; }
  .dl-code__copy { padding: 7px 11px; font-size: 11.5px; }
}

.download-card__log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 38px);
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.download-card__log h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.changelog {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  color: #c6cbe0;
  line-height: 1.6;
}
.changelog li {
  position: relative;
  padding-left: 18px;
}
.changelog li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  transform: rotate(45deg);
}
.changelog b { color: #fff; font-weight: 600; }

.download-card__aside {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.aside-note {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

/* ---------- 14. FAQ ---------- */
.faq__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.faq__wrap .section__head { margin-bottom: 0; }

.faq { display: grid; gap: 10px; }
.faq__item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq__item[open] {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.06);
}
.faq__item summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.7px solid var(--muted);
  border-bottom: 1.7px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
}
.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: #c4b5fd;
}
.faq__item summary:hover { color: #fff; }
.faq__body {
  padding: 0 20px 18px;
  font-size: 13.8px;
  line-height: 1.7;
  color: var(--muted);
}
.faq__body code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: #d8dcf0;
}

/* ---------- 15. Footer ---------- */
.site-footer {
  margin-top: clamp(32px, 6vw, 64px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-block: 44px 32px;
  flex-wrap: wrap;
}
.footer__brand { max-width: 340px; display: grid; gap: 12px; }
.footer__brand p { font-size: 13.5px; color: var(--muted-dim); line-height: 1.65; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer__links a { transition: color 0.2s ease; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-block: 18px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted-dim);
}
.footer__ver { font-variant-numeric: tabular-nums; }

/* ---------- 16. Ủng hộ dự án — nút nổi + popup Giáng sinh ---------- */
.footer__donate {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer__donate:hover { color: #fff; }

/* Nút nổi: vàng → cam → đỏ, cùng nhịp pill với .btn--primary */
.donate-fab {
  position: fixed;
  right: clamp(14px, 2.6vw, 26px);
  bottom: clamp(14px, 2.6vw, 26px);
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid rgba(242, 193, 78, 0.45);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2a1206;
  background: linear-gradient(135deg, #f2c14e 0%, #f08c3f 48%, #e2574c 100%);
  box-shadow:
    0 16px 38px -14px rgba(226, 87, 76, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.donate-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 46px -14px rgba(226, 87, 76, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.donate-fab:active { transform: translateY(0); }
.donate-fab svg { width: 17px; height: 17px; flex: none; }
.donate-fab__amt {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(42, 18, 6, 0.86);
  color: #ffd79b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: no-preference) {
  .donate-fab::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(242, 193, 78, 0.55);
    border-radius: inherit;
    pointer-events: none;
    animation: donate-ring 3.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  }
}

@keyframes donate-ring {
  0% { transform: scale(0.96); opacity: 0.75; }
  70%, 100% { transform: scale(1.14); opacity: 0; }
}

/* Hộp thoại: nền đêm thông + hơi vàng nến, viền vàng mảnh */
.donate {
  position: fixed;
  inset: 0;
  width: min(438px, calc(100vw - 24px));
  max-width: min(438px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(242, 193, 78, 0.24);
  border-radius: var(--radius-lg);
  overflow: hidden auto;
  overscroll-behavior: contain;
  color: var(--text);
  background:
    radial-gradient(120% 90% at 8% -12%, rgba(242, 193, 78, 0.18), transparent 58%),
    radial-gradient(110% 80% at 105% 0%, rgba(226, 87, 76, 0.2), transparent 62%),
    linear-gradient(180deg, #0e1a20 0%, #090c14 62%);
  box-shadow:
    0 40px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(242, 193, 78, 0.35);
}
.donate:not([open]) { display: none; }
/* Focus vào hộp thoại (tabindex="-1") không cần vẽ viền — nó không phải nút. */
.donate:focus { outline: none; }

/* Sợi chỉ vàng trên mép trên */
.donate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 193, 78, 0.85), transparent);
  z-index: 3;
}

.donate::backdrop {
  background: radial-gradient(120% 100% at 50% 0%, rgba(10, 16, 28, 0.82), rgba(3, 5, 10, 0.9));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
  .donate__thanks { animation: donate-thanks-in 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .donate[open] { animation: donate-in 0.38s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
  .donate[open]::backdrop { animation: donate-fade 0.35s ease both; }
}

@keyframes donate-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes donate-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Tuyết: span sinh bằng JS trong app.js (mỗi hạt 1 bộ biến) */
.donate__snow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.donate__snow i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  opacity: var(--alpha);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
  animation: donate-snowfall var(--dur) linear var(--pause) infinite;
}

@keyframes donate-snowfall {
  from { transform: translate3d(0, -14px, 0); }
  to { transform: translate3d(var(--drift), 780px, 0); }
}

.donate__inner {
  position: relative;
  z-index: 1; /* nội dung nằm trên lớp tuyết */
  padding: 26px clamp(20px, 5vw, 30px) 22px;
  text-align: center;
}

.donate__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 13, 20, 0.7);
  color: var(--muted);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.donate__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-strong);
}
.donate__close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.donate__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 193, 78, 0.3);
  background: rgba(242, 193, 78, 0.1);
  color: #f7d79a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.donate__kicker svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.donate__title {
  margin-top: 16px;
  font-size: clamp(24px, 6.4vw, 30px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.donate__mark {
  background: linear-gradient(105deg, #ffd98a 0%, #f7a95c 45%, #f0716a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.donate__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
  text-wrap: pretty;
}

.donate__amount {
  margin-top: 18px;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 193, 78, 0.22);
  background:
    radial-gradient(120% 130% at 50% -30%, rgba(242, 193, 78, 0.14), transparent 62%),
    rgba(255, 255, 255, 0.02);
}
.donate__amount-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9bd7f;
}
.donate__amount-value {
  display: block;
  margin-top: 6px;
  font-size: clamp(34px, 9vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff6e0, #f2c14e 55%, #eaa24f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 26px rgba(242, 193, 78, 0.35));
}
.donate__amount-value span { font-size: 0.62em; font-weight: 700; }
.donate__amount-note {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Khung trắng quanh QR: điện thoại quét dễ hơn, nhìn như tấm thiệp */
.donate__qr {
  display: inline-flex;
  margin-top: 16px;
  padding: 9px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid rgba(242, 193, 78, 0.55);
  box-shadow:
    0 18px 44px -18px rgba(0, 0, 0, 0.9),
    0 0 0 6px rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.donate__qr:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 54px -18px rgba(0, 0, 0, 0.95),
    0 0 0 6px rgba(242, 193, 78, 0.12);
}
.donate__qr img {
  width: min(294px, 66vw); /* = kích thước gốc của file, không phóng to làm nhoè mã */
  height: auto;
  border-radius: 12px;
}
.donate__qr-hint {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #e8cf9b;
}
.donate__hint--short { display: none; }
.donate__note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-dim);
  text-wrap: pretty;
}
.donate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.donate__actions .btn { flex: 1 1 auto; min-width: 128px; }

/* Lời cảm ơn sau khi bấm "Đã ủng hộ" — thay chỗ phần thẻ quà */
.donate__thanks {
  text-align: center;
  padding: 10px 2px 2px;
}
.donate__thanks[hidden],
.donate__body[hidden] { display: none; }
.donate__thanks-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(242, 193, 78, 0.45);
  background: radial-gradient(circle at 30% 25%, rgba(242, 193, 78, 0.3), rgba(226, 87, 76, 0.16) 70%, transparent);
  box-shadow: 0 0 0 8px rgba(242, 193, 78, 0.06), 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #ffd479;
}
.donate__thanks-badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.donate__thanks-title {
  font-size: clamp(24px, 5.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.donate__thanks-line {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}
.donate__thanks-num {
  font-size: 20px;
  font-weight: 800;
  color: #f2c14e;
  font-variant-numeric: tabular-nums;
}
.donate__thanks-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-dim);
  text-wrap: pretty;
}
.donate__thanks .btn {
  margin-top: 20px;
  min-width: 170px;
}
@keyframes donate-thanks-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

body.has-modal { overflow: hidden; }

@media (max-width: 520px), (max-height: 760px) {
  .donate__inner { padding: 22px 18px 18px; }
  .donate__title { font-size: clamp(22px, 6vw, 26px); }
  .donate__lead { font-size: 13.5px; }
  .donate__amount { margin-top: 14px; padding: 14px 14px 12px; }
  .donate__amount-value { font-size: clamp(30px, 8.4vw, 38px); }
  .donate__qr { margin-top: 12px; }
  .donate__qr img { width: min(268px, 62vw); }
  .donate__note { display: none; }        /* giữ nút hành động trong khung nhìn */
  .donate__actions { margin-top: 12px; }
}

@media (max-width: 420px) {
  .donate-fab { padding: 8px 13px 8px 11px; font-size: 12.5px; }
  .donate__actions .btn { flex: 1 1 100%; }
}

/* Điện thoại thấp (≤700px): giữ mã QR + nút trong khung nhìn, bỏ phần phụ */
@media (max-height: 700px) {
  .donate__inner { padding: 16px 16px 14px; }
  .donate__title { font-size: 20px; }
  .donate__lead,
  .donate__amount-note,
  .donate__note { display: none; }
  .donate__amount { margin-top: 10px; padding: 10px 12px; }
  .donate__amount-label { font-size: 10.5px; }
  .donate__amount-value { font-size: 28px; }
  .donate__qr { margin-top: 10px; }
  .donate__qr img { width: min(210px, 52vw); }
  .donate__qr-hint { margin-top: 8px; font-size: 11.5px; }
  .donate__hint--full { display: none; }
  .donate__hint--short { display: inline; }
  .donate__actions { margin-top: 10px; gap: 8px; }
  .donate__actions .btn { min-height: 44px; }
}

/* ---------- 17. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #e9ffd0;
  background: rgba(22, 28, 16, 0.92);
  border: 1px solid rgba(163, 230, 53, 0.35);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 18. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .float-card--tts { left: -26px; }
  .float-card--cache { right: -20px; }
}

@media (max-width: 940px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px clamp(18px, 4vw, 40px) 24px;
    background: rgba(8, 9, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link {
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }

  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-content: center; }
  .eyebrow--live { margin-inline: auto; }
  .hero__visual { margin-top: 4px; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split__copy { order: 1; }
  .player-demo { order: 2; }
  .faq__wrap { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; }
  .download-card__log { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .brand__icon { width: 34px; height: 34px; border-radius: 9px; }
  .brand__name { font-size: 18px; }

  .hero { padding-top: 18px; }
  .hero__title { margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__meta { font-size: 12px; gap: 8px; }

  .float-card--tts { left: -6px; top: 12%; transform: scale(0.92); }
  .float-card--cache { right: -6px; bottom: 10%; transform: scale(0.92); }

  .grid--3,
  .steps { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .stats li { padding: 16px 18px; }

  .specs { grid-template-columns: 1fr 1fr; }
  .download-card__btn { max-width: none; }
  .download-card__lead { font-size: 14px; }

  .player-demo { aspect-ratio: 4 / 4.4; }
  .player-demo__play { width: 52px; height: 52px; }
  .player-demo__bottom { padding: 14px 14px 16px; }
  .pd-btn { padding: 6px 8px; }

  .footer__inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 400px) {
  .float-card__body small { display: none; }
  .float-card { padding: 9px 11px 9px 9px; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
