/* Language selector (root landing) */
:root {
    --landing-bg: #05070a;
    --landing-text: #f5f5f5;
    --landing-accent: #14E3D4;
    --landing-line: rgba(255, 255, 255, 0.16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--landing-text);
    font-family: "Source Sans Pro", system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background-color: var(--landing-bg);
    background-image:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(20, 227, 212, 0.22), transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(10, 92, 120, 0.35), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
    background-attachment: fixed;
}

.lang-landing {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lang-landing__brand {
    margin: 0 0 clamp(12px, 2vw, 20px);
    width: 100%;
    display: flex;
    justify-content: center;
}

.lang-landing__brand img {
    width: min(420px, 80vw);
    height: auto;
    display: block;
    margin: 0 auto;
}

.lang-landing__prompt {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    opacity: 0.85;
    margin: 0 0 clamp(24px, 4vw, 48px);
}

.lang-landing__options {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(16px, 3vw, 32px);
    justify-items: center;
}

.lang-card {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 200px;
    padding: 28px 20px;
    border: 1px solid var(--landing-line);
    border-radius: 16px;
    color: var(--landing-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.lang-card:hover,
.lang-card:focus-visible {
    border-color: var(--landing-accent);
    background: rgba(20, 227, 212, 0.08);
    box-shadow: 0 0 32px rgba(20, 227, 212, 0.18);
    transform: translateY(-2px);
    color: var(--landing-text);
    outline: 3px solid var(--landing-accent);
    outline-offset: 3px;
}

.lang-card__flag {
    width: 96px;
    height: 72px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

.lang-card__name {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.04em;
}

@media (min-width: 1920px) {
    .lang-landing {
        max-width: 1200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lang-card {
        transition: none;
    }
}
