/* ============================================================
   YourBrand TV — Landing Template
   Design system: dark glassmorphism, lime→violet gradient accents
   Brand colors are CSS variables — override them in one place.
   ============================================================ */

:root {
  /* ---- Brand placeholder: change these to re-skin the whole site ---- */
  --brand-a: #5cffc0;            /* primary accent (lime mint) */
  --brand-b: #8b7cff;            /* secondary accent (violet) */
  --brand-gradient: linear-gradient(120deg, var(--brand-a), var(--brand-b));

  /* ---- Base palette ---- */
  --bg: #05070f;
  --bg-alt: #080b18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-soft: rgba(255, 255, 255, 0.06);
  --text: #eef2ff;
  --text-dim: #9aa3c0;
  --text-faint: #6b7390;

  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Sora", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Sora", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --nav-h: 68px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(92, 255, 192, 0.25); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2340; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #273058; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(860px, calc(100% - 48px)); }

/* ------------------------------ Typography ------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h1 em, h2 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-a);
  margin-bottom: 14px;
}
.section-sub { color: var(--text-dim); max-width: 620px; margin-top: 12px; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--brand-gradient);
  color: #06131f;
  box-shadow: 0 8px 28px rgba(92, 255, 192, 0.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(92, 255, 192, 0.32); }
.btn-ghost {
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(92, 255, 192, 0.45); background: var(--surface-2); transform: translateY(-2px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
}
.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--stroke-soft);
}
.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #06131f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
  overflow: hidden;
}
.brand-mark.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 1.05rem; }
.brand-mark.has-image { background: transparent; color: transparent; }
.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.15);
}
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: rgba(92, 255, 192, 0.4); }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(10, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}
.lang-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu li {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
}
.lang-menu li:hover { background: var(--surface-2); color: var(--text); }
.lang-menu li.active { color: var(--brand-a); }
.lang-menu li .code { font-size: 0.75rem; opacity: 0.6; }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease-out); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 16s ease-in-out infinite alternate; }
.orb-a { width: 520px; height: 520px; background: radial-gradient(circle, rgba(92, 255, 192, 0.16), transparent 65%); top: -140px; inset-inline-start: -120px; }
.orb-b { width: 620px; height: 620px; background: radial-gradient(circle, rgba(139, 124, 255, 0.18), transparent 65%); bottom: -220px; inset-inline-end: -160px; animation-delay: -8s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero-copy > * + * { margin-top: 26px; }
.hero-sub { color: var(--text-dim); font-size: 1.08rem; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta li { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.25rem; font-weight: 800; }
.hero-meta span { font-size: 0.78rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.hero-h5-preview { display: none; }
.hero-h5-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 124px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 7px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}
.hero-h5-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.06) 18%, rgba(5, 7, 15, 0.93) 100%);
}
.hero-h5-card::after {
  content: "↘";
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #06131f;
  background: var(--brand-gradient);
  font-size: 0.84rem;
  font-weight: 900;
}
.hero-h5-card-badge {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-a);
  background: rgba(7, 11, 24, 0.78);
  border: 1px solid rgba(92, 255, 192, 0.25);
  font-size: 0.66rem;
  font-weight: 800;
}
.hero-h5-card strong {
  max-width: 92%;
  font-size: 0.92rem;
  line-height: 1.3;
  text-wrap: balance;
}

/* Phone mockup in hero */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.hero-visual-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 124, 255, 0.3);
  animation: spin 40s linear infinite;
}
.hero-visual-ring::before {
  content: "";
  position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-a);
  box-shadow: 0 0 18px var(--brand-a);
}
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative;
  width: 240px;
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(160deg, #161c33, #0a0d1c);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(92, 255, 192, 0.08);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
.phone-notch { width: 88px; height: 20px; margin: 2px auto 10px; border-radius: 999px; background: #05070f; }
.phone-screen { border-radius: 22px; background: #0a0e1f; padding: 18px 14px; display: grid; gap: 12px; min-height: 380px; align-content: start; }
.ps-app-icon {
  width: 154px;
  height: 154px;
  margin: 2px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(73, 236, 211, 0.14));
  animation: icon-breathe 4.5s ease-in-out infinite;
}
@keyframes icon-breathe { 50% { transform: translateY(-4px) scale(1.025); } }
.ps-row { height: 12px; border-radius: 6px; background: var(--surface-2); }
.ps-row.short { width: 62%; }
.ps-chips { display: flex; gap: 8px; }
.ps-chips i { flex: 1; height: 26px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--stroke-soft); }
.ps-chips i:first-child { background: var(--brand-gradient); border: 0; }

/* Stats */
.stats {
  position: relative;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(92, 255, 192, 0.3); }
.stat-num {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* ------------------------------ Marquee ------------------------------ */
.marquee {
  margin: 56px 0 0;
  padding: 16px 0;
  border-block: 1px solid var(--stroke-soft);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.marquee-track span::after { content: "◆"; font-size: 0.6rem; color: var(--brand-a); margin-inline-start: 32px; }
.genre-icon {
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------ Sections ------------------------------ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--stroke-soft); }

/* Features */
.feature-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(92, 255, 192, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(92, 255, 192, 0.35); }
.feature-card:hover::before { opacity: 1; }
.feature-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--brand-a);
  opacity: 0.85;
}
.feature-icon {
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  margin: 16px 0 14px;
  border-radius: 18px;
  background: transparent;
  border: 0;
}
.feature-icon-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(52, 119, 255, 0.16));
}
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-dim); }

/* ------------------------------ Regions section ------------------------------ */
.globe-layout {
  margin-top: 48px;
}
.region-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  min-height: 360px;
}
.region-list-wrap {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
}
.region-list-wrap h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 14px; }
.region-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 180px; overflow-y: auto; }
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: transparent;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.2s;
}
.region-chip:hover { border-color: rgba(92, 255, 192, 0.45); color: var(--text); }
.region-chip.active {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #06131f;
  font-weight: 700;
}
.region-detail {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rd-empty { margin: auto; text-align: center; color: var(--text-faint); font-size: 0.95rem; max-width: 240px; }
.rd-empty .rd-empty-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.rd-head { display: flex; align-items: center; gap: 14px; }
.rd-flag { font-size: 2.1rem; line-height: 1; }
.rd-head h3 { font-size: 1.25rem; }
.rd-count { font-size: 0.85rem; color: var(--brand-a); font-weight: 700; }
.rd-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-cats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--stroke-soft);
  color: var(--text-dim);
}
.rd-cats .genre-icon { width: 20px; height: 20px; }
.rd-channels { display: grid; gap: 8px; }
.rd-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-soft);
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}
.rd-channel:hover { border-color: rgba(92, 255, 192, 0.3); background: var(--surface-2); }
.rd-channel .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff5c7a;
  box-shadow: 0 0 8px #ff5c7a;
  animation: pulse 1.6s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.rd-channel .ch-badge {
  margin-inline-start: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(92, 255, 192, 0.12);
  color: var(--brand-a);
}
.rd-channel-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rd-channel-name .genre-icon { width: 22px; height: 22px; }
.rd-cta { margin-top: auto; }

/* ------------------------------ Steps (How it works) ------------------------------ */
.steps { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 34px 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(139, 124, 255, 0.4); }
.step-num {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}
.step h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.step p { font-size: 0.92rem; color: var(--text-dim); }

/* ------------------------------ Screenshots ------------------------------ */
.shot-row {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.shot {
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(160deg, #141a30, #090c1a);
  border: 1px solid var(--stroke);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.shot:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.shot-screen {
  border-radius: 15px;
  background: #0a0e1f;
  min-height: 300px;
  padding: 16px 13px;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
}
.shot-label { margin-top: 12px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }
/* fake UI atoms */
.ui-bar { height: 10px; border-radius: 5px; background: var(--surface-2); }
.ui-bar.w60 { width: 60%; } .ui-bar.w40 { width: 40%; } .ui-bar.w80 { width: 80%; }
.ui-globe {
  width: 96px; height: 96px; margin: 12px auto; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(92,255,192,0.5), transparent 44%),
    radial-gradient(circle at 68% 64%, rgba(139,124,255,0.4), transparent 48%),
    #101737;
  border: 1px solid rgba(92,255,192,0.25);
}
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-tile { height: 52px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--stroke-soft); }
.ui-tile.hero-tile { grid-column: 1 / -1; height: 76px; background: linear-gradient(120deg, rgba(92,255,192,0.16), rgba(139,124,255,0.16)); border-color: rgba(92,255,192,0.2); }
.ui-player {
  height: 130px; border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(139,124,255,0.22), transparent 70%), #0d1226;
  border: 1px solid var(--stroke);
  display: grid; place-items: center;
}
.ui-play {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-gradient);
  display: grid; place-items: center;
}
.ui-play::before { content: ""; border-left: 12px solid #06131f; border-block: 7px solid transparent; margin-left: 3px; }
.ui-chips { display: flex; gap: 6px; }
.ui-chips i { flex: 1; height: 20px; border-radius: 999px; background: var(--surface-2); }
.ui-chips i.on { background: var(--brand-gradient); }
.ui-list { display: grid; gap: 7px; }
.ui-list b { display: block; height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--stroke-soft); }
.ui-list b.fav { border-color: rgba(92,255,192,0.4); background: rgba(92,255,192,0.07); }

/* ------------------------------ Download posters ------------------------------ */
.poster-section { overflow: hidden; }
.poster-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.poster-card {
  --poster-accent: var(--brand-a);
  --poster-accent-rgb: 80, 246, 208;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 570px;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.poster-card-sports { --poster-accent: #67baff; --poster-accent-rgb: 103, 186, 255; }
.poster-card-cinema { --poster-accent: #a48cff; --poster-accent-rgb: 164, 140, 255; }
.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 8, 19, 0.18) 0%, rgba(3, 8, 19, 0.08) 34%, rgba(3, 8, 19, 0.94) 100%),
    linear-gradient(90deg, rgba(3, 8, 19, 0.72), transparent 64%);
}
.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.poster-card:hover {
  transform: translateY(-10px);
  border-color: rgba(var(--poster-accent-rgb), 0.52);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42);
}
.poster-card-top { display: grid; gap: 18px; }
.poster-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  background: rgba(5, 10, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(14px);
}
.poster-card-brand strong { font-size: 0.78rem; letter-spacing: 0.02em; }
.poster-brand-icon { width: 30px; height: 30px; object-fit: contain; }
.poster-card-badge {
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(var(--poster-accent-rgb), 0.7);
  color: var(--poster-accent);
  background: rgba(4, 10, 24, 0.55);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}
.poster-card-body {
  margin-top: auto;
  padding-top: 180px;
}
.poster-card-body h3 {
  max-width: 310px;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 1.08;
}
.poster-card-body p { margin-top: 12px; color: rgba(226, 234, 255, 0.78); font-size: 0.9rem; }
.poster-card-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 14px 11px 10px;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(80, 246, 208, 0.94), rgba(139, 124, 255, 0.94));
  color: #051326;
  font-size: 0.82rem;
  font-weight: 800;
}
.poster-action-icon { width: 34px; height: 34px; object-fit: contain; }

/* ------------------------------ Download ------------------------------ */
.dl-grid { margin-top: 52px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
.dl-card { padding: 30px; }
.dl-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.dl-card-head h3 { font-size: 1.3rem; }
.dl-tag { font-size: 0.82rem; color: var(--brand-a); font-weight: 700; }
.dl-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.9rem; }
.dl-table tr { border-bottom: 1px solid var(--stroke-soft); }
.dl-table tr:last-child { border-bottom: 0; }
.dl-table td { padding: 10px 4px; }
.dl-table td:first-child { color: var(--text-faint); width: 42%; }
.dl-table td:last-child { font-weight: 600; text-align: end; }
.dl-note { margin-top: 14px; text-align: center; font-size: 0.8rem; color: var(--text-faint); }

.dl-guide { padding: 26px 26px 30px; }
.device-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.device-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all 0.2s;
}
.device-tab:hover { color: var(--text); border-color: rgba(92, 255, 192, 0.4); }
.device-tab.active { background: var(--brand-gradient); border-color: transparent; color: #06131f; font-weight: 700; }
.device-steps { display: grid; gap: 14px; counter-reset: dstep; }
.device-steps li {
  position: relative;
  padding: 14px 16px 14px 58px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke-soft);
  font-size: 0.93rem;
  color: var(--text-dim);
  counter-increment: dstep;
  animation: stepIn 0.4s var(--ease-out) both;
}
.device-steps li::before {
  content: counter(dstep);
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  color: var(--brand-a);
  font-weight: 800;
  font-size: 0.85rem;
}
.device-steps li strong { color: var(--text); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .device-steps li { padding: 14px 58px 14px 16px; }

/* ------------------------------ Safety ------------------------------ */
.safety-inner { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; }
.safety-icon {
  width: 92px; height: 92px;
  display: grid;
  place-items: center;
  flex: none;
}
.safety-icon img { width: 100%; height: 100%; object-fit: contain; }
.safety-inner p:not(.kicker) { color: var(--text-dim); margin-top: 14px; max-width: 760px; }

/* ------------------------------ FAQ ------------------------------ */
.faq-list { margin-top: 44px; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(92, 255, 192, 0.3); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: start;
}
.faq-q .faq-icon {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  transition: transform 0.3s var(--ease-out);
  font-weight: 400;
  color: var(--brand-a);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.faq-a p { padding: 0 20px 18px; color: var(--text-dim); font-size: 0.92rem; }

/* ------------------------------ Final CTA ------------------------------ */
.final-cta { padding: 60px 0 110px; }
.cta-panel {
  position: relative;
  padding: 72px 40px;
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(ellipse 60% 90% at 20% 10%, rgba(92, 255, 192, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 90% at 80% 90%, rgba(139, 124, 255, 0.14), transparent 60%),
    var(--bg-alt);
}
.cta-panel p { color: var(--text-dim); margin: 16px 0 30px; }
.cta-panel .hero-cta { justify-content: center; }

/* ------------------------------ Mobile download bar ------------------------------ */
.mobile-download-bar { display: none; }

/* ------------------------------ Footer ------------------------------ */
.footer { border-top: 1px solid var(--stroke-soft); padding: 64px 0 0; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; color: var(--text-dim); font-size: 0.9rem; max-width: 260px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--brand-a); }
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid var(--stroke-soft);
  color: var(--text-faint);
  font-size: 0.82rem;
  text-align: center;
}

/* ------------------------------ Reveal animation ------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------ RTL ------------------------------ */
[dir="rtl"] body, [dir="rtl"] { text-align: right; }
[dir="rtl"] .hero-meta, [dir="rtl"] .hero-cta { justify-content: flex-start; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--nav-h) + 32px) 0 30px; }
  .hero-inner { display: block; }
  .hero-copy { max-width: none; }
  .hero-copy > * + * { margin-top: 18px; }
  .hero-sub { max-width: 760px; }
  .hero-visual { display: none; }
  .hero-h5-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .stats { margin-top: 30px; gap: 12px; }
  .stat { padding: 20px 16px; }
  #features { padding: 56px 0 42px; }
  #globe { padding-top: 52px; }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }
  .feature-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-content: center;
    min-height: 112px;
    padding: 16px 44px 16px 16px;
    border-radius: 18px;
  }
  .feature-num {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    font-size: 0.66rem;
  }
  .feature-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 52px;
    height: 52px;
    margin: 0;
  }
  .feature-card h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 4px;
    font-size: 1rem;
  }
  .feature-card p {
    grid-column: 2;
    grid-row: 2;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .region-panel { min-height: 0; }
  .dl-grid { grid-template-columns: 1fr; }
  .poster-card { min-height: 500px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--stroke);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease-out);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; font-size: 1rem; }
  .nav-burger { display: flex; }
  .nav-actions .btn { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  #features { padding: 48px 0 36px; }
  #globe { padding-top: 44px; }
  .region-panel { grid-template-columns: 1fr; }
  #features .section-sub { font-size: 0.9rem; }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 22px;
  }
  .feature-card {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 9px;
    min-height: 76px;
    padding: 11px 10px;
    border-radius: 14px;
  }
  .feature-card:hover { transform: none; }
  .feature-num { display: none; }
  .feature-icon { width: 40px; height: 40px; }
  .feature-card h3 {
    align-self: center;
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .feature-card p { display: none; }
  .steps { grid-template-columns: 1fr; }
  .poster-grid {
    display: flex;
    gap: 14px;
    width: calc(100% + 24px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 24px 24px 0;
  }
  .poster-grid::-webkit-scrollbar { display: none; }
  .poster-card {
    flex: 0 0 min(82vw, 330px);
    min-height: 510px;
    scroll-snap-align: start;
  }
  .poster-card-body { padding-top: 150px; }
  .safety-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-copy > * + * { margin-top: 14px; }
  .hero h1 { font-size: clamp(2.05rem, 9.6vw, 2.75rem); }
  .hero-sub { font-size: 0.96rem; line-height: 1.65; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 145px; justify-content: center; padding: 13px 15px; }
  .hero-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-meta li {
    min-width: 0;
    padding: 9px 8px;
    border-radius: 13px;
    background: rgba(18, 24, 46, 0.62);
    border: 1px solid var(--stroke-soft);
  }
  .hero-meta strong { font-size: 0.98rem; }
  .hero-meta span { overflow: hidden; font-size: 0.58rem; letter-spacing: 0.07em; text-overflow: ellipsis; white-space: nowrap; }
  .hero-h5-preview { gap: 8px; }
  .hero-h5-card { min-height: 104px; padding: 10px; border-radius: 15px; gap: 5px; }
  .hero-h5-card::after { top: 8px; inset-inline-end: 8px; width: 24px; height: 24px; font-size: 0.7rem; }
  .hero-h5-card-badge { max-width: 82%; padding: 3px 6px; overflow: hidden; font-size: 0.55rem; text-overflow: ellipsis; white-space: nowrap; }
  .hero-h5-card strong { max-width: 100%; font-size: 0.73rem; line-height: 1.24; }
  .stats { margin-top: 22px; }
  .stat { padding: 15px 12px; }
  .stat-num { font-size: 1.55rem; }
  .mobile-download-bar {
    position: fixed;
    z-index: 98;
    inset-inline: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 9px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 11, 24, 0.9);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(20px);
  }
  .mobile-download-icon { width: 44px; height: 44px; border-radius: 13px; }
  .mobile-download-copy { min-width: 0; display: grid; line-height: 1.25; }
  .mobile-download-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
  .mobile-download-copy small { color: var(--text-dim); font-size: 0.68rem; white-space: nowrap; }
  .mobile-download-bar .btn { margin-inline-start: auto; padding-inline: 16px; }
  .footer { padding-bottom: 92px; }
}
