.global-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
    color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 72rem; /* max-w-6xl */
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- BRAND LOGO & LINK --- */
.header-brand-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 900;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: #0f172a;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.header-brand-link:hover {
    opacity: 0.9;
}
.header-brand-logo {
    height: 2rem;
    width: 2rem;
    flex-shrink: 0;
}

/* --- NAVIGATION LINKS (Desktop First) --- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.nav-link:hover {
    color: #0f172a;
}

/* --- ACTIONS GROUP (Language + Button) --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Space between language switcher and button */
}

/* --- LANGUAGE SWITCHER STYLING --- */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.lang-switch {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lang-switch:hover {
    color: #0f172a;
}

.lang-switch.active {
    color: #0f172a;
    font-weight: 700;
}

.lang-divider {
    color: #cbd5e1;
    font-size: 0.75rem;
}

/* --- ACTION BUTTONS --- */
.btn-signin {
    display: inline-block;
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background-color 0.2s ease;
    animation: pulse-green 2s infinite;
}
.btn-signin:hover {
    background-color: #1e293b;
}

.btn-header-trial {
    padding: 0.5rem 1.125rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background-color: var(--color-emerald-600, #059669);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
    transition: background-color 0.15s ease;
    animation: pulse-green 2s infinite;
}
.btn-header-trial:hover {
    background-color: var(--color-emerald-700, #047857);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* --- RESPONSIVE / MOBILE VIEW --- */
@media (max-width: 50em) {
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem 0;
    }

    /* Row 1: Left */
    .header-brand-link {
        order: 1;
    }

    /* Row 1: Right (Actions with Switcher & Button together) */
    .header-actions {
        order: 2;
        gap: 1.5rem; /* Tighter gap on tablet/mobile */
    }

    .btn-signin,
    .btn-header-trial {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    /* Row 2: Full width navigation */
    .header-nav {
        display: flex !important;
        order: 3;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 1.25rem;
        padding-top: 0.75rem;
    }

    .header-nav .nav-link {
        font-size: 0.8125rem;
        font-weight: 500;
        color: #475569;
    }
}

/* Small Screens */
@media (max-width: 30em) {
    .header-brand-link span {
        display: none; /* Icon only */
    }

    .header-actions {
        gap: 1rem;
    }

    .header-nav {
        gap: 0.75rem;
        font-size: 0.75rem;
    }
}