:root {
  --bg: #0e0a12;
  --bg2: #15101b;
  --card: #1c1623;
  --card2: #241c2d;
  --line: #2f2638;
  --text: #f4ece3;
  --muted: #a99cad;
  --dim: #6f6475;
  --ember: #ff7a2f;
  --ember2: #ff4d1f;
  --gold: #ffc65c;
  --green: #5fd49a;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255, 122, 47, .14), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body { direction: rtl; }
.ltr { direction: ltr; text-align: left; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
.brand-font { font-family: 'Amiri', serif; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

/* ---------- شارة قيد التطوير ---------- */
.beta-banner {
  background: linear-gradient(90deg, rgba(255, 122, 47, .13), rgba(255, 198, 92, .1));
  border-bottom: 1px solid var(--line);
  text-align: center; padding: 10px 14px; font-size: 13px; color: var(--gold);
}
.beta-banner b { color: var(--text); }

/* ---------- الهيدر ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 10, 18, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 920px; margin: 0 auto; }
header.site .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
header.site .logo img { width: 32px; height: 32px; border-radius: 9px; }
header.site nav { display: flex; gap: 18px; font-size: 14px; }
header.site nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
header.site nav a:hover { color: var(--text); }
@media (max-width: 400px) {
  header.site .bar { padding: 12px 14px; }
  header.site .logo { font-size: 16px; gap: 6px; }
  header.site .logo img { width: 26px; height: 26px; }
  header.site nav { gap: 9px; font-size: 11.5px; }
}

/* ---------- عنوان صغير فوق الأقسام ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  color: var(--gold); background: rgba(255, 198, 92, .08); border: 1px solid rgba(255, 198, 92, .25);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
}

/* ---------- البطل ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-sparks span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0; animation: sparkUp 7s linear infinite;
}
.hero-sparks span:nth-child(1) { left: 12%; animation-delay: .2s; background: var(--ember); }
.hero-sparks span:nth-child(2) { left: 28%; animation-delay: 2.1s; }
.hero-sparks span:nth-child(3) { left: 48%; animation-delay: 4s; background: var(--ember); }
.hero-sparks span:nth-child(4) { left: 67%; animation-delay: 1.2s; }
.hero-sparks span:nth-child(5) { left: 84%; animation-delay: 3.1s; background: var(--ember); }
.hero-sparks span:nth-child(6) { left: 93%; animation-delay: 5.4s; }
@keyframes sparkUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translateY(-620px) scale(1.1); opacity: 0; }
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; padding: 48px 0 20px; text-align: center; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1fr .9fr; text-align: start; padding: 72px 0 40px; }
  .hero-grid .hero-text { text-align: start; }
  .hero-grid .cta-row, .hero-grid .note-under { justify-content: start; }
}
.hero-text .flame-logo { width: 72px; margin: 0 auto 16px; filter: drop-shadow(0 8px 22px rgba(255, 122, 47, .4)); }
@media (min-width: 880px) { .hero-text .flame-logo { margin: 0 0 16px; } }
.hero h1 { font-size: 44px; margin: 0 0 12px; font-family: 'Amiri', serif; }
.hero p.tag { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 26px; }
@media (min-width: 880px) { .hero p.tag { margin: 0 0 26px; } }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn.primary { background: linear-gradient(135deg, var(--ember), var(--ember2)); color: #1a0a02; box-shadow: 0 10px 26px rgba(255, 90, 30, .28); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn.small { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn:hover { transform: translateY(-2px); }
.note-under { display: flex; color: var(--dim); font-size: 12.5px; margin-top: 12px; justify-content: center; gap: 6px; flex-wrap: wrap; }

/* ---------- عرض الهاتف ---------- */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 47, .38), transparent 70%);
  filter: blur(26px); z-index: 0; animation: glowPulse 4.5s ease-in-out infinite;
}
@keyframes glowPulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.1); } }
.phone-frame {
  position: relative; z-index: 1; width: 230px; background: #080509;
  border-radius: 40px; padding: 9px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone-frame .notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 16px; background: #080509; border-radius: 0 0 12px 12px; z-index: 2;
}
.phone-frame video, .phone-frame img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: center top; display: block; border-radius: 30px; background: var(--bg); }
.phone-stage { align-items: center; margin: 0 auto; }

/* ---------- أقسام عامة ---------- */
section { padding: 52px 0; position: relative; z-index: 1; }
section h2 { font-size: 26px; margin: 0 0 8px; font-family: 'Amiri', serif; }
section .lead { color: var(--muted); margin: 0 0 28px; font-size: 15.5px; }
.flame-divider { text-align: center; color: var(--ember); opacity: .45; font-size: 18px; margin: 0; }

/* ---------- المميزات ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
@media (min-width: 880px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: rgba(255, 122, 47, .4); transform: translateY(-3px); }
.feature .ic { font-size: 26px; }
.feature h3 { margin: 0; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- صور الشاشة ---------- */
.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 18px; scroll-snap-type: x proximity; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.shot {
  flex: 0 0 auto; width: 190px; scroll-snap-align: start;
  border-radius: 22px; overflow: hidden; border: 6px solid var(--card2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.shot img { width: 100%; }
.shot-cap { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.shot-wrap { text-align: center; }

/* ---------- قسم التحميل (أندرويد / آيفون) ---------- */
.platform-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .platform-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.platform-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 30px 26px; text-align: center; display: flex; flex-direction: column;
}
.platform-card.android { box-shadow: inset 0 0 0 1px rgba(95, 212, 154, .18); }
.platform-card.ios { box-shadow: inset 0 0 0 1px rgba(255, 198, 92, .18); }
.platform-card .pf-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: var(--card2);
}
.platform-card.android .pf-icon { color: var(--green); }
.platform-card.ios .pf-icon { color: var(--gold); }
.platform-card h3 { margin: 0 0 6px; font-size: 20px; }
.platform-card p.desc { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.platform-card .btn { width: 100%; justify-content: center; margin-top: auto; }
.platform-card .meta { margin-top: 14px; font-size: 12px; color: var(--dim); }
.platform-card .steps { text-align: start; margin: 18px 0 0; }

.steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; }
.steps b { color: var(--text); }
.step-n {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--card2);
  color: var(--gold); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- أسئلة وجواب ---------- */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; flex: 0 0 auto; }
details.faq[open] summary::after { content: '–'; }
details.faq .a { color: var(--muted); font-size: 14px; padding: 0 0 16px; margin: 0; }

/* ---------- الفوتر ---------- */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; text-align: center; }
footer.site p { color: var(--dim); font-size: 13px; margin: 0 0 8px; }
footer.site .flinks { display: flex; gap: 16px; justify-content: center; font-size: 13.5px; }
footer.site .flinks a { color: var(--muted); text-decoration: none; }
footer.site .flinks a:hover { color: var(--text); }

/* ---------- صفحات الخصوصية والشروط ---------- */
.legal h1 { font-family: 'Amiri', serif; font-size: 30px; margin-bottom: 2px; }
.legal .updated { color: var(--dim); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 18px; color: var(--gold); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; }
.legal b { color: var(--text); }
.lang-switch { display: flex; gap: 10px; margin-bottom: 30px; }
.lang-switch a {
  padding: 8px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  color: var(--muted); text-decoration: none; font-size: 13.5px;
}
.lang-block + .lang-block { margin-top: 10px; padding-top: 30px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .hero-sparks span, .phone-glow { animation: none; }
}

/* ---------- رسومات الجذوة المتحركة (من التطبيق) ---------- */
.art { width: 100%; height: 100%; overflow: visible; display: block; }
.flicker { transform-box: fill-box; transform-origin: 50% 92%; animation: flick 1.6s ease-in-out infinite; }
.flicker.f2 { animation-duration: 1.15s; animation-delay: -.4s; }
.flicker.f3 { animation-duration: .9s; animation-delay: -.2s; }
@keyframes flick { 0%,100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.97, 1.04) skewX(1.5deg); } 50% { transform: scale(1.02, .97) skewX(-1deg); } 75% { transform: scale(.98, 1.03) skewX(1deg); } }
.coal-pulse { animation: coal 2.4s ease-in-out infinite; }
@keyframes coal { 50% { opacity: .45; } }
.spark { animation: rise 2.8s linear infinite; opacity: 0; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-120px); opacity: 0; } }
.art-breathe { animation: artBreathe 3.2s ease-in-out infinite; }
@keyframes artBreathe { 50% { opacity: .65; } }
.aura { transform-box: fill-box; transform-origin: center; animation: aura 3.6s ease-out infinite; opacity: 0; }
.aura.a2 { animation-delay: 1.2s; } .aura.a3 { animation-delay: 2.4s; }
@keyframes aura { 0% { opacity: 0; transform: scale(.7); } 30% { opacity: .55; } 100% { opacity: 0; transform: scale(1.12); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.5); } }

.hero-flame { width: 170px; height: 170px; margin: 0 auto 6px; filter: drop-shadow(0 10px 40px rgba(255, 122, 47, .45)); }
@media (min-width: 880px) { .hero-flame { margin: 0 0 6px -20px; width: 200px; height: 200px; } }
.hero h1 { background: linear-gradient(180deg, #fff3d6, var(--gold) 45%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }

.stores-soon { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
@media (min-width: 880px) { .stores-soon { justify-content: flex-start; } }
.store { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; direction: ltr; }
.store em { font-style: normal; font-size: 11px; color: var(--gold); background: rgba(255, 198, 92, .12); padding: 2px 8px; border-radius: 99px; direction: rtl; }

/* ---------- مراحل الجذوة ---------- */
.stage-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; max-width: 620px; margin-inline: auto; }
@media (max-width: 640px) { .stage-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 380px) { .stage-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage-card { text-align: center; padding: 14px 8px 12px; border-radius: 18px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s; }
.stage-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 47, .6); box-shadow: 0 12px 30px rgba(255, 122, 47, .15); }
.stage-art { width: 84px; height: 84px; margin: 0 auto 6px; }
.stage-card b { display: block; font-family: 'Amiri', serif; font-size: 18px; color: var(--gold); line-height: 1.4; }
.stage-card span { font-size: 12px; color: var(--muted); }
.small-note { font-size: 14px; margin-top: 16px; }

/* ظهور ناعم وقت السكرول */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .flicker, .spark, .aura, .twinkle, .art-breathe, .coal-pulse { animation: none; } }

.stage-card.locked .stage-art { filter: blur(7px) grayscale(1) brightness(.45); }
.stage-card.locked b { color: var(--dim); font-family: inherit; }
.stage-card.locked { pointer-events: none; }

/* ---------- نموذج الملاحظات ---------- */
.fb-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); }
.fb-types { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-types label { cursor: pointer; }
.fb-types input { position: absolute; opacity: 0; pointer-events: none; }
.fb-types span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; transition: all .2s; }
.fb-types input:checked + span { border-color: var(--ember); color: var(--gold); background: rgba(255, 122, 47, .12); }
.fb-form textarea, .fb-form input:not([type=radio]) { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.fb-form textarea:focus, .fb-form input:focus { outline: none; border-color: var(--ember); }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .fb-row { grid-template-columns: 1fr; } }
.fb-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
html { overflow-x: hidden; }
.fb-form .btn { align-self: flex-start; border: 0; cursor: pointer; }
.fb-form .btn:disabled { opacity: .6; }
.fb-status { margin: 0; font-size: 14px; min-height: 1.4em; }
.fb-status.ok { color: var(--green); } .fb-status.err { color: #ff8a8a; }

/* ---------- العدّادات ---------- */
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 20px; }
.counter { text-align: center; padding: 14px 6px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 122, 47, .1), var(--card)); border: 1px solid var(--line); }
.counter b { display: block; font-size: 28px; font-weight: 800; line-height: 1.2; background: linear-gradient(180deg, #fff3d6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter span { font-size: 12.5px; color: var(--muted); }

/* ---------- تفاصيل الآيفون ---------- */
.ios-info { text-align: start; margin-top: 14px; }
.ios-info h4 { margin: 14px 0 6px; font-size: 15px; color: var(--gold); }
.ios-warn { background: rgba(255, 198, 92, .1); border: 1px solid rgba(255, 198, 92, .35); border-radius: 14px; padding: 10px 12px; font-size: 14px; margin: 0; }
.ios-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ios-list li { display: flex; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--text); }
.ios-list li > span:first-child { flex: none; }

/* ---------- قناة الواتساب ---------- */
#channel { padding-top: 0; }
.wa-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(37, 211, 102, .14), var(--card)); border: 1px solid rgba(37, 211, 102, .35); transition: transform .2s, box-shadow .2s; }
.wa-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 211, 102, .15); }
.wa-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #25d366; color: #fff; }
.wa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wa-txt b { font-size: 16px; }
.wa-txt span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.wa-go { flex: none; font-weight: 800; font-size: 14px; color: #25d366; }
@media (max-width: 480px) { .wa-go { display: none; } .wa-card { padding: 14px; } }
