:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --dark: #1F2937;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

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

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

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

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
}

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

.hero-note {
    font-size: 14px;
    color: var(--gray);
}

/* Chat Preview */
.chat-preview {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
}

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    font-size: 24px;
}

.chat-messages {
    padding: 20px;
    min-height: 200px;
}

.chat-messages .message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.chat-messages .bot {
    background: var(--light-gray);
}

.chat-messages .user {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 50px;
}

/* Features */
.features {
    background: var(--white);
}

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

.feature-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-card p {
    color: var(--gray);
}

/* Sectors */
.sectors {
    background: var(--light-gray);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sector-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

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

.sector-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.sector-card h4 {
    font-size: 16px;
}

/* Pricing */
.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

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

.pricing-card.popular::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 16px;
    color: var(--gray);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
}

.pricing-features li::before {
    content: '✓';
    color: var(--secondary);
    margin-right: 10px;
}

/* Demo Section */
.demo-section {
    background: var(--light-gray);
}

.demo-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 400px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta-section {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section p {
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.cta-section .btn-primary:hover {
    background: var(--light-gray);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
}

.auth-switch a {
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray);
    margin-top: 5px;
}

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

.footer-links a {
    color: var(--gray);
    text-decoration: none;
}

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

.footer-copyright {
    text-align: center;
    color: var(--gray);
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .chat-preview {
        margin: 40px auto 0;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .features-grid,
    .pricing-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* ============================================
   RTL SUPPORT (Hebrew, Arabic)
   ============================================ */

body.rtl,
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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

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

[dir="rtl"] .hero .container {
    direction: rtl;
}

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

[dir="rtl"] .feature-card,
[dir="rtl"] .sector-card,
[dir="rtl"] .pricing-card {
    text-align: right;
}

[dir="rtl"] .pricing-features {
    text-align: right;
}

[dir="rtl"] .pricing-features li::before {
    content: '✓';
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .chat-preview {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .chat-messages .user {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .form-group {
    text-align: right;
}

[dir="rtl"] .auth-switch {
    text-align: right;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary);
}
.footer-contact {
    text-align: left;
}

.footer-contact h4 {
    margin-bottom: 10px;
    color: var(--white);
}

.footer-contact a {
    color: var(--gray);
    text-decoration: none;
}

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

[dir="rtl"] .footer-contact {
    text-align: right;
}
