/* ═══════════════════════════════════════════════════
   NAV — inline CTA button (small)
═══════════════════════════════════════════════════ */
.btn-sm {
    padding: 9px 20px;
    font-size: 0.82rem;
    border-radius: 10px;
}
.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* ═══════════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════════ */
.trust-strip {
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(16,185,129,0.03);
    padding: 18px 0;
}
.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}
.trust-item i { color: var(--primary); font-size: 0.85rem; }
.trust-sep {
    width: 1px; height: 18px;
    background: var(--glass-border);
}

/* ═══════════════════════════════════════════════════
   HERO SUB — shorter, centered
═══════════════════════════════════════════════════ */
.hero-sub {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 0;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════ */
.section-desc {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}
.badge-primary { background: rgba(16,185,129,0.12); color: var(--primary-light); }
.badge-dark    { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.1); }

.section-sep {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0 auto;
    width: 80%;
}

/* ═══════════════════════════════════════════════════
   FEATURE CARDS (Modular Grid)
═══════════════════════════════════════════════════ */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    transition: var(--transition);
}
.feat-card:hover {
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.feat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(16,185,129,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 18px;
}
.feat-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text-white); }
.feat-card p  { font-size: 0.875rem; color: var(--text-dim); margin: 0; line-height: 1.55; }

/* Barada variant */
#barada .feat-icon { background: rgba(255,255,255,0.05); color: #fff; }
#barada .feat-card:hover { border-color: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════
   CTA BANNER (mid & bottom)
═══════════════════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a3d2e 50%, #0d4a38 100%);
    border-top: 1px solid rgba(16,185,129,0.2);
    border-bottom: 1px solid rgba(16,185,129,0.2);
    padding: 52px 0;
}
.cta-banner-bottom {
    background: linear-gradient(135deg, #065f46 0%, #0a3d2e 60%, var(--primary-dark) 100%);
}
.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.cta-banner-inner h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.cta-banner-inner p {
    color: rgba(255,255,255,0.65);
    margin: 0;
    font-size: 0.95rem;
}
.btn-white {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    background: #f0fdf4;
}

/* ═══════════════════════════════════════════════════
   PLATFORM CARDS
═══════════════════════════════════════════════════ */
.platform-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.platform-crd {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}
.platform-crd:hover {
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.3);
}
.platform-crd img {
    height: 54px; width: auto;
    object-fit: contain;
}
.platform-crd h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}
.platform-crd p {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}
.platform-crd .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}
.study-icon-lrg {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: rgba(16,185,129,0.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   SOCIAL COMPACT ROW
═══════════════════════════════════════════════════ */
.social-compact {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 28px 0 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}
.social-compact-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}
.social-compact-links { display: flex; gap: 10px; flex-wrap: wrap; }
.soc-btn {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.soc-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   DEVELOPER TILES
═══════════════════════════════════════════════════ */
.dev-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0 28px;
}
.dev-tile {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}
.dev-tile:hover {
    border-color: rgba(16,185,129,0.25);
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}
.dev-tile-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light);
    font-size: 1.3rem;
    margin: 0 auto 20px;
}
.dev-tile h3  { font-size: 1.05rem; font-weight: 700; color: var(--text-white); margin-bottom: 10px; }
.dev-tile p   { font-size: 0.875rem; color: var(--text-dim); line-height: 1.55; margin: 0; }

.dev-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 24px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
}
.dev-disclaimer i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.dev-disclaimer p { font-size: 0.85rem; color: var(--text-dim); margin: 0; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   STATISTICS
═══════════════════════════════════════════════════ */
#statistics {
    padding: 100px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(16,185,129,0.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin: 0 auto 16px;
}
.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
    line-height: 1;
}
.stat-value.text-value {
    font-size: 1.5rem;
    color: var(--text-white);
}
.stat-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.stat-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1020px) {
    .feat-grid           { grid-template-columns: repeat(2, 1fr); }
    .platform-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .dev-tiles-grid      { grid-template-columns: repeat(2, 1fr); }
    .stats-grid          { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .feat-grid            { grid-template-columns: 1fr; }
    .platform-cards-grid  { grid-template-columns: 1fr; }
    .dev-tiles-grid       { grid-template-columns: 1fr; }
    .stats-grid           { grid-template-columns: 1fr; }
    .cta-banner-inner     { flex-direction: column; text-align: center; }
    .trust-items          { gap: 16px; }
    .trust-sep            { display: none; }
    .btn-lg               { padding: 14px 28px; }
    #nav-cta              { display: none; }
}

/* ═══════════════════════════════════════════════════
   RTL OVERRIDES
═══════════════════════════════════════════════════ */
[dir="rtl"] body                 { font-family: 'Noto Naskh Arabic', 'Outfit', sans-serif; }
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,
[dir="rtl"] h4,[dir="rtl"] p,[dir="rtl"] .badge { font-family: 'Noto Naskh Arabic', sans-serif; letter-spacing: 0; }
[dir="rtl"] .nav-links           { flex-direction: row-reverse; }
[dir="rtl"] .hero-content        { direction: rtl; }
[dir="rtl"] .arabic-script       { opacity: 0; }
[dir="rtl"] .footer-bottom       { flex-direction: row-reverse; }

/* ═══════════════════════════════════════════════════
   DESKTOP DOWNLOAD SECTION
═══════════════════════════════════════════════════ */
.download-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark), #091c16 50%, var(--bg-dark));
    position: relative;
    overflow: hidden;
}
.download-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.15;
    pointer-events: none;
}
.dl-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.dl-card-logo {
    width: 80px; height: 80px;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(16,185,129,0.4));
}
.dl-card h2 { margin-bottom: 20px; }
.dl-card p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 40px; }

.dl-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.dl-feat-pill {
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.dl-main-btn {
    animation: pulse 2.5s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dl-version {
    display: block;
    margin-top: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}
