/* ═══════════════════════════════════════════
   AnimeSlayer — Shared Design System
   Dark theme · Arabic RTL · Cairo font
═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --blue:       #1558d6;
  --blue-mid:   #1a6ae4;
  --blue-dim:   rgba(21,88,214,.55);
  --blue-glow:  rgba(21,88,214,.12);
  --dark:       #0c0c14;
  --dark2:      #111119;
  --dark3:      #18181f;
  --white:      #ffffff;
  --text2:      rgba(255,255,255,.65);
  --text3:      rgba(255,255,255,.36);
  --border:     rgba(255,255,255,.07);
  --card:       rgba(255,255,255,.032);
  --font:       'Cairo', sans-serif;
  --r:          16px;
  --r-pill:     999px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseRing {
  0%,100% { transform: scale(1);   opacity: .4; }
  50%      { transform: scale(1.1); opacity: .7; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.on { opacity: 1; transform: translateY(0); }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ── Section labels ── */
.badge-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--blue-glow);
  border: 1px solid rgba(21,88,214,.28);
  color: #7aaef5;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ═══════════════════
   NAVBAR
═══════════════════ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 16px 0;
  transition: padding .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
#navbar.solid {
  padding: 10px 0;
  background: rgba(12,12,20,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.nav-logo img {
  width: 34px; height: 34px;
  border-radius: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: var(--card); }
.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 20px;
  box-shadow: 0 4px 14px rgba(21,88,214,.28);
}
.nav-links .nav-cta:hover { opacity: .9; background: var(--blue-mid); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); 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 */
#mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 890;
  background: rgba(12,12,20,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
#mob-nav.open { display: flex; animation: fadeUp .22s ease forwards; }
#mob-nav a { font-size: 1.55rem; font-weight: 700; color: var(--text2); transition: color .2s; }
#mob-nav a:hover { color: var(--white); }

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

/* ═══════════════════
   BUTTONS
═══════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r-pill);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  box-shadow: 0 5px 18px rgba(21,88,214,.28);
  transition: transform .22s, box-shadow .22s, background .22s;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 26px rgba(21,88,214,.4);
  background: var(--blue-mid);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .22s, background .22s, border-color .22s;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--card);
  border-color: rgba(255,255,255,.3);
}

/* ═══════════════════
   FEATURE CARDS
═══════════════════ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 22px;
  transition: transform .28s, background .28s, border-color .28s;
  position: relative; overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--blue);
  opacity: 0; transition: opacity .28s;
}
.feat-card:hover { background: rgba(255,255,255,.052); border-color: rgba(255,255,255,.13); transform: translateY(-4px); }
.feat-card:hover::after { opacity: 1; }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.45rem;
  background: var(--blue-glow);
  border: 1px solid rgba(21,88,214,.18);
  margin-bottom: 16px;
}
.feat-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feat-card p  { font-size: .85rem; color: var(--text2); line-height: 1.75; }

/* ═══════════════════
   DIVIDER
═══════════════════ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

/* ═══════════════════
   PAGE HERO (inner pages)
═══════════════════ */
.page-hero {
  padding: 110px 0 56px;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(21,88,214,.1) 0%, transparent 70%);
  text-align: center;
}
.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 / terms)
═══════════════════ */
.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: #7aaef5;
  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 CARDS
═══════════════════ */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.dl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .28s, border-color .28s;
}
.dl-card:hover { transform: translateY(-3px); border-color: rgba(21,88,214,.35); }
.dl-card-top { display: flex; align-items: center; gap: 12px; }
.dl-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue-glow);
  border: 1px solid rgba(21,88,214,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  flex-shrink: 0;
}
.dl-card-label { font-size: .75rem; color: var(--text3); }
.dl-card-version { font-size: 1rem; font-weight: 700; }
.dl-card-tag {
  display: inline-block; padding: 3px 10px;
  background: rgba(21,88,214,.15); border-radius: var(--r-pill);
  font-size: .72rem; color: #7aaef5; font-weight: 600;
  border: 1px solid rgba(21,88,214,.22);
}

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

/* ═══════════════════
   DOWNLOAD FEATURED CARD
═══════════════════ */
.dl-featured {
  background: var(--card);
  border: 1px solid rgba(21,88,214,.4);
  border-radius: var(--r);
  padding: 34px 30px;
  margin: 0 auto 14px;
  max-width: 780px;
}
.dl-featured-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 24px;
}
.dl-featured-head h2 { font-size: 1.55rem; font-weight: 800; margin-bottom: 8px; }
.dl-featured-head p  { color: var(--text2); font-size: .92rem; }
.dl-featured-chips   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dl-btn-full {
  display: block; width: 100%; text-align: center;
  padding: 16px; font-size: 1rem;
}
.ver-tag {
  display: inline-block; padding: 2px 10px;
  background: rgba(21,88,214,.18); border-radius: var(--r-pill);
  font-size: .8rem; color: #7aaef5; font-weight: 700;
  border: 1px solid rgba(21,88,214,.3); vertical-align: middle;
  margin-right: 6px;
}

/* ═══════════════════
   DOWNLOAD PAGE MISC
═══════════════════ */
.section-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--text3); text-transform: uppercase; margin: 42px auto 0; max-width: 780px; padding: 0 4px; }
.dl-card-info  { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dl-ver        { font-size: 1.02rem; font-weight: 700; }
.install-section {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 30px; max-width: 780px; margin: 28px auto 0;
}
.install-section h3 { font-size: 1rem; font-weight: 800; color: #7aaef5; margin-bottom: 18px; }
.install-steps { padding-right: 20px; }
.install-steps li { color: var(--text2); font-size: .9rem; line-height: 1.85; margin-bottom: 10px; list-style: decimal; }
.install-steps strong { color: var(--text1); }
.install-steps em    { color: #7aaef5; font-style: normal; }

/* ═══════════════════
   NAV ACTIVE STATE
═══════════════════ */
.nav-cta.active { opacity: .85; }
