:root {
  --bg: #070a12;
  --panel: rgba(16, 21, 34, 0.78);
  --panel-solid: #111827;
  --text: #f8fafc;
  --muted: #9aa4b2;
  --line: rgba(255,255,255,.10);
  --primary: #ff2d55;
  --primary-2: #7c3aed;
  --accent: #22d3ee;
  --green: #22c55e;
  --shadow: 0 30px 90px rgba(0, 0, 0, .45);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 45, 85, .22), transparent 28%),
    radial-gradient(circle at 78% 8%, rgba(34, 211, 238, .18), transparent 28%),
    radial-gradient(circle at 60% 80%, rgba(124, 58, 237, .20), transparent 30%),
    linear-gradient(135deg, #070a12 0%, #0c1020 46%, #090a11 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  width: min(1180px, calc(100% - 32px));
  position: sticky;
  top: 16px;
  z-index: 20;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 12, 22, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; }
.brand.small img { width: 32px; height: 32px; }
.desktop-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-weight: 600; font-size: 14px; }
.desktop-nav a:hover { color: var(--text); }
.header-btn {
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(255,45,85,.22);
}

.section-pad { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 90px 0; }
.hero { display: grid; grid-template-columns: 1.03fr .97fr; gap: 54px; align-items: center; min-height: calc(100vh - 80px); padding-top: 70px; }
.eyebrow, .label { display: inline-flex; align-items: center; gap: 9px; color: #dbeafe; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(34,197,94,.12); }
.hero h1, .section-heading h2, .preview-card h2, .download-copy h2 { margin: 18px 0 0; font-size: clamp(46px, 7vw, 86px); line-height: .94; letter-spacing: -.07em; }
.hero-text { margin: 24px 0 0; color: #b8c1cf; font-size: 19px; line-height: 1.75; max-width: 630px; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.primary-btn, .secondary-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
}
.primary-btn { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 18px 45px rgba(255,45,85,.30); }
.primary-btn.big { min-height: 64px; padding-inline: 30px; font-size: 17px; }
.secondary-btn { color: white; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); }
.primary-btn svg { width: 21px; height: 21px; fill: currentColor; }
.primary-btn.clicked { transform: scale(.97); }
.trust-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.trust-row div { min-width: 132px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.055); }
.trust-row strong { display: block; font-size: 22px; }
.trust-row span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.hero-visual { position: relative; min-height: 640px; display: grid; place-items: center; }
.glow-card { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,45,85,.55), rgba(34,211,238,.35)); filter: blur(44px); opacity: .56; }
.phone { width: 292px; height: 590px; border-radius: 42px; padding: 13px; background: linear-gradient(145deg, rgba(255,255,255,.35), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.22); box-shadow: var(--shadow); position: absolute; }
.phone-front { transform: rotate(-4deg) translateX(-46px); z-index: 3; }
.phone-back { transform: rotate(10deg) translate(110px, 34px) scale(.86); opacity: .82; z-index: 2; }
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 999px; background: #040711; z-index: 4; }
.phone-screen { height: 100%; overflow: hidden; border-radius: 32px; background: linear-gradient(180deg, #10172a 0%, #080b12 100%); padding: 48px 18px 18px; border: 1px solid rgba(255,255,255,.08); }
.screen-top { display: flex; align-items: center; gap: 8px; color: #dbeafe; font-weight: 800; font-size: 13px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px rgba(255,45,85,.15); }
.featured-card { margin-top: 18px; min-height: 155px; border-radius: 26px; padding: 18px; display: flex; align-items: flex-end; justify-content: space-between; background: linear-gradient(135deg, rgba(255,45,85,.8), rgba(124,58,237,.9)), radial-gradient(circle at 60% 20%, rgba(255,255,255,.32), transparent 25%); }
.featured-card small { text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.75); font-weight: 800; }
.featured-card h3 { margin: 8px 0 4px; font-size: 23px; letter-spacing: -.04em; }
.featured-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 12px; }
.featured-card button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; color: #111827; font-weight: 900; }
.category-title { margin: 20px 0 10px; font-weight: 900; }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-grid div { min-height: 72px; border-radius: 18px; padding: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #e5e7eb; font-weight: 800; display: flex; align-items: end; }
.channel-list { margin-top: 16px; display: grid; gap: 10px; }
.channel-list span { height: 42px; border-radius: 14px; background: rgba(255,255,255,.07); }
.alt-screen { padding: 22px; }
.mini-bar { width: 72%; height: 18px; border-radius: 99px; background: rgba(255,255,255,.10); margin: 15px auto 24px; }
.poster { height: 128px; border-radius: 24px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(34,211,238,.5), rgba(124,58,237,.5)); }
.poster-two { background: linear-gradient(135deg, rgba(255,45,85,.5), rgba(251,146,60,.5)); }
.poster-three { background: linear-gradient(135deg, rgba(34,197,94,.45), rgba(34,211,238,.45)); }

.stats-bar { width: min(1080px, calc(100% - 32px)); margin: -30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.stats-bar div { padding: 24px; background: rgba(14,18,31,.85); }
.stats-bar strong { display: block; font-size: 26px; }
.stats-bar span { display: block; margin-top: 5px; color: var(--muted); font-weight: 600; }

.section-heading { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.section-heading span, .label { color: var(--accent); }
.section-heading h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.section-heading.compact { margin-bottom: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-grid article, .steps-grid div, details { background: rgba(255,255,255,.055); border: 1px solid var(--line); border-radius: 26px; padding: 24px; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.icon-box { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, rgba(255,45,85,.22), rgba(34,211,238,.16)); font-size: 25px; }
.feature-grid h3, .steps-grid h3 { margin: 18px 0 8px; font-size: 20px; }
.feature-grid p, .steps-grid p, details p, .preview-card p, .download-copy p { color: var(--muted); line-height: 1.7; }
.preview-card { display: grid; grid-template-columns: 1fr .9fr; gap: 38px; align-items: center; border: 1px solid var(--line); border-radius: 36px; padding: 34px; background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); box-shadow: var(--shadow); }
.preview-card h2, .download-copy h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1; }
.preview-card img { border-radius: 28px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.download-box { display: grid; grid-template-columns: 1fr 310px; gap: 26px; align-items: stretch; padding: 34px; border-radius: 38px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(135deg, rgba(255,45,85,.16), rgba(124,58,237,.12)), rgba(255,255,255,.06); box-shadow: var(--shadow); }
.download-copy { padding: 20px; }
.download-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.download-meta span { padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.05); font-size: 14px; }
.download-meta strong { color: white; }
.safe-note { font-size: 13px; }
.download-code-card { padding: 22px; border-radius: 30px; background: rgba(5, 8, 16, .58); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.download-code-card img { width: 184px; height: 184px; border-radius: 20px; padding: 12px; background: white; }
.download-code-card span { margin-top: 18px; color: var(--muted); font-weight: 700; }
.download-code-card strong { display: block; margin: 8px 0 16px; font-size: 28px; letter-spacing: .08em; }
.download-code-card button { border: 1px solid var(--line); background: rgba(255,255,255,.08); color: white; border-radius: 999px; padding: 12px 18px; font-weight: 900; cursor: pointer; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid strong { color: var(--accent); font-size: 26px; }
.faq { max-width: 880px; }
details { margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 900; font-size: 18px; }
code { color: #fca5a5; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 8px; }
.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 30px; padding: 24px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .hero, .preview-card, .download-box { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-visual { min-height: 540px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .phone-front { transform: rotate(-4deg) translateX(-44px) scale(.85); }
  .phone-back { transform: rotate(10deg) translate(90px, 34px) scale(.72); }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 20px); top: 10px; }
  .header-btn { display: none; }
  .brand span { font-size: 15px; }
  .section-pad { width: calc(100% - 24px); padding: 58px 0; }
  .hero h1 { font-size: 47px; }
  .hero-text { font-size: 16px; }
  .hero-visual { min-height: 480px; overflow: hidden; }
  .phone { width: 254px; height: 520px; }
  .phone-front { transform: rotate(-4deg) translateX(-28px) scale(.82); }
  .phone-back { transform: rotate(10deg) translate(78px, 28px) scale(.68); }
  .feature-grid, .steps-grid, .stats-bar { grid-template-columns: 1fr; }
  .preview-card, .download-box { padding: 20px; border-radius: 28px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

html[dir="rtl"] body {
  font-family: Tajawal, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .preview-card h2,
html[dir="rtl"] .download-copy h2 {
  letter-spacing: -.03em;
  line-height: 1.06;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .download-copy,
html[dir="rtl"] .preview-card > div,
html[dir="rtl"] .feature-grid article,
html[dir="rtl"] .steps-grid div {
  text-align: right;
}

html[dir="rtl"] .primary-btn svg {
  transform: none;
}

html[dir="rtl"] .phone-front { transform: rotate(4deg) translateX(46px); }
html[dir="rtl"] .phone-back { transform: rotate(-10deg) translate(-110px, 34px) scale(.86); }

@media (max-width: 980px) {
  html[dir="rtl"] .phone-front { transform: rotate(4deg) translateX(44px) scale(.85); }
  html[dir="rtl"] .phone-back { transform: rotate(-10deg) translate(-90px, 34px) scale(.72); }
}

@media (max-width: 620px) {
  .lang-switcher { padding: 3px; }
  .lang-btn { padding: 7px 9px; font-size: 12px; }
  html[dir="rtl"] .phone-front { transform: rotate(4deg) translateX(28px) scale(.82); }
  html[dir="rtl"] .phone-back { transform: rotate(-10deg) translate(-78px, 28px) scale(.68); }
}
