:root {
    --primary-color: #1b5290;
    --primary-dark: #144066;
    --primary-light: #2969a3;
    --secondary-color: #f8fafc;
    --accent-color: #3b82f6;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll due to fixed/abs elements */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Arabic RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-actions {
    flex-direction: row-reverse;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Hide mobile menu close button by default (all viewports) */
.nav-close {
    display: none;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0; /* Allow flex children to shrink */
}

.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--text-light);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 150px;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--secondary-color);
}

.cta-button {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    bottom: 20%;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 60%;
    right: 20%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: var(--transition);
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.mockup-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #eab308; }
.control.green { background: #22c55e; }

.mockup-title {
    font-weight: 600;
    color: var(--text-primary);
}

.mockup-content {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 200px;
    background: #f8fafc;
    padding: 16px;
    border-right: 1px solid #e2e8f0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-item:hover {
    background: #e2e8f0;
}

.sidebar-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.mockup-main {
    flex: 1;
    padding: 24px;
}

.dashboard-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    flex: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.chart-area {
    height: 150px;
    background: #f8fafc;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-chart {
    width: 100%;
    height: 100px;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--secondary-color);
}

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

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.toggle-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    display: block;
    width: 50px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + label {
    background: var(--primary-color);
}

.toggle-switch input:checked + label::after {
    transform: translateX(22px);
}

.toggle-discount {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.plan-description {
    color: var(--text-secondary);
}

.pricing-price {
    text-align: center;
    margin-bottom: 16px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-discount {
    text-align: center;
    margin-bottom: 32px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid #f1f5f9;
}

.pricing-guarantee {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    background: #f0f9ff;
    border-radius: var(--border-radius-lg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Volume Discounts Section */
.volume-discounts {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid #e2e8f0;
}

.discount-header {
    text-align: center;
    margin-bottom: 32px;
}

.discount-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.discount-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.discount-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.discount-tier {
    background: #ffffff;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.discount-tier:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.featured-tier {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.featured-tier .tier-content h4,
.featured-tier .tier-content p {
    color: white;
}

.featured-tier .tier-note {
    color: rgba(255, 255, 255, 0.8);
}

.tier-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.featured-tier .tier-icon {
    background: rgba(255, 255, 255, 0.2);
}

.tier-content {
    flex: 1;
}

.tier-range {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.tier-discount {
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
    margin: 0 0 4px 0;
}

.featured-tier .tier-discount {
    color: #10b981;
}

.tier-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.discount-cta {
    text-align: center;
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius);
    border: 1px dashed var(--primary-light);
}

.cta-text {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .volume-discounts {
        padding: 24px 16px;
        margin-top: 32px;
    }
    
    .discount-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .discount-tiers {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .discount-tier {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .tier-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .cta-text {
        flex-direction: column;
        gap: 4px;
        font-size: 0.9rem;
    }
}

/* Service Fee Notice */
.service-fee-notice {
    margin-top: 32px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border-radius: var(--border-radius-lg);
    border: 2px solid #f59e0b;
    position: relative;
}

.service-fee-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.fee-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.fee-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.fee-details {
    flex: 1;
}

.fee-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px 0;
}

.fee-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #d97706;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-amount::after {
    content: "paiement unique";
    font-size: 0.9rem;
    font-weight: 500;
    color: #92400e;
    background: rgba(217, 119, 6, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.fee-description {
    color: #92400e;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.fee-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    font-weight: 500;
}

.benefit-item i {
    color: #059669;
    font-size: 1.1rem;
}

/* Responsive adjustments for service fee */
@media (max-width: 768px) {
    .service-fee-notice {
        padding: 20px 16px;
        margin-top: 24px;
    }
    
    .fee-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .fee-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 auto;
    }
    
    .fee-title {
        font-size: 1.25rem;
    }
    
    .fee-amount {
        font-size: 1.75rem;
        justify-content: center;
    }
    
    .fee-amount::after {
        font-size: 0.8rem;
    }
    
    .fee-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .benefit-item {
        justify-content: center;
        font-size: 0.9rem;
    }
}

/* Pricing Popup Modal */
.pricing-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.pricing-popup.active {
    visibility: visible;
    opacity: 1;
}

.pricing-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.pricing-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.pricing-popup.active .pricing-popup-content {
    transform: scale(1) translateY(0);
}

.pricing-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.pricing-popup-close:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.pricing-popup-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.selected-plan {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 16px 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-light);
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.selected-plan strong {
    display: block;
    font-size: 1.3rem;
    margin: 4px 0;
}

.pricing-popup-form {
    padding: 30px 40px 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.pricing-popup-form .form-group {
    margin-bottom: 20px;
}

.pricing-popup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.pricing-popup-form input,
.pricing-popup-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.pricing-popup-form input:focus,
.pricing-popup-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 82, 144, 0.1);
}

.pricing-popup-form textarea {
    resize: vertical;
    min-height: 80px;
}

.popup-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.popup-cancel {
    min-width: 120px;
}

.popup-submit {
    min-width: 160px;
}

.popup-success {
    padding: 60px 40px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2.5rem;
}

.popup-success h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 16px 0;
}

.popup-success p {
    color: var(--text-secondary);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Responsive adjustments for popup */
@media (max-width: 768px) {
    .pricing-popup {
        padding: 10px;
    }
    
    .pricing-popup-content {
        max-height: 95vh;
    }
    
    .pricing-popup-header {
        padding: 30px 20px 20px;
    }
    
    .popup-title {
        font-size: 1.5rem;
    }
    
    .pricing-popup-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .popup-actions {
        flex-direction: column-reverse;
    }
    
    .popup-cancel,
    .popup-submit {
        width: 100%;
        min-width: auto;
    }
    
    .popup-success {
        padding: 40px 20px;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: var(--secondary-color);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin: 20px;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.swiper-pagination {
    margin-top: 32px;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-methods {
    margin: 48px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.method-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
}

.method-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.method-info p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

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

.contact-form {
    display: grid;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(27, 82, 144, 0.1);
}

/* Footer */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social .social-link {
    background: #334155;
    color: #94a3b8;
}

.footer-social .social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    /* Revert to original behavior: hide menu on mobile by default */
    .nav-menu { display: none; }

    /* Show full-screen menu when active */
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(6px);
        z-index: 1100;
    }
    /* Close button visibility and styling for mobile fullscreen menu */
    .nav-close { display: none; }
    .nav-menu.active .nav-close {
        display: inline-flex;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        background: rgba(255,255,255,0.08);
        color: #fff;
        cursor: pointer;
        transition: var(--transition);
    }
    .nav-menu.active .nav-close:hover {
        background: rgba(255,255,255,0.15);
    }
    .nav-menu.active .nav-link {
        color: #fff;
        font-size: 1.4rem;
        font-weight: 600;
        width: 100%;
        max-width: 480px;
        text-align: center;
        padding: 12px 0;
        border-radius: 10px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
    }
    .nav-menu.active .nav-link:hover { background: rgba(255,255,255,0.12); }
    
    .mobile-menu-toggle { display: block; }
    
    .cta-button {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .logo {
        height: 35px;
        max-width: 140px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* Remove scale that caused horizontal overflow on mobile */
    .pricing-card.featured {
        transform: none;
    }
    
    .dashboard-mockup {
        transform: none;
    }
    
    .mockup-content {
        flex-direction: column;
        height: auto;
    }
    
    .mockup-sidebar {
        width: 100%;
    }
    
    .dashboard-cards {
        flex-direction: column;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .testimonial-card {
        margin: 10px;
        padding: 24px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .nav-container {
        padding: 0 12px;
    }
    
    .cta-button {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .logo {
        height: 30px;
        max-width: 120px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error States */
.success {
    color: #22c55e;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-top: 16px;
}

.error {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-top: 16px;
}

/* Video Popup Styles */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.video-popup.active {
    display: flex;
}

.video-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    animation: scaleIn 0.3s ease-in-out;
}

.video-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 10001;
}

.video-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.video-container video {
    object-fit: cover; /* Ensures video fills container properly */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsiveness for video popup */
@media (max-width: 768px) {
    .video-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .video-popup-close {
        top: -45px;
        font-size: 1.2rem;
        width: 36px;
        height: 36px;
    }
}

/* Legal Modal Styles */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.legal-modal.active { display: flex; }

.legal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.legal-modal-content {
    position: relative;
    width: 92%;
    max-width: 900px;
    max-height: 80vh;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 1;
    animation: scaleIn 0.2s ease-in-out;
}

.legal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.legal-modal-close:hover { background: #f8fafc; }

.legal-modal-body {
    padding: 28px 28px 24px 28px;
    overflow: auto;
    max-height: 80vh;
}

.legal-modal-body h2 {
    margin-bottom: 8px;
}

.legal-modal-body h3 {
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-modal-body p { color: var(--text-secondary); }

.legal-modal-body ul {
    padding-left: 18px;
    color: var(--text-secondary);
}

/* About Modal Specific Styles */
#modal-about .company-intro,
#modal-about .company-mission,
#modal-about .company-values,
#modal-about .company-products,
#modal-about .company-expertise,
#modal-about .company-commitment,
#modal-about .company-contact {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#modal-about .company-intro {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-left-color: #0ea5e9;
}

#modal-about .company-mission {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fee7 100%);
    border-left-color: #22c55e;
}

#modal-about .company-values {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-left-color: #f59e0b;
}

#modal-about .company-products {
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    border-left-color: #8b5cf6;
}

#modal-about .company-expertise {
    background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
    border-left-color: #ec4899;
}

#modal-about .company-commitment {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    border-left-color: #16a34a;
}

#modal-about .company-contact {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-left-color: var(--primary-color);
}

#modal-about .company-footer-note {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1e40af 0%, var(--primary-color) 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(27, 82, 144, 0.2);
}

#modal-about .company-footer-note em {
    font-size: 1.1em;
    font-weight: 500;
}

#modal-about h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#modal-about ul li {
    margin-bottom: 8px;
    padding-left: 4px;
}

#modal-about ul li strong {
    color: var(--primary-color);
}

#modal-about a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

#modal-about a:hover {
    color: #1e40af;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    .legal-modal-body { padding: 20px; }
    
    #modal-about .company-intro,
    #modal-about .company-mission,
    #modal-about .company-values,
    #modal-about .company-products,
    #modal-about .company-expertise,
    #modal-about .company-commitment,
    #modal-about .company-contact {
        padding: 16px;
        margin: 16px 0;
    }
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.partners .container {
    position: relative;
    z-index: 1;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 30px;
    align-items: center;
    margin-top: 50px;
}

.partner-item {
    height: 100px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.partner-item:hover::before {
    left: 100%;
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.partner-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) opacity(0.8);
    transition: all 0.4s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-text {
    color: #0f172a;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: 14px;
    text-align: center;
}

/* Add subtle animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.partner-item:nth-child(2n) {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.partner-item:nth-child(2n+1) {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

@media (max-width: 1024px) {
    .partners-logos {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .partner-item {
        height: 80px;
        padding: 15px;
    }
    
    .partner-logo {
        max-height: 50px;
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 80px 0;
    }
    
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 40px;
    }
    
    .partner-item {
        height: 90px;
        padding: 14px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
}

@media (max-width: 640px) {
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .partner-item {
        height: 90px;
        padding: 14px;
    }
    
    .partner-logo {
        max-height: 60px;
    }
}

/* Extra-small / narrow devices tweaks */
@media (max-width: 640px) {
    /* Hide large CTA to prevent header overflow */
    .cta-button { display: none; }
    .lang-btn { padding: 6px 10px; }
    .nav-actions { gap: 8px; }
    /* Hide floating shapes that may extend beyond viewport */
    .shape-1, .shape-2, .shape-3 { display: none; }
}