/* الصفحة التعريفية العامة (Pages/Shared/_Landing.cshtml) - مستقلة تمامًا عن app-shell.css عمدًا:
   زائر غير مسجّل دخوله بيشوفها على "/"، فمفيش Sidebar ولا Bootstrap. نفس هوية النظام (كحلي/ذهبي، Cairo).
   عرض سلايدات بالأسهم (wwwroot/js/landing.js)؛ من غير JavaScript السلايدات بتظهر تحت بعض. */
:root {
  --lp-navy: #0F1B33;
  --lp-navy-2: #182A4E;
  --lp-gold: #C9A24B;
  --lp-gold-dark: #9C7A2E;
  --lp-blue: #2952CC;
  --lp-ink: #1D2333;
  --lp-muted: #5B6272;
  --lp-bg: #F3F4F7;
  --lp-surface: #FFFFFF;
  --lp-line: #D8DCE6;
  --lp-radius: 14px;
  --lp-header-h: 64px;
  --lp-controls-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; }

body.lp {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--lp-ink);
  background: var(--lp-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
:where(.lp a) { color: inherit; }
.lp img { max-width: 100%; height: auto; display: block; }
.lp-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }

.lp-skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--lp-gold); color: var(--lp-navy); padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.lp-skip:focus { top: 10px; }

/* الأزرار */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.5;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.lp-btn:focus-visible, .lp-nav a:focus-visible, .lp-shot:focus-visible, .lp-arrow:focus-visible, .lp-dot:focus-visible, .lp-brand:focus-visible {
  outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--lp-blue);
}
.lp-btn-gold { background: var(--lp-gold); color: var(--lp-navy); }
.lp-btn-gold:hover { background: #D8B25C; transform: translateY(-1px); }
.lp-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.lp-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.lp-btn-lg { padding: 13px 34px; font-size: 18px; }

/* الهيدر */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 27, 51, .97); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-header-row { display: flex; align-items: center; gap: 28px; min-height: var(--lp-header-h); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.lp-brand img { height: 48px; width: auto; }
.lp-nav { display: flex; gap: 22px; margin-inline-end: auto; }
.lp-nav a { color: #C9D1E3; text-decoration: none; font-weight: 600; padding: 6px 2px; }
.lp-nav a:hover { color: #fff; }

/* السلايدات: من غير JS بتظهر كلها تحت بعض؛ مع JS بتتكدّس في نفس الخلية ويظهر واحد بس */
.lp-slide { padding: 64px 0; position: relative; overflow: hidden; }
.lp-slide-alt { background: var(--lp-surface); }
.lp-slide-dark { background: var(--lp-navy); color: #fff; }
.lp-slide-dark::before { content: ""; position: absolute; inset-inline-start: -160px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: var(--lp-navy-2); }
.lp-slide > .lp-wrap { position: relative; }

.lp-js .lp-deck { overflow: hidden; display: grid; min-height: calc(100vh - var(--lp-header-h) - var(--lp-controls-h)); min-height: calc(100svh - var(--lp-header-h) - var(--lp-controls-h)); }
.lp-js .lp-slide {
  grid-area: 1 / 1; display: flex; align-items: center; padding: 40px 0;
  visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(0);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.lp-js .lp-slide > .lp-wrap { width: min(1180px, 100% - 40px); }
.lp-js .lp-slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.lp-js .lp-slide.from-next:not(.is-active), .lp-js .lp-slide.from-prev:not(.is-active) { transform: none; }
.lp-js .lp-slide:not(.is-active) { transform: translateX(-24px); }
@media (prefers-reduced-motion: no-preference) {
  .lp-js .lp-slide.is-active.from-next { animation: lp-in-next .35s ease both; }
  .lp-js .lp-slide.is-active.from-prev { animation: lp-in-prev .35s ease both; }
}
@keyframes lp-in-next { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes lp-in-prev { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-js .lp-slide { transition: none; } }

/* البطل */
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lp-badge { display: inline-block; background: rgba(201,162,75,.16); color: var(--lp-gold); border: 1px solid rgba(201,162,75,.5); padding: 4px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.lp-hero-grid h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.35; margin: 18px 0 14px; font-weight: 800; }
.lp-hero-grid p { color: #C9D1E3; font-size: 18px; margin: 0 0 28px; max-width: 34em; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-hero-shot .lp-shot { box-shadow: 0 24px 60px rgba(0,0,0,.45); border-color: rgba(255,255,255,.18); }

/* لقطات الشاشة */
.lp-shot {
  display: block; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius);
  padding: 6px; box-shadow: 0 12px 32px rgba(15, 27, 51, .14); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lp-shot:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 27, 51, .22); }
.lp-shot img { width: 100%; border-radius: 9px; }
.lp-js .lp-shots > .lp-shot img, .lp-js .lp-hero-shot .lp-shot img { max-height: 56vh; width: auto; margin-inline: auto; }
.lp-js .lp-shots-2 > .lp-shot img { max-height: 46vh; }

/* محتوى السلايد */
.lp-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 52px; align-items: center; }
.lp-eyebrow { margin: 0 0 6px; color: var(--lp-gold-dark); font-weight: 800; font-size: 15px; }
.lp-copy h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; color: var(--lp-navy); font-weight: 800; }

.lp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lp-points li {
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 12px; padding: 14px 18px; color: var(--lp-muted); font-size: 16px;
}
.lp-slide-alt .lp-points li { background: var(--lp-bg); }
.lp-points strong { display: block; color: var(--lp-navy); font-size: 17px; }

.lp-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.lp-flow span { background: var(--lp-navy-2); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; }
.lp-flow i { width: 0; height: 0; border-block: 6px solid transparent; border-inline-end: 9px solid var(--lp-gold); }

.lp-shots { display: grid; gap: 18px; justify-items: center; }
.lp-shots-2 { grid-template-columns: 1fr 1fr; align-items: start; justify-items: stretch; }
.lp-shots-2 .lp-shot:nth-child(2) { margin-top: 28px; }

/* السلايد الأخير */
.lp-slide-center { text-align: center; }
.lp-final-inner h2 { margin: 0 0 8px; font-size: clamp(28px, 3.6vw, 42px); }
.lp-final-inner p { margin: 0 0 26px; color: #C9D1E3; font-size: 18px; }
.lp-final-inner .lp-domain { margin: 28px 0 0; color: var(--lp-gold); font-weight: 800; font-size: 26px; letter-spacing: .5px; }

/* شريط التحكم (أسهم + نقاط + عدّاد) */
.lp-controls { position: sticky; bottom: 0; z-index: 40; background: rgba(15, 27, 51, .97); border-top: 1px solid rgba(255,255,255,.1); }
.lp-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--lp-controls-h); }
.lp-arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, opacity .15s ease;
}
.lp-arrow:hover:not(:disabled) { background: var(--lp-gold); border-color: var(--lp-gold); color: var(--lp-navy); }
.lp-arrow:disabled { opacity: .3; cursor: default; }
.lp-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; flex: 1; }
.lp-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.lp-dot.is-active { background: var(--lp-gold); transform: scale(1.3); }
.lp-counter { color: #C9D1E3; font-weight: 700; font-size: 14px; min-width: 52px; text-align: center; direction: ltr; }

.lp-footer { background: #0A1325; color: #9AA6C4; padding: 20px 0; font-size: 14px; }
.lp-footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* من غير JS: السلايدات تحت بعض بفواصل واضحة */
html:not(.lp-js) .lp-slide + .lp-slide { border-top: 1px solid var(--lp-line); }

/* الموبايل والتابلت */
@media (max-width: 960px) {
  .lp-hero-grid, .lp-split { grid-template-columns: 1fr; gap: 28px; }
  .lp-js .lp-slide { align-items: flex-start; padding: 28px 0 36px; }
  .lp-js .lp-shots > .lp-shot img, .lp-js .lp-hero-shot .lp-shot img { max-height: 42vh; }
  .lp-js .lp-shots-2 > .lp-shot img { max-height: 34vh; }
}
@media (max-width: 640px) {
  .lp-nav { display: none; }
  .lp-header-row { justify-content: space-between; }
  .lp-shots-2 { grid-template-columns: 1fr; }
  .lp-shots-2 .lp-shot:nth-child(2) { margin-top: 0; }
  .lp-btn-lg { padding: 12px 26px; font-size: 17px; }
  .lp-dots { gap: 5px; }
  .lp-dot { width: 8px; height: 8px; }
  .lp-footer-row { flex-direction: column; text-align: center; }
}

/* سلايد المعلومات التقنية: نقاط في شبكة عمودين */
.lp-tech { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 18px; }
@media (max-width: 900px) { .lp-tech { grid-template-columns: 1fr; } }
