/* =========================================================
   sections.css — تصميم أقسام الصفحة بالترتيب
   ========================================================= */

/* ================= ١. الغلاف ================= */
.hero { position: relative; height: 320vh; }
.hero__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: var(--header-h) var(--gutter) 40px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -10%;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 30% 50%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 30% 50%, #000 10%, transparent 75%);
}
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; left: -15vmax; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgb(227 191 128 / 38%), rgb(227 191 128 / 0%) 60%);
}
.hero__copy { position: relative; z-index: 3; max-width: 620px; }
.hero__title { font-size: clamp(44px, 6.4vw, 96px); font-weight: 500; line-height: 1.35; margin-block: 16px 20px; }
.hero__title .line { display: block; overflow: hidden; padding-block: .04em .12em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line--small { font-size: .42em; font-weight: 400; color: var(--muted); }
.hero__lead { font-size: clamp(16px, 1.45vw, 20px); color: var(--muted); max-width: 500px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
/* الخدمات الرئيسية: سطر واحد بفواصل ذهبية */
.hero__services { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; margin-top: 18px; font-size: clamp(14px, 1.05vw, 16px); font-weight: 400; color: var(--ink); }
.hero__services li { display: flex; align-items: center; }
.hero__services li + li::before { content: ""; width: 1px; height: 1em; margin-inline: 12px; background: var(--gold-2); }
/* على الشاشات الواسعة: الوصف والخدمات كل واحد في سطر واحد بدون انكسار */
/* الشاشات الأصغر: الخدمات كبطاقات صغيرة تنلف بدون فواصل في بداية السطر */
@media (max-width: 1279px) {
  .hero__services { gap: 8px; }
  .hero__services li + li::before { content: none; }
  .hero__services li { padding: 5px 12px; border-radius: 99px; border: 1px solid rgb(196 149 90 / 35%); background: rgb(255 255 255 / 70%); font-size: 13.5px; }
}
@media (min-width: 1280px) {
  .hero__copy { max-width: none; }
  .hero__lead { max-width: none; white-space: nowrap; font-size: clamp(16px, 1.22vw, 19px); }
  .hero__services { flex-wrap: nowrap; white-space: nowrap; }
}

/* الشعار ثلاثي الأبعاد */
.emblem { position: relative; z-index: 2; display: grid; place-items: center; perspective: 1400px; height: 100%; }
.emblem__stage {
  position: relative; width: min(36vw, 480px); aspect-ratio: 1;
  transform-style: preserve-3d; will-change: transform;
}
.layer { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.layer svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 24px rgb(168 123 64 / 28%)); }
.layer::before { /* لوح زجاجي خفيف يبان لما تنفصل الطبقات */
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(135deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 0%));
  border: 1px solid rgb(196 149 90 / 22%); opacity: var(--glass, 0);
}
.emblem__shadow {
  position: absolute; inset: 8%; border-radius: 50%; transform: translateZ(-200px);
  background: radial-gradient(closest-side, rgb(11 16 52 / 18%), transparent); filter: blur(20px);
}

.explode-labels {
  position: absolute; z-index: 4; top: 50%; right: var(--gutter); transform: translateY(-50%);
  display: grid; gap: clamp(10px, 2.2vh, 22px); pointer-events: none;
}
.explode-labels li {
  display: flex; align-items: center; gap: 12px; font-size: clamp(14px, 1.3vw, 18px); font-weight: 600;
  background: rgb(255 255 255 / 78%); backdrop-filter: blur(10px); padding: 10px 18px 10px 14px;
  border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); opacity: 0;
}
.explode-labels b { font-size: 12px; font-weight: 500; color: #fff; background: var(--gold); border-radius: 99px; padding: 2px 9px; }
.explode-lines { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.explode-lines line { stroke: var(--gold-2); stroke-width: 1; stroke-dasharray: 3 4; }
.explode-lines circle { fill: var(--gold-2); }

.hero__caption {
  position: absolute; z-index: 4; bottom: 9vh; left: 50%; transform: translateX(-50%);
  font-size: clamp(16px, 1.8vw, 24px); font-weight: 600; text-align: center; opacity: 0; width: max-content; max-width: 90vw;
}
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 4; display: grid; justify-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.scroll-hint span { width: 22px; height: 36px; border: 1.5px solid var(--muted); border-radius: 99px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--gold-2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ================= ٢. الشركاء ================= */
.partners { padding-block: 44px; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.partners__title { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; align-items: center; gap: clamp(48px, 7vw, 110px); width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partners__title { font-size: clamp(16px, 1.4vw, 19px) !important; font-weight: 500; color: var(--ink) !important; margin-bottom: 28px !important; }
.marquee__track { gap: clamp(40px, 5vw, 80px) !important; }
.logo-link { flex: none; display: flex; align-items: center; padding-block: 6px; }
/* كل الشعارات بنفس الارتفاع، والعريضة لها حد أقصى عشان تتوازن */
/* الشعارات بألوانها الأصلية وواضحة (بدون أي طبقة رمادية) */
.marquee__track img { display: block; height: clamp(52px, 5vw, 72px); width: auto; max-width: 200px; object-fit: contain; transition: transform .4s var(--ease); }
.logo-link:hover img, .logo-link:focus-visible img { transform: scale(1.06); }
/* شعار تقنية سعودية طولي: نكبّره عشان يبان بنفس وضوح الباقي */
.logo-link--tall img { height: clamp(72px, 7vw, 96px); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ================= ٣. عن الحاضنة ================= */
.statement { font-size: clamp(24px, 3.4vw, 46px); font-weight: 600; line-height: 1.6; max-width: 1100px; }
.statement .w { opacity: .14; transition: opacity .2s; }
.statement .w.is-on { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(56px, 8vw, 100px); }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); transform-style: preserve-3d;
}
.stat b { direction: ltr; text-align: right; display: block; font-size: clamp(48px, 6vw, 80px); font-weight: 600; line-height: 1; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 12px; color: var(--muted); }
.why { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 70px; padding-top: 40px; border-top: 1px solid var(--line); }
.why__title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; }
.why__list { display: flex; flex-wrap: wrap; gap: 10px; }
.why__list li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; background: var(--bg-2); font-weight: 500; }
.why__list i { font-style: normal; color: var(--gold-2); }

/* ================= ٤. ماذا نقدم ================= */
.services { background: var(--surface); }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
/* زرّين جنب بعض بنفس العرض والارتفاع (حتى على الجوال) */
.btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); justify-content: center; gap: 14px; margin-top: 40px; }
.btn-pair .btn { justify-content: center; min-height: 54px; width: 100%; }
@media (max-width: 420px) { .btn-pair { grid-template-columns: 1fr 1fr; gap: 10px; } .btn-pair .btn { padding-inline: 12px; font-size: 15px; } }
.path {
  position: relative; padding: 36px 30px 30px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 340px;
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease);
}
.path:hover { box-shadow: var(--shadow); }
.path__num { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 500; font-size: 20px; color: var(--gold-3); border: 1.5px solid var(--gold-1); }
.path h3 { font-size: 26px; font-weight: 500; margin-top: 14px; }
.path p { color: var(--muted); }
.path__tag { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--gold-3); }
.path--featured { background: var(--ink); color: #fff; border-color: transparent; }
.path--featured p { color: rgb(255 255 255 / 70%); }
.path--featured .path__num { background: var(--gold); color: #fff; border: 0; }
.path--featured .path__tag { color: var(--gold-1); }

/* ================= ٥. الرحلة ================= */
.journey { position: relative; background: var(--bg); }
.journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6vh; padding-top: var(--header-h); }
.journey__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.journey__head .kicker { width: 100%; margin-bottom: 0; }
.journey__meter { font-size: 15px; color: var(--muted); font-weight: 500; }
.journey__meter span { font-size: 44px; font-weight: 600; color: var(--ink); }
.journey__rail { position: relative; }
.journey__path { position: absolute; top: 38px; right: 0; height: 40px; width: 300%; fill: none; stroke: var(--gold-2); stroke-width: 2; }
.journey__track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.stage {
  position: relative; width: clamp(270px, 26vw, 340px); padding: 96px 28px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex: none;
}
.stage::before { content: ""; position: absolute; top: 50px; right: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold-2); }
.stage__n { position: absolute; top: 22px; left: 26px; font-size: 54px; font-weight: 600; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--gold-1); }
.stage h3 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.stage p { color: var(--muted); font-size: 15px; }
.stage.is-active::before { background: var(--gold-2); box-shadow: 0 0 0 8px var(--gold-soft); }
.stage--final { background: var(--ink); color: #fff; }
.stage--final p { color: rgb(255 255 255 / 70%); }

/* ================= ٨. الباقات ================= */
.packages { background: var(--surface); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.tier { --metal: linear-gradient(120deg, #e8b48c, #d4824a, #a95f2f);
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); transform-style: preserve-3d; overflow: hidden;
}
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--metal); }
.tier--silver { --metal: linear-gradient(120deg, #e4e8ee, #b9c3d1, #8a96a8); }
.tier--gold { --metal: var(--gold); background: var(--ink); color: #fff; border-color: transparent; box-shadow: var(--shadow-gold); }
.tier__name { font-size: 13px; letter-spacing: .26em; font-weight: 500; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier h3 { font-size: 24px; font-weight: 500; }
.tier__for { font-size: 14px; color: var(--muted); }
.tier--gold .tier__for { color: rgb(255 255 255 / 65%); }
.tier ul { display: grid; gap: 12px; margin-block: 22px 28px; }
.tier li { position: relative; padding-inline-start: 26px; font-size: 15px; }
.tier li::before { content: "✓"; position: absolute; right: 0; top: 0; font-weight: 500; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier .btn { margin-top: auto; }
.tier--gold .btn--gold::before { background: #fff; }
.tier--gold .btn--gold:hover { color: var(--ink); }
.tier__badge { position: absolute; top: 22px; left: 22px; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 99px; background: var(--gold); color: #fff; }
.tiers__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ================= ٩. الدعوة ================= */
.cta__box {
  position: relative; text-align: center; display: grid; justify-items: center; gap: 18px;
  padding-block: clamp(70px, 10vw, 130px); border-radius: 36px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgb(227 191 128 / 40%), transparent 60%), var(--bg-2);
  max-width: calc(1240px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter));
}
.cta__mark { width: 84px; height: 84px; }
.cta__title { font-size: clamp(32px, 5vw, 68px); font-weight: 500; line-height: 1.45; }
.cta__box > p { color: var(--muted); font-size: 18px; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cta__info { display: flex; gap: clamp(20px, 4vw, 56px); flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.cta__info li { display: grid; gap: 2px; }
.cta__info span { font-size: 12px; color: var(--muted); }
.cta__info a, .cta__info b { font-weight: 600; }
.cta__info a:hover { color: var(--gold-3); }
