/* ═══════════════════════════════════════
   DramaSlayer — Design System
   Theme: Purple #6610f2 | Dark | RTL Arabic
═══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --purple:       #6610f2;
  --purple-mid:   #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow:  rgba(102,16,242,.12);
  --purple-glow2: rgba(102,16,242,.22);

  --dark:   #0f0f14;
  --dark2:  #14141b;
  --card:   #18181f;
  --card2:  #1e1e28;
  --border: rgba(255,255,255,.07);

  --text1: #f1f1f5;
  --text2: #a0a0b8;
  --text3: #6b6b80;

  --r:      14px;
  --r-pill: 999px;
  --max-w:  1120px;
  --nav-h:  64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark);
  color: var(--text1);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Container ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

/* ═══════════════════
   NAVBAR
═══════════════════ */
#navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
#navbar.solid {
  background: rgba(15,15,20,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600; color: var(--text2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text1); background: rgba(255,255,255,.06); }
.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--purple-mid) !important; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text1); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
#mob-nav {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(15,15,20,.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
#mob-nav.open { opacity: 1; pointer-events: all; }
#mob-nav a {
  font-size: 1.3rem; font-weight: 700; color: var(--text2);
  padding: 14px 32px; border-radius: var(--r);
  transition: color .2s, background .2s;
}
#mob-nav a:hover { color: var(--text1); background: rgba(255,255,255,.06); }

/* ═══════════════════
   BUTTONS
═══════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-family: 'Cairo', sans-serif;
  font-size: .95rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(102,16,242,.35);
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--text1);
  padding: 13px 26px; border-radius: var(--r-pill);
  font-family: 'Cairo', sans-serif;
  font-size: .93rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.18); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(102,16,242,.08);
  transform: translateY(-2px);
}

/* ── Badge Label ── */
.badge-label {
  display: inline-block; padding: 5px 14px;
  background: var(--purple-glow); border-radius: var(--r-pill);
  border: 1px solid var(--purple-glow2);
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--purple-light); margin-bottom: 16px;
}

/* ── Chip ── */
.chip {
  display: inline-block; padding: 4px 12px;
  background: rgba(102,16,242,.1); border-radius: var(--r-pill);
  font-size: .75rem; color: var(--purple-light); font-weight: 600;
  border: 1px solid rgba(102,16,242,.2);
}

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s, transform .55s; }
.reveal.on { opacity: 1; transform: none; }

/* ═══════════════════
   HERO
═══════════════════ */
.hero-sec {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative; overflow: hidden;
}
.hero-sec::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(102,16,242,.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(102,16,242,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,16,242,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 660px; margin: 0 auto;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-content h1 span { color: var(--purple-light); }
.hero-content p {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text2); max-width: 520px; margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 28px;
  font-size: .82rem; color: var(--text3);
}
.hero-note-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ═══════════════════
   SECTION HEADER
═══════════════════ */
.sec-header { text-align: center; margin-bottom: 48px; }
.sec-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900; margin-bottom: 10px; letter-spacing: -.02em;
}
.sec-header p { color: var(--text2); max-width: 480px; margin: 0 auto; font-size: .95rem; }

/* ═══════════════════
   SECTION DIVIDER
═══════════════════ */
.section-divider {
  height: 1px; background: var(--border); margin: 0;
}

/* ═══════════════════
   FOOTER
═══════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
  background: var(--dark2);
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 800; margin-bottom: 10px;
}
.footer-logo img { width: 32px; height: 32px; border-radius: 8px; }
.footer-p { font-size: .85rem; color: var(--text3); max-width: 280px; }
.footer-links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: .88rem; color: var(--text2);
  transition: color .2s;
}
.footer-links a:hover { color: var(--purple-light); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--text3);
}

/* ═══════════════════
   PAGE HERO (inner pages)
═══════════════════ */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 22px 52px;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% -5%, rgba(102,16,242,.2) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p  { color: var(--text2); max-width: 520px; margin: 0 auto; }

/* ═══════════════════
   PROSE (privacy)
═══════════════════ */
.prose-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 22px 80px;
}
.prose-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 26px;
  margin-bottom: 18px;
}
.prose-section h2 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.prose-section h2 span { font-size: 1.2rem; }
.prose-section p, .prose-section li {
  font-size: .93rem; color: var(--text2); line-height: 1.85;
}
.prose-section ul { padding-right: 18px; }
.prose-section ul li { list-style: disc; margin-bottom: 7px; }

/* ═══════════════════
   DOWNLOAD PAGE
═══════════════════ */
.dl-hero { padding: calc(var(--nav-h) + 60px) 22px 64px; text-align: center; }
.dl-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.dl-hero p   { color: var(--text2); font-size: 1rem; margin-bottom: 40px; }
.dl-latest-wrap {
  background: var(--card);
  border: 1px solid rgba(102,16,242,.35);
  border-radius: 20px;
  padding: 36px 30px;
  max-width: 480px; margin: 0 auto;
}

/* ═══════════════════
   RESPONSIVE
═══════════════════ */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .footer-inner { flex-direction: column; }
}
