/* عنوان الهيرو */
/* ===== iPhone Duo (section-only CSS) ===== */
/* الخلفية الداكنة والطبقات الخفيفة يمكنك حذفها إن كانت موجودة لديك */
/* ====== iPhone 16 Pro Max – Duo Showcase ====== */
/* يتبع خلفية الصفحة الحالية (لا نضبط خلفية هنا) */

/* ألوان متكيفة مع الوضع الليلي/النهاري (Bootstrap data-bs-theme إن وُجد) */
:root{
  --nx-line-dark: rgba(255,255,255,.08);
  --nx-line-light: rgba(0,0,0,.12);
  --nx-surface-dark: #0f1422;
  --nx-surface-light: #ffffff;
}
html[data-bs-theme="dark"] :root{
  --nx-line: var(--nx-line-dark);
  --nx-surface: var(--nx-surface-dark);
}
html:not([data-bs-theme="dark"]) :root{
  --nx-line: var(--nx-line-light);
  --nx-surface: var(--nx-surface-light);
}

/* الحاوية العامة (من غير خلفية) */
.apps-hero-top{ position:relative; overflow:clip; }
.apps-duo-stage{
  position:relative;
  min-height: 520px;
  display:grid;
  place-items:center;
  perspective:1200px;
  isolation:isolate;
}

/* وهج/ظل الأرضية – يتكيف مع الخلفية (للوضع الفاتح نخفف السواد) */
@media (prefers-color-scheme: dark){
  .apps-duo-floor{
    background: radial-gradient(60% 100% at 50% 60%, rgba(0,0,0,.55), rgba(0,0,0,0) 70%);
  }
}
@media (prefers-color-scheme: light){
  .apps-duo-floor{
    background: radial-gradient(60% 100% at 50% 60%, rgba(0,0,0,.18), rgba(0,0,0,0) 70%);
  }
}
.apps-duo-floor{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:min(760px,92%); height:140px; pointer-events:none;
  filter: blur(8px);
}

/* الهاتف */
.app-iphone{
  --w: clamp(240px, 32vw, 360px);
  width: var(--w);
  aspect-ratio: 9/19.5;
  position: absolute;
  top: -120px;           /* يبدأ خارج الشاشة (حركة دخول لاحقاً) */
  border-radius: 26px;
  background: linear-gradient(180deg, #0e1116, #141923);
  overflow: hidden;
  /* إطار/لمعة خفيفة + سماكة حافة داخلية */
  box-shadow:
    0 22px 48px rgba(0,0,0,.45),
    inset 0 0 0 1px var(--nx-line),
    inset 0 0 0 8px rgba(0,0,0,.75);
  opacity: 0;
  transform: translateY(-40px) scale(.96);
  transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .6s ease;
}

/* الشاشة الداخلية */
.app-screen{
  position:absolute; inset:10px; border-radius:20px; overflow:hidden;
  background:#000; display:grid; place-items:center;
}
.app-slide{ width:100%; height:100%; object-fit:cover; display:none; }

/* Dynamic Island / Punch-hole */
.app-notch{ position:absolute; left:0; right:0; top:0; height:24px; pointer-events:none; }
.app-iphone[data-role="A"] .app-notch::before{
  content:""; position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width:34%; max-width:160px; height:18px; border-radius:12px; background:#000;
  box-shadow:0 2px 6px rgba(0,0,0,.45);
}
.app-iphone[data-role="B"] .app-notch::before{
  content:""; position:absolute; top:12px; left:50%; transform:translateX(-50%);
  width:12px; height:12px; border-radius:50%; background:#000;
  box-shadow:0 2px 6px rgba(0,0,0,.45);
}

/* التموضع/الزوايا النهائية (مطابقة للصورة) */
.app-iphone[data-role="A"]{ z-index:2; left:46%; }
.app-iphone[data-role="B"]{ z-index:1; left:58%; }

/* عند الجاهزية: أنزل الهاتفين لموضعهما مع دوران وانحراف */
.is-ready .apps-hero-top .app-iphone[data-role="A"]{
  top: 38%;
  transform: translate(-55%, -8%) rotate(-2.6deg) scale(1.02);
  opacity: 1;
}
.is-ready .apps-hero-top .app-iphone[data-role="B"]{
  top: 38%;
  transform: translate(-15%, 12%) rotate(12deg);
  opacity: 1;
}

/* تفاعل تحويم بسيط */
.apps-duo-stage:hover .app-iphone[data-role="A"]{
  transform: translate(-56%, -10%) rotate(-3.2deg) scale(1.03);
}
.apps-duo-stage:hover .app-iphone[data-role="B"]{
  transform: translate(-13%, 10%) rotate(13deg);
}

/* استجابة */
@media (max-width: 680px){
  .apps-duo-stage{ min-height: 460px; }
  .is-ready .apps-hero-top .app-iphone[data-role="A"]{ left:44%; }
  .is-ready .apps-hero-top .app-iphone[data-role="B"]{ left:62%; }
}


/* تأثير تحريك المنصة عند التمرير */

.nuxt-hero{
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  color: var(--nx-text);
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in oklab, var(--nx-primary) 16%, transparent), transparent 60%),
    radial-gradient(800px 480px at 15% 110%, color-mix(in oklab, var(--nx-accent) 18%, transparent), transparent 60%),
    var(--nx-bg);
  overflow: clip;
}

.nuxt-hero .container{ max-width: 1080px; margin-inline: auto; text-align: center; }

.nuxt-eyebrow{
  display:inline-block;
  font-weight: 800;
  letter-spacing: .6px;
  margin-bottom: .75rem;
  color: color-mix(in oklab, var(--nx-accent) 88%, var(--nx-text) 12%);
}

.nuxt-title{
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .6rem;
}
.nuxt-sub{
  max-width: 780px; margin: 0 auto 1.4rem;
  color: var(--nx-muted);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
}

/* CTA buttons */
.nuxt-cta{ display:flex; justify-content:center; gap: .6rem; flex-wrap: wrap; }
.nuxt-btn{
  display:inline-flex; align-items:center; gap:.5rem;
  border-radius: 999px;
  padding: .66rem 1.1rem;
  font-weight: 800;
  border: 1px solid var(--nx-line);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.nuxt-btn i{ font-size: 1.1rem; }

.nuxt-btn--primary{
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--nx-primary), var(--nx-accent));
  box-shadow: 0 10px 28px color-mix(in oklab, var(--nx-primary) 28%, transparent);
}
.nuxt-btn--primary:hover{ transform: translateY(-1px); }
.nuxt-btn--primary:active{ transform: translateY(0); box-shadow: 0 4px 16px var(--nx-press); }

.nuxt-btn--ghost{
  background: var(--nx-glass);
  color: var(--nx-text);
}
.nuxt-btn--ghost:hover{ background: var(--nx-press); }

/* خلفية شبكة خفيفة */
.nuxt-hero__bg-grid{
  position:absolute; inset:0; pointer-events:none; opacity:.25;
  background-image:
    linear-gradient(to right, var(--nx-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--nx-line) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  mask-image: radial-gradient(80% 70% at 50% 35%, #000 70%, transparent 100%);
}

/* استجابة بسيطة */
@media (max-width: 520px){
  .nuxt-btn{ width:100%; justify-content:center; }
}
















/* ========= Deliverables / Cards ========= */
.nx-card{
  background: var(--color-bg, #fff);
  border:1px solid var(--color-border, rgba(0,0,0,.10));
  border-radius: 18px; padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}
.nx-checklist{ list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.nx-checklist li{
  position: relative; padding-inline-start: 24px;
}
[dir="rtl"] .nx-checklist li{ padding-inline-start: 0; padding-inline-end:24px; }
.nx-checklist li::before{
  content:"✔"; position:absolute; inset-inline-start: 0; color:#22c55e;
}
[dir="rtl"] .nx-checklist li::before{ inset-inline-end:0; inset-inline-start:auto; }

/* ========= Tabs ========= */
.nx-tabs{ display:block; }
.nx-tabs__nav{
  display:flex; gap:8px; margin-bottom: 10px;
  border-bottom:1px dashed var(--color-border, rgba(0,0,0,.12));
}
.nx-tabs__nav button{
  border:1px solid var(--color-border, rgba(0,0,0,.10));
  background: var(--color-bg, #fff);
  padding:.45rem .8rem; border-radius: 999px;
  font-weight:700; cursor:pointer;
}
.nx-tabs__nav button.is-active{
  color:#fff; background:#3b82f6; border-color:#3b82f6;
}
.nx-tabs__panes{ position: relative; }
.nx-tabs__pane{ display:none; }
.nx-tabs__pane.is-active{ display:block; }
.pill-grid{ display:flex; flex-wrap:wrap; gap:8px; }
.pill-grid span{
  border:1px solid var(--color-border, rgba(0,0,0,.10));
  background: var(--color-bg, #fff);
  border-radius:999px; padding:.35rem .7rem;
}



/* ========= Accordion ========= */
.nx-accordion{ display:grid; gap:10px; }
.acc-item{ border:1px solid var(--color-border, rgba(0,0,0,.10)); border-radius: 14px; overflow: hidden; }
.acc-head{
  width:100%; text-align:inherit; background: var(--color-bg, #fff);
  border:0; padding:.8rem 1rem; font-weight:700; cursor:pointer;
}
.acc-body{ display:none; padding: .8rem 1rem; background: var(--color-bg-soft, #fafafa); }
.acc-item.is-open .acc-body{ display:block; }































/* ====== WHY NUX-T SECTION ====== */
:root{
  --nx-bg:#0b0f1a;
  --nx-surface:#101523;
  --nx-text:#e9eaf2;
  --nx-muted:#a7adc2;
  --nx-line:rgba(255,255,255,.10);
  --nx-primary:#7c3aed;  /* Purple */
  --nx-accent:#a78bfa;   /* Violet */
}
html:not([data-bs-theme="dark"]) {
  --nx-bg:#fff;
  --nx-surface:#f7f7fb;
  --nx-text:#0f1320;
  --nx-muted:#5d657a;
  --nx-line:rgba(0,0,0,.08);
}

.nuxt-why {
  background: var(--nx-bg);
  color: var(--nx-text);
  position: relative;
  overflow: clip;
  padding-block: clamp(2rem, 6vw, 5rem);
}

/* هالات خفيفة بهوية NUX-T */
.nuxt-why::before {
  content:"";
  position:absolute;
  inset:-20% -10% auto -10%;
  height:70%;
  background:
    radial-gradient(40% 60% at 80% 20%, color-mix(in oklab, var(--nx-primary) 18%, transparent), transparent 60%),
    radial-gradient(48% 55% at 18% 18%, color-mix(in oklab, var(--nx-accent) 16%, transparent), transparent 60%);
  filter: blur(22px) saturate(120%);
  pointer-events:none;
}

.nuxt-why__head {
  text-align:center;
  max-width:900px;
  margin:0 auto 28px;
}
.nuxt-why__title {
  font-weight:900;
  font-size:clamp(1.4rem,3.8vw,2.1rem);
  margin:0 0 .4rem;
}
.nuxt-why__title .brand {
  color: var(--nx-accent);
}
.nuxt-why__sub {
  color:var(--nx-muted);
  margin:0;
}

/* ==== قائمة العناصر ==== */
.nuxt-why__list {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:18px;
  margin-top:22px;
}

.why-item {
  display:flex;
  gap:12px;
  align-items:flex-start;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--nx-surface) 90%, transparent),
    var(--nx-surface));
  border:1px solid var(--nx-line);
  border-radius:16px;
  padding:16px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  position:relative;
  overflow:hidden;
}
.why-item:hover {
  transform:translateY(-4px);
  transition: transform .3s ease;
}

/* الأيقونة */
.why-ico {
  flex:0 0 46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background: linear-gradient(135deg, var(--nx-primary), var(--nx-accent));
  box-shadow: 0 8px 18px color-mix(in oklab, var(--nx-primary) 28%, transparent);
}
.why-ico img {
  width:26px;
  height:26px;
  object-fit:contain;
}

/* النص */
.why-body h3 {
  font-size:1rem;
  font-weight:800;
  margin:.1rem 0 .25rem;
}
.why-body p {
  margin:0;
  color:var(--nx-muted);
  line-height:1.6;
}

/* Responsive */
@media (max-width:520px){
  .why-item{ padding:14px 16px; }
  .why-body h3{ font-size:.96rem; }
  .why-body p{ font-size:.92rem; }
}

/* ====== Reveal Animation ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* تأخيرات متتابعة */
[data-delay="100"] { transition-delay: .1s; }
[data-delay="150"] { transition-delay: .15s; }
[data-delay="180"] { transition-delay: .18s; }
[data-delay="200"] { transition-delay: .2s; }
[data-delay="220"] { transition-delay: .22s; }
[data-delay="250"] { transition-delay: .25s; }
[data-delay="300"] { transition-delay: .3s; }
[data-delay="330"] { transition-delay: .33s; }
[data-delay="360"] { transition-delay: .36s; }
[data-delay="400"] { transition-delay: .4s; }
[data-delay="450"] { transition-delay: .45s; }
[data-delay="480"] { transition-delay: .48s; }
[data-delay="500"] { transition-delay: .5s; }
[data-delay="520"] { transition-delay: .52s; }