/* ==========================================================================
   الانترو المقسوم: كلام + صورة داخل إطار مميز
   ========================================================================== */
.ds-hero { position: relative; overflow: hidden; background: var(--ds-soft); isolation: isolate; }
.ds-hero__bgshape { position: absolute; z-index: -1; top: -18%; inset-inline-end: -8%; width: 58%; aspect-ratio: 1; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: rgba(var(--ds-primary-rgb), .08); animation: ds-morph 18s ease-in-out infinite; }
.ds-hero__dots { position: absolute; z-index: -1; bottom: 40px; inset-inline-start: 4%; width: 150px; height: 110px; background: var(--ds-accent); opacity: .35; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='2.4'/%3E%3C/svg%3E"); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='2.4'/%3E%3C/svg%3E"); }
.ds-hero__swiper, .ds-hero__slide { height: auto; }
.ds-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 80px); min-height: clamp(520px, 74vh, 720px); padding-block: clamp(40px, 6vw, 70px) clamp(90px, 9vw, 110px); }
.ds-hero--medium .ds-hero__grid { min-height: clamp(440px, 60vh, 580px); }
.ds-hero--full .ds-hero__grid { min-height: calc(100svh - var(--ds-header-h) - 40px); }
.ds-hero__slide.is-media-only .ds-hero__grid { grid-template-columns: minmax(0, 1fr); }
.ds-hero__slide.is-media-only .ds-hero__frame { aspect-ratio: 21 / 9; border-radius: calc(var(--ds-r-lg) * 2); }

.ds-hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 18px 7px 8px; margin-bottom: 22px; border-radius: var(--ds-r-pill); background: #fff; color: var(--ds-primary); font-weight: 800; font-size: 14px; box-shadow: 0 8px 24px rgba(var(--ds-dark-rgb), .06); }
.ds-hero__eyebrow i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ds-accent); color: #fff; font-size: 12px; }
.ds-hero__title { font-size: clamp(34px, 5vw, 64px); line-height: 1.15; margin-bottom: 20px; position: relative; isolation: isolate; }
.ds-hero__title span { color: var(--ds-primary); position: relative; white-space: nowrap; }
.ds-hero__title span::after { content: ""; position: absolute; inset-inline: -2px; bottom: .06em; height: .26em; border-radius: 6px; background: rgba(var(--ds-accent-rgb), .3); z-index: -1; }
.ds-hero__desc { font-size: clamp(16px, 1.5vw, 19px); color: var(--ds-text); max-width: 500px; margin-bottom: 32px; }

.ds-hero__media { position: relative; padding: 24px; }
.ds-hero__frame { position: relative; z-index: 2; overflow: hidden; aspect-ratio: 5 / 4.4; border-radius: 240px 240px var(--ds-r-lg) var(--ds-r-lg); background: var(--ds-line); box-shadow: var(--ds-shadow-lg); }
.ds-hero__frame img, .ds-hero__frame video, .ds-hero__frame picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-hero__circle { position: absolute; z-index: 1; width: 46%; aspect-ratio: 1; inset-inline-end: -2%; bottom: -2%; border-radius: 50%; background: var(--ds-primary); }
.ds-hero__ring { position: absolute; z-index: 1; width: 120px; aspect-ratio: 1; top: 4%; inset-inline-start: -2%; border-radius: 50%; border: 3px dashed var(--ds-accent); animation: ds-spin 24s linear infinite; }
.ds-hero__badge { position: absolute; z-index: 3; bottom: 13%; inset-inline-start: -4%; display: flex; align-items: center; gap: 12px; max-width: 260px; padding: 14px 18px; border-radius: var(--ds-r-lg); background: #fff; box-shadow: var(--ds-shadow-lg); animation: ds-bob 6s ease-in-out infinite; }
@keyframes ds-bob { 50% { transform: translateY(-10px); } }
.ds-hero__badge span { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--ds-primary-tint); color: var(--ds-primary); font-size: 18px; }
.ds-hero__badge strong { color: var(--ds-dark); font-size: 14px; line-height: 1.5; }
.ds-hero__count { position: absolute; z-index: 3; top: 9%; inset-inline-end: 4%; display: flex; align-items: baseline; gap: 4px; padding: 8px 14px; border-radius: var(--ds-r-pill); background: rgba(255, 255, 255, .92); color: var(--ds-muted); font-weight: 700; direction: ltr; }
.ds-hero__count b { color: var(--ds-dark); font-size: 20px; }

.ds-hero__nav { position: absolute; z-index: 5; bottom: 30px; inset-inline: 0; display: flex; align-items: center; gap: 22px; pointer-events: none; }
.ds-hero__nav > * { pointer-events: auto; }
.ds-hero .ds-intro__arrows button { border-color: var(--ds-line-2); background: #fff; color: var(--ds-dark); backdrop-filter: none; }
.ds-hero .ds-intro__arrows button:hover { background: var(--ds-primary); border-color: var(--ds-primary); color: #fff; }
.ds-hero .ds-intro__pagination .swiper-pagination-bullet { background: rgba(var(--ds-dark-rgb), .15); }
.ds-hero .ds-intro__pagination .swiper-pagination-bullet-active::after { background: var(--ds-primary); }

/* حركة دخول الشريحة */
.ds-hero__slide .ds-hero__text > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ds-ease), transform .8s var(--ds-ease); }
.ds-hero__slide .ds-hero__media { opacity: 0; transform: scale(.94); transition: opacity .9s var(--ds-ease), transform .9s var(--ds-ease); }
.ds-hero__slide.swiper-slide-active .ds-hero__text > *, .ds-hero__slide.swiper-slide-active .ds-hero__media { opacity: 1; transform: none; }
.ds-hero__slide.swiper-slide-active .ds-hero__text > :nth-child(2) { transition-delay: .1s; }
.ds-hero__slide.swiper-slide-active .ds-hero__text > :nth-child(3) { transition-delay: .2s; }
.ds-hero__slide.swiper-slide-active .ds-hero__text > :nth-child(4) { transition-delay: .3s; }
.ds-hero__slide.swiper-slide-active .ds-hero__media { transition-delay: .15s; }
.ds-hero__slide.swiper-slide-active .ds-hero__frame img { animation: ds-kenburns 9s ease-out both; }
.ds-hero:not(:has(.swiper-initialized)) .ds-hero__slide:first-child .ds-hero__text > *,
.ds-hero:not(:has(.swiper-initialized)) .ds-hero__slide:first-child .ds-hero__media { opacity: 1; transform: none; }

@media (max-width: 900px) {
	.ds-hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0 !important; text-align: center; padding-block: 36px 96px; gap: 24px; }
	.ds-hero__desc { margin-inline: auto; }
	.ds-hero__text .ds-intro__btns { justify-content: center; }
	.ds-hero__media { max-width: 560px; margin-inline: auto; width: 100%; padding: 14px; }
	.ds-hero__nav { justify-content: center; }
	.ds-hero__bgshape { width: 110%; top: auto; bottom: -20%; }
}
@media (max-width: 520px) {
	.ds-hero__frame { border-radius: 160px 160px var(--ds-r-lg) var(--ds-r-lg); }
	.ds-hero__badge { inset-inline-start: 0; bottom: 6%; padding: 10px 12px; max-width: 210px; }
	.ds-hero__badge span { width: 36px; height: 36px; font-size: 15px; }
	.ds-hero__badge strong { font-size: 12.5px; }
	.ds-hero__ring { width: 80px; }
	.ds-hero .ds-intro__arrows { display: none; }
	.ds-hero .ds-btn--lg { min-height: 50px; padding-inline: 22px; font-size: 15px; }
}

/* الجوال/التابلت: ارتفاع ثابت للكلام حتى لا تتحرك الصورة لفوق وتحت مع كل شريحة،
   وصورة أقصر على التابلت حتى لا يطول الانترو عن الشاشة. */
@media (max-width: 900px) {
	.ds-hero__text { min-height: 290px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
	.ds-hero__media { max-width: 500px; }
	.ds-hero__frame { aspect-ratio: 1 / .82; }
	.ds-hero__slide:not(.swiper-slide-active) { visibility: hidden; }
}
@media (max-width: 520px) {
	.ds-hero__text { min-height: 300px; }
}
@media (max-width: 360px) {
	.ds-hero__text { min-height: 360px; }
}


/* ==========================================================================
   الانترو بعرض الشاشة «المصمَّم»: صورة/فيديو خلفية كاملة + الكلام فوقها
   + كارت طائر + عدّاد + أشكال. بدون تدرجات — طبقة تعتيم سادة.
   ========================================================================== */
.ds-intro--designed { overflow: hidden; isolation: isolate; }
.ds-intro--designed .ds-intro__swiper { height: clamp(560px, 82vh, 820px); }
.ds-intro--designed.ds-intro--medium .ds-intro__swiper { height: clamp(460px, 64vh, 620px); }
.ds-intro--designed.ds-intro--full .ds-intro__swiper { height: calc(100svh - var(--ds-header-h)); min-height: 560px; }
.ds-intro--designed .ds-intro__veil { background: #0d1513; }
.ds-intro--designed .ds-intro__content { padding-block: 70px 130px; }
.ds-intro--designed .ds-intro__content > * { max-width: 620px; }
.ds-intro--designed .ds-intro__content--center > * { margin-inline: auto; }
.ds-intro--designed .ds-intro__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 7px; background: #fff; border: 0; color: var(--ds-dark); backdrop-filter: none; font-weight: 800; }
.ds-intro--designed .ds-intro__eyebrow i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ds-accent); color: #fff; font-size: 12px; }
.ds-intro--designed .ds-intro__title { font-size: clamp(36px, 6vw, 76px); line-height: 1.1; margin-bottom: 20px; position: relative; isolation: isolate; }
.ds-intro--designed .ds-intro__title span { color: #fff; position: relative; white-space: nowrap; }
.ds-intro--designed .ds-intro__title span::after { content: ""; position: absolute; inset-inline: -4px; bottom: .08em; height: .3em; border-radius: 6px; background: var(--ds-accent); z-index: -1; }
.ds-intro--designed .ds-intro__text { max-width: 520px; font-size: clamp(16px, 1.5vw, 19px); }
.ds-intro--designed .ds-btn--glass { background: transparent; border-color: rgba(255, 255, 255, .7); backdrop-filter: none; }

/* الإضافات فوق الصورة */
.ds-intro__extras { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ds-intro__count { position: absolute; top: 34px; inset-inline-end: var(--ds-gutter); display: flex; align-items: baseline; gap: 4px; padding: 8px 16px; border-radius: var(--ds-r-pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .75); font-weight: 700; direction: ltr; }
.ds-intro__count b { color: #fff; font-size: 22px; }
.ds-intro__badge { position: absolute; bottom: 120px; inset-inline-end: var(--ds-gutter); display: flex; align-items: center; gap: 12px; max-width: 280px; padding: 14px 18px; border-radius: var(--ds-r-lg); background: #fff; box-shadow: var(--ds-shadow-lg); animation: ds-bob 6s ease-in-out infinite; }
.ds-intro__badge span { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--ds-primary); color: #fff; font-size: 18px; }
.ds-intro__badge strong { color: var(--ds-dark); font-size: 15px; line-height: 1.5; }
.ds-intro__slide .ds-intro__badge, .ds-intro__slide .ds-intro__count { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ds-ease) .45s, transform .7s var(--ds-ease) .45s; }
.ds-intro__slide.swiper-slide-active .ds-intro__badge, .ds-intro__slide.swiper-slide-active .ds-intro__count { opacity: 1; transform: none; }
.ds-intro__ring { position: absolute; z-index: 2; pointer-events: none; width: 220px; aspect-ratio: 1; top: -60px; inset-inline-end: 22%; border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .35); animation: ds-spin 40s linear infinite; }
.ds-intro__dots { position: absolute; z-index: 2; pointer-events: none; bottom: 120px; inset-inline-start: 3%; width: 140px; height: 100px; background: #fff; opacity: .35; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='2.4'/%3E%3C/svg%3E"); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='9' cy='9' r='2.4'/%3E%3C/svg%3E"); }
.ds-intro--designed .ds-intro__nav { bottom: 40px; }

/* تابلت */
@media (max-width: 1024px) {
	.ds-intro__badge { bottom: 110px; }
	.ds-intro__ring { width: 160px; inset-inline-end: 10%; }
}
/* جوال: الكلام أسفل الصورة في المنتصف، والكارت فوقه */
@media (max-width: 767px) {
	.ds-intro--designed .ds-intro__swiper { height: clamp(560px, 86svh, 720px); }
	.ds-intro--designed .ds-intro__slide { align-items: flex-end; }
	.ds-intro--designed .ds-intro__content { padding-block: 40px 96px; text-align: center; }
	.ds-intro--designed .ds-intro__content > * { margin-inline: auto; }
	.ds-intro--designed .ds-intro__btns { justify-content: center; }
	.ds-intro--designed .ds-intro__title { font-size: clamp(32px, 9vw, 44px); }
	.ds-intro--designed .ds-intro__text { font-size: 15.5px; margin-bottom: 24px; }
	.ds-intro__count { top: 18px; padding: 6px 12px; }
	.ds-intro__count b { font-size: 18px; }
	.ds-intro__badge { top: 18px; bottom: auto; inset-inline-end: auto; inset-inline-start: var(--ds-gutter); max-width: 220px; padding: 10px 12px; animation: none; }
	.ds-intro__badge span { width: 36px; height: 36px; font-size: 15px; border-radius: 11px; }
	.ds-intro__badge strong { font-size: 12.5px; }
	.ds-intro__ring, .ds-intro__dots { display: none; }
	.ds-intro--designed .ds-intro__nav { bottom: 34px; }
}
@media (max-width: 380px) {
	.ds-intro__badge { max-width: 170px; }
	.ds-intro--designed .ds-intro__btns .ds-btn { padding-inline: 18px; }
}
@media (max-width: 900px) { .ds-intro__ring, .ds-intro__badge { animation: none !important; } }

/* العدّاد اتجاهه LTR (01 / 03) فمكانه يُحدَّد فعليًا يسارًا */
.ds-intro__count { inset-inline-end: auto; inset-inline-start: auto; left: var(--ds-gutter); right: auto; }
.ds-hero__count { inset-inline-end: auto; inset-inline-start: auto; left: 4%; right: auto; }
/* الأسهم والنقاط معًا يمينًا حتى يبقى الركن الأيسر لزر الواتساب */
.ds-intro--designed .ds-intro__nav { justify-content: flex-start; gap: 24px; }
.ds-intro--designed .ds-intro__pagination, .ds-hero .ds-intro__pagination { width: auto !important; flex: none; position: static; }
@media (max-width: 1024px) and (min-width: 768px) { .ds-intro__ring { display: none; } }

/* الأسهم والنقاط في منتصف الانترو */
.ds-intro--designed .ds-intro__nav, .ds-hero__nav { justify-content: center !important; }
