/* ==========================================================================
   UNIVER ADVANCE - DESIGN SYSTEM (Clean, Consistent, Premium)
   ========================================================================== */

/* Smooth Scrolling for working Navbar links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; 
}

:root {
    /* Brand Colors */
    --green: #104d4a; 
    --green-light: #e6f0ef;
    --orange: #f06529; 
    --orange-light: #fcece5;
    
    /* UI Colors */
    --bg-base: #f8fafc; 
    --text-dark: #0f172a; 
    --text-muted: #64748b; 
    --border-light: #e2e8f0;
    
    /* Glassmorphism Settings */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --border-rad: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-base); 
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

.font-display { font-family: 'Urbanist', sans-serif; font-weight: 800; }

/* --- Utility Classes --- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.section-spacing { padding: 100px 0; }
.mb-spacing { margin-bottom: 40px; }
.mb-10 { margin-bottom: 12px; } .mt-10 { margin-top: 12px; }
.text-center { text-align: center; } .text-left { text-align: left; }
.inline-block { display: inline-block; }
.flex-align { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Typography Colors */
.text-green { color: var(--green); } .text-orange { color: var(--orange); }
.text-red { color: #dc2626; }
.text-muted { color: var(--text-muted); } .text-dark { color: var(--text-dark); }
.text-white { color: #ffffff !important; }
.bg-green-light { background: var(--green-light); } .bg-orange-light { background: var(--orange-light); }
.bg-red-light { background: #fef2f2; }
.bg-base { background: var(--bg-base); }
.text-xs { font-size: 0.85rem; } .text-sm { font-size: 1rem; } .text-xl { font-size: 2rem; }
.font-bold { font-weight: 600; }

/* Universal Cards (Glass) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-rad);
}

/* Icons */
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; }

/* Hand-drawn Highlights */
.highlight-underline { position: relative; display: inline-block; }
.highlight-underline::after {
    content: ''; position: absolute; width: 100%; height: 10px; bottom: 0px; left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0,5 Q50,0 100,8" stroke="%23f06529" stroke-width="4" fill="none" stroke-linecap="round"/></svg>') no-repeat;
    background-size: 100% 100%; z-index: -1;
}
.highlight-circle { position: relative; display: inline-block; padding: 0 5px; }
.highlight-circle::before {
    content: ''; position: absolute; top: -5px; left: -5px; right: -10px; bottom: -5px;
    border: 3px solid var(--orange); border-radius: 50% 40% 50% 40% / 40% 50% 40% 50%;
    z-index: -1; transform: rotate(-3deg); opacity: 0.8;
}
.highlight-marker {
    background: linear-gradient(104deg, transparent 0%, rgba(16, 185, 129, 0.2) 2%, rgba(16, 185, 129, 0.3) 92%, transparent 100%);
    padding: 0 4px; border-radius: 4px; color: var(--green); font-weight: 700;
}

/* Animated Art Background */
.bg-grid { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(var(--border-light) 1px, transparent 1px), linear-gradient(90deg, var(--border-light) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.5; z-index: -2; }
.glow-orb { position: fixed; border-radius: 50%; filter: blur(100px); opacity: 0.2; z-index: -1; }
.orb-1 { top: -100px; left: -100px; width: 400px; height: 400px; background: var(--orange); animation: floatOrb 10s infinite;}
.orb-2 { bottom: -100px; right: -100px; width: 500px; height: 500px; background: var(--green); animation: floatOrb 12s infinite reverse;}
@keyframes floatOrb { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 20px); } }

/* 3D Reveal */
.reveal-3d { opacity: 0; transform: perspective(1000px) translateY(40px) rotateX(-5deg); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-3d.is-visible { opacity: 1; transform: perspective(1000px) translateY(0) rotateX(0); }

/* --- Navbar --- */
.navbar { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1000px; z-index: 1000; padding: 0; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); border-radius: 50px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 10px 20px; }
.logo { display: flex; align-items: center; gap: 8px; } .logo img { height: 32px; }
.badge-advance { background: var(--green); color: white; font-size: 0.7rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover { color: var(--orange); }

/* Buttons */
.btn-glow-small { background: var(--green); color: white; padding: 10px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.btn-glow-small:hover { box-shadow: 0 5px 15px rgba(16, 77, 74, 0.3); transform: translateY(-2px); }
.btn-primary-glow { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--orange), #ff7a45); color: white; padding: 18px 40px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1.15rem; font-family: 'Urbanist'; box-shadow: 0 10px 25px rgba(240, 101, 41, 0.3); transition: 0.3s; border: none; }
.btn-primary-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 35px rgba(240, 101, 41, 0.4); }

/* --- Hero Section --- */
.hero { padding-top: 160px; }
.pill-badge { padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.dot-pulse { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 8px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; color: var(--text-dark); }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); margin: 0 auto 40px auto; max-width: 650px; line-height: 1.7; }

/* Hero Showcase */
.hero-showcase { display: flex; justify-content: center; gap: 30px; margin-top: 60px; }
.showcase-card { padding: 24px; width: 280px; text-align: left; }

/* --- Marquee --- */
.marquee-wrapper { width: 100%; overflow: hidden; background: var(--green); color: white; padding: 15px 0; margin: 40px 0; transform: rotate(-2deg) scale(1.05); }
.marquee { display: flex; width: 200%; animation: scrollMarquee 20s linear infinite; font-family: 'Urbanist'; font-weight: 700; font-size: 1.1rem; }
.marquee span { padding: 0 40px; white-space: nowrap; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- Scroll Story --- */
.section-heading { margin-bottom: 60px; }
.section-heading h2 { font-size: 3rem; margin-bottom: 12px; }
.section-heading p { font-size: 1.15rem; color: var(--text-muted); }

.story-layout { display: flex; gap: 60px; position: relative; }
.story-text { flex: 1; padding-bottom: 50px; }
.step-card { height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.3; transition: 0.4s; }
.step-card.active-step { opacity: 1; }
.step-num { font-family: 'Urbanist'; font-size: 2rem; font-weight: 900; margin-bottom: 16px; border-bottom: 2px solid; padding-bottom: 8px; width: fit-content; }
.step-card h3 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 16px; }
.step-card p { font-size: 1.15rem; color: var(--text-muted); }

.mobile-ui { display: none; }
.story-visual { flex: 1; position: relative; }
.sticky-frame { position: sticky; top: 150px; height: 420px; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 40px; }

.ui-mockup { position: absolute; width: 85%; opacity: 0; visibility: hidden; transform: scale(0.95); transition: 0.4s; }
.ui-mockup.active { opacity: 1; visibility: visible; transform: scale(1); }

.w-70 { width: 70%; }
.progress-bar { width: 100%; height: 8px; background: var(--border-light); border-radius: 10px; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 10px; }
.ui-list div { padding: 16px 0; border-bottom: 1px solid var(--border-light); font-size: 1rem; font-weight: 500; display: flex; align-items: center; gap: 10px;}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.vibe-tag { padding: 8px 18px; background: white; border-radius: 50px; font-size: 0.95rem; border: 1px solid var(--border-light); color: var(--text-muted); font-weight: 500;}
.active-vibe { background: var(--orange); color: white; border-color: var(--orange); font-weight: 600;}

.inbox-card { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--border-light); box-shadow: 0 10px 30px rgba(0,0,0,0.03);}
.inbox-top { display: flex; gap: 12px; align-items: center; }
.uni-avatar { width: 45px; height: 45px; background: var(--orange-light); color: var(--orange); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; font-family: 'Urbanist';}
.badge-mini { background: var(--orange-light); color: var(--orange); font-size: 0.7rem; padding: 4px 8px; border-radius: 6px; font-weight: 700;}
.offer-amount-box { background: var(--bg-base); padding: 16px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border-light); }
.label-text { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.inbox-card h2 { font-family: 'Urbanist'; font-size: 2.2rem; }
.accepted-tag { background: #dcfce7; color: #16a34a; padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px;}

/* --- Comparison Section --- */
.compare-container { display: flex; justify-content: center; align-items: stretch; gap: 40px; margin-top: 40px; }

.compare-card { 
    flex: 1; padding: 40px 30px; position: relative; 
    max-width: 500px; width: 100%;
}

.compare-content-wrapper { width: fit-content; margin: 0 auto; }

.compare-header { 
    display: flex; align-items: center; gap: 12px; 
    padding: 10px 20px; border-radius: 50px; 
    width: fit-content; margin: 0 auto 30px auto; 
}
.compare-header h3 { font-size: 1.3rem; margin: 0; }

.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; font-size: 1.1rem; color: var(--text-dark); }
.compare-list i { margin-top: 4px; }

.old-way { opacity: 0.85; border: 1px solid var(--border-light); transform: scale(0.98); }
.advance-way { transform: scale(1.02); z-index: 2; border: 2px solid var(--orange); }

.badge-absolute { position: absolute; top: -15px; right: 20px; background: var(--orange); color: white; padding: 6px 16px; border-radius: 50px; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; box-shadow: 0 5px 15px rgba(240, 101, 41, 0.4); transform: rotate(3deg); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 24px 30px; cursor: pointer; transition: 0.3s;}
.faq-item:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.05); }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-size: 1.3rem; color: var(--text-dark);}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s; }
.faq-answer p { padding-top: 16px; color: var(--text-muted); font-size: 1.1rem;}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--green); }


/* ========================================================= */
/* --- NEW CLEAN ORANGE CTA BANNER (COMPACT) --- */
/* ========================================================= */
.final-cta-section {
    padding: 40px 0 0 0; 
    position: relative;
    z-index: 10;
}

.cta-banner-clean {
    background: linear-gradient(135deg, var(--orange), #ff8c42); 
    padding: 35px 40px; /* تم تصغير الحجم والهوامش بشكل ملحوظ */
    border-radius: 24px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(240, 101, 41, 0.2);
    max-width: 900px; /* تم تصغير العرض ليكون ملموم وأنيق */
    margin: 0 auto;
    transform: translateY(30px); /* تأثير الغطس بالفوتر الأخضر ليعطي شكل كرييتف */
}

.cta-content-wrapper {
    text-align: left;
}

.cta-content-wrapper h2 {
    font-size: 2.2rem; /* تم تصغير الخط ليكون مرتب أكثر */
    margin-bottom: 8px;
}

.cta-content-wrapper p {
    font-size: 1.05rem; /* تصغير خط الوصف */
    opacity: 0.9;
    margin: 0;
}

.btn-clean-glow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: var(--orange);
    padding: 14px 30px; /* زر أصغر وأرتب */
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Urbanist';
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    white-space: nowrap;
}

.btn-clean-glow:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================================= */
/* --- CREATIVE COMPACT GREEN FOOTER --- */
/* ========================================================= */
.compact-green-footer {
    background: linear-gradient(180deg, var(--green), #0a3331); /* تدرج لوني عميق بيعطي فخامة */
    padding: 60px 0 30px 0; /* مسافة علوية لاستيعاب غطس الكرت البرتقالي */
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* خط إضاءة خفيف وعصري في أعلى الفوتر */
.compact-green-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.6;
}

.footer-content-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* كبسولة زجاجية أنيقة تجمع اللوجو الملون مع النص */
.footer-brand-small {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05); 
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* تم إزالة الفلتر عن الصورة ليظهر اللوجو البرتقالي بكامل ألوانه وبحجم صغير جداً */
.footer-brand-small img {
    height: 24px !important;
    width: auto !important;
    border-radius: 6px;
}

.footer-brand-small span {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
}

.footer-copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

/* --- Mobile Adjustments --- */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .section-spacing { padding: 80px 0; }
    
    .navbar { top: 10px; width: 95%; } .nav-links { display: none; }
    
    .hero { padding-top: 130px; }
    .hero-title { font-size: 3rem; }
    .hero-showcase { flex-direction: column; gap: 20px; align-items: center; margin-top: 40px; }
    .showcase-card { width: 100%; max-width: 350px; }
    
    .story-layout { flex-direction: column; gap: 0; }
    .step-card { height: auto; opacity: 1; margin-bottom: 60px; }
    .mobile-ui { display: block; padding: 30px 20px; margin-top: 20px; }
    
    .compare-container { flex-direction: column; gap: 20px; }
    .compare-card { transform: scale(1) !important; padding: 40px 20px; }
    .advance-way { order: -1; }
    .badge-absolute { right: 15px; }

    /* تصغير الكرت البرتقالي للموبايل مع تأثير الغطس */
    .cta-banner-clean {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(40px);
    }
    .cta-content-wrapper { text-align: center; }
    .cta-content-wrapper h2 { font-size: 1.8rem; }
    .btn-clean-glow { padding: 12px 24px; }
    
    .compact-green-footer { padding: 70px 0 30px 0; }
    .footer-content-flex {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}