:root {
    --primary-color: #E07A5F;
    --secondary-color: #3D405B;
    --accent-emerald: #10B981;
    --bg-dark: #0F172A;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #F8FAFC;
    --text-dim: #94A3B8;
    --font-main: 'Inter', sans-serif;
}

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

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lang-btn.active {
    background: var(--accent-emerald);
    color: white;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

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

/* Mobile Header Adjustment */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 2rem;
    }
}

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

[dir="rtl"] .contact-info,
[dir="rtl"] .countdown-container {
    flex-direction: row-reverse;
}

/* Fix phone number direction in RTL */
[dir="rtl"] .contact-btn {
    direction: ltr;
    unicode-bidi: embed;
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(15, 23, 42, 0.9) 0%,
            rgba(15, 23, 42, 0.7) 40%,
            rgba(15, 23, 42, 0.2) 100%);
}

/* Header */
header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo Styles */
.logo-img {
    height: 100px;
    /* Increased by 50% more */
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: none;
    /* Hide text if logo includes it, or adjust if you want both */
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    z-index: 1;
}

.content-glass {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 650px;
}

.badge {
    background: rgba(224, 122, 95, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    width: fit-content;
    border: 1px solid rgba(224, 122, 95, 0.3);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(to right, white, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

/* Countdown */
.countdown-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    width: fit-content;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4rem;
}

.time-unit span {
    font-size: 2.25rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-emerald);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.time-unit label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

.separator {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-top: -1.5rem;
}

/* Contact Area */
.action-area p {
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-btn {
    text-decoration: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Visuals Column */
.visuals-col {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    /* Compact gap */
    align-items: stretch;
    justify-content: center;
    /* Center them */
    flex-wrap: nowrap;
    /* Force single line */
    width: 100%;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 1rem;
    /* Compact padding */
    border-radius: 1rem;
    /* Slightly tighter radius */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
    /* Allow shrinking below content size if needed */
    flex: 1;
    /* Distribute space equally */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.feature-icon {
    width: 60px;
    /* Smaller icon to save space */
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.2));
    border-radius: 5px;
}

/* Specific styling for the Investor icon to differentiate it */
/* Hue rotate 45deg shifts Green -> Gold/Blue-ish depending on base */
/* Hue rotate 180deg shifts Green -> Purple/Pink */
/* Let's try to get a "Gold" look. Green is around 120. Gold is around 45-50.
   So -70deg or +290deg. Let's try -70deg */
img[alt="Sécurité Investisseur"] {
    filter: hue-rotate(-70deg) drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}

.glass-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    /* Pure white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added shadow for legibility */
}

.glass-card p {
    font-size: 0.9rem;
    color: #f1f5f9;
    /* Much brighter text */
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Added shadow for legibility */
}

/* Footer */
footer {
    padding: 2rem 3rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
    z-index: 10;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    /* Dark backdrop */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* High z-index */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1.5rem;
    /* Match cards */
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-emerald);
}

.modal-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.2));
}

.modal-subtitle {
    font-size: 1.25rem;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    /* Light gray text */
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    /* Centered with bottom margin */
    line-height: 1.6;
    font-weight: 300;
}

.hero-description strong {
    color: white;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.countdown-container {
    display: flex;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-body {
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 1rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 0;
}

.modal-body strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.call-to-action {
    text-align: center;
    font-style: italic;
    color: var(--accent-emerald) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

/* Feature cards cursor */
.feature-card {
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .content-glass {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        margin: 0 auto;
    }

    .visuals-col {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        width: 100%;
        flex-wrap: wrap;
    }

    .overlay {
        background: rgba(15, 23, 42, 0.7);
        /* Darker overlay for mobile due to less space */
    }
}

@media (max-width: 768px) {

    /* Relax padding for mobile */
    header {
        padding: 1.5rem 1.5rem;
        width: 100%;
    }

    main {
        padding: 0 1.5rem;
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Force strict centering */
    .hero-content {
        align-items: center;
        text-align: center;
        width: 100%;
    }

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

    .logo-container {
        justify-content: center;
    }

    .countdown-container {
        padding: 1rem;
        gap: 0.5rem;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .time-unit span {
        font-size: 1.5rem;
    }

    .separator {
        font-size: 1.5rem;
        margin-top: -1rem;
    }

    .contact-info {
        justify-content: center;
        width: 100%;
    }

    /* Stack buttons on very small screens if needed, but center them */
    .contact-btn {
        justify-content: center;
    }
}