/* Bee IPTV — site styles. Tokens mirror the app (Theme.swift): dark surfaces, brand blue, yellow CTA. */
:root {
  --bg: #000;
  --surface: #1c1c1e;
  --el: #2e3135;
  --el2: #3a3a3c;
  --text: #fff;
  --text2: #b0b4ba;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #0a52cc;
  --brand-deep: #003399;
  --brand-text: #6b9fff;
  --yellow: #ffcc00;
  --yellow-light: #ffed4e;
  --on-yellow: #003399;
  --r-card: 14px;
  --r-panel: 18px;
  --r-modal: 24px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Noto Sans Arabic", "Noto Sans", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--yellow); color: var(--on-yellow); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 100; }
.skip:focus { top: 12px; }
.ico { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .dir { transform: scaleX(-1); }
.dir.flip { transform: scaleX(-1); }
[dir="rtl"] .dir.flip { transform: none; }

/* ───── header ───── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 22, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-ico { border-radius: 9px; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--text2); font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--text2); font-size: 15px; font-weight: 600; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.lang .ico { width: 18px; height: 18px; }
.chev { width: 16px; height: 16px; transition: transform 0.2s; }
.lang[open] .chev { transform: rotate(180deg); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 15px; font-weight: 500; }
.lang li a:hover { background: var(--el); text-decoration: none; }
.lang li a[aria-current] { color: var(--yellow); font-weight: 700; }

/* ───── buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--r-card); font-weight: 700; font-size: 16px; padding: 14px 22px; border: 0; cursor: pointer; transition: transform 0.15s, filter 0.15s, background 0.15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-light)); color: var(--on-yellow); }
.btn-yellow:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn .ico { width: 18px; height: 18px; }

.store { display: inline-flex; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px; padding: 0 18px; height: 56px; align-items: center; transition: transform 0.15s, box-shadow 0.15s; }
.store:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255, 204, 0, 0.18); }
.store-in { display: inline-flex; align-items: center; gap: 10px; }
.store .apple { width: 28px; height: 28px; }
.store-t { display: flex; flex-direction: column; line-height: 1.05; text-align: start; }
.store-t small { font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em; }
.store-t b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.store-sm { height: 48px; padding: 0 14px; }
.store-sm .apple { width: 24px; height: 24px; }
.store-sm .store-t b { font-size: 20px; }

/* ───── hero ───── */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; background:
  radial-gradient(900px 520px at 78% 12%, rgba(10, 82, 204, 0.38), transparent 70%),
  radial-gradient(700px 420px at 12% 0%, rgba(255, 204, 0, 0.13), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; color: var(--yellow); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 900; letter-spacing: -0.045em; line-height: 1.02; background: linear-gradient(180deg, #fff 30%, #c9d6f2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.lead { margin-top: 22px; font-size: clamp(18px, 2vw, 21px); color: var(--text2); max-width: 36em; line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.note { margin-top: 22px; max-width: 34em; font-size: 14px; line-height: 1.5; color: #8b9097; }
.hero-copy { padding-bottom: 72px; }
.hero-visual { position: relative; height: 640px; align-self: end; display: flex; justify-content: center; }
.ph { position: absolute; bottom: 0; width: min(300px, 46%); border-radius: 34px 34px 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65); background: #0b0b10; }
.ph-c { z-index: 3; width: min(340px, 52%); inset-inline-start: 50%; transform: translateX(-50%); height: auto; max-height: 100%; object-fit: cover; object-position: top; }
[dir="rtl"] .ph-c { transform: translateX(50%); }
.ph-l, .ph-r { z-index: 1; opacity: 0.9; max-height: 82%; object-fit: cover; object-position: top; }
.ph-l { inset-inline-start: 0; }
.ph-r { inset-inline-end: 0; }
.hero-visual::after { content: ""; position: absolute; inset-inline: -20px; bottom: 0; height: 160px; z-index: 4; background: linear-gradient(180deg, transparent, var(--bg) 92%); pointer-events: none; }

.pills { border-block: 1px solid var(--line); background: #0a0a0c; }
.pills ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding: 22px 0; }
.pills li { color: var(--text2); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }

/* ───── sections ───── */
.sec { padding: 104px 0; }
.sec-alt { background: linear-gradient(180deg, #0a0a0c, #050507); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.06; }
.grid { display: grid; gap: 20px; }
.feat { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(107, 159, 255, 0.35); }
.card h3 { font-size: 21px; letter-spacing: -0.03em; margin: 18px 0 10px; }
.card p { color: var(--text2); font-size: 16px; line-height: 1.6; }
.chip { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; color: var(--brand-text); background: rgba(107, 159, 255, 0.16); }
.chip .ico { width: 24px; height: 24px; }

.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(20px, calc((100vw - var(--wrap)) / 2)) 28px; scrollbar-width: thin; scrollbar-color: var(--el2) transparent; }
.rail img { flex: none; width: min(300px, 72vw); border-radius: 30px; border: 1px solid var(--line); scroll-snap-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); background: #0b0b10; }

.plat { grid-template-columns: repeat(2, 1fr); }
.plat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.plat-card .media { position: relative; height: 380px; background: radial-gradient(420px 260px at 50% 40%, rgba(10, 82, 204, 0.35), #0a0a0c 75%); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.media img { height: auto; }
.media.phones { gap: 14px; padding: 0 18px; align-items: flex-end; }
.media.phones img { width: calc((100% - 28px) / 3); height: auto; border-radius: 20px 20px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.media.phones img:nth-child(2) { align-self: flex-start; margin-top: 22px; height: calc(100% - 22px); object-fit: cover; object-position: top; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); position: relative; z-index: 1; }
.media.phones img:nth-child(1), .media.phones img:nth-child(3) { margin-bottom: -40px; opacity: 0.92; }
.media.pad img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.media.wide img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.plat-body { padding: 26px 28px 30px; }
.plat-body h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 24px; }
.plat-body h3 .ico { color: var(--yellow); width: 26px; height: 26px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 30px; }
.num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--yellow-light)); color: var(--on-yellow); font-weight: 900; font-size: 20px; }
.steps h3 { font-size: 22px; margin: 20px 0 10px; }
.steps p { color: var(--text2); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(107, 159, 255, 0.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq summary .chev { color: var(--text2); width: 22px; height: 22px; }
.faq p { padding: 0 24px 22px; color: var(--text2); }

.cta-band { padding: 0 0 104px; }
.cta-card { text-align: center; padding: 72px 28px; border-radius: var(--r-modal); border: 1px solid rgba(107, 159, 255, 0.28); background:
  radial-gradient(600px 300px at 50% 0%, rgba(255, 204, 0, 0.18), transparent 70%),
  linear-gradient(135deg, #0a52cc, #003399 55%, #001a5c); }
.cta-ico { margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4); }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.04em; }
.cta-card p { margin: 14px auto 32px; max-width: 32em; color: #d6e3ff; font-size: 19px; }

/* ───── footer ───── */
.foot { border-top: 1px solid var(--line); background: #050507; padding: 64px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand p { color: var(--text2); margin: 16px 0 22px; max-width: 24em; }
.foot h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); margin-bottom: 14px; font-weight: 800; }
.foot li { margin-bottom: 10px; }
.foot li a { color: var(--text); font-weight: 500; }
.fine { margin-top: 36px; color: #7c8188; font-size: 13px; line-height: 1.6; max-width: 62em; }
.fine + .fine { margin-top: 12px; }
.foot-end { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; color: #7c8188; font-size: 14px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.langs a { color: var(--text2); font-weight: 500; }
.langs a[aria-current] { color: var(--yellow); font-weight: 700; }

/* ───── legal & support ───── */
.legal { padding: 40px 0 96px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-weight: 600; font-size: 15px; margin-bottom: 36px; }
.back .ico { width: 18px; height: 18px; }
.legal-head { max-width: 800px; margin-bottom: 48px; }
.legal-head h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 900; letter-spacing: -0.045em; margin: 22px 0 14px; }
.legal-head .meta { color: var(--text2); font-size: 15px; font-weight: 600; }
.legal-head .lead { margin-top: 20px; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14.5px; }
.toc h2 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); font-weight: 800; margin-bottom: 14px; }
.toc ol { counter-reset: t; border-inline-start: 1px solid var(--line); }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 7px 14px; color: var(--text2); font-weight: 500; line-height: 1.35; }
.toc a::before { content: counter(t) ". "; opacity: 0.6; }
.toc a:hover { color: var(--text); text-decoration: none; }
.prose { max-width: 740px; }
.tldr { background: linear-gradient(135deg, rgba(10, 82, 204, 0.22), rgba(10, 82, 204, 0.08)); border: 1px solid rgba(107, 159, 255, 0.3); border-radius: var(--r-panel); padding: 24px 28px; margin-bottom: 48px; }
.tldr h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; font-weight: 800; }
.tldr li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; line-height: 1.5; }
.tldr li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.prose section { margin-bottom: 44px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-size: 25px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; }
.prose .n { flex: none; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--brand-text); background: rgba(107, 159, 255, 0.16); transform: translateY(-2px); }
.prose p { margin-bottom: 16px; color: #d4d7dc; line-height: 1.75; }
.prose ul { margin: 0 0 18px; }
.prose li { position: relative; padding-inline-start: 24px; margin-bottom: 10px; color: #d4d7dc; line-height: 1.7; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-text); }
.prose a, .legal-links a, .faq a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(107, 159, 255, 0.45); }
.prose strong { color: #fff; }

.support .legal-head { margin-bottom: 32px; }
.mail-card { display: flex; align-items: center; gap: 18px; padding: 24px 28px; margin-bottom: 20px; border-radius: var(--r-panel); background: linear-gradient(135deg, #0a52cc, #003399); border: 1px solid rgba(107, 159, 255, 0.35); color: #fff; transition: transform 0.15s; }
.mail-card:hover { text-decoration: none; transform: translateY(-2px); }
.mail-card .chip { background: rgba(255, 255, 255, 0.16); color: #fff; }
.mail-card span:not(.chip) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mail-card small { opacity: 0.8; font-weight: 600; font-size: 14px; }
.mail-card b { font-size: clamp(20px, 4vw, 28px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.tips { margin-bottom: 48px; }
.tips h2 { font-size: 20px; margin-bottom: 14px; }
.tips li { position: relative; padding-inline-start: 24px; margin-bottom: 8px; color: var(--text2); }
.tips li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.h-sm { font-size: 26px; margin-bottom: 20px; }
.legal-links { margin-top: 32px; color: var(--text2); }
.nf { text-align: center; padding-block: 80px; }
.nf h1 { font-size: clamp(36px, 6vw, 64px); margin: 4px 0 14px; }
.nf .lead { margin: 0 auto 28px; }

/* ───── motion ───── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .store, .mail-card { transition: none; }
}

/* ───── responsive ───── */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead, .note { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-copy { padding-bottom: 8px; }
  .hero-visual { height: 520px; }
  .feat, .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc ol { columns: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .feat, .steps, .plat, .foot-grid { grid-template-columns: 1fr; }
  .plat-card .media { height: 300px; }
  .hero-visual { height: 460px; }
  .ph-l, .ph-r { display: none; }
  .ph-c { width: min(300px, 76%); }
  .bar { gap: 8px; }
  .brand span { display: none; }
  .btn-sm { padding: 8px 12px; }
  .lang summary span { display: none; }
  .toc ol { columns: 1; }
  .cta-card { padding: 52px 20px; }
  .faq summary { padding: 16px 18px; font-size: 17px; }
  .faq p { padding: 0 18px 18px; }
  .prose h2 { font-size: 22px; }
  .store { height: 54px; }
}

:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { line-break: strict; letter-spacing: -0.01em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) .eyebrow { letter-spacing: 0; }
:lang(ar) .lead, :lang(ar) .prose p, :lang(ar) .prose li { line-height: 1.9; }
