/* =============================================
   ZAWAJ PREMIUM LANDING PAGE V2
   Premium Design System — Airbnb/Apple/Stripe Level
   ============================================= */

/* 1. DESIGN TOKENS */
:root {
    --z-primary: #e91e63;
    --z-primary-dark: #c2185b;
    --z-primary-light: rgba(233,30,99,0.08);
    --z-primary-glow: rgba(233,30,99,0.25);
    --z-accent: #8e44ad;
    --z-accent-light: rgba(142,68,173,0.08);
    --z-gradient: linear-gradient(135deg, #e91e63 0%, #ff6090 50%, #f48fb1 100%);
    --z-gradient-purple: linear-gradient(135deg, #e91e63, #8e44ad);
    --z-surface: #ffffff;
    --z-surface-alt: #f8fafc;
    --z-bg: #ffffff;
    --z-text: #0f172a;
    --z-text-2: #334155;
    --z-text-3: #64748b;
    --z-border: #e2e8f0;
    --z-glass-bg: rgba(255,255,255,0.72);
    --z-glass-border: rgba(255,255,255,0.25);
    --z-glass-blur: 20px;
    --z-font: 'Cairo','IBM Plex Sans Arabic','Tajawal',sans-serif;
    --z-radius-sm: 8px;
    --z-radius-md: 12px;
    --z-radius-lg: 16px;
    --z-radius-xl: 24px;
    --z-radius-2xl: 32px;
    --z-radius-full: 9999px;
    --z-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --z-shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --z-shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --z-shadow-xl: 0 24px 48px rgba(0,0,0,0.1);
    --z-shadow-glow: 0 0 40px var(--z-primary-glow);
    --z-transition: 0.3s cubic-bezier(0.4,0,0.2,1);
    --z-section-py: clamp(5rem, 8vw, 8rem);
}

[data-bs-theme="dark"] {
    --z-surface: #1e293b;
    --z-surface-alt: #0f172a;
    --z-bg: #0f172a;
    --z-text: #f1f5f9;
    --z-text-2: #cbd5e1;
    --z-text-3: #94a3b8;
    --z-border: #334155;
    --z-glass-bg: rgba(30,41,59,0.8);
    --z-glass-border: rgba(255,255,255,0.08);
    --z-shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --z-shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --z-shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

/* 2. BASE */
body { font-family: var(--z-font); color: var(--z-text); background: var(--z-bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.z-text-gradient { background: var(--z-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* 3. SCROLL REVEAL */
.z-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); will-change: transform, opacity; }
.z-reveal.z-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .z-reveal { opacity: 1; transform: none; transition: none; } }

/* 4. BUTTONS */
.z-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 2.2rem; font-weight: 800; font-size: 1rem; border: none; border-radius: var(--z-radius-full); background: var(--z-gradient); color: #fff !important; box-shadow: 0 6px 20px var(--z-primary-glow); transition: all var(--z-transition); text-decoration: none; position: relative; overflow: hidden; cursor: pointer; }
.z-btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 28px var(--z-primary-glow); color: #fff !important; }
.z-btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 2.2rem; font-weight: 800; font-size: 1rem; border: 1.5px solid var(--z-border); border-radius: var(--z-radius-full); background: var(--z-glass-bg); backdrop-filter: blur(10px); color: var(--z-text) !important; transition: all var(--z-transition); text-decoration: none; cursor: pointer; }
.z-btn-secondary:hover { border-color: var(--z-primary); color: var(--z-primary) !important; transform: translateY(-3px); box-shadow: var(--z-shadow-lg); }

/* 5. NAVBAR OVERRIDES (landing only) */
body.landing-page .navbar { background: transparent !important; backdrop-filter: none !important; box-shadow: none !important; border-bottom: none !important; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
body.landing-page .navbar.scrolled { background: var(--z-glass-bg) !important; backdrop-filter: blur(var(--z-glass-blur)) !important; -webkit-backdrop-filter: blur(var(--z-glass-blur)) !important; box-shadow: var(--z-shadow-sm) !important; border-bottom: 1px solid var(--z-glass-border) !important; }

/* 6. HERO */
.z-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 7rem 0 4rem; overflow: hidden; }
.z-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.z-hero-bg::before { content: ''; position: absolute; width: 600px; height: 600px; top: -15%; right: -10%; border-radius: 50%; background: radial-gradient(circle, var(--z-primary-light) 0%, transparent 70%); filter: blur(60px); }
.z-hero-bg::after { content: ''; position: absolute; width: 500px; height: 500px; bottom: -10%; left: -10%; border-radius: 50%; background: radial-gradient(circle, var(--z-accent-light) 0%, transparent 70%); filter: blur(60px); }
.z-hero-content { position: relative; z-index: 2; }
.z-hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1.1rem; background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-full); font-weight: 700; font-size: .82rem; color: var(--z-primary); box-shadow: var(--z-shadow-sm); margin-bottom: 1.5rem; }
.z-hero-badge .z-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--z-primary); animation: zPulse 2s ease-in-out infinite; }
.z-hero-title { font-weight: 900; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.z-hero-desc { font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.85; color: var(--z-text-3); margin-bottom: 2.5rem; max-width: 540px; }
.z-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0; }
.z-hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--z-border); }
.z-hero-stat-num { font-weight: 900; font-size: 1.8rem; color: var(--z-text); line-height: 1; }
.z-hero-stat-label { font-size: .85rem; color: var(--z-text-3); font-weight: 600; margin-top: .2rem; }

/* Hero Visual */
.z-hero-visual { position: relative; z-index: 2; }
.z-hero-visual svg { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08)); }

/* Floating Cards */
.z-float-card { position: absolute; background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-xl); padding: .85rem 1.25rem; box-shadow: var(--z-shadow-lg); display: flex; align-items: center; gap: .85rem; z-index: 3; font-size: .9rem; }
.z-float-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.z-float-title { font-weight: 800; font-size: .88rem; line-height: 1.2; }
.z-float-sub { font-size: .75rem; color: var(--z-text-3); font-weight: 600; }

/* 7. SECTION SHARED */
.z-section { padding: var(--z-section-py) 0; position: relative; }
.z-section-header { text-align: center; margin-bottom: 4rem; }
.z-section-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1rem; background: var(--z-primary-light); color: var(--z-primary); border-radius: var(--z-radius-full); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .8rem; }
.z-section-title { font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.z-section-desc { font-size: 1.05rem; color: var(--z-text-3); max-width: 580px; margin: 0 auto; line-height: 1.8; }

/* 8. TRUST BAR */
.z-trust-bar { background: var(--z-surface-alt); border-top: 1px solid var(--z-border); border-bottom: 1px solid var(--z-border); padding: 1.8rem 0; }
.z-trust-item { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .88rem; color: var(--z-text-2); white-space: nowrap; }
.z-trust-item i { font-size: 1.3rem; }

/* 9. FEATURE CARDS */
.z-feature-card { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-2xl); padding: 2.5rem 2rem; height: 100%; transition: all var(--z-transition); position: relative; overflow: hidden; }
.z-feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--z-gradient); opacity: 0; transition: opacity var(--z-transition); }
.z-feature-card:hover { transform: translateY(-8px); box-shadow: var(--z-shadow-lg); border-color: rgba(233,30,99,0.15); }
.z-feature-card:hover::before { opacity: 1; }
.z-feature-icon { width: 64px; height: 64px; border-radius: var(--z-radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 1.5rem; transition: transform var(--z-transition); }
.z-feature-card:hover .z-feature-icon { transform: scale(1.1) rotate(-5deg); }
.z-feature-title { font-weight: 800; font-size: 1.25rem; margin-bottom: .75rem; }
.z-feature-desc { color: var(--z-text-3); line-height: 1.75; font-size: .95rem; margin: 0; }

/* 10. STATS */
.z-stats { background: var(--z-surface-alt); border-top: 1px solid var(--z-border); border-bottom: 1px solid var(--z-border); padding: 5rem 0; }
.z-stat-item { text-align: center; padding: 1.5rem; }
.z-stat-value { font-weight: 900; font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--z-primary); line-height: 1; margin-bottom: .4rem; }
.z-stat-label { font-weight: 700; font-size: 1rem; color: var(--z-text-2); }

/* 11. VALUES (Islamic) */
.z-values { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #f1f5f9; padding: var(--z-section-py) 0; }
.z-values .z-section-badge { background: rgba(233,30,99,0.15); }
.z-values .z-section-desc { color: #94a3b8; }
.z-value-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--z-radius-2xl); padding: 2.5rem 2rem; height: 100%; transition: all var(--z-transition); backdrop-filter: blur(8px); }
.z-value-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(233,30,99,0.3); transform: translateY(-6px); }
.z-value-icon { width: 56px; height: 56px; border-radius: var(--z-radius-lg); background: rgba(233,30,99,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #f48fb1; margin-bottom: 1.5rem; }
.z-value-title { font-weight: 800; font-size: 1.15rem; margin-bottom: .6rem; color: #f1f5f9; }
.z-value-desc { color: #94a3b8; line-height: 1.75; font-size: .92rem; margin: 0; }

/* 12. TESTIMONIALS */
.z-testimonial-card { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-2xl); padding: 2.5rem; height: 100%; transition: all var(--z-transition); }
.z-testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--z-shadow-lg); }
.z-testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 1rem; }
.z-testimonial-text { font-size: 1.05rem; line-height: 1.85; color: var(--z-text-2); margin-bottom: 1.5rem; }
.z-testimonial-author { display: flex; align-items: center; gap: 1rem; }
.z-author-avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff; flex-shrink: 0; }
.z-author-name { font-weight: 800; font-size: 1rem; margin: 0; }
.z-author-meta { color: var(--z-text-3); font-size: .85rem; margin: 0; }

/* 13. FAQ */
.z-faq .accordion-item { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-lg) !important; margin-bottom: .75rem; overflow: hidden; transition: all var(--z-transition); }
.z-faq .accordion-item:hover { border-color: rgba(233,30,99,0.15); }
.z-faq .accordion-button { font-weight: 700; font-size: 1rem; color: var(--z-text); background: var(--z-surface); padding: 1.2rem 1.5rem; box-shadow: none; border: none; }
.z-faq .accordion-button:not(.collapsed) { color: var(--z-primary); background: var(--z-primary-light); }
.z-faq .accordion-button:focus { box-shadow: none; }
.z-faq .accordion-body { font-size: .95rem; line-height: 1.8; color: var(--z-text-3); padding: 0 1.5rem 1.25rem; }

/* 14. CTA */
.z-cta-card { background: var(--z-gradient); border-radius: var(--z-radius-2xl); padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem); text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: 0 24px 48px rgba(233,30,99,0.3); }
.z-cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.18) 0%, transparent 60%); pointer-events: none; }
.z-cta-title { font-weight: 900; font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.2rem; position: relative; }
.z-cta-desc { font-size: 1.1rem; opacity: .9; max-width: 560px; margin: 0 auto 2.5rem; position: relative; line-height: 1.7; }
.z-cta-btn { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--z-primary) !important; padding: 1rem 2.8rem; border-radius: var(--z-radius-full); font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: all var(--z-transition); position: relative; box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.z-cta-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 28px rgba(0,0,0,0.2); color: var(--z-primary) !important; }

/* 15. FOOTER — kept from layout, override styles */
.z-footer { background: #0f172a; color: #94a3b8; padding-top: 0; }
.z-footer-wave { display: block; width: 100%; height: 60px; margin-bottom: -1px; }
.z-footer-wave svg { width: 100%; height: 100%; }
.z-footer-inner { padding: 4rem 0 2rem; }
.z-footer h5 { font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .04em; }
.z-footer .brand-name { font-weight: 900; font-size: 1.5rem; color: #fff; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.z-footer .brand-name .heart { color: var(--z-primary); }
.z-footer p { font-size: .9rem; line-height: 1.7; color: #64748b; }
.z-footer ul { list-style: none; padding: 0; margin: 0; }
.z-footer ul li { margin-bottom: .6rem; }
.z-footer ul li a { color: #64748b; text-decoration: none; font-size: .9rem; transition: all var(--z-transition); display: inline-flex; align-items: center; gap: .4rem; }
.z-footer ul li a:hover { color: var(--z-primary); padding-inline-start: 4px; }
.z-footer .social-links { display: flex; gap: .6rem; flex-wrap: wrap; }
.z-footer .social-link { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #94a3b8; text-decoration: none; transition: all var(--z-transition); }
.z-footer .social-link:hover { background: var(--z-primary); color: #fff; transform: translateY(-3px); }
.z-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; margin-top: 3rem; text-align: center; }
.z-footer-bottom p { font-size: .85rem; color: #475569; margin: 0; }
.z-footer-bottom a { color: #64748b; text-decoration: none; transition: color var(--z-transition); }
.z-footer-bottom a:hover { color: var(--z-primary); }
.z-footer-heading { position: relative; display: inline-block; }
.z-footer-heading::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 28px; height: 3px; background: var(--z-primary); border-radius: 2px; }
[dir="rtl"] .z-footer-heading::after { left: auto; right: 0; }

/* 16. ANIMATIONS */
@keyframes zPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .5; } }
@keyframes zFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes zFloatR { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.z-anim-float { animation: zFloat 6s ease-in-out infinite; }
.z-anim-float-r { animation: zFloatR 7s ease-in-out infinite; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .z-anim-float, .z-anim-float-r { animation: none; } }

/* 17. RESPONSIVE */

/* Navbar mobile collapse background */
@media (max-width: 991.98px) {
    body.landing-page .navbar {
        z-index: 1050;
    }
    body.landing-page .navbar .navbar-collapse {
        background: var(--z-surface);
        border-radius: var(--z-radius-lg);
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: var(--z-shadow-lg);
        border: 1px solid var(--z-border);
    }
    [data-bs-theme="dark"] body.landing-page .navbar .navbar-collapse {
        background: #1e293b;
        border-color: #334155;
    }
}

@media (max-width: 991.98px) {
    .z-hero {
        text-align: center;
        padding-top: 7rem;
        min-height: auto;
        padding-bottom: 3rem;
    }
    .z-hero-desc { margin-inline: auto; }
    .z-hero-actions { justify-content: center; }
    .z-hero-stats { justify-content: center; flex-wrap: wrap; }
    .z-hero-visual { margin-top: 2.5rem; max-width: 320px; margin-inline: auto; }
    .z-float-card { display: none; }
    .z-trust-bar .d-flex { gap: 1rem !important; }
    .z-trust-item { white-space: normal; font-size: .82rem; }
    .z-section-header { margin-bottom: 3rem; }
}

@media (max-width: 575.98px) {
    .z-hero { padding-top: 6rem; }
    .z-hero-title { font-size: 2rem; }
    .z-hero-desc { font-size: .95rem; }
    .z-hero-actions { flex-direction: column; }
    .z-hero-actions .z-btn-primary,
    .z-hero-actions .z-btn-secondary { width: 100%; justify-content: center; }
    .z-hero-stats { gap: 1.2rem; }
    .z-hero-stat-num { font-size: 1.3rem; }
    .z-hero-stat-label { font-size: .75rem; }
    .z-hero-visual { max-width: 260px; }
    .z-feature-card { padding: 2rem 1.5rem; }
    .z-cta-card { padding: 2.5rem 1.5rem; }
    .z-cta-title { font-size: 1.6rem; }
    .z-section-title { font-size: 1.6rem; }
    .z-btn-primary, .z-btn-secondary { padding: .8rem 1.8rem; font-size: .9rem; }
    .z-stat-value { font-size: 2.2rem; }
    .z-testimonial-card { padding: 1.8rem; }
    .z-value-card { padding: 2rem 1.5rem; }
}