/* ==========================================================================
   Design System Variables & Global Reset (Identity Continuity)
   ========================================================================== */
:root {
    --primary: #082C5D;
    --secondary: #061F42;
    --accent: #FF914D;
    
    --bg-color: #F7F9FC;
    --bg-light: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.85);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-family: 'Cairo', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1);
    --shadow-glass: 0 8px 32px 0 rgba(8, 44, 93, 0.06);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --card-bg: #1e293b;
    --border-color: #334155;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Base Rules */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family); background-color: var(--bg-color);
    color: var(--text-main); line-height: 1.6; overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 90px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

/* Glassmorphism Framework Component */
.glass-effect {
    background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color); box-shadow: var(--shadow-glass);
}

/* Common Section Titles */
.section-header { text-align: center; margin-bottom: 50px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.3rem; color: var(--primary); margin-bottom: 15px; }
body.dark-mode .section-header h2 { color: var(--text-main); }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

/* Buttons Global Styles */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
    font-family: var(--font-family); cursor: pointer; transition: var(--transition); border: none;
}
.btn-large { padding: 15px 32px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn-primary { background-color: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(8, 44, 93, 0.25); }
.btn-primary:hover { background-color: var(--secondary); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
body.dark-mode .btn-outline { color: var(--text-main); border-color: var(--text-main); }
.btn-outline:hover { background-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Header / Navbar Layout
   ========================================================================== */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); }
.header.scrolled { padding: 14px 0; background: var(--glass-bg); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.logo a span { color: var(--accent); font-weight: 400; }
body.dark-mode .logo a { color: #fff; }
.nav-menu ul { display: flex; gap: 30px; }
.nav-menu a { font-weight: 600; font-size: 1.05rem; color: var(--text-main); transition: var(--transition); }
.nav-menu a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle, .mobile-toggle { background: none; border: none; color: var(--text-main); font-size: 1.2rem; cursor: pointer; }
.mobile-toggle { display: none; }

/* ==========================================================================
   Enhanced Download Hero & Options Grid
   ========================================================================== */
.download-hero {
    position: relative; padding: 150px 0 90px; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
}
.hero-top-content { max-width: 800px; margin: 0 auto 50px; }
.badge { display: inline-block; padding: 8px 16px; background-color: rgba(255, 145, 77, 0.1); color: var(--accent); border-radius: 50px; font-weight: 700; font-size: 0.9rem; margin-bottom: 20px; }
.hero-title { font-size: 3.2rem; line-height: 1.2; margin-bottom: 15px; color: var(--primary); font-weight: 800; }
body.dark-mode .hero-title { color: var(--text-main); }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); }

/* Side by Side 3-Column Grid setup */
.download-options-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; position: relative; z-index: 5; }

.download-card {
    border-radius: var(--radius-lg); padding: 35px 30px; display: flex; flex-direction: column;
    justify-content: space-between; position: relative; transition: var(--transition);
}
.download-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* Highlighted (Full Version) Card Specifics */
.download-card.highlighted {
    border: 2.5px solid var(--accent);
    background: linear-gradient(180deg, var(--glass-bg) 0%, rgba(255, 145, 77, 0.03) 100%);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 145, 77, 0.1);
}
.download-card.highlighted:hover { transform: scale(1.03) translateY(-5px); box-shadow: 0 20px 40px rgba(255, 145, 77, 0.15); }

.recommended-badge {
    position: absolute; top: -15px; right: 30px; background-color: var(--accent);
    color: #fff; padding: 4px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}

/* Card Elements Typography */
.card-icon {
    width: 55px; height: 55px; background-color: rgba(8, 44, 93, 0.06); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--primary); margin-bottom: 20px;
}
.download-card.highlighted .card-icon { background-color: var(--accent); color: #fff; }
body.dark-mode .card-icon { background-color: rgba(255,255,255,0.05); color: var(--accent); }
body.dark-mode .download-card.highlighted .card-icon { background-color: var(--accent); color: #fff; }

.card-title { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; font-weight: 700; }
body.dark-mode .card-title { color: #fff; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; min-height: 70px; }

.card-features { margin-bottom: 30px; flex-grow: 1; }
.card-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; }
.card-features li i { color: var(--success); font-size: 1rem; flex-shrink: 0; }
.download-card.highlighted .card-features li i { color: var(--accent); }

.card-action-zone { margin-top: auto; }
.version-tag { display: block; text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; font-weight: 600; }

/* Background Canvas Shapes */
.floating-shape { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 1; animation: float 6s ease-in-out infinite; }
.shape-1 { width: 300px; height: 300px; background: rgba(8, 44, 93, 0.1); top: -20px; right: -50px; }
.shape-2 { width: 250px; height: 250px; background: rgba(255, 145, 77, 0.1); bottom: 20px; left: -50px; animation-delay: -3s; }

/* ==========================================================================
   Features Section Component Grid
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--card-bg); padding: 40px 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.feature-icon {
    width: 60px; height: 60px; background-color: rgba(8, 44, 93, 0.05); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 20px;
}
body.dark-mode .feature-icon { background-color: rgba(255,255,255,0.05); color: var(--accent); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Steps Timeline Construction
   ========================================================================== */
.steps-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 15px; }
.step-card {
    background: var(--card-bg); border: 1px solid var(--border-color); padding: 30px 25px;
    border-radius: var(--radius-md); position: relative; transition: var(--transition);
}
.step-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.step-num { font-size: 2.2rem; font-weight: 800; color: rgba(255, 145, 77, 0.2); margin-bottom: 10px; }
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); }
body.dark-mode .step-card h3 { color: var(--text-main); }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   FAQ Structural Accordions
   ========================================================================== */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border-color); margin-bottom: 15px; border-radius: var(--radius-sm); overflow: hidden; }
.faq-question {
    width: 100%; text-align: right; padding: 20px; background: none; border: none;
    font-size: 1.1rem; font-weight: 700; font-family: var(--font-family); color: var(--text-main);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover, .faq-item.active .faq-question { color: var(--primary); background-color: rgba(8, 44, 93, 0.01); }
body.dark-mode .faq-question:hover { color: var(--accent); }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding: 0 20px 20px; color: var(--text-muted); }

/* ==========================================================================
   Call to Action (CTA) & Footers
   ========================================================================== */
.final-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); padding: 95px 0; color: #fff; }
.final-cta h2 { color: #fff; font-size: 2.6rem; margin-bottom: 20px; }
.final-cta p { font-size: 1.15rem; margin-bottom: 35px; opacity: 0.9; }
.cta-pulse { background: var(--accent); color: #fff; box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.7); animation: pulse 2s infinite; }
.cta-pulse:hover { background: #e07a38; }

.footer { background-color: #04142a; color: #cbd5e1; padding: 80px 0 20px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 20px; }
.footer-logo span { color: var(--accent); font-weight: 400; }
.brand-col p { margin-bottom: 20px; font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-links a:hover { background: var(--accent); }
.footer-col h3 { color: #fff; margin-bottom: 25px; font-size: 1.2rem; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ''; position: absolute; right: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent); }
.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 12px 15px; border: none; border-radius: 0 4px 4px 0; outline: none; }
.newsletter-form button { background: var(--accent); color: #fff; border: none; padding: 0 20px; border-radius: 4px 0 0 4px; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }

/* Scroll Components */
.back-to-top { position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; background: var(--primary); color: #fff; border: none; border-radius: 50%; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; cursor: pointer;}
.back-to-top.show { opacity: 1; visibility: visible; }

/* Dynamic Animations Keyframes */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 145, 77, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(255, 145, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 145, 77, 0); } }

/* Reveal Structure Engine */
.reveal, .reveal-up, .reveal-right { opacity: 0; transition: all 0.75s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal-up { transform: translateY(35px); }
.reveal-right { transform: translateX(35px); }
.reveal.visible, .reveal-up.visible, .reveal-right.visible { opacity: 1; transform: translate(0, 0); }

/* ==========================================================================
   Responsive Multi-Screen Framework Media-Queries
   ========================================================================== */
@media (max-width: 1100px) {
    .download-options-grid { grid-template-columns: 1fr; max-width: 480px; margin: 40px auto 0; }
    .download-card.highlighted { transform: scale(1); }
    .download-card.highlighted:hover { transform: translateY(-5px); }
    .steps-timeline { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .nav-menu { position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); background: var(--bg-color); flex-direction: column; display: flex; align-items: center; justify-content: center; transition: right 0.4s ease; z-index: 99;}
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 25px; text-align: center; }
    .mobile-toggle { display: block; }
    .header-actions .nav-btn { display: none; }
    .steps-timeline { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); right: auto; }
}