/* =========================================================================
   Dheuof pitch deck — slide styles
   1920×1080, RTL, luxe Arabic-modern.
   ========================================================================= */

/* =========================================================================
   Slide-enter motion — replays each time a slide becomes active.
   The deck-stage component sets [data-deck-active] on the live slide.
   We use the appearance/removal of that attribute to (re)play animation.
   ========================================================================= */
.m-deck-anim { opacity: 0; }
.m-deck-anim-1 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-2 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-3 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-4 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-5 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-6 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-7 { opacity: 0; transform: translateY(50px); }
.m-deck-anim-8 { opacity: 0; transform: translateY(50px); }

deck-stage > section[data-deck-active] .m-deck-anim,
deck-stage > section[data-deck-active] [class*="m-deck-anim-"] {
  animation: deck-slide-in 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
deck-stage > section[data-deck-active] .m-deck-anim-1 { animation-delay: 0ms;    }
deck-stage > section[data-deck-active] .m-deck-anim-2 { animation-delay: 140ms;  }
deck-stage > section[data-deck-active] .m-deck-anim-3 { animation-delay: 280ms;  }
deck-stage > section[data-deck-active] .m-deck-anim-4 { animation-delay: 420ms;  }
deck-stage > section[data-deck-active] .m-deck-anim-5 { animation-delay: 560ms;  }
deck-stage > section[data-deck-active] .m-deck-anim-6 { animation-delay: 700ms;  }
deck-stage > section[data-deck-active] .m-deck-anim-7 { animation-delay: 840ms;  }
deck-stage > section[data-deck-active] .m-deck-anim-8 { animation-delay: 980ms;  }

@keyframes deck-slide-in {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger children — for the modules grid + KPI grid */
deck-stage > section .m-deck-stagger > * { opacity: 0; transform: translateY(40px) scale(0.96); }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(1)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 320ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(2)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 380ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(3)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 440ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(4)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 500ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(5)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 560ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(6)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 620ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(7)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 680ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(8)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 740ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(9)  { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 800ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(10) { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 860ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(11) { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 920ms forwards; }
deck-stage > section[data-deck-active] .m-deck-stagger > *:nth-child(12) { animation: deck-stagger-in 800ms cubic-bezier(0.22, 1, 0.36, 1) 980ms forwards; }

@keyframes deck-stagger-in {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Big number — scale up + fade */
deck-stage > section .m-deck-num { opacity: 0; transform: scale(0.7) rotate(-3deg); transform-origin: center; }
deck-stage > section[data-deck-active] .m-deck-num {
  animation: deck-num-in 1100ms cubic-bezier(0.34, 1.56, 0.64, 1) 380ms forwards;
}
@keyframes deck-num-in {
  from { opacity: 0; transform: scale(0.7) rotate(-3deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0); }
}

/* Gold shimmer sweep on big titles */
deck-stage > section .m-deck-shimmer { position: relative; overflow: hidden; }
deck-stage > section[data-deck-active] .m-deck-shimmer::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-start: -40%;
  width: 30%;
  background: linear-gradient(120deg, transparent, rgba(255, 225, 150, 0.55), transparent);
  transform: skewX(-22deg);
  animation: deck-shimmer 2.6s cubic-bezier(0.22, 1, 0.36, 1) 800ms forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes deck-shimmer {
  0%   { inset-inline-start: -40%; }
  100% { inset-inline-start: 140%; }
}

/* Glow pulse on KPI numbers in slide 5 */
deck-stage > section .m-deck-glow { position: relative; }
deck-stage > section[data-deck-active] .m-deck-glow::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(201,168,95,0.4), transparent 50%);
  filter: blur(20px);
  z-index: -1;
  animation: deck-glow-in 1500ms ease-out 500ms forwards;
  opacity: 0;
}
@keyframes deck-glow-in {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0.5; transform: scale(1); }
}

:root {
  --slide-w: 1920px;
  --slide-h: 1080px;
}

deck-stage {
  --bg: var(--paper);
}

body { margin: 0; font-family: var(--font-ar); color: var(--ink-900); }

/* every slide is a <section> direct child of <deck-stage> */
deck-stage > section {
  width: 1920px; height: 1080px;
  background: var(--paper);
  display: flex;
  position: relative;
  overflow: hidden;
}

/* ─── Common ──────────────────────────────────────────────────────────── */
.slide-pad { padding: 88px 120px; flex: 1; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-family: var(--font-en); font-size: 22px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-700); font-weight: 500; }
.eyebrow-ar { font-family: var(--font-ar); font-size: 24px; color: var(--gold-700); font-weight: 500; letter-spacing: 0; }
.h1 { font-family: var(--font-ar-display); font-weight: 600; font-size: 144px; line-height: 1.0; letter-spacing: -0.02em; color: var(--ink-900); margin: 0; }
.h2 { font-family: var(--font-ar-display); font-weight: 600; font-size: 96px; line-height: 1.05; letter-spacing: -0.015em; color: var(--ink-900); margin: 0; }
.h3 { font-family: var(--font-ar-display); font-weight: 600; font-size: 64px; line-height: 1.1; color: var(--ink-900); margin: 0; }
.lead { font-family: var(--font-ar); font-size: 32px; line-height: 1.5; color: var(--fg-1); max-width: 900px; }
.accent { color: var(--gold-700); }

.brand-mark { display: inline-flex; align-items: center; gap: 18px; }
.brand-mark img { width: 56px; height: 56px; }
.brand-mark .ar { font-family: var(--font-ar-display); font-weight: 600; font-size: 36px; color: var(--ink-900); line-height: 1; }
.brand-mark .en { font-family: var(--font-en-display); font-style: italic; font-size: 24px; color: var(--gold-700); }

.foot { display: flex; align-items: center; justify-content: space-between; padding: 32px 120px; border-top: 1px solid var(--hairline); font-family: var(--font-en); font-size: 18px; color: var(--fg-3); }

/* ── Slide 1: Title (full bleed dark) ─────────────────────────────────── */
.s-title { background: linear-gradient(135deg, #0E2A22 0%, #143A2E 60%, #1B4D3D 100%); color: var(--paper); flex-direction: column; align-items: stretch; }
.s-title .glow {
  position: absolute; inset-block: -200px; inset-inline-end: -200px; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(201,168,95,0.25), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
}
.s-title .brand-mark .ar { color: var(--paper); }
.s-title .brand-mark .en { color: var(--gold-400); }
.s-title .h1 { color: var(--paper); font-size: 192px; line-height: 0.94; max-width: 1500px; }
.s-title .h1 .accent { color: var(--gold-500); }
.s-title .pad { padding: 100px 120px 80px; display: flex; flex-direction: column; gap: 28px; flex: 1; }
.s-title .meta { display: flex; align-items: center; gap: 24px; color: var(--gold-300); font-family: var(--font-en); font-size: 22px; }
.s-title .meta .dot { width: 6px; height: 6px; background: var(--gold-400); border-radius: 999px; }
.s-title .foot { color: var(--gold-300); border-top-color: rgba(201,168,95,0.18); }

/* ── Slide 2: Problem (split, eyebrow + huge stat) ────────────────────── */
.s-problem { background: var(--paper); }
.s-problem .left { flex: 1; padding: 88px 80px 88px 120px; display: flex; flex-direction: column; gap: 36px; justify-content: center; }
.s-problem .right { flex: 1; background: var(--paper-tint); padding: 100px 120px 100px 80px; display: flex; flex-direction: column; gap: 30px; justify-content: center; border-inline-start: 1px solid var(--hairline); }
.s-problem .stat { font-family: var(--font-en); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 240px; line-height: 0.95; color: var(--danger-700); letter-spacing: -0.04em; }
.s-problem .stat .pct { font-size: 96px; }
.s-problem .stat-cap { font-family: var(--font-ar-display); font-weight: 600; font-size: 40px; color: var(--ink-900); margin-top: -8px; max-width: 580px; }
.s-problem .stat-src { font-family: var(--font-en); font-size: 16px; color: var(--fg-3); letter-spacing: 0.04em; }
.s-problem ul.pain { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.s-problem ul.pain li { padding: 18px 24px 18px 24px; background: var(--white); border-radius: 12px; border: 1px solid var(--hairline); display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.s-problem ul.pain li .ic { width: 40px; height: 40px; border-radius: 8px; background: var(--paper-tint); display: grid; place-items: center; font-size: 22px; border: 1px solid var(--hairline); }
.s-problem ul.pain li .t { font-family: var(--font-ar-display); font-weight: 600; font-size: 24px; color: var(--ink-900); }
.s-problem ul.pain li .s { font-size: 18px; color: var(--fg-2); margin-top: 2px; }

/* ── Slide 3: Solution (big claim + 3 pillars) ────────────────────────── */
.s-solution { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%); flex-direction: column; }
.s-solution .pad { padding: 88px 120px 40px; display: flex; flex-direction: column; gap: 24px; }
.s-solution .pillars { padding: 0 120px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.s-solution .pillar { background: var(--white); border: 1px solid var(--hairline); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.s-solution .pillar.is-feat { background: linear-gradient(135deg, var(--brand-800), var(--brand-900)); color: var(--paper); border-color: transparent; }
.s-solution .pillar .num { font-family: var(--font-en-display); font-style: italic; font-size: 72px; font-weight: 500; color: var(--gold-500); line-height: 1; }
.s-solution .pillar.is-feat .num { color: var(--gold-400); }
.s-solution .pillar .t { font-family: var(--font-ar-display); font-weight: 600; font-size: 36px; color: var(--ink-900); margin-top: 16px; }
.s-solution .pillar.is-feat .t { color: var(--paper); }
.s-solution .pillar .d { font-size: 20px; color: var(--fg-1); margin-top: 12px; line-height: 1.5; }
.s-solution .pillar.is-feat .d { color: var(--gold-200); }

/* ── Slide 4: Modules grid (12 cards) ─────────────────────────────────── */
.s-modules .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 32px; }
.s-modules .m-card { background: var(--white); border: 1px solid var(--hairline); border-radius: 14px; padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.s-modules .m-card .ic { width: 56px; height: 56px; border-radius: 12px; background: var(--paper-tint); display: grid; place-items: center; font-size: 28px; border: 1px solid var(--hairline); }
.s-modules .m-card .n { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.16em; color: var(--gold-700); }
.s-modules .m-card .t { font-family: var(--font-ar-display); font-weight: 600; font-size: 22px; color: var(--ink-900); }
.s-modules .m-card .d { font-size: 14px; color: var(--fg-2); margin-top: 4px; line-height: 1.45; }
.s-modules .m-card.is-gold { background: linear-gradient(135deg, var(--gold-200), var(--gold-100)); border-color: var(--gold-300); }
.s-modules .m-card.is-gold .ic { background: rgba(255,255,255,0.6); border-color: var(--gold-300); }

/* ── Slide 5: KPI strip ───────────────────────────────────────────────── */
.s-kpis { background: var(--brand-900); color: var(--paper); flex-direction: column; position: relative; }
.s-kpis::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201,168,95,0.18), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(59,135,114,0.15), transparent 50%);
}
.s-kpis > * { position: relative; z-index: 1; }
.s-kpis .pad { padding: 96px 120px 24px; }
.s-kpis .eyebrow, .s-kpis .eyebrow-ar { color: var(--gold-400); }
.s-kpis .h2 { color: var(--paper); }
.s-kpis .h2 .accent { color: var(--gold-400); }
.s-kpis .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 120px 80px; margin-top: 28px; }
.s-kpis .kpi { padding: 36px 28px; border-inline-start: 1px solid rgba(201,168,95,0.25); }
.s-kpis .kpi:first-child { border-inline-start: none; padding-inline-start: 0; }
.s-kpis .kpi .v { font-family: var(--font-en); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 132px; color: var(--gold-400); line-height: 1; letter-spacing: -0.02em; }
.s-kpis .kpi .v .sx { font-size: 64px; color: var(--gold-500); }
.s-kpis .kpi .l { font-family: var(--font-ar-display); font-weight: 600; font-size: 24px; color: var(--paper); margin-top: 12px; }
.s-kpis .kpi .e { font-family: var(--font-en); font-size: 16px; color: var(--gold-200); margin-top: 4px; font-style: italic; }
.s-kpis .foot { color: var(--gold-300); border-top-color: rgba(201,168,95,0.18); }

/* ── Slide 6: Quote ───────────────────────────────────────────────────── */
.s-quote { background: var(--paper); flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.s-quote .mark { font-family: var(--font-ar-display); font-size: 240px; color: var(--gold-500); line-height: 0.7; margin-bottom: 24px; }
.s-quote .body { font-family: var(--font-ar-display); font-weight: 400; font-size: 64px; color: var(--ink-900); line-height: 1.32; max-width: 1500px; text-align: center; padding: 0 120px; margin: 0 auto; }
.s-quote .body .accent { color: var(--gold-700); }
.s-quote .attr { display: flex; align-items: center; gap: 24px; margin-top: 60px; }
.s-quote .attr .av { width: 84px; height: 84px; background: var(--gold-200); color: var(--gold-800); border-radius: 999px; display: grid; place-items: center; font-family: var(--font-ar); font-weight: 600; font-size: 32px; border: 2px solid var(--gold-500); }
.s-quote .attr .nm { font-family: var(--font-ar-display); font-weight: 600; font-size: 28px; color: var(--ink-900); }
.s-quote .attr .role { font-family: var(--font-ar); font-size: 18px; color: var(--fg-3); margin-top: 4px; }

/* ── Slide 7: CTA ─────────────────────────────────────────────────────── */
.s-cta { background: linear-gradient(135deg, #1B4D3D 0%, #0E2A22 100%); color: var(--paper); flex-direction: column; }
.s-cta::before {
  content: ""; position: absolute; inset-inline-end: -200px; top: -200px; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(201,168,95,0.25), transparent 55%);
}
.s-cta > * { position: relative; z-index: 1; }
.s-cta .pad { padding: 120px 120px 80px; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.s-cta .eyebrow, .s-cta .eyebrow-ar { color: var(--gold-400); }
.s-cta .h1 { color: var(--paper); font-size: 168px; }
.s-cta .h1 .accent { color: var(--gold-400); }
.s-cta .sub { color: var(--gold-200); font-size: 32px; max-width: 1000px; line-height: 1.45; }
.s-cta .ctas { display: flex; gap: 20px; margin-top: 24px; }
.s-cta .ctas .btn { font-family: var(--font-ar); font-weight: 500; font-size: 28px; padding: 22px 44px; border-radius: 999px; }
.s-cta .ctas .btn.primary { background: var(--gold-500); color: var(--brand-900); }
.s-cta .ctas .btn.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(201,168,95,0.4); }
.s-cta .url { font-family: var(--font-mono); font-size: 24px; color: var(--gold-300); margin-top: 24px; }
.s-cta .foot { color: var(--gold-300); border-top-color: rgba(201,168,95,0.18); }
