/* =========================================================
   landing.css — landing page (reference-style layout, RTL, px)
   Palette: Orange #5C0B1F · Imperial #0C2D4A · Yellow #1F4E79 · Cultured #F2F2F2
   ========================================================= */
.lp {
  --orange: #5C0B1F; --orange-soft: #F3E4E8;
  --purple: #0C2D4A; --purple-soft: #E2E9F0; --lilac: #9DB3C8;
  --yellow: #1F4E79; --yellow-soft: #E2E9F0;
  --cream: #F2F2F2; --paper: #DDDDDD;
  --ink: #0E1A26; --ink-2: #4A5563; --line: #D6D6D6;
  --head: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
  background: var(--cream); color: var(--ink);
}
.lp h1, .lp h2, .lp h3 { font-family: var(--head); color: var(--ink); }
.lp-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.c-orange { color: var(--orange); } .c-purple { color: var(--purple); } .c-yellow { color: var(--yellow); }

/* ---------- Type accents ---------- */
.lp-eyebrow { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--orange); }
.lp-eyebrow--yellow { color: var(--yellow); }
.mark { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; z-index: -1; right: -4px; left: -4px; bottom: -6px; height: 14px;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C45 3 120 2 197 6M18 12C70 8 130 8 185 10' fill='none' stroke='%235C0B1F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: scaleX(0); transform-origin: right; transition: transform .9s var(--ease) .35s;
}
.mark--orange::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C45 3 120 2 197 6M18 12C70 8 130 8 185 10' fill='none' stroke='%235C0B1F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.mark--purple::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C45 3 120 2 197 6M18 12C70 8 130 8 185 10' fill='none' stroke='%230C2D4A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.is-in .mark::after, html:not(.js) .mark::after { transform: scaleX(1); }

/* ---------- Buttons (pill, curtain hover) ---------- */
.lp-btn {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border: 0; border-radius: 999px; background: var(--orange); color: #fff;
  font-family: var(--head); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color .4s;
  box-shadow: 0 8px 20px rgba(92,11,31,.28);
}
.lp-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--purple); transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.lp-btn:hover::before { transform: scaleY(1); }
.lp-btn--sm { padding: 9px 20px; font-size: 13px; }
.lp-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.lp-btn--ghost::before { background: var(--ink); }
.lp-btn--ghost:hover { color: #fff; }
.lp-btn--light { background: #fff; color: var(--purple); box-shadow: none; }
.lp-btn--light::before { background: var(--orange); }
.lp-btn--light:hover { color: #fff; }
.lp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.lp-link:hover { color: var(--orange); }
.lp-link--light { color: #fff; } .lp-link--light:hover { color: var(--yellow); }

/* ---------- Sparkles ---------- */
.sp { position: absolute; width: 22px; height: 22px; pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
.sp--lg { width: 30px; height: 30px; } .sp--sm { width: 14px; height: 14px; animation-delay: -1.4s; }
.sp--o { fill: var(--orange); } .sp--p { fill: var(--purple); animation-delay: -.8s; } .sp--y { fill: var(--yellow); animation-delay: -2s; } .sp--w { fill: #fff; }

/* ---------- Header ---------- */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(242,242,242,.88); backdrop-filter: blur(12px); transition: box-shadow .3s; }
.lp-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--ink); }
.lp-logo b { color: var(--orange); }
.lp-logo img { height: 38px; width: auto; }
.lp-logo__mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--purple); color: #fff; font-size: 16px; }
.lp-nav { display: flex; gap: 30px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.lp-nav a { position: relative; padding: 4px 0; transition: color .25s; }
.lp-nav a::after { content: ""; position: absolute; right: 0; bottom: -2px; width: 100%; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.lp-nav a:hover { color: var(--ink); } .lp-nav a:hover::after { transform: scaleX(1); }
.lp-header__cta { display: flex; align-items: center; gap: 18px; }

/* ---------- Hero ---------- */
.lp-hero { padding: 56px 0 88px; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.lp-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: 54px; line-height: 1.35; font-weight: 800; margin-bottom: 18px; }
.lp-hero__text > p { max-width: 460px; font-size: 16px; color: var(--ink-2); margin-bottom: 28px; }
.lp-search { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 7px 18px 7px 7px; background: #fff; border-radius: 999px; box-shadow: 0 12px 32px rgba(14,26,38,.08); }
.lp-search > [data-lucide] { color: var(--ink-2); }
.lp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.lp-search button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--orange); color: #fff; cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.lp-search button:hover { background: var(--purple); transform: translateX(-3px); }
.lp-hero__stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 32px 0 0; }
.lp-hero__stats strong { display: block; font-family: var(--head); font-size: 28px; font-weight: 800; line-height: 1.2; }
.lp-hero__stats span { font-size: 13px; color: var(--ink-2); }

.lp-hero__art { position: relative; height: 440px; }
.lp-hero__art::before { content: ""; position: absolute; inset: -40px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); pointer-events: none; }
.lp-hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-hero__lines path { fill: none; stroke: var(--ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; animation: dash 18s linear infinite; }
.lp-tile { position: absolute; animation: bob 7s ease-in-out infinite; }
.lp-tile--a { right: 6%; top: 14%; width: 34%; }
.lp-tile--b { right: 44%; top: 0; width: 22%; animation-delay: -2s; }
.lp-tile--c { left: 4%; top: 30%; width: 40%; animation-delay: -4s; }
.lp-tile--d { right: 16%; top: 62%; width: 28%; animation-delay: -5.5s; }

/* ---------- Art tile ---------- */
.art { position: relative; aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; }
.art__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: transform .7s var(--ease); }
.art__device { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 22%; box-shadow: 4px 4px 0 var(--ink); transition: transform .5s var(--ease); }
.art__device [data-lucide] { width: 46%; height: 46%; color: var(--ink); stroke-width: 1.8; }

/* ---------- Sections ---------- */
.lp-section { padding: 96px 0; position: relative; }
.lp-section--tight { padding: 40px 0 96px; }
.lp-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.lp-head h2, .lp-why__head h2 { font-size: 38px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.lp-head p, .lp-why__head p { color: var(--ink-2); font-size: 15px; }

/* Why */
#why { background: #fff; }
.lp-why { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
.lp-why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-feat h3 { font-size: 16px; font-weight: 700; margin: 18px 0 6px; }
.lp-feat p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.lp-ico { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; }
.lp-ico::before { content: ""; position: absolute; width: 40px; height: 40px; border-radius: 50%; top: 4px; right: 0; transition: transform .5s var(--ease); }
.lp-ico [data-lucide] { position: relative; width: 30px; height: 30px; color: var(--ink); stroke-width: 1.7; }
.lp-ico--orange::before { background: var(--orange); opacity: .85; }
.lp-ico--purple::before { background: var(--lilac); }
.lp-ico--yellow::before { background: var(--yellow); opacity: .8; }
.lp-feat:hover .lp-ico::before { transform: translate(-8px, 6px) scale(1.1); }

/* Courses */
.lp-panel { position: relative; padding: 64px 48px; background: var(--paper); border-radius: 32px; }
.lp-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.lp-pill { position: relative; padding: 9px 20px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .25s; }
.lp-pill:hover { border-color: var(--ink); color: var(--ink); }
.lp-pill.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.lp-pill__tag { position: absolute; top: -10px; left: -8px; padding: 1px 8px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 10px; }
.lp-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-course { display: flex; flex-direction: column; }
.lp-course[hidden] { display: none; }
.lp-course__cover { position: relative; margin-bottom: 16px; transition: transform .5s var(--ease); }
.lp-course__cover img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 2px solid var(--ink); border-radius: 14px; }
.lp-course__year { position: absolute; top: 12px; right: 12px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; }
.lp-course:hover .lp-course__cover { transform: translateY(-6px) rotate(-1deg); }
.lp-course:hover .art__device { transform: translate(-50%, -50%) rotate(-8deg) scale(1.06); }
.lp-course:hover .art__bg { transform: scale(1.06); }
.lp-course h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.lp-course > p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; flex: 1; }
.lp-course__meta { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px; }
.lp-course__meta span { display: inline-flex; align-items: center; gap: 6px; }
.lp-course__meta span:first-child [data-lucide] { color: var(--orange); width: 15px; height: 15px; }
.lp-course__meta span:last-child [data-lucide] { color: var(--purple); width: 15px; height: 15px; }
.lp-course__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.lp-course__foot strong { font-family: var(--head); font-size: 18px; }
.lp-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-2); }

/* Process */
.lp-steps { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.lp-steps__line { position: absolute; top: 10px; right: 6%; width: 88%; height: 120px; z-index: 0; }
.lp-steps__line path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 6 8; opacity: .6; animation: dash 20s linear infinite; }
.lp-step { position: relative; z-index: 1; text-align: center; }
.lp-step:nth-child(odd) { margin-top: 40px; }
.lp-step__blob { position: relative; display: grid; place-items: center; width: 108px; height: 108px; margin: 0 auto 20px; border: 2px solid var(--ink); border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; box-shadow: 5px 5px 0 var(--ink); transition: transform .5s var(--ease), border-radius 1s var(--ease); }
.lp-step__blob [data-lucide] { width: 38px; height: 38px; color: var(--ink); stroke-width: 1.8; }
.lp-step__blob b { position: absolute; top: -10px; left: -10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-family: var(--head); font-size: 14px; }
.lp-step__blob--orange { background: var(--orange); }
.lp-step__blob--purple { background: var(--lilac); }
.lp-step__blob--yellow { background: var(--yellow); }
.lp-step__blob--lilac { background: var(--orange-soft); }
.lp-step:hover .lp-step__blob { transform: translateY(-6px) rotate(-6deg); border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%; }
.lp-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.lp-step p { font-size: 13.5px; color: var(--ink-2); max-width: 220px; margin: 0 auto; }

/* About */
.lp-about { position: relative; overflow: hidden; display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; padding: 56px 64px; background: var(--purple); border-radius: 140px 40px 140px 40px; color: #fff; }
.lp-about__blob { position: absolute; width: 260px; height: 260px; left: -70px; top: -90px; border-radius: 50%; background: var(--orange); animation: drift 14s ease-in-out infinite alternate; }
.lp-about__blob::after { content: ""; position: absolute; width: 120px; height: 120px; right: -140px; bottom: -260px; border-radius: 50%; background: var(--yellow); opacity: .9; }
.lp-about__photo { position: relative; z-index: 1; width: 220px; height: 220px; margin: 0 auto; border-radius: 50%; padding: 8px; background: conic-gradient(var(--orange), var(--yellow), var(--orange)); animation: spin 14s linear infinite; }
.lp-about__photo img, .lp-about__photo span { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--purple); object-fit: cover; animation: spin 14s linear infinite reverse; }
.lp-about__photo span { display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-family: var(--head); font-size: 72px; font-weight: 800; }
.lp-about__text { position: relative; z-index: 1; }
.lp-about h2 { color: #fff; font-size: 36px; margin-bottom: 12px; }
.lp-about__text > p { color: rgba(255,255,255,.8); max-width: 520px; }
.lp-about__stats { display: flex; gap: 36px; list-style: none; padding: 0; margin: 24px 0 28px; }
.lp-about__stats strong { display: block; font-family: var(--head); font-size: 28px; font-weight: 800; color: var(--yellow); line-height: 1.2; }
.lp-about__stats li:nth-child(2) strong { color: var(--orange); }
.lp-about__stats li:nth-child(3) strong { color: #fff; }
.lp-about__stats span { font-size: 13px; color: rgba(255,255,255,.7); }
.lp-about__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Footer */
.lp-footer { padding: 48px 0 24px; background: var(--cream); border-top: 1px solid var(--line); }
.lp-footer__top { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; padding-bottom: 28px; }
.lp-footer__top p { margin-top: 12px; max-width: 360px; font-size: 13px; color: var(--ink-2); }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; font-weight: 500; }
.lp-footer__links a:hover { color: var(--orange); }
.lp-socials { display: flex; gap: 10px; }
.lp-socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; transition: all .3s var(--ease); }
.lp-socials a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }
.lp-socials [data-lucide] { width: 16px; height: 16px; }
.lp-footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.lp-footer__bottom a:hover { color: var(--orange); }

/* ---------- Keyframes ---------- */
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(45deg); opacity: .6; } }
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lp-why { grid-template-columns: 1fr; gap: 32px; }
  .lp-why__grid { grid-template-columns: repeat(2, 1fr); }
  .lp-courses { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .lp-steps__line { display: none; }
  .lp-step:nth-child(odd) { margin-top: 0; }
}
@media (max-width: 860px) {
  .lp-nav { display: none; }
  .lp-hero__grid { grid-template-columns: 1fr; }
  .lp-hero__art { height: 360px; max-width: 480px; width: 100%; margin: 0 auto; }
  .lp-about { grid-template-columns: 1fr; text-align: center; border-radius: 48px; padding: 48px 28px; }
  .lp-about__text > p { margin: 0 auto; }
  .lp-about__stats, .lp-about__cta { justify-content: center; }
  .lp-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-container { padding: 0 16px; }
  .lp-header__cta .lp-link { display: none; }
  .lp-hero { padding: 32px 0 56px; }
  .lp-hero h1 { font-size: 36px; }
  .lp-hero__stats { gap: 24px; }
  .lp-hero__art { height: 300px; }
  .lp-section { padding: 64px 0; }
  .lp-head h2, .lp-why__head h2 { font-size: 28px; }
  .lp-why__grid, .lp-courses, .lp-steps { grid-template-columns: 1fr; }
  .lp-panel { padding: 40px 16px; border-radius: 24px; }
  .lp-about__photo { width: 170px; height: 170px; }
  .lp-about h2 { font-size: 28px; }
  .lp-about__stats { gap: 20px; }
  .lp-footer__bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .mark::after { transform: scaleX(1); }
}

/* =========================================================
   Scroll motion
   ========================================================= */
.lp-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 100; pointer-events: none; }
.lp-progress span { display: block; height: 100%; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: right; background: linear-gradient(270deg, var(--orange), var(--purple) 60%, var(--yellow)); }

.lp-header__inner { transition: height .35s var(--ease); }
.lp-header.is-scrolled .lp-header__inner { height: 64px; }

/* Reveal variants (default = up, from site.css) */
.js [data-reveal="right"] { transform: translateX(-48px); }
.js [data-reveal="left"]  { transform: translateX(48px); }
.js [data-reveal="zoom"]  { transform: scale(.86); }
.js [data-reveal="tilt"]  { transform: translateY(48px) rotate(-3deg); transform-origin: bottom right; }
.js [data-reveal].is-in   { transform: none; }

/* Parallax & scale use the individual `translate` / `scale` properties so they stack with animations */
[data-speed] { will-change: translate; }
[data-scale-in] { scale: var(--s, 1); will-change: scale; }
.lp-steps__line path[mask] { opacity: .7; }
.lp-steps__line mask path { stroke: #fff; stroke-width: 8; stroke-dasharray: 1; animation: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .lp-progress { display: none; }
  [data-speed] { translate: none !important; }
  [data-scale-in] { scale: 1 !important; }
}
