:root {
    --bg: #f8fafc;
    --navy: #0a192f;
    --accent: #00d4ff;
    --glass: rgba(255, 255, 255, 0.7);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--navy);
    overflow-x: hidden;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-image {
    width: auto;
    height: 100px;
    max-width: min(56vw, 460px);
    object-fit: contain;
    display: block;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.2rem;
    line-height: 1;
    white-space: nowrap;
}

.brand-name small {
    display: block;
    font-size: 0.6rem;
    color: var(--accent);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 24px;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(10, 25, 47, 0.2);
    background: white;
    color: var(--navy);
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.nav-overlay {
    display: none;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 1rem;
    padding: 0;
    margin: 0;
    align-items: center;
    white-space: nowrap;
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: #0055B8;
    font-weight: 500;
    font-size: 0.86rem;
    transition: 0.3s;
    white-space: nowrap;
}

#current-lang {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    top: 100%;
    left: 0;
    z-index: 10;
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.hero {
    text-align: center;
    padding: clamp(64px, 10vw, 100px) 20px;
    background: radial-gradient(circle at top right, #e0f2fe, transparent);
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    word-break: break-word;
}

.gradient-text {
    background: linear-gradient(90deg, var(--navy), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.loader {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--navy);
}

footer {
    background: #f1f5f9;
    padding: 60px 20px 20px;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-col p {
    margin: 0;
}

.footer-col h4 {
    margin: 0;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: #64748b;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    font-size: 0.8rem;
    color: #94a3b8;
}

body[dir="rtl"] {
    direction: rtl;
}

body[dir="rtl"] .dropdown-content {
    left: auto;
    right: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1120px) {
    .navbar {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 1rem;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 44px;
        height: 40px;
        padding: 0;
        font-size: 1.25rem;
        z-index: 1700;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        height: 100dvh;
        background: #ffffff;
        box-shadow: -12px 0 34px rgba(0, 0, 0, 0.16);
        margin: 0;
        padding: 84px 20px 28px;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 1rem;
        white-space: normal;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 1650;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 25, 47, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1600;
    }

    .nav-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid rgba(10, 25, 47, 0.08);
        padding-bottom: 10px;
    }

    .nav-links > li:last-child {
        border-bottom: 0;
    }

    .nav-links a {
        display: block;
        width: 100%;
        white-space: normal;
        font-size: 1rem;
        line-height: 1.35;
    }

    .dropdown-content {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 10px;
        background: #f8fafc;
        margin-top: 8px;
        padding: 6px 8px;
    }

    .dropdown.is-open > .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 8px 8px 8px 12px;
        white-space: normal;
        border-radius: 8px;
    }

    .dropdown-content a:hover {
        background: rgba(10, 25, 47, 0.06);
    }

    .language-menu {
        max-height: 240px;
        overflow-y: auto;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 700px) {
    .brand-name {
        font-size: 0.92rem;
    }

    .hero {
        padding: 72px 16px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .logo-image {
        height: 80px;
        max-width: min(78vw, 360px);
    }

    .brand-name {
        display: none;
    }

    .modal-content {
        padding: 24px 18px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 16px;
    }

    footer {
        margin-top: 56px;
        padding: 42px 16px 16px;
    }

    .footer-col:not(:first-child) h4 {
        margin: 0 0 10px;
    }

    .footer-col a {
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding-top: 22px;
        font-size: 0.78rem;
    }
}

@media (max-width: 1120px) {
    .brand-name {
        font-size: 1.05rem;
    }

    .logo-image {
        height: 88px;
        max-width: min(66vw, 400px);
    }
}

@media (max-width: 460px) {
    .hero {
        padding: 58px 14px;
    }

    .hero h1 {
        font-size: 1.72rem;
    }

    footer {
        margin-top: 44px;
        padding-top: 34px;
    }

    .footer-grid {
        gap: 18px;
    }
}