/* ========================
   CSS Variables & Settings (Premium Light Theme)
   ======================== */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary: #059669;
    --secondary-light: #10b981;
    --accent: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(79, 70, 229, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   Reset & Base Styles
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-white { color: #fff !important; }
.text-green { color: var(--secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.shadow-btn {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.2);
}

.mobile-only-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 15px;
}

/* ========================
   Navigation
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 14px 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 1.9rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* ========================
   Hero Section
   ======================== */
.hero {
    position: relative;
    padding: 160px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 90% 10%, rgba(79, 70, 229, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Hero Image - Dashboard */
.hero-dashboard-img {
    width: 110%;
    max-width: none;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -20px rgba(79, 70, 229, 0.25);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: var(--transition);
}

.hero-dashboard-img:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

/* ========================
   Trust Bar
   ======================== */
.trust-bar {
    padding: 30px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.trust-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* ========================
   Stats Section
   ======================== */
.stats-section {
    background: #fdfdfd;
    border-bottom: 1px solid #f1f5f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-box {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 5px;
}

.stat-text {
    margin-top: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ========================
   Features
   ======================== */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-text {
    color: var(--text-muted);
}

/* ========================
   How it Works
   ======================== */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    margin-bottom: -40px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.step-title {
    font-weight: 700;
    margin-bottom: 10px;
}

/* ========================
   Pricing
   ======================== */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 50px 35px;
    width: 350px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-premium);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.plan-header { text-align: center; margin-bottom: 30px; }
.plan-price { font-size: 3.5rem; font-weight: 800; margin: 20px 0; }
.currency { font-size: 1.2rem; font-weight: 600; margin-left: 5px; }
.period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.plan-features { flex: 1; margin: 30px 0; }
.plan-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.plan-features i { color: var(--secondary); font-size: 1.1rem; }
.plan-features li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: 0.5; }

/* ========================
   Contact
   ======================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.1);
}

/* ========================
   Footer
   ======================== */
.footer {
    padding: 80px 0 40px;
    background: #0f172a;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-title { margin-bottom: 20px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; color: #64748b; font-size: 0.9rem; }

/* ========================
   FAQ Accordion
   ======================== */
.faq-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item.active {
    border-color: var(--primary-light);
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-header .icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.active .icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    background: #fcfdfe;
}

.accordion-content p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ========================
   Pricing Comparison Table
   ======================== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.comparison-table th, .comparison-table td {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.1rem;
}

.comparison-table td:first-child, .comparison-table th:first-child {
    text-align: right;
    font-weight: 700;
    background: #fdfdfd;
    width: 250px;
}

.comparison-table tbody tr:hover {
    background-color: #f8faff;
}

.table-responsive {
    overflow-x: auto;
}

/* ========================
   Responsive & Mobile Optimization
   ======================== */

/* Desktop & Large Screens */
@media (min-width: 1025px) {
    .nav-links, .nav-actions {
        display: flex !important;
    }
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 1024px) {
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }

    .hero-container, .contact-wrapper, .faq-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    /* Mobile Menu Drawer */
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links, .nav-actions {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 40px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-actions {
        display: none; /* We'll hide and let links handle it */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-only-actions {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.lock-scroll {
        overflow: hidden;
    }

    /* Trust Bar Mobile */
    .trust-container {
        gap: 15px;
    }
    .trust-item {
        font-size: 0.85rem;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .pricing-grid {
        gap: 20px;
    }

    .price-card.popular {
        transform: scale(1);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Table Responsive Adjustments */
    .table-responsive {
        padding-bottom: 15px;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th, .comparison-table td {
        padding: 15px 10px;
        min-width: 120px;
    }

    .comparison-table td:first-child {
        min-width: 150px;
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
}

/* ========================
   Reveal Animation
   ======================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   WhatsApp Floating Button
   ======================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) translateY(-5px);
    color: white;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
