:root {
  --bg: #0b0b0d;
  --bg-2: #111114;
  --card: #16161a;
  --card-2: #1c1c21;
  --line: #26262d;
  --text: #f4f2ef;
  --muted: #a8a6a2;
  --faint: #8a8781;
  --accent: #d85a30;
  --accent-2: #f07a4a;
  --on-accent: #ffffff;
  --ok: #3fa66b;
  --radius: 18px;
  --wrap: 1180px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Readex Pro", var(--font);
  color-scheme: dark;
}

*, *::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: 400 16px/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 780px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(216, 90, 48, .7); }
.btn.primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn.ghost:hover { border-color: #3a3a43; background: rgba(255, 255, 255, .06); }
.btn.disabled { background: var(--card-2); color: var(--muted); box-shadow: none; pointer-events: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; white-space: nowrap; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: .02em; direction: ltr; }
.brand b { color: var(--accent); font-weight: 700; }
.brand .mark { width: 34px; height: 34px; color: var(--accent); stroke: none; }
.brand .mark path { stroke: none; }
.brand.small { font-size: 16px; }
.links { display: flex; gap: 4px; margin-inline-start: auto; }
.links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s, background-color .2s; }
.links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 44px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: 600 14px/1 var(--font); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lang:hover { background: rgba(255, 255, 255, .06); border-color: #3a3a43; }

/* Hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(520px 340px at 70% 40%, rgba(216, 90, 48, .28), transparent 70%),
    radial-gradient(420px 300px at 20% 10%, rgba(240, 122, 74, .10), transparent 70%);
  filter: blur(10px);
}
html[dir="rtl"] .glow { transform: scaleX(-1); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: var(--muted); font-size: 14px; margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 166, 107, .18); }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 18px; margin-top: 20px; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { margin-top: 14px; color: var(--faint); font-size: 14px; min-height: 1.6em; }
.meta bdi { color: var(--muted); }

.hero-visual { position: relative; }
.tv { position: relative; }
.tv-screen {
  border-radius: 16px; padding: 10px; background: linear-gradient(180deg, #232329, #141417);
  border: 1px solid #2c2c33;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.tv-screen img { border-radius: 8px; aspect-ratio: 1400 / 788; object-fit: cover; }
.tv-stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(180deg, #1d1d22, #0f0f12); border-radius: 0 0 14px 14px; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: rgba(22, 22, 26, .88); border: 1px solid #2e2e36;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  animation: float 6s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; color: var(--accent-2); }
.chip b { font-family: var(--display); color: var(--accent-2); }
.chip.c1 { inset-inline-start: -18px; bottom: 16%; }
.chip.c2 { inset-inline-end: -14px; bottom: 6%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Platforms */
.platforms { padding: 8px 0 24px; }
.plat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.plat {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
}
.plat > svg { width: 28px; height: 28px; flex: none; color: var(--faint); }
.plat div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plat strong { font-weight: 600; font-size: 15px; white-space: nowrap; }
.plat.live { border-color: rgba(216, 90, 48, .5); background: linear-gradient(180deg, rgba(216, 90, 48, .12), rgba(216, 90, 48, .03)); }
.plat.live > svg { color: var(--accent-2); }
.tag { font-size: 12.5px; color: var(--faint); }
.tag.ok { color: #6fd39a; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid #18181c; }
.head { text-align: center; margin-bottom: 48px; }
.kicker { color: var(--accent-2); font-weight: 600; font-size: 14px; letter-spacing: .04em; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.feat:hover { border-color: #3a3a43; transform: translateY(-2px); }
.feat h3 { font-size: 19px; font-weight: 600; margin: 16px 0 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.ico {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(216, 90, 48, .12); color: var(--accent-2);
}
.ico svg { width: 22px; height: 22px; }
.feat.big { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; padding: 32px; }
.feat.big h3 { font-size: 24px; }
.feat.big p { font-size: 16px; }
.feat.big img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 1400 / 788; object-fit: cover; }

/* Screens */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tabs button {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 500 15px/1 var(--font); transition: color .2s, background-color .2s, border-color .2s;
}
.tabs button:hover { color: var(--text); border-color: #3a3a43; }
.tabs button[aria-selected="true"] { background: var(--text); color: #121214; border-color: var(--text); }
.showcase {
  margin: 0 auto; max-width: 1040px; padding: 10px; border-radius: 18px;
  background: linear-gradient(180deg, #232329, #141417); border: 1px solid #2c2c33;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.showcase img { border-radius: 10px; aspect-ratio: 1400 / 788; object-fit: cover; transition: opacity .25s; }
.showcase img.fading { opacity: 0; }

/* Install */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps .n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font: 700 17px/1 var(--display); margin-bottom: 16px;
}
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.url {
  display: inline-block; margin-top: 12px; padding: 10px 14px; border-radius: 10px;
  background: #0d0d10; border: 1px dashed #3a3a43; color: var(--accent-2);
  font: 600 16px/1.2 ui-monospace, "Cascadia Code", Consolas, monospace; word-break: break-all;
}
.guide { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; color: var(--muted); }
.guide svg { width: 20px; height: 20px; }
.guide a { color: var(--accent-2); font-weight: 600; text-underline-offset: 4px; }

/* Providers */
.prov {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 24px; border: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(216, 90, 48, .16), transparent 70%),
    var(--card);
}
html[dir="rtl"] .prov { background: radial-gradient(500px 260px at 100% 0%, rgba(216, 90, 48, .16), transparent 70%), var(--card); }
.prov h2 { font-size: clamp(26px, 3vw, 34px); }
.prov .lead { margin-bottom: 26px; font-size: 17px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li {
  position: relative; padding: 14px 18px; padding-inline-start: 50px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 15px;
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: rgba(63, 166, 107, .18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fd39a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* FAQ */
details {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  margin-bottom: 12px; transition: border-color .2s;
}
details[open] { border-color: #3a3a43; }
summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; width: 10px; height: 10px; flex: none; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s; margin-top: -4px;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details p { padding: 0 22px 20px; color: var(--muted); }

/* Final */
.final { padding: 96px 0; }
.final-in {
  text-align: center; padding: 64px 24px; border-radius: 28px; border: 1px solid rgba(216, 90, 48, .35);
  background: radial-gradient(600px 300px at 50% 0%, rgba(216, 90, 48, .25), transparent 70%), var(--card);
}
.final-in p { color: var(--muted); font-size: 18px; margin: 12px 0 28px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--faint); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-row p:first-of-type { flex: 1; text-align: center; min-width: 240px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .plat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat.big { grid-column: span 2; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .prov { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .nav-row { gap: 12px; }
  .brand span { font-size: 17px; }
  .btn.sm { padding: 8px 12px; }
  .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plat { padding: 14px; gap: 10px; }
  .plat strong { white-space: normal; }
  .plat.live { grid-column: span 2; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat.big { grid-column: auto; padding: 24px; }
  .chip { display: none; }
  .cta-row .btn { width: 100%; }
  .prov { padding: 24px; }
  .final-in { padding: 44px 20px; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tabs button { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 380px) {
  .brand .mark { display: none; }
  .nav-actions { gap: 6px; }
  .nav .btn.sm { padding: 8px 10px; font-size: 13px; }
}
/* A platform card that downloads its app: the whole card is the link. */
.plat { position: relative; }
.plat-link { position: absolute; inset: 0; border-radius: 14px; }
.plat-link:focus-visible { outline-offset: 2px; }

/* Mobile app */
.mob { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mob h2 { font-size: clamp(28px, 3.4vw, 40px); }
.mob .lead { margin-bottom: 24px; }
.mob .ticks { margin-bottom: 4px; }
.mob-how { margin-top: 18px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; }
.phone {
  width: min(42%, 230px); flex: none; border-radius: 30px; padding: 8px; background: #1c1c21;
  border: 1px solid #2c2c33; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  position: relative; z-index: 2;
}
.phone img { border-radius: 23px; aspect-ratio: 540 / 1170; object-fit: cover; }
.phone.side { width: min(34%, 190px); z-index: 1; opacity: .9; }
.phone.side:first-child { margin-inline-end: -36px; transform: rotate(-6deg) translateY(18px); }
.phone.side:last-child { margin-inline-start: -36px; transform: rotate(6deg) translateY(18px); }
html[dir="rtl"] .phone.side:first-child { transform: rotate(6deg) translateY(18px); }
html[dir="rtl"] .phone.side:last-child { transform: rotate(-6deg) translateY(18px); }
.cta-row.center { justify-content: center; }
@media (max-width: 900px) {
  .mob { grid-template-columns: 1fr; gap: 40px; }
  .mob-copy { text-align: center; }
  .mob .ticks { text-align: start; max-width: 520px; margin-inline: auto; }
  .mob-how { justify-content: center; }
}
@media (max-width: 600px) {
  .phone { border-radius: 22px; padding: 5px; }
  .phone img { border-radius: 18px; }
  .phone.side:first-child { margin-inline-end: -24px; }
  .phone.side:last-child { margin-inline-start: -24px; }
}
.mob-how .url { margin-top: 0; }

/* Windows section and buttons stay out of the layout until a Windows build is published. */
[hidden] { display: none !important; }
.win .tv { min-width: 0; }

/* Privacy and support pages: one page, both languages, the other one hidden */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 21px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p, .doc ul + p { margin-top: 14px; }
.doc ul { padding-inline-start: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent-2); }
.doc details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 10px; }
.doc summary { cursor: pointer; font-weight: 600; color: var(--text); }
.doc details p { margin-top: 10px; }
.doc .contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
[data-lang][hidden] { display: none !important; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
