/* NourTube site — brand tokens come from core-ui Color.kt and the launcher background. */
:root {
  --red: #f91c23;          /* launcher icon background */
  --red-ui: #e53935;       /* NourTubeRed */
  --red-deep: #b71c1c;     /* NourTubeRedDark */
  --gold: #ffd54a;         /* VIP accent */
  --bg: #0f0f0f;           /* NourTubeBackground */
  --surface: #1a1a1a;      /* NourTubeSurface */
  --surface-2: #222;
  --line: rgba(255, 255, 255, .08);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --radius: 20px;
  --font: "Cairo", "Inter", system-ui, sans-serif;
}
html[lang="en"] { --font: "Inter", "Cairo", system-ui, sans-serif; }

*, *::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: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0; }

/* Bilingual pairs: show only the active language. */
html[lang="ar"] [data-l="en"], html[lang="en"] [data-l="ar"] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 700; color: #fff;
  padding: 10px 18px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .lang-toggle:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn small { display: block; font-size: .75rem; font-weight: 500; opacity: .8; line-height: 1.3; }
.btn--small { background: var(--red); padding: 8px 16px; font-size: .95rem; }
.btn--big { padding: 14px 24px; font-size: 1.08rem; line-height: 1.3; }
.btn--primary { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); box-shadow: 0 12px 32px -8px rgba(249, 28, 35, .6); }
.btn--primary:hover { box-shadow: 0 18px 40px -8px rgba(249, 28, 35, .75); }
.btn--ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--light { background: #fff; color: var(--red-deep); }
.btn--outline-light { background: transparent; border: 2px solid rgba(255, 255, 255, .6); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 15, 15, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Inter", sans-serif; }
.brand img { border-radius: 10px; }
.brand__name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; direction: ltr; }
.brand__name b, .ui-logo b { color: var(--red); }
.nav__links { display: flex; gap: 26px; margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 6px 12px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
}
.lang-toggle span[data-l="ar"] { font-family: "Inter", sans-serif; }
.lang-toggle span[data-l="en"] { font-family: "Cairo", sans-serif; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -140px 0 auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 75% 30%, rgba(249, 28, 35, .28), transparent 70%),
    radial-gradient(500px 300px at 20% 10%, rgba(183, 28, 28, .22), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--muted); font-weight: 600;
}
.eyebrow .js-version { direction: ltr; unicode-bidi: isolate; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; margin: 22px 0 18px; letter-spacing: -.01em; }
html[lang="en"] .hero h1 { letter-spacing: -.035em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff5a5f, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #cfcfcf; max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta-row--center { justify-content: center; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero__ticks li::before { content: "✓"; color: var(--red); font-weight: 900; margin-inline-end: 7px; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(30, 30, 30, .9); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 16px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px); direction: ltr; font-family: "Inter", sans-serif;
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .95rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--red); font-weight: 900; }
.fc__icon--green { background: rgba(34, 197, 94, .18); color: #22c55e; }
.fc1 { top: 18%; inset-inline-end: 0; }
.fc2 { bottom: 14%; inset-inline-start: 0; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- phone mockups (pure CSS, swap for real screenshots later) ---------- */
.phone {
  width: 280px; aspect-ratio: 9 / 19.5; flex: none;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(145deg, #2c2c2c, #0a0a0a);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(249, 28, 35, .45);
  direction: ltr;
}
.phone--tilt { transform: rotate(-4deg); }
html[dir="rtl"] .phone--tilt { transform: rotate(4deg); }
.phone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--bg); padding: 30px 12px 64px; display: flex; flex-direction: column; gap: 10px;
}
.phone__screen::before { /* camera punch-hole */
  content: ""; position: absolute; top: 10px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #1d1d1d;
}
.ui-top { display: flex; justify-content: space-between; align-items: center; font-family: "Inter", sans-serif; }
.ui-logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.ui-icons { display: flex; gap: 8px; }
.ui-icons i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #8a8a8a; }
.ui-chips { display: flex; gap: 6px; font: 600 .66rem "Inter", sans-serif; }
.ui-chips span { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); color: #ccc; white-space: nowrap; }
.ui-chips .on { background: #fff; color: #000; }
.ui-card .thumb { position: relative; height: 112px; border-radius: 12px; }
.thumb.t1 { background: linear-gradient(135deg, #ff6a3d, #b8174a 60%, #3a0d4a); }
.thumb.t2 { background: linear-gradient(135deg, #1fa2ff, #12d8fa 40%, #134e5e); }
.thumb.t3 { background: linear-gradient(135deg, #0b8f3a, #1f5f2c 50%, #0c2e16); }
.thumb.t4 { background: linear-gradient(135deg, #8e2de2, #4a00e0); }
.dur {
  position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8);
  font: 700 .6rem "Inter", sans-serif; padding: 2px 5px; border-radius: 4px;
}
.t3 .dur { background: var(--red); }
.meta { display: flex; gap: 8px; margin-top: 7px; }
.av { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.a1 { background: #f59e0b; } .a2 { background: #38bdf8; } .a3 { background: #22c55e; }
.meta div { flex: 1; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.meta b, .player-title b, .dl-row b { display: block; height: 8px; border-radius: 4px; background: #3a3a3a; }
.meta s, .player-title s { display: block; height: 6px; width: 60%; border-radius: 4px; background: #2a2a2a; }
.ui-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  display: flex; justify-content: space-around; align-items: center;
  background: #141414; border-top: 1px solid var(--line);
}
.ui-bottom i { width: 20px; height: 20px; border-radius: 6px; background: #444; }
.ui-bottom i.on { background: var(--red); box-shadow: 0 0 14px rgba(249, 28, 35, .8); }

.screen-player { padding-top: 26px; }
.player-video {
  position: relative; height: 150px; margin: 0 -12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff6a3d, #b8174a 55%, #3a0d4a);
}
.player-play { width: 0; height: 0; border-left: 22px solid rgba(255, 255, 255, .9); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; }
.player-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.player-bar i { display: block; height: 100%; background: var(--red); position: relative; }
.player-bar i::after { content: ""; position: absolute; right: -6px; top: -4.5px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.player-title { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.player-controls { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; }
.player-controls svg { width: 22px; height: 22px; fill: none; stroke: #ddd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.player-controls .fill, .feature svg .fill { fill: currentColor; stroke: none; }
.pc-main { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--red); box-shadow: 0 8px 24px -4px rgba(249, 28, 35, .7); }
.pc-main svg { fill: #fff; stroke: none; width: 26px; height: 26px; }
.pc-main svg .fill { fill: #fff; }
.ui-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ui-list i { height: 46px; border-radius: 10px; background: linear-gradient(90deg, #262626 0 34%, #1c1c1c 34%); }

.tv-hero {
  height: 130px; border-radius: 14px; position: relative;
  background: linear-gradient(160deg, #0b8f3a 0%, #14532d 55%, #052e16 100%);
}
.tv-hero::after { /* pitch line */
  content: ""; position: absolute; inset: 20% 30%; border: 2px solid rgba(255, 255, 255, .25); border-radius: 50%;
}
.live { position: absolute; top: 8px; left: 8px; background: var(--red); font: 800 .6rem "Inter", sans-serif; padding: 3px 7px; border-radius: 5px; }
.tv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tv-grid i { aspect-ratio: 1; border-radius: 12px; }
.tv-grid .c1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.tv-grid .c2 { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
.tv-grid .c3 { background: linear-gradient(135deg, #78350f, #f59e0b); }
.tv-grid .c4 { background: linear-gradient(135deg, #064e3b, #10b981); }
.tv-grid .c5 { background: linear-gradient(135deg, #4c1d95, #a855f7); }
.tv-grid .c6 { background: linear-gradient(135deg, #1f2937, #6b7280); }

.dl-row { display: flex; gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 8px; }
.dl-row .thumb { width: 64px; height: 40px; border-radius: 8px; flex: none; }
.dl-row div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.dl-row b { width: 80%; }
.bar { display: block; height: 4px; border-radius: 4px; background: #333; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); }
.dl-row small { font: 600 .58rem "Inter", sans-serif; color: var(--muted); }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(249, 28, 35, .07), transparent 40%, transparent 60%, rgba(249, 28, 35, .07)); }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 30px 0; gap: 16px; }
.strip b { direction: ltr; unicode-bidi: isolate; display: block; font: 900 2.2rem "Inter", sans-serif; color: #fff; letter-spacing: -.03em; }
.strip span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: #0b0b0b; border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .04em; margin-bottom: 10px; }
html[lang="en"] .kicker { text-transform: uppercase; font-size: .85rem; letter-spacing: .14em; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: linear-gradient(180deg, var(--surface), #141414);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(249, 28, 35, .45); box-shadow: 0 24px 48px -24px rgba(249, 28, 35, .45); }
.feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(249, 28, 35, .12); color: var(--red);
}
.feature svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .96rem; }

.tour { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tour + .tour { margin-top: 110px; }
.tour--flip .tour__copy { order: 2; }
.tour__visual { display: flex; justify-content: center; position: relative; }
.tour__visual::before {
  content: ""; position: absolute; width: 360px; height: 360px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(249, 28, 35, .22), transparent 65%);
}
.tour .phone { position: relative; }
.tour__num { font: 900 3.4rem "Inter", sans-serif; color: transparent; -webkit-text-stroke: 1.5px rgba(249, 28, 35, .7); line-height: 1; }
.tour h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 14px 0 14px; }
.tour p { color: #c4c4c4; font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: .8rem; font-weight: 900; margin-top: 2px;
}

.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.mini b { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.mini h4 { font-size: 1.05rem; margin-bottom: 6px; }
.mini p { color: var(--muted); font-size: .93rem; }

/* ---------- install ---------- */
.install { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.step__n {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); font: 900 1.2rem "Inter", sans-serif;
}
.steps h4 { font-size: 1.12rem; margin-bottom: 4px; }
.steps p { color: var(--muted); }
.qr-card { background: #fff; color: #111; border-radius: 24px; padding: 28px; text-align: center; box-shadow: 0 30px 60px -20px rgba(249, 28, 35, .5); }
.qr-card img { margin: 0 auto 14px; width: 200px; height: 200px; }
.qr-card p { font-weight: 800; }
.qr-card small { color: #666; font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(249, 28, 35, .45); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.07rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem "Inter", sans-serif; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* ---------- final cta ---------- */
.final { padding: 40px 0 104px; }
.final__inner {
  text-align: center; border-radius: 32px; padding: 64px 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 40px 100px -40px rgba(249, 28, 35, .8);
}
.final__inner img { margin: 0 auto 20px; border-radius: 22px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); }
.final p { font-size: 1.15rem; opacity: .9; margin-top: 8px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
.footer__inner { display: grid; gap: 12px; justify-items: center; text-align: center; }
.footer__note { font-size: .8rem; opacity: .7; max-width: 640px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s 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; }
  .float-card { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__actions { margin-inline-start: auto; }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 72px; }
  .hero__grid, .tour, .install { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-inline: auto; }
  .cta-row, .hero__ticks { justify-content: center; }
  .tour { gap: 40px; }
  .tour + .tour { margin-top: 80px; }
  .tour--flip .tour__copy { order: 0; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .qr-card { max-width: 340px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .feature-grid, .mini-grid { grid-template-columns: 1fr; }
  .phone { width: 240px; border-radius: 38px; }
  .phone__screen { border-radius: 29px; }
  .ui-card .thumb { height: 92px; }
  .float-card { display: none; }
  .btn--big { width: 100%; justify-content: center; }
  .nav .btn--small { display: none; }
  .tour__visual::before { width: 280px; height: 280px; }
}

/* ---------- all features (generated groups) ---------- */
.section__sub { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
.groups { columns: 3 320px; column-gap: 18px; }
.group {
  break-inside: avoid; margin-bottom: 18px;
  background: linear-gradient(180deg, var(--surface), #141414);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.group__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.group__head b {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(249, 28, 35, .12); font-size: 1.35rem;
}
.group__head h3 { font-size: 1.12rem; flex: 1; }
.group__count {
  flex: none; font: 800 .78rem "Inter", sans-serif; color: var(--red);
  background: rgba(249, 28, 35, .12); border-radius: 999px; padding: 3px 9px;
}
.group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.group__list li { position: relative; padding-inline-start: 22px; color: #cfcfcf; font-size: .95rem; line-height: 1.55; }
.group__list li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: .55em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--red); transform: rotate(45deg);
}
