/* الواجهة العامة: سينمائية بثلاث مساحات لون (حبر، برتقالي إشارة، ورق) */
.lp { background: var(--ink); color: #f2f0ea; overflow-x: hidden; }
.lp-light { background: var(--paper); color: var(--text); }
.lp-wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.lp .btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.lp .btn.ghost-d { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
@media (hover: hover) { .lp .btn.ghost-d:hover { border-color: #fff; } }
.muted-d { color: #8f8b9c; font-size: 13.5px; }

/* شكل التوقيع: زاوية مقصوصة فوق (من سهم الصعود) */
.cut { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
[dir='rtl'] .cut { clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px); }

/* ---------- الهيدر ---------- */
.lp-head { position: fixed; z-index: 60; inset-inline: 0; top: 0; height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 4vw, 40px); transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.lp-head.solid { background: rgba(13, 12, 18, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255, 255, 255, 0.08); }
.lp-light .lp-head { position: sticky; background: var(--ink); color: #fff; }
.lp-head .brand { color: #fff; }
.lp-nav { display: flex; gap: 22px; font-size: 14.5px; }
.lp-nav a, .lp-login, .lp-lang { color: #cfcbd9; text-decoration: none; }
.lp-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.lp-lang { font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.2); width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r); }
@media (hover: hover) { .lp-nav a:hover, .lp-login:hover { color: #fff; } }
@media (max-width: 860px) { .lp-nav { display: none; } .lp-login { display: none; } }

/* ---------- الانترو ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: opacity 0.5s ease 0.1s, visibility 0s 0.6s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro.skip { display: none; }
.intro-in { display: flex; align-items: flex-end; gap: 18px; direction: ltr; }
.intro-bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; }
.intro-bars i { width: 13px; background: var(--accent); border-radius: 2px; transform-origin: bottom; animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.intro-bars i:nth-child(1) { height: 40%; animation-delay: 0.05s; }
.intro-bars i:nth-child(2) { height: 70%; animation-delay: 0.17s; }
.intro-bars i:nth-child(3) { height: 100%; animation-delay: 0.29s; }
.intro-word { font-size: 64px; font-weight: 800; line-height: 0.8; color: #fff; letter-spacing: 0.02em; clip-path: inset(0 100% 0 0); animation: wipe 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.45s forwards; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@media (max-width: 560px) { .intro-word { font-size: 40px; } .intro-bars { height: 40px; } .intro-bars i { width: 8px; } }

/* ---------- الهيرو ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 150px; overflow: hidden; isolation: isolate; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: 0.32em; color: var(--accent); font-weight: 600; }
.hero-h { margin-top: 18px; font-size: clamp(44px, 7.4vw, 104px); line-height: 1.04; font-weight: 800; letter-spacing: -0.01em; }
.hero-h .ln { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-h .ln > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero-h .ln:nth-child(2) > span { transition-delay: 0.12s; }
.ready .hero-h .ln > span { transform: none; }
.hero-h .acc { color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: #c9c5d4; max-width: 520px; line-height: 1.75; }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-word { position: absolute; inset-inline: 0; bottom: -0.2em; font-size: clamp(90px, 21vw, 340px); font-weight: 800; line-height: 1; letter-spacing: 0.02em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09); white-space: nowrap; pointer-events: none; z-index: -1; transform: translateY(var(--py, 0)); }

/* المجرّب */
.cfg { background: #f7f5f0; color: var(--ink); padding: 26px; display: grid; gap: 18px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35); }
.cfg-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 700; font-size: 15px; }
.cfg-note { font-size: 12px; color: var(--muted); font-weight: 400; }
.cfg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cfg-chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(13, 12, 18, 0.16); background: #fff; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.cfg-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cfg-profile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; align-items: center; background: #fff; border: 1px solid rgba(13, 12, 18, 0.1); border-radius: var(--r-lg); padding: 16px; }
.cfg-avatar { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.cfg-count { display: flex; align-items: baseline; gap: 8px; }
.cfg-count strong { font-size: 30px; font-weight: 800; direction: ltr; }
.cfg-count span { color: var(--muted); font-size: 14px; }
.cfg-bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; direction: ltr; }
.cfg-bars i { flex: 1; background: var(--accent); border-radius: 2px; height: calc(var(--h, 20) * 1%); transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0.85; }
.cfg-l { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.cfg-l strong { color: var(--ink); font-size: 16px; }
.cfg input[type='range'] { width: 100%; accent-color: var(--accent); height: 28px; }
.cfg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(13, 12, 18, 0.1); }
.cfg-pl { display: block; font-size: 12.5px; color: var(--muted); }
.cfg-price { font-size: 30px; font-weight: 800; }

@media (max-width: 960px) {
  .hero { padding: 100px 0 90px; min-height: auto; }
  .hero-in { grid-template-columns: 1fr; }
  .cfg { padding: 20px; }
}

/* ---------- الشريط ---------- */
.marquee { direction: ltr; background: var(--accent); color: var(--ink); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -26px; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: mq 38s linear infinite; direction: ltr; }
.mq-item svg { flex: none; }
.mq-item { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; white-space: nowrap; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- الأرقام ---------- */
.numbers { background: var(--paper); color: var(--ink); padding: clamp(70px, 10vw, 130px) 0; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.nums .n { padding: 0 clamp(12px, 2vw, 28px); border-inline-start: 1px solid rgba(13, 12, 18, 0.14); display: grid; gap: 6px; }
.nums .n:first-child { border-inline-start: 0; padding-inline-start: 0; }
.nums strong { font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; line-height: 1; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.nums span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; gap: 36px 0; } .nums .n:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } }

/* ---------- الخطوات ---------- */
.how { padding: clamp(80px, 11vw, 150px) 0; background: var(--ink); }
.sec-h { font-size: clamp(32px, 4.6vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; }
.steps li { padding: 28px clamp(14px, 2.4vw, 32px) 0; border-top: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 10px; align-content: start; }
.steps li:nth-child(2) { margin-top: 70px; }
.steps li:nth-child(3) { margin-top: 140px; }
.step-n { font-size: clamp(54px, 7vw, 96px); font-weight: 800; line-height: 0.9; color: var(--accent); }
.steps h3 { font-size: 22px; }
.steps p { color: #bdb9c8; max-width: 300px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps li:nth-child(n) { margin-top: 0; } }

/* ---------- المنصات ---------- */
.plats { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.sec-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pgrid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ptile { position: relative; display: grid; gap: 4px; padding: 22px 20px 20px; background: #fff; border: 1px solid rgba(13, 12, 18, 0.08); text-decoration: none; color: var(--ink); min-height: 168px; align-content: end; transition: background 0.25s, color 0.25s; }
.ptile svg { position: absolute; top: 20px; inset-inline-start: 20px; }
.pt-name { font-size: 19px; font-weight: 700; }
.pt-meta, .pt-from { font-size: 13.5px; color: var(--muted); }
.pt-from bdi { color: var(--ink); font-weight: 700; }
@media (hover: hover) { .ptile:hover { background: var(--ink); color: #fff; } .ptile:hover .pt-meta, .ptile:hover .pt-from { color: #b9b5c6; } .ptile:hover .pt-from bdi { color: var(--accent); } }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } .ptile { min-height: 140px; padding: 16px; } .ptile svg { top: 16px; inset-inline-start: 16px; } .pt-name { font-size: 16px; } }

/* ---------- الدفع ---------- */
.pay { background: var(--accent); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.pay-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.pay-cards { display: grid; gap: 14px; }
.pay-card { background: var(--ink); color: #fff; padding: 26px 26px 24px; display: grid; gap: 8px; }
.pay-card.coupon { background: #fff; color: var(--ink); border: 2px dashed var(--ink); }
.pay-k { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; letter-spacing: 0.12em; opacity: 0.7; }
.pay-card h3 { font-size: 22px; }
.pay-card p { opacity: 0.8; }
@media (max-width: 860px) { .pay-in { grid-template-columns: 1fr; } }

/* ---------- API ---------- */
.api { background: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.api-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.api p { color: #bdb9c8; }
.term { margin: 0; background: #16151d; border: 1px solid rgba(255, 255, 255, 0.1); padding: 24px; border-radius: var(--r-lg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.8; color: #e8e6ef; overflow-x: auto; white-space: pre; text-align: left; }
.term .c { color: var(--accent); }
.term .o { color: #7ee2a8; }
@media (max-width: 860px) { .api-in { grid-template-columns: 1fr; } .term { font-size: 12.5px; padding: 18px; } }

/* ---------- الأسئلة ---------- */
.faq { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; }
.faq-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.qa details { border-top: 1px solid rgba(13, 12, 18, 0.14); }
.qa details:last-child { border-bottom: 1px solid rgba(13, 12, 18, 0.14); }
.qa summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform 0.25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 22px; color: var(--muted); max-width: 620px; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } }

/* ---------- النهاية ---------- */
.end { background: var(--accent); color: var(--ink); padding: clamp(90px, 12vw, 160px) 0; text-align: center; }
.end h2 { font-size: clamp(56px, 10vw, 140px); font-weight: 800; line-height: 1; }
.end p { margin: 14px 0 30px; font-size: 18px; }
.lp-foot { background: var(--ink); color: #cfcbd9; padding: 40px 0; }
.lp-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lp-foot .brand { color: #fff; }
.lp-foot nav { display: flex; gap: 20px; font-size: 14px; }
.lp-foot a { color: #cfcbd9; text-decoration: none; }

/* ---------- الظهور مع التمرير ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- صفحة الخدمات ---------- */
.svc-page { padding: 40px 0 80px; display: grid; gap: 20px; }
.svc-tools { display: grid; gap: 12px; position: sticky; top: 68px; z-index: 5; background: var(--paper); padding: 10px 0; }
.svc-list .grp { margin-top: 18px; }
.svc-list h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 10px 0; }
.svc-list .box { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-h .ln > span { transform: none; } .marquee-track { animation: none; } }
.lp main { overflow-x: clip; }
.chip svg, .btn svg { flex: none; width: 16px; height: 16px; }
[hidden] { display: none !important; }
@media (min-width: 721px) {
  .svc-list table.t { table-layout: fixed; }
  .svc-list .t th:nth-child(1) { width: 80px; }
  .svc-list .t th:nth-child(3) { width: 110px; }
  .svc-list .t th:nth-child(4), .svc-list .t th:nth-child(5) { width: 110px; }
  .svc-list .t th:nth-child(6) { width: 100px; }
  .svc-list .t .svc-cell { max-width: none; }
}
