/* شركاء ملدس
   الألوان من هوية المتجر: بنفسجي ملدس هو الأساس، والذهبي للأزرار واللمعة فقط.
   الحواف: الأزرار والكبسولات دائرية بالكامل، اللوحات 28، الخلايا 24. */

@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Alexandria";
  src: url("/fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --v950: #1c0542;
  --v900: #2a0a6c;
  --v800: #3a0fa0;
  --v700: #4d16cf;
  --v600: #6224ef;
  --v500: #7c3bff;
  --v400: #9d6bff;
  --v300: #c3a4ff;
  --v100: #f2ebff;
  --pink: #d36cff;
  --gold: #f5d90a;
  --gold-hi: #fff07a;
  --gold-lo: #dcb500;
  --ink: #1c0542;
  --txt: #fdfbff;
  --txt-2: rgba(253, 251, 255, .86);
  --txt-3: rgba(253, 251, 255, .7);
  --line: rgba(255, 255, 255, .16);
  --r-panel: 28px;
  --r-cell: 24px;
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.65, 0, .35, 1);
  --pad: clamp(16px, 5vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #4c15cc; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Alexandria", system-ui, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--txt);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  background:
    radial-gradient(110% 55% at 88% -8%, rgba(196, 160, 255, .9) 0%, rgba(196, 160, 255, 0) 60%),
    radial-gradient(80% 45% at 4% 6%, rgba(220, 120, 255, .45) 0%, rgba(220, 120, 255, 0) 62%),
    linear-gradient(180deg, #7b3bff 0%, #6a2bf5 18%, #5c20e6 45%, #5219d8 75%, #4a15c6 100%);
  background-color: #561bdf;
}
/* حبيبات خفيفة تكسر نعومة التدرج، ثابتة فوق كل شي ولا تستقبل لمس */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ===== الجو ===== */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky__b { position: absolute; border-radius: 50%; will-change: transform; }
.sky__b1 { width: 70vmax; height: 70vmax; top: -22vmax; left: -24vmax; background: radial-gradient(circle, rgba(232, 140, 255, .42), rgba(232, 140, 255, 0) 62%); animation: drift1 26s var(--inout) infinite alternate; }
.sky__b2 { width: 60vmax; height: 60vmax; top: 34vh; right: -26vmax; background: radial-gradient(circle, rgba(170, 130, 255, .5), rgba(170, 130, 255, 0) 62%); animation: drift2 32s var(--inout) infinite alternate; }
.sky__b3 { width: 46vmax; height: 46vmax; bottom: -18vmax; left: 10vw; background: radial-gradient(circle, rgba(255, 214, 80, .16), rgba(255, 214, 80, 0) 60%); animation: drift3 28s var(--inout) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, -8vmax, 0) scale(.94); } }
@keyframes drift3 { to { transform: translate3d(10vmax, -12vmax, 0) scale(1.1); } }

/* ===== الأزرار ===== */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--out), box-shadow .5s var(--out), background-color .3s;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); transition-duration: .12s; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn .ic { width: 20px; height: 20px; transition: transform .5s var(--out); }

.btn--gold {
  color: var(--ink);
  background: linear-gradient(180deg, #fff384 0%, #f8de14 46%, #e8c400 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .75),
    inset 0 -2px 0 rgba(150, 100, 0, .22),
    0 12px 32px -10px rgba(255, 214, 10, .7),
    0 6px 14px -6px rgba(28, 5, 66, .55);
}
/* اللمعة اللي تمر على الزر */
.btn--gold::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 42%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(270%) skewX(-18deg);
  animation: sweep 4.2s var(--inout) infinite;
  animation-delay: 1.4s;
}
@keyframes sweep {
  0% { transform: translateX(270%) skewX(-18deg); }
  32%, 100% { transform: translateX(-170%) skewX(-18deg); }
}
.btn--ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 0 rgba(150, 100, 0, .22), 0 18px 44px -10px rgba(255, 214, 10, .85), 0 8px 18px -6px rgba(28, 5, 66, .55); }
  .btn:hover .ic { transform: translateX(-4px); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .17); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-hi);
  background: rgba(28, 5, 66, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 122, .28);
}
.eyebrow .ic { width: 16px; height: 16px; }

/* اللمعة تنرسم داخل صندوق الكلمة بس، فنوسّعه تحت عشان ذيل الياء والنقاط ما تنقص */
.shine {
  display: inline-block;
  padding: 0 .08em .38em;
  margin: 0 -.08em -.38em;
  font-style: normal;
  color: var(--gold);
  background: linear-gradient(100deg, #f5d90a 0%, #f5d90a 38%, #fffbd6 50%, #f5d90a 62%, #f5d90a 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s var(--inout) infinite;
  animation-delay: 1.2s;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }

.h2 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.3; }

/* ===== الشريط العلوي ===== */
.top { position: relative; z-index: 40; }
.top__in {
  max-width: var(--max);
  margin: 0 auto;
  height: 64px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 62px; height: auto; filter: drop-shadow(0 2px 6px rgba(28, 5, 66, .35)); }
.brand__t { padding-inline-start: 12px; border-inline-start: 1px solid rgba(255, 255, 255, .3); font-size: 15px; font-weight: 600; color: var(--txt-2); line-height: 1.6; }
@media (min-width: 900px) {
  .top { position: sticky; top: 0; transition: background-color .4s, box-shadow .4s; }
  .top__in { height: 72px; }
  .top.is-stuck { background: rgba(70, 20, 190, .5); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 1px 0 rgba(255, 255, 255, .12), 0 12px 30px -20px rgba(28, 5, 66, .6); }
}

/* ===== الواجهة ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 28px;
  display: grid;
  grid-template-areas: "stage" "copy";
}
.hero__stage {
  grid-area: stage;
  position: relative;
  height: clamp(220px, 33vh, 330px);
  margin: -6px calc(var(--pad) * -1) 0;
}
.hero__glow {
  position: absolute;
  inset: 6% 12%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 226, 90, .38), rgba(255, 226, 90, 0) 70%) 40% 45% / 60% 70% no-repeat,
    radial-gradient(closest-side, rgba(236, 150, 255, .5), rgba(236, 150, 255, 0) 72%) 65% 55% / 80% 90% no-repeat;
  filter: blur(6px);
  animation: breathe 7s var(--inout) infinite alternate;
}
@keyframes breathe { to { transform: scale(1.08); opacity: .8; } }
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(.96);
  transition: opacity 1.2s var(--out), transform 1.6s var(--out);
  touch-action: pan-y;
}
.hero__stage.is-ready .hero__canvas { opacity: 1; transform: none; }
.hero__fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(62%, 340px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 18px 30px rgba(28, 5, 66, .45));
}
.hero__stage.no-gl .hero__fallback { opacity: 1; animation: floaty 6s var(--inout) infinite alternate; }
@keyframes floaty { to { transform: translateY(-10px) rotate(-1.5deg); } }

.hero__copy { grid-area: copy; position: relative; z-index: 2; }
.hero__copy .eyebrow { animation: rise .9s var(--out) both; }
.hero__title {
  margin-top: 14px;
  font-size: clamp(34px, 9vw, 66px);
  font-weight: 800;
  line-height: 1.28;
  text-wrap: balance;
}
.hero__title .ln { display: block; }
.hero__title .w { display: inline-block; animation: wordIn 1s var(--out) both; animation-delay: calc(var(--i) * 75ms + 120ms); }
.hero__title .shine { animation-delay: 1.6s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__sub {
  margin-top: 14px;
  max-width: 34em;
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.85;
  color: var(--txt-2);
  animation: rise 1s var(--out) both .55s;
}
.hero__ctas { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; animation: rise 1s var(--out) both .7s; }

@media (max-width: 899px) {
  .hero__ctas .btn--ghost { display: none; }
  .hero__ctas .btn--gold { flex: 1 1 auto; max-width: 340px; }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-template-areas: "copy stage";
    align-items: center;
    gap: 24px;
    min-height: min(calc(100dvh - 72px), 820px);
    padding-top: 8px;
    padding-bottom: 40px;
  }
  .hero__stage { height: min(620px, calc(100dvh - 140px)); min-height: 460px; margin: 0; }
  .hero__title { font-size: clamp(42px, 4.5vw, 60px); }
  .hero__glow { inset: 8%; }
}

/* ===== الرقم ===== */
.stat {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 40px;
  display: grid;
  gap: 4px 48px;
  align-items: center;
}
.stat__num {
  display: flex;
  align-items: baseline;
  gap: .06em;
  font-size: clamp(88px, 25vw, 210px);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 1px 0 #fff3a0, 0 3px 0 #d8b000, 0 6px 0 #b48e00, 0 22px 40px rgba(28, 5, 66, .45);
  font-variant-numeric: tabular-nums;
}
.stat__plus { font-size: .5em; align-self: center; }
.stat__unit { font-size: .34em; color: var(--txt); text-shadow: 0 10px 24px rgba(28, 5, 66, .4); }
.stat__copy h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; line-height: 1.4; }
.stat__copy p { margin-top: 10px; max-width: 36em; font-size: 17px; color: var(--txt-2); }
@media (min-width: 900px) {
  .stat { grid-template-columns: auto minmax(0, 1fr); padding: 96px var(--pad) 72px; }
}

/* ===== الطريقين ===== */
.paths { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad); }
.paths__grid { margin-top: 28px; display: grid; gap: 16px; }
.path {
  --mx: 50%; --my: 0%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 30px 26px 28px;
  border-radius: var(--r-panel);
  background: linear-gradient(155deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .03) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .2),
    inset 0 1px 0 rgba(255, 255, 255, .32),
    0 30px 60px -34px rgba(28, 5, 66, .75);
}
.path::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity .5s var(--out);
}
.path:hover::before { opacity: 1; }
.path__bg { position: absolute; z-index: -1; width: 260px; height: 260px; left: -50px; bottom: -60px; fill: #fff; opacity: .07; transform: rotate(-14deg); }
.path__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(160deg, #fff384, #f5d90a 55%, #e2bc00);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 14px 26px -12px rgba(255, 214, 10, .8);
}
.path--product .path__icon { color: #fff; background: linear-gradient(160deg, #f0a8ff, #b45cff 50%, #7c3bff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 26px -12px rgba(220, 110, 255, .9); }
.path__icon .ic { width: 34px; height: 34px; }
.path h3 { margin-top: 22px; font-size: clamp(25px, 3.6vw, 34px); font-weight: 800; line-height: 1.35; }
.path p { margin-top: 10px; font-size: 17px; color: var(--txt-2); max-width: 30em; }
.path .path__key { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; color: var(--gold-hi); }
@media (min-width: 900px) {
  .paths { padding: 80px var(--pad); }
  .paths__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .path { padding: 40px 38px 36px; }
  .path--product { margin-top: 64px; }
}

/* ===== الأفكار ===== */
.ideas { padding: 48px 0; }
.ideas__head { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.ideas__head p { margin-top: 8px; font-size: 17px; color: var(--txt-2); }
/* شريط يمشي لحاله، ويتسحب بالإصبع أو الماوس، ويوقف لما الماوس فوقه */
.rail {
  margin-top: 24px;
  direction: ltr;
  overflow: hidden;
  padding: 8px 0 16px;
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rail.is-drag { cursor: grabbing; }
.rail__track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.idea {
  direction: rtl;
  flex: none;
  width: 204px;
  min-height: 90px;
  padding: 16px 16px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
}
@media (min-width: 900px) { .idea { width: 248px; min-height: 100px; padding: 18px 18px 16px; font-size: 16px; } }
.idea .ic { width: 24px; height: 24px; margin-top: 2px; color: var(--gold); }
.idea:nth-child(3n+2) { background: rgba(28, 5, 66, .22); }
.idea:nth-child(3n) { background: linear-gradient(150deg, rgba(225, 130, 255, .32), rgba(255, 255, 255, .06)); }

/* ===== المقبول ===== */
.accept { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad); }
.accept__head p { margin-top: 8px; font-size: 17px; color: var(--txt-2); }
.bento { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; perspective: 900px; }
.cell {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  overflow: hidden;
  padding: 20px 18px;
  border-radius: var(--r-cell);
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .17), inset 0 1px 0 rgba(255, 255, 255, .22);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--out), background-color .4s;
}
.cell__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--gold);
  background: rgba(28, 5, 66, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 122, .22);
}
.cell__icon .ic { width: 26px; height: 26px; }
.cell h3 { margin-top: 14px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.cell p { margin-top: 4px; font-size: 14.5px; line-height: 1.75; color: var(--txt-2); }
.cell--big, .cell--wide { grid-column: span 2; }
.cell--big {
  color: var(--ink);
  padding: 26px 24px;
  background: linear-gradient(150deg, #ffffff 0%, #f1e8ff 55%, #dcc8ff 100%);
  box-shadow: inset 0 1px 0 #fff, 0 26px 50px -30px rgba(28, 5, 66, .8);
}
.cell--big::after {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(60%);
  animation: glint 7s var(--inout) infinite 2s;
  pointer-events: none;
}
@keyframes glint { 0% { transform: translateX(60%); } 30%, 100% { transform: translateX(-60%); } }
.cell--big .cell__icon { width: 58px; height: 58px; border-radius: 18px; color: var(--ink); background: linear-gradient(160deg, #fff384, #f5d90a 55%, #e2bc00); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 22px -10px rgba(200, 160, 0, .8); }
.cell--big .cell__icon .ic { width: 32px; height: 32px; }
.cell--big h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cell--big p { color: rgba(28, 5, 66, .78); font-size: 16px; }
.cell--wide { background: linear-gradient(120deg, rgba(222, 120, 255, .55) 0%, rgba(140, 80, 255, .35) 60%, rgba(255, 255, 255, .08) 100%); }
@media (min-width: 900px) {
  .accept { padding: 80px var(--pad); }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(184px, auto); gap: 14px; }
  .cell { padding: 24px 22px; }
  .cell--big { grid-row: span 2; padding: 36px 34px; display: flex; flex-direction: column; justify-content: flex-end; }
  .cell--big .cell__icon { margin-bottom: auto; width: 72px; height: 72px; border-radius: 22px; }
  .cell--big .cell__icon .ic { width: 40px; height: 40px; }
}
.accept__trust {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 46em;
  font-size: 16px;
  font-weight: 500;
  color: var(--txt);
}
.accept__trust .ic { width: 26px; height: 26px; color: var(--gold); margin-top: 1px; }

/* ===== بدون سجل ===== */
.free {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 88px var(--pad);
  text-align: center;
}
.free h2 { font-weight: 800; }
.free__q { display: block; font-size: clamp(20px, 3.4vw, 32px); font-weight: 600; line-height: 1.6; color: var(--txt-2); }
.free__a { display: block; margin-top: 8px; font-size: clamp(36px, 8vw, 78px); line-height: 1.5; text-wrap: balance; }
.spark {
  position: absolute;
  width: 34px;
  height: 34px;
  background: linear-gradient(160deg, #fff7b0, #f5d90a 60%, #d9b000);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  filter: drop-shadow(0 0 10px rgba(255, 230, 90, .6));
  animation: twinkle 3.6s var(--inout) infinite;
}
.spark--1 { top: 18%; right: 8%; }
.spark--2 { top: 62%; left: 6%; width: 22px; height: 22px; animation-delay: 1.2s; }
.spark--3 { bottom: 12%; right: 22%; width: 16px; height: 16px; animation-delay: 2.1s; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .55; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@media (min-width: 900px) { .free { padding: 128px var(--pad); } }

/* ===== الأدوار ===== */
.roles { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad); }
.roles__grid { margin-top: 28px; display: grid; gap: 14px; }
.roles__us, .roles__you { border-radius: var(--r-panel); padding: 28px 24px; }
.roles__us { background: rgba(28, 5, 66, .26); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.roles h3 { font-size: 15px; font-weight: 700; color: var(--gold-hi); }
.roles__us ul { margin-top: 10px; }
.roles__us li { display: flex; align-items: center; gap: 14px; padding: 15px 0; font-size: 17px; font-weight: 500; line-height: 1.6; }
.roles__us li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.roles__us li .ic { width: 26px; height: 26px; color: var(--gold); }
.roles__you {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(155deg, #fff384 0%, #f7da10 50%, #e6be00 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 60px -30px rgba(200, 150, 0, .8);
  display: flex;
  flex-direction: column;
}
.roles__you h3 { color: rgba(28, 5, 66, .7); }
.roles__big { margin-top: 12px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.4; }
.roles__bas { margin-top: auto; padding-top: 18px; font-size: clamp(64px, 11vw, 120px); font-weight: 800; line-height: 1; }
.roles__facts { margin-top: 14px; display: grid; gap: 14px; }
.fact {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--r-cell);
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 16.5px;
  line-height: 1.75;
}
.fact strong { color: var(--gold-hi); font-weight: 700; }
.fact__icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; background: rgba(28, 5, 66, .3); color: var(--gold); }
.fact__icon .ic { width: 28px; height: 28px; }
@media (min-width: 900px) {
  .roles { padding: 80px var(--pad); }
  .roles__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
  .roles__us, .roles__you { padding: 36px 36px; }
  .roles__facts { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ===== التعهد ===== */
.pledge { max-width: 860px; margin: 0 auto; padding: 72px var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; }
.seal { position: relative; width: 184px; height: 184px; margin-bottom: 22px; }
.seal__ring { width: 100%; height: 100%; animation: sway 9s var(--inout) infinite alternate; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.seal__core {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: radial-gradient(circle at 35% 28%, #fffbd0, #f5d90a 45%, #c99f00 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), inset 0 -4px 10px rgba(130, 90, 0, .35), 0 18px 34px -12px rgba(255, 214, 10, .7);
}
.seal__core .ic { width: 44px; height: 44px; }
.pledge__text { margin-top: 18px; font-size: clamp(22px, 3.6vw, 34px); font-weight: 700; line-height: 1.8; text-wrap: balance; }
@media (min-width: 900px) { .pledge { padding: 104px var(--pad); } .seal { width: 208px; height: 208px; } }

/* ===== الأسئلة ===== */
.faq { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad); display: grid; gap: 22px; }
.faq__list { display: grid; gap: 10px; }
.faq details {
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: background-color .3s;
}
.faq details[open] { background: rgba(255, 255, 255, .13); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(28, 5, 66, .3); transition: transform .5s var(--out), background-color .3s; }
.pm::before, .pm::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; border-radius: 2px; background: var(--gold); }
.pm::after { transform: rotate(90deg); }
details[open] .pm { transform: rotate(45deg); background: var(--gold); }
details[open] .pm::before, details[open] .pm::after { background: var(--ink); }
.faq details p { padding: 0 20px 20px; font-size: 16px; color: var(--txt-2); max-width: 40em; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--out), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
@media (min-width: 900px) {
  .faq { padding: 80px var(--pad); grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
  .faq__head { position: sticky; top: 108px; }
}

/* ===== الختام ===== */
.final { max-width: var(--max); margin: 0 auto; padding: 40px var(--pad) 72px; }
.final__card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 44px 24px 40px;
  border-radius: 34px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(165deg, #3d10a6 0%, #2a0a72 70%, #22085e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .2), 0 40px 80px -40px rgba(20, 3, 50, .9);
}
.final__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  top: -300px;
  left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 60, .38), rgba(255, 220, 60, 0) 65%);
  animation: breathe 6s var(--inout) infinite alternate;
}
.final__logo { width: 120px; height: auto; filter: drop-shadow(0 10px 24px rgba(255, 210, 0, .3)); }
.final__card h2 { margin-top: 18px; font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.35; }
.final__card p { margin-top: 10px; max-width: 30em; font-size: 17px; color: var(--txt-2); }
.final__card .btn { margin-top: 26px; }
@media (min-width: 900px) { .final__card { padding: 72px 40px 64px; } .final__logo { width: 150px; } }

/* ===== التذييل ===== */
.foot { padding: 0 var(--pad) calc(110px + env(safe-area-inset-bottom)); }
.foot__in {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.foot__brand img { width: 64px; height: auto; }
.foot__links { display: flex; gap: 22px; }
.foot__links a { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--txt-2); text-decoration: none; }
.foot__links a:hover { color: var(--txt); }
.foot__links .ic { width: 18px; height: 18px; }
.foot__c { margin-inline-start: auto; font-size: 14px; color: var(--txt-3); }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }

/* ===== الزر الثابت في الجوال ===== */
.dock {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 7px;
  border-radius: 999px;
  background: rgba(50, 12, 140, .42);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 40px -16px rgba(20, 3, 50, .8);
  transform: translateY(calc(100% + 30px));
  visibility: hidden;
  transition: transform .6s var(--out), visibility 0s .6s;
}
.dock.is-on { transform: none; visibility: visible; transition: transform .6s var(--out), visibility 0s; }
@media (min-width: 900px) { .dock { display: none; } }

/* ===== الظهور مع التمرير ===== */
.js [data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition: opacity .9s var(--out), translate 1.1s var(--out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; }
/* الخلايا تميل مع الماوس، فتحتاج انتقال الميلان مع انتقال الظهور */
.js .cell[data-reveal] {
  transition: opacity .9s var(--out), translate 1.1s var(--out), transform .6s var(--out);
  transition-delay: calc(var(--d, 0) * 1ms), calc(var(--d, 0) * 1ms), 0s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .dock, .btn--ghost, .top.is-stuck { -webkit-backdrop-filter: none; backdrop-filter: none; background: #3a0fa0; }
}
