/* الرئيسية على نظام بقية الموقع (store.css وworlds.css): الورق الفاتح، والحبر الكحلي، وخط Lalezar للعناوين،
   ولون كل عالم في لوحه. تُحمَّل في index.html فقط بعد worlds.css.
   البوابة (.lx) يولّدها tools/build-worlds.mjs. النسخة الداكنة السابقة محفوظة في _lux-20261130/ */

.lx, .lx-worlds { --ease: cubic-bezier(.2, .8, .2, 1); }
#home h2, #home h3 { text-wrap: balance; }
#home p, #home li { text-wrap: pretty; }

/* تتبّع الطلب في الجوال: القائمة مخفية تحت 860، فيبقى بجانب السلة */
.top-track { display: none; background: none; border: 0; padding: 8px 4px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.top-track:hover { color: var(--ink); }

/* ===== الواجهة: ورقة بيضاء كصفحات العوالم ===== */
.lx { --rc: #0E8A7D; position: relative; isolation: isolate; overflow: hidden; background: #fff; color: var(--ink); padding: 0 0 72px; }
/* هالة خفيفة بلون الكلمة المتبدّلة */
.lx-aura { position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none; }
.lx-aura i { position: absolute; border-radius: 50%; display: block; transition: background .9s ease; will-change: transform;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rc) 16%, transparent), transparent); }
.lx-aura i:nth-child(1) { width: 760px; height: 520px; top: -240px; right: -180px; animation: drift 16s ease-in-out infinite alternate; }
.lx-aura i:nth-child(2) { width: 520px; height: 400px; top: 140px; left: -220px; opacity: .7; animation: drift 21s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-80px, 60px, 0) scale(1.1); } }

.lx-hero { position: relative; text-align: center; padding-top: 84px; padding-bottom: 64px; }
.lx h1 { margin: 0; font-family: var(--display); font-weight: 400; color: var(--ink); font-size: clamp(54px, 8.6vw, 112px); line-height: 1.12; letter-spacing: -.5px; }
.lx h1 .ln { display: inline-block; }
.lx h1 .rot { color: var(--rc); }
/* الكلمات مكدّسة في خانة واحدة (worlds.js): تتلاشى واحدة في الأخرى، فلا فراغ ولا قفز في السطر */
.lx h1 .rot.stack { display: inline-grid; justify-items: center; transition: none; }
.lx .rw { grid-area: 1 / 1; color: var(--rc); opacity: 0; translate: 0 .16em; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.lx .rw.on { opacity: 1; translate: 0 0; }
.lx .rw.off { translate: 0 -.16em; }
.lx-lead { margin: 22px auto 0; max-width: 30em; text-wrap: balance; font-size: 19px; line-height: 1.9; color: var(--ink-soft); }
.lx-cta { margin-top: 32px; display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
/* الزر الأساسي بزر المتجر نفسه */
.lx-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 12px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 16.5px; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s; }
.lx-btn:hover { background: var(--stamp); border-color: var(--stamp); transform: translateY(-2px); }
.lx-btn:active { transform: scale(.97); transition-duration: .1s; }
.lx-btn span { display: inline-block; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(4px); } }
.lx-link { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink); font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 6px; transition: color .2s, text-decoration-color .2s; }
.lx-link:hover { color: var(--stamp); text-decoration-color: currentColor; }

/* ===== ألواح العوالم: بطاقات بيضاء بلون عالمها ===== */
.lx-worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; scroll-margin-top: 90px; }
.lx-world {
  position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 18px;
  background: #fff; border: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.lx-world:is(:hover, :focus-visible, .on) { transform: translateY(-3px); border-color: color-mix(in srgb, var(--w) 55%, var(--rule)); box-shadow: 0 18px 32px -24px rgba(20, 33, 61, .55); }
.lx-world:active { transform: scale(.985); transition-duration: .1s; }
.lx-world:focus-visible { outline: 3px solid var(--w); outline-offset: 3px; }
.lx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lx-num { font: 400 22px/1 var(--display); color: var(--w); }
.lx-tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 15px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: color-mix(in srgb, var(--w) 10%, #fff); color: var(--w); transition: background-color .3s, color .3s; }
.lx-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lx-world:is(:hover, :focus-visible, .on) .lx-tab { background: var(--w); color: #fff; }

/* لمحة من العمل: ورقة تطلّ من إطار بلون العالم وتُقصّ من الأسفل */
.lx-vis { position: relative; height: 178px; margin: 18px 0 0; padding: 18px 20px 0; border-radius: 12px; overflow: hidden;
  background: color-mix(in srgb, var(--w) 12%, var(--paper)); }
.lx-vis > * { position: relative; height: 100%; overflow: hidden; border-radius: 6px 6px 0 0; background: #fff;
  box-shadow: 0 10px 24px -12px rgba(20, 33, 61, .35); transform: translateY(10px); transition: transform .6s var(--ease); }
.lx-world:is(:hover, :focus-visible, .on) .lx-vis > * { transform: translateY(0); }
.lx-vis .doc { width: 100%; }
/* الصور المؤقتة (إلى أن تصل صور من أعمال محلولة) */
.mk { padding: 18px 20px; color: var(--ink); font-size: 12px; line-height: 1.6; text-align: start; }
.mk b { display: block; font-family: var(--display); font-weight: 400; }
.mk-cover { background: #13233F; color: #F3EEE4; }
.mk-cover b { font-size: 22px; color: #fff; }
.mk-cover span { display: block; color: rgba(243, 238, 228, .72); }
.mk-cover i { display: block; width: 38px; height: 2px; margin: 12px 0 10px; background: #C8A564; }
.mk-cover ol { margin: 0; padding-inline-start: 16px; color: rgba(243, 238, 228, .82); font-size: 11.5px; }
.mk-cover li::marker { color: #C8A564; }
.mk-shop { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; padding: 14px; }
.mk-shop img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.mk-shop > div { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.mk-shop b { font-size: 16px; line-height: 1.4; }
.mk-stars { color: #D9A42A; font-size: 11px; letter-spacing: .14em; }
.mk-shop em { margin-top: 4px; align-self: start; white-space: nowrap; padding: 5px 10px; border-radius: 999px; background: #B04A10; color: #fff; font-style: normal; font-weight: 700; font-size: 11px; }
.mk-invite { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: #FBF7EF;
  box-shadow: inset 0 0 0 8px #FBF7EF, inset 0 0 0 9px rgba(200, 165, 100, .7); color: #6E5F47; }
.mk-invite small { font-size: 11px; }
.mk-invite b { font-size: 24px; color: #8A3A5E; margin-top: 4px; }
.mk-invite span { font-weight: 700; font-size: 15px; color: var(--ink); }
.mk-invite i { width: 7px; height: 7px; margin: 8px 0; transform: rotate(45deg); background: #C8A564; }

.lx-world h2 { margin: 20px 0 8px; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.35; color: var(--ink); }
.lx-world p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.8; }
.lx-world ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15px; color: var(--ink-soft); }
.lx-world li { padding: 6px 0; border-top: 1px dashed var(--rule); }
.lx-world li:first-child { border-top: 0; }
.lx-go { margin-top: auto; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15.5px; color: var(--w); }
.lx-go i { position: relative; flex: 1; height: 1px; background: var(--rule); }
.lx-go i::before { content: ""; position: absolute; inset: 0; background: var(--w); transform: scaleX(.18); transform-origin: right; transition: transform .6s var(--ease); }
.lx-go i::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-left: 1.5px solid var(--w); border-bottom: 1.5px solid var(--w); transform: rotate(45deg); }
.lx-world:is(:hover, :focus-visible, .on) .lx-go i::before { transform: none; }

/* الانتقال إلى صفحة العالم: لسان اللوح يصير الفاصل (View Transitions) */
.lx-world[data-w="learning"] .lx-tab { view-transition-name: tab-learning; }
.lx-world[data-w="business"] .lx-tab { view-transition-name: tab-business; }
.lx-world[data-w="commerce"] .lx-tab { view-transition-name: tab-commerce; }
.lx-world[data-w="personal"] .lx-tab { view-transition-name: tab-personal; }

/* ===== آراء العملاء: صف واحد يتحرك ببطء ويقف تحت الماوس أو الإصبع (home.js) ===== */
.reviews.marquee { display: block; overflow: hidden; margin-inline: 0; padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent); }
.rev-track { display: flex; width: max-content; animation: revRoll var(--dur, 40s) linear infinite; }
.rev-track .review { flex: none; width: 340px; margin-inline-end: 16px; }
.reviews.marquee:is(:hover, :focus-within, :active) .rev-track { animation-play-state: paused; }
@keyframes revRoll { to { transform: translateX(50%); } }

/* ===== الافتتاحية: قصيرة وبلا ضباب (الصنف intro يضاف في <head>) ===== */
@keyframes lxUp { from { opacity: 0; translate: 0 16px; } }
@keyframes lxFade { from { opacity: 0; } }
@keyframes lxPanel { from { opacity: 0; translate: 0 24px; } }
.intro .lx h1 .ln { animation: lxUp .55s var(--ease) both; }
.intro .lx h1 .ln:first-child { animation-delay: .05s; }
.intro .lx h1 .ln:last-child { animation-delay: .14s; }
.intro .lx-lead { animation: lxUp .55s var(--ease) both .26s; }
.intro .lx-cta { animation: lxUp .55s var(--ease) both .34s; }
.intro .lx-aura { animation: lxFade 1.2s ease both; }
.intro .lx-world:not(.rv) { animation: lxPanel .7s var(--ease) both; }
.intro .lx-world:not(.rv):nth-child(1) { animation-delay: .42s; }
.intro .lx-world:not(.rv):nth-child(2) { animation-delay: .5s; }
.intro .lx-world:not(.rv):nth-child(3) { animation-delay: .58s; }
.intro .lx-world:not(.rv):nth-child(4) { animation-delay: .66s; }

/* ===== الجوال ===== */
@media (max-width: 1000px) {
  .lx-worlds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top-track { display: inline-block; margin-inline-start: auto; }
  .top-track + .cart-btn { margin-inline-start: 10px; }
}
@media (max-width: 640px) {
  /* في الرئيسية الألواح نفسها هي العوالم، فشريط التبويبات المكرّر يختفي ويقصر رأس الصفحة */
  body:has(#home:not([hidden])) .wtabs { display: none; }
  .lx { padding-bottom: 48px; }
  .lx-hero { padding-top: 56px; padding-bottom: 44px; }
  .lx h1 { font-size: clamp(50px, 15vw, 70px); }
  .lx-lead { font-size: 17px; margin-top: 16px; }
  .lx-cta { flex-direction: column; gap: 14px; margin-top: 26px; }
  .lx-btn { width: 100%; justify-content: center; padding: 15px 24px; }
  .lx-aura i:nth-child(1) { width: 520px; height: 420px; right: -220px; top: -160px; }
  .lx-aura i:nth-child(2) { width: 380px; height: 320px; left: -220px; top: 260px; }
  .lx-worlds { grid-template-columns: 1fr; gap: 14px; }
  .lx-world { padding: 18px 18px 20px; }
  .lx-vis { height: 146px; margin-top: 16px; padding: 14px 16px 0; }
  .lx-world h2 { font-size: 25px; margin: 16px 0 8px; }
  .lx-world p { display: none; }
  .rev-track .review { width: 280px; }
  /* زر واتساب العائم لا يغطي رقم الجوال في آخر التذييل */
  footer { padding-bottom: 92px; }
}

/* «تقليل الحركة»: تلاشٍ هادئ بلا إزاحة، والتقييمات شريط يُسحب باليد */
@media (prefers-reduced-motion: reduce) {
  @keyframes lxUp { from { opacity: 0; } }
  @keyframes lxPanel { from { opacity: 0; } }
  .lx-aura i, .lx-btn span { animation: none; }
  .lx-vis > * { transform: none; transition: none; }
  .lx-world:is(:hover, :focus-visible, .on), .lx-world:active, .lx-btn:hover, .lx-btn:active { transform: none; }
  .reviews.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rev-track { animation: none; }
}
