/* =========================================================
   الصفحة الرئيسية — منصة الفوز العظيم
   كل الأنماط تحت البادئة hm- حتى لا تتعارض مع style.css
========================================================= */
.hm {
  --hm-teal-900: #0A4F56;
  --hm-teal-700: #116D76;
  --hm-teal: #1A939E;
  --hm-teal-300: #4FB8C0;
  --hm-teal-50: #E8F4F5;
  --hm-gold: #BAA213;
  --hm-gold-300: #D7C14D;
  --hm-gold-50: #FAF5DC;
  --hm-ivory: #F7F5F1;
  --hm-sand: #EEE8DF;
  --hm-ink: #1E2A30;
  --hm-text: #3A4549;
  --hm-muted: #6E7A7E;
  --hm-line: #E6E0D5;
  --hm-radius: 22px;
  --hm-shadow: 0 18px 44px rgba(10, 79, 86, .08);
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--hm-text);
  overflow-x: clip;
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm a { text-decoration: none; }
.hm-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.hm-sec { padding: 96px 0; position: relative; }
@media (max-width: 760px) { .hm-sec { padding: 64px 0; } }

/* ---------- عناوين الأقسام ---------- */
.hm-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.hm-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  background: var(--hm-teal-50); color: var(--hm-teal-700); font-weight: 700; font-size: .9rem; margin-bottom: 16px; }
.hm-kicker svg { color: var(--hm-gold); }
.hm-h2 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.45; color: var(--hm-ink); }
.hm-lead { margin: 14px 0 0; font-size: 1.05rem; line-height: 2; color: var(--hm-muted); }
.hm-orn { display: block; width: 96px; height: 14px; margin: 18px auto 0; color: var(--hm-gold); }

/* ---------- الأزرار ---------- */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border-radius: 14px; font-weight: 800; font-size: 1.02rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.hm-btn:focus-visible { outline: 3px solid var(--hm-gold-300); outline-offset: 3px; }
.hm-btn--gold { background: linear-gradient(135deg, #D7C14D, #BAA213); color: #1E2A30; box-shadow: 0 14px 30px rgba(186, 162, 19, .32); }
.hm-btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(186, 162, 19, .4); }
.hm-btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.hm-btn--glass:hover { background: rgba(255, 255, 255, .18); }
.hm-btn--teal { background: linear-gradient(135deg, var(--hm-teal-700), var(--hm-teal)); color: #fff; box-shadow: 0 14px 30px rgba(17, 109, 118, .28); }
.hm-btn--teal:hover { transform: translateY(-2px); }
.hm-btn--line { border: 1.5px solid var(--hm-teal); color: var(--hm-teal-700); background: #fff; }
.hm-btn--line:hover { background: var(--hm-teal-50); }

/* ---------- الواجهة ---------- */
.hm-hero { position: relative; color: #fff; padding: 88px 0 150px; isolation: isolate;
  background: radial-gradient(900px 520px at 85% 0%, rgba(79, 184, 192, .35), transparent 60%),
              radial-gradient(700px 480px at 0% 100%, rgba(186, 162, 19, .22), transparent 60%),
              linear-gradient(160deg, #06363B 0%, #0A4F56 45%, #116D76 100%); }
.hm-hero__pattern { position: absolute; inset: 0; z-index: -1; opacity: .09; color: #fff; pointer-events: none; }
.hm-hero__pattern svg { width: 100%; height: 100%; }
.hm-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hm-hero__grid { grid-template-columns: 1fr; gap: 44px; } .hm-hero { padding: 64px 0 130px; } }
.hm-hero__badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; font-weight: 600; }
.hm-hero__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-gold-300); box-shadow: 0 0 0 5px rgba(215, 193, 77, .2); }
.hm-hero__title { margin: 22px 0 0; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.35; letter-spacing: -.3px; }
.hm-hero__title em { font-style: normal; color: var(--hm-gold-300); position: relative; white-space: nowrap; }
.hm-hero__title em::after { content: ""; position: absolute; inset-inline: 0; bottom: .05em; height: .14em; border-radius: 4px; background: rgba(215, 193, 77, .35); z-index: -1; }
.hm-hero__desc { margin: 20px 0 0; max-width: 560px; font-size: 1.12rem; line-height: 2.05; color: rgba(255, 255, 255, .86); }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hm-hero__pdf { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: .95rem; border-bottom: 1px dashed rgba(255, 255, 255, .4); padding-bottom: 2px; }
.hm-hero__pdf:hover { color: var(--hm-gold-300); border-color: var(--hm-gold-300); }

/* البطاقة الزخرفية (محراب) */
.hm-arch { position: relative; max-width: 420px; margin-inline: auto; width: 100%; }
.hm-arch__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 210px 210px 28px 28px; padding: 14px;
  background: linear-gradient(160deg, rgba(215, 193, 77, .9), rgba(186, 162, 19, .35) 40%, rgba(255, 255, 255, .15));
  box-shadow: 0 40px 80px rgba(0, 0, 0, .28); }
.hm-arch__inner { position: relative; height: 100%; border-radius: 198px 198px 18px 18px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(79, 184, 192, .45), transparent 60%), linear-gradient(180deg, #0D5D65, #083F45);
  display: grid; place-items: center; text-align: center; padding: 48px 28px 36px; }
.hm-arch__inner .hm-star { display: block; margin: 0 auto; width: 120px; height: 120px; color: var(--hm-gold-300); opacity: .95; }
.hm-arch__quote { margin: 18px 0 0; font-size: 1.55rem; font-weight: 800; line-height: 1.8; color: #fff; }
.hm-arch__src { display: block; margin-top: 8px; font-size: .88rem; color: rgba(255, 255, 255, .7); font-weight: 500; }
.hm-arch__chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: var(--hm-ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); font-weight: 800; }
.hm-arch__chip small { display: block; font-weight: 500; color: var(--hm-muted); font-size: .8rem; }
.hm-arch__chip span.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--hm-teal-50); color: var(--hm-teal-700); flex: none; }
.hm-arch__chip--a { inset-inline-start: -34px; top: 22%; }
.hm-arch__chip--b { inset-inline-end: -26px; bottom: -18px; }
.hm-arch__chip--b span.ic { background: var(--hm-gold-50); color: #8F7B0D; }
@media (max-width: 520px) { .hm-arch__chip--a { inset-inline-start: -6px; } .hm-arch__chip--b { inset-inline-end: -6px; } .hm-arch__quote { font-size: 1.3rem; } }

/* ---------- شريط الأرقام ---------- */
.hm-stats { position: relative; margin-top: -86px; z-index: 2; }
.hm-stats__box { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--hm-radius);
  box-shadow: 0 30px 60px rgba(10, 79, 86, .14); border: 1px solid var(--hm-line); overflow: hidden; }
.hm-stat { padding: 30px 20px; text-align: center; position: relative; }
.hm-stat + .hm-stat::before { content: ""; position: absolute; inset-block: 26px; inset-inline-start: 0; width: 1px; background: var(--hm-line); }
.hm-stat__n { display: block; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 900; color: var(--hm-teal-700); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-stat__n sup { font-size: .5em; color: var(--hm-gold); margin-inline-start: 2px; }
.hm-stat__l { display: block; margin-top: 8px; color: var(--hm-muted); font-weight: 600; }
@media (max-width: 760px) { .hm-stats__box { grid-template-columns: repeat(2, 1fr); }
  .hm-stat:nth-child(3)::before { display: none; }
  .hm-stat:nth-child(n+3) { border-top: 1px solid var(--hm-line); } }

/* ---------- المسارات (رحلة) ---------- */
.hm-tracks { background: var(--hm-ivory); }
.hm-journey { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 980px) { .hm-journey { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hm-journey { grid-template-columns: 1fr; } }
.hm-step { position: relative; background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 28px 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; counter-increment: step; }
.hm-step:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow); border-color: rgba(26, 147, 158, .35); }
.hm-step__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-step__no { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  color: #fff; background: linear-gradient(135deg, var(--hm-teal-700), var(--hm-teal-300)); }
.hm-step__no::before { content: counter(step); }
.hm-step__tag { font-size: .8rem; font-weight: 700; color: var(--hm-teal-700); background: var(--hm-teal-50); padding: 5px 12px; border-radius: 999px; }
.hm-step h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--hm-ink); font-weight: 800; }
.hm-step p { margin: 0 0 14px; line-height: 1.95; font-size: .97rem; }
.hm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-list li { font-size: .86rem; font-weight: 600; color: var(--hm-text); background: var(--hm-ivory); border: 1px solid var(--hm-line); padding: 5px 11px; border-radius: 999px; }
.hm-step--last .hm-step__no { background: linear-gradient(135deg, #8F7B0D, var(--hm-gold-300)); }

.hm-sub { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .hm-sub { grid-template-columns: 1fr; } }
.hm-sub__title { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: var(--hm-ink); font-weight: 800; font-size: 1.1rem; }
.hm-sub__title::after { content: ""; flex: 1; height: 1px; background: var(--hm-line); }
.hm-prog { display: flex; gap: 18px; align-items: flex-start; background: linear-gradient(135deg, #fff, var(--hm-gold-50)); border: 1px solid #EFE4B8; border-radius: var(--hm-radius); padding: 24px; }
.hm-prog .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: #fff; color: #8F7B0D; border: 1px solid #EFE4B8; }
.hm-prog h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--hm-ink); }
.hm-prog p { margin: 0 0 12px; line-height: 1.9; font-size: .95rem; }

/* ---------- لماذا الفوز ---------- */
.hm-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .hm-why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hm-why__grid { grid-template-columns: 1fr; } }
.hm-card { position: relative; background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.hm-card::after { content: ""; position: absolute; inset-inline: 26px; top: 0; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--hm-teal-300), var(--hm-gold-300)); opacity: 0; transition: opacity .25s ease; }
.hm-card:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow); }
.hm-card:hover::after { opacity: 1; }
.hm-card .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--hm-teal-700); background: linear-gradient(135deg, var(--hm-teal-50), #fff); border: 1px solid #D5EBEC; }
.hm-card h3 { margin: 0 0 8px; font-size: 1.18rem; color: var(--hm-ink); font-weight: 800; line-height: 1.6; }
.hm-card p { margin: 0; line-height: 1.95; font-size: .97rem; color: var(--hm-muted); }

/* شريط مزايا المنصة */
.hm-feats { margin-top: 40px; padding: 26px; border-radius: var(--hm-radius); background: var(--hm-ivory); border: 1px dashed var(--hm-line); text-align: center; }
.hm-feats h3 { margin: 0 0 16px; font-size: 1.02rem; color: var(--hm-ink); }
.hm-feats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-feats li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hm-line); font-weight: 600; font-size: .9rem; }
.hm-feats li svg { color: var(--hm-teal); }

/* ---------- كيف تنضمين ---------- */
.hm-join { background: linear-gradient(180deg, #fff, var(--hm-ivory)); }
.hm-join__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
@media (max-width: 860px) { .hm-join__steps { grid-template-columns: 1fr; } }
.hm-join__step { text-align: center; padding: 34px 24px 28px; background: #fff; border-radius: var(--hm-radius); border: 1px solid var(--hm-line); position: relative; }
.hm-join__step .ic { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--hm-teal-900); color: var(--hm-gold-300); box-shadow: 0 0 0 8px var(--hm-teal-50); }
.hm-join__step b { position: absolute; top: 16px; inset-inline-start: 18px; font-size: 2.4rem; font-weight: 900; color: var(--hm-sand); line-height: 1; }
.hm-join__step h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--hm-ink); }
.hm-join__step p { margin: 0; line-height: 1.95; color: var(--hm-muted); font-size: .96rem; }
.hm-join__cta { margin-top: 34px; text-align: center; }

/* ---------- المكتبة الصوتية ---------- */
.hm-lib__box { position: relative; overflow: hidden; border-radius: 28px; padding: 54px; color: #fff; isolation: isolate;
  background: radial-gradient(600px 300px at 0% 0%, rgba(215, 193, 77, .25), transparent 60%), linear-gradient(135deg, #0A4F56, #116D76);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hm-lib__box { grid-template-columns: 1fr; padding: 36px 24px; } }
.hm-lib__box .hm-hero__pattern { opacity: .07; }
.hm-lib__box h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.hm-lib__box p { margin: 12px 0 0; color: rgba(255, 255, 255, .85); line-height: 2; max-width: 560px; }
.hm-lib__kinds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hm-lib__kinds span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: .92rem; }
.hm-lib__kinds svg { color: var(--hm-gold-300); }
.hm-wave { display: flex; align-items: center; gap: 6px; height: 120px; }
.hm-wave i { width: 8px; border-radius: 8px; background: linear-gradient(180deg, var(--hm-gold-300), rgba(215, 193, 77, .25)); animation: hmWave 1.6s ease-in-out infinite; }
@keyframes hmWave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@media (max-width: 900px) { .hm-wave { display: none; } }

/* ---------- الأهداف ---------- */
.hm-goals { background: var(--hm-ivory); }
.hm-goals__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); overflow: hidden; }
@media (max-width: 860px) { .hm-goals__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hm-goals__grid { grid-template-columns: 1fr; } }
.hm-goal { display: flex; gap: 16px; padding: 26px 24px; border-bottom: 1px solid var(--hm-line); border-inline-start: 1px solid var(--hm-line); }
.hm-goal .ic { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--hm-gold-50); color: #8F7B0D; }
.hm-goal h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--hm-ink); }
.hm-goal p { margin: 0; font-size: .93rem; line-height: 1.85; color: var(--hm-muted); }

/* ---------- الدعوة الختامية ---------- */
.hm-cta { text-align: center; }
.hm-cta__box { border-radius: 28px; padding: 60px 24px; background: #fff; border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow); position: relative; overflow: hidden; }
.hm-cta__box .hm-star { position: absolute; width: 260px; height: 260px; color: var(--hm-teal-50); inset-inline-end: -70px; top: -70px; }
.hm-cta__box .hm-star.b { inset-inline-end: auto; inset-inline-start: -90px; top: auto; bottom: -110px; color: var(--hm-gold-50); }
.hm-cta__box h2 { position: relative; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--hm-ink); font-weight: 900; }
.hm-cta__box p { position: relative; margin: 12px auto 0; max-width: 560px; line-height: 2; color: var(--hm-muted); }
.hm-cta__actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.hm-cta__mail { display: inline-block; margin-top: 18px; position: relative; font-weight: 700; color: var(--hm-teal-700); }

/* ---------- ظهور تدريجي ---------- */
.hm-js .hm-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.hm-js .hm-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hm-js .hm-reveal { opacity: 1; transform: none; transition: none; }
  .hm-wave i { animation: none; }
  .hm-step, .hm-card, .hm-btn { transition: none; }
}

/* الجوال: بطاقتا المحراب تحته بدل التداخل */
@media (max-width: 620px) {
  .hm-arch { max-width: 340px; display: grid; gap: 12px; }
  .hm-arch__frame { aspect-ratio: 5 / 5.4; }
  .hm-arch__chip { position: static; }
  .hm-arch__inner .hm-star { width: 90px; height: 90px; }
}

/* style.css يضيف padding-block: 100px لكل section — نلغيه للأشرطة المتداخلة */
.hm-stats { padding-block: 0; }
