/* ============================================================
   Hi Daya — موقع التطبيق
   ألوان مطابقة لواجهة التطبيق (بنفسجي داكن / وردي / ذهبي)
   ============================================================ */

:root {
  --bg: #06070e;
  --bg-alt: #0a0b16;
  --surface: #0d1024;
  --surface-2: #131629;
  --border: rgba(147, 51, 234, 0.28);
  --border-soft: rgba(148, 163, 184, 0.18);
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --pink: #ec4899;
  --gold: #fbbf24;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px rgba(124, 58, 237, 0.22);
  --container: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background:
    linear-gradient(rgba(6, 7, 14, 0.84), rgba(6, 7, 14, 0.9)),
    url("hi-daya-poster.jpg") center center / cover fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Noto Kufi Arabic', 'Tahoma', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon { width: 20px; height: 20px; flex-shrink: 0; }

.gradient {
  background: linear-gradient(100deg, #c4b5fd, #f9a8d4 45%, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(100deg, var(--purple-deep), var(--pink) 55%, #6366f1);
  color: #fff;
  box-shadow: 0 14px 34px rgba(168, 85, 247, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(236, 72, 153, 0.42); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-soft);
  color: var(--text-soft);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--purple); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 13px; border-radius: 13px; }
.btn--lg { padding: 18px 40px; font-size: 17px; }

/* ===== الشريط العلوي ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(6, 7, 14, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 82px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 54px; height: 54px; object-fit: contain; }
.brand__name { font-size: 24px; font-weight: 900; letter-spacing: -.4px; }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav__links a:hover { color: #fff; }

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

.lang {
  width: 44px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.lang:hover { border-color: var(--purple); color: #fff; }

/* ===== الواجهة الرئيسية ===== */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }

.hero__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.hero__glow--a { background: rgba(147, 51, 234, 0.30); top: -180px; inset-inline-start: -140px; }
.hero__glow--b { background: rgba(236, 72, 153, 0.20); bottom: -220px; inset-inline-end: -160px; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  color: #e9d5ff;
  margin-bottom: 22px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}
.badge__version { color: var(--text-muted); font-weight: 700; }

.hero__title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.hero__title span { display: block; }

.hero__desc {
  font-size: 16.5px;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.hero__meta { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

.hero__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ===== أرقام سريعة ===== */
.stats { padding: 8px 0 12px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.10), rgba(13, 16, 36, 0.7));
  border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(100deg, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 12.5px; color: var(--text-muted); font-weight: 700; }

/* ===== الأقسام ===== */
.section { padding: 76px 0; }
.section--alt { background: rgba(10, 11, 22, 0.78); }

.section__head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section__head h2 {
  font-size: clamp(25px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -.8px;
  margin-bottom: 12px;
}
.section__head p { color: var(--text-muted); font-size: 15.5px; }

/* ===== البطاقات ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.20);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 24px;
  background: rgba(168, 85, 247, 0.13);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); }

/* ===== لمحة ===== */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shot {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: linear-gradient(160deg, rgba(19, 22, 41, 0.96), rgba(10, 11, 22, 0.94));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.shot:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.52);
  box-shadow: 0 24px 54px rgba(124, 58, 237, 0.2);
}
.shot__screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 18px 14px 8px;
  background: radial-gradient(ellipse at 50% 35%, rgba(124, 58, 237, 0.14), transparent 68%);
}
.shot__screen img {
  width: 100%;
  max-width: 290px;
  height: 510px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
}
.shot__caption {
  position: relative;
  flex: 1;
  padding: 20px 22px 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.shot__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 11px;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.shot__caption h3 { margin-bottom: 7px; font-size: 17px; font-weight: 850; }
.shot__caption p { color: var(--text-muted); font-size: 13.5px; line-height: 1.8; }

/* ===== التحميل ===== */
.download__box {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.20), rgba(236, 72, 153, 0.13) 60%, rgba(13, 16, 36, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.download__text h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; margin-bottom: 10px; }
.download__text p { color: var(--text-soft); margin-bottom: 18px; }

.download__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.download__meta strong { color: #fff; font-weight: 800; }

.download__action { text-align: center; }
.download__action .btn { width: 100%; }
.download__hint { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.download__hint.is-visible {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: #fde68a;
  font-size: 12.5px;
  font-weight: 700;
  text-align: start;
}

/* ===== خطوات التثبيت ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(100deg, var(--purple-deep), var(--pink));
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--text-muted); }

/* ===== الأسئلة الشائعة ===== */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--border); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 700;
  color: var(--purple);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== المشاركة ===== */
.share { text-align: center; }
.share__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  transition: transform .16s ease, filter .16s ease;
}
.share__btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.share__btn--wa { background: #128c4b; border-color: #128c4b; }
.share__btn--tg { background: #229ed9; border-color: #229ed9; }
.share__btn--fb { background: #1877f2; border-color: #1877f2; }
.share__btn--x { background: #111318; }
.share__btn--copy { background: linear-gradient(100deg, var(--purple-deep), var(--pink)); border-color: transparent; }

.share__toast {
  margin-top: 16px;
  min-height: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #86efac;
  opacity: 0;
  transition: opacity .2s ease;
}
.share__toast.is-visible { opacity: 1; }

/* ===== صفحات المحتوى (سياسة الخصوصية / شروط الاستخدام) ===== */
.page { padding: 56px 0 76px; }
.page__inner { max-width: 820px; margin: 0 auto; }

.page__head {
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border-soft);
}
.page__head h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.8px;
  margin-bottom: 10px;
}
.page__updated { font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.page__intro { font-size: 15.5px; color: var(--text-soft); }

.page article {
  padding: 22px 22px 20px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.page h2 { font-size: 18px; font-weight: 800; color: #e9d5ff; margin-bottom: 10px; }
.page p { font-size: 14.5px; color: var(--text-soft); }
.page p + p { margin-top: 10px; }
.page ul {
  margin-top: 10px;
  padding-inline-start: 22px;
  display: grid;
  gap: 7px;
}
.page li { font-size: 14.5px; color: var(--text-soft); }

.page__back { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ===== التذييل ===== */
.footer {
  padding: 34px 0;
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 11, 22, 0.84);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__tagline { font-size: 12px; color: var(--text-muted); }
.footer__credit { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.footer__copy { font-size: 12.5px; color: var(--text-muted); }

.footer__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__links a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color .15s ease;
}
.footer__links a:hover { color: #fff; }

/* ===== الاستجابة للشاشات ===== */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .shot__screen { min-height: 430px; padding-inline: 8px; }
  .shot__screen img { height: 460px; }
  .shot__caption { padding: 17px 17px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .download__box { grid-template-columns: 1fr; padding: 32px 24px; text-align: center; }
  .download__meta { justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 560px) {
  body { background-attachment: scroll; }
  .section { padding: 56px 0; }
  .hero { padding: 46px 0 40px; }
  .cards { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 18px; }
  .shot__screen { min-height: 0; padding: 18px 12px 12px; }
  .shot__screen img { height: min(660px, 150vw); }
  .shot__caption { padding: 18px 20px 22px; }
  .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .share__btn { flex: 1 1 44%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
