/* ============================================================================
   landing.css - صفحة "home" العامة (زائر غير مسجّل دخول) - تعريف بدوكسا
   وبالشركة المُركَّب عليها النظام. ملف مستقل عن app.css عمداً: الصفحة دي
   محتاجة معالجة بصرية مختلفة تمامًا (Hero، أقسام تسويقية كبيرة) عن شاشات
   النظام الداخلية، فمفيش داعي نحمّل app.css بكلاسات مالهاش لازمة غير هنا.
   بس بناخد نفس الألوان الأساسية من هوية دوكسا (الأزرق الكحلي + الأزرق
   الفاتح) عشان الاستمرارية البصرية بين الصفحة دي ولوحة التحكم بعد الدخول.
   ============================================================================ */

:root {
    --ink:        #12172B;   /* كحلي غامق جداً - خلفية الأقسام الداكنة */
    --navy:       #1B2542;   /* نفس كحلي هوية دوكسا الأساسي */
    --navy-soft:  #232E52;
    --accent:     #5B7CFA;   /* أزرق أفتح شوية من هوية دوكسا للتباين على الغامق */
    --accent-deep:#4F6EF7;   /* نفس أزرق هوية دوكسا بالظبط */
    --parchment:  #F6F1E7;   /* ورقي/دفتري - يوحي بالمستندات المؤرشفة */
    --parchment-line: #E3D9C2;
    --seal:       #A9782E;   /* برونزي/نحاسي - لون الختم، تلميح بصري نادر بس */
    --paper:      #FFFFFF;
    --ink-soft:   #4A5170;
    --line:       rgba(255,255,255,.12);
    --line-dark:  rgba(18,23,43,.10);
    --radius: 20px;
    --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Cairo', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- الهيدر */
.lp-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-dark);
}
.lp-header-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.lp-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.lp-brand-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.lp-brand-mark {
    width: 40px; height: 40px; border-radius: 11px; background: var(--navy);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.lp-brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.lp-brand-text small { font-weight: 500; font-size: 12.5px; color: var(--ink-soft); }
.lp-login-btn {
    background: var(--navy); color: #fff; padding: 11px 26px; border-radius: 12px;
    font-weight: 700; font-size: 15px; transition: transform .15s ease, background .15s ease;
    display: inline-block;
}
.lp-login-btn:hover { background: var(--ink); transform: translateY(-1px); }
.lp-login-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ----------------------------------------------------------------- الهيرو */
.lp-hero {
    background: var(--navy);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 96px 0 120px;
}
.lp-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(560px 420px at 18% 15%, rgba(91,124,250,.28), transparent 60%);
    pointer-events: none;
}
.lp-hero-grid {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
    position: relative;
}
.lp-eyebrow-line {
    display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
    color: #B9C3EE; font-size: 14.5px; font-weight: 600;
}
.lp-eyebrow-line span.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lp-hero h1 {
    font-size: clamp(32px, 4.4vw, 50px); line-height: 1.28; font-weight: 800;
    margin: 0 0 20px; max-width: 15ch;
}
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-hero p.lead {
    font-size: 18px; line-height: 1.8; color: #C7CEEE; max-width: 46ch; margin: 0 0 34px;
}
.lp-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-btn-primary {
    background: var(--accent-deep); color: #fff; padding: 15px 30px; border-radius: 13px;
    font-weight: 700; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 14px 30px -10px rgba(79,110,247,.6);
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(79,110,247,.7); }
.lp-btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lp-btn-ghost {
    border: 1.5px solid rgba(255,255,255,.28); color: #fff; padding: 14px 26px; border-radius: 13px;
    font-weight: 600; font-size: 15.5px; transition: border-color .15s ease, background .15s ease;
}
.lp-btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

/* --- الرسم التوضيحي: مستندات متراصّة + ختم (SVG) --- */
.lp-hero-art { display: flex; justify-content: center; }
.lp-hero-art svg { width: 100%; max-width: 380px; height: auto; }
.lp-seal-anim { transform-origin: center; animation: sealDrop .9s cubic-bezier(.2,.9,.25,1) .25s both; }
@keyframes sealDrop {
    0%   { transform: translateY(-46px) rotate(-14deg) scale(.7); opacity: 0; }
    70%  { transform: translateY(4px) rotate(2deg) scale(1.04); opacity: 1; }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .lp-seal-anim { animation: none; }
}

/* --------------------------------------------------------- شريط القدرات (فهرس) */
.lp-index {
    background: var(--paper);
    border-bottom: 1px solid var(--line-dark);
}
.lp-index-list { list-style: none; margin: 0; padding: 0; }
.lp-index-list li {
    display: flex; align-items: flex-start; gap: 22px;
    padding: 26px 0; border-bottom: 1px solid var(--line-dark);
}
.lp-index-list li:last-child { border-bottom: none; }
.lp-index-num {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
    background: var(--parchment); border: 1px solid var(--parchment-line);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy);
}
.lp-index-num svg { width: 22px; height: 22px; }
.lp-index-body h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 700; }
.lp-index-body p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; max-width: 62ch; }

/* --------------------------------------------------------- قسم "عن هذا الأرشيف" */
.lp-about {
    background: var(--parchment);
    padding: 84px 0;
    border-bottom: 1px solid var(--parchment-line);
}
.lp-about-grid { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.lp-about-badge {
    width: 96px; height: 96px; border-radius: 24px; background: var(--paper);
    border: 1px solid var(--parchment-line); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 18px 34px -18px rgba(18,23,43,.25);
    flex-shrink: 0; overflow: hidden;
}
.lp-about-badge img { width: 100%; height: 100%; object-fit: cover; }
.lp-about-badge span { font-size: 34px; font-weight: 800; color: var(--navy); }
.lp-about h2 { font-size: 26px; margin: 0 0 10px; font-weight: 800; }
.lp-about p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.85; max-width: 68ch; }

/* --------------------------------------------------------- القدرات (كتل غير متماثلة) */
.lp-features {
    background: var(--ink);
    color: #fff;
    padding: 92px 0;
}
.lp-features-head { max-width: 52ch; margin-bottom: 52px; }
.lp-features-head h2 { font-size: 30px; font-weight: 800; margin: 0 0 14px; }
.lp-features-head p { color: #AEB6D6; font-size: 16.5px; line-height: 1.8; margin: 0; }
.lp-features-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px;
}
.lp-features-grid .lp-fcard:first-child { grid-row: span 2; }
.lp-fcard {
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    display: flex; flex-direction: column; gap: 16px;
}
.lp-fcard .lp-ficon {
    width: 52px; height: 52px; border-radius: 14px; background: rgba(91,124,250,.16);
    color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.lp-fcard .lp-ficon svg { width: 26px; height: 26px; }
.lp-fcard h3 { margin: 0; font-size: 19px; font-weight: 700; }
.lp-fcard p { margin: 0; color: #B7BEDA; font-size: 14.5px; line-height: 1.75; }
.lp-fcard.lp-fcard-wide { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.lp-fcard.lp-fcard-wide > div:last-child { display: flex; flex-direction: column; gap: 10px; }

/* --------------------------------------------------------------------- CTA */
.lp-cta {
    background: var(--navy); color: #fff; padding: 78px 0; text-align: center;
}
.lp-cta h2 { font-size: 27px; font-weight: 800; margin: 0 0 14px; }
.lp-cta p { color: #C7CEEE; font-size: 16px; margin: 0 0 30px; }

/* -------------------------------------------------------------------- الفوتر */
.lp-footer {
    background: var(--paper); padding: 30px 0; border-top: 1px solid var(--line-dark);
}
.lp-footer-row {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    color: var(--ink-soft); font-size: 13.5px;
}
.lp-footer-row strong { color: var(--ink); }

/* -------------------------------------------------------------- الاستجابة */
@media (max-width: 880px) {
    .lp-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .lp-hero h1 { max-width: none; }
    .lp-hero p.lead { max-width: none; margin-inline: auto; }
    .lp-hero-ctas { justify-content: center; }
    .lp-hero-art { order: -1; margin-bottom: 8px; }
    .lp-hero-art svg { max-width: 260px; }
    .lp-about-grid { grid-template-columns: 1fr; text-align: center; }
    .lp-about-badge { margin: 0 auto; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-features-grid .lp-fcard:first-child { grid-row: auto; }
    .lp-fcard.lp-fcard-wide { grid-template-columns: 1fr; text-align: center; }
    .lp-fcard.lp-fcard-wide .lp-ficon { margin: 0 auto; }
    .lp-index-list li { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
}
@media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .lp-hero { padding: 64px 0 84px; }
    .lp-brand-text small { display: none; }
    .lp-hero-ctas { flex-direction: column; align-items: stretch; }
    .lp-hero-ctas a { text-align: center; }
    .lp-footer-row { flex-direction: column; text-align: center; }
}
