.home-entry-active {
    overflow: hidden;
}

.home-entry-active .page-shell {
    display: none;
    pointer-events: none;
    user-select: none;
}

.entry-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(229, 57, 53, 0.08), transparent 30%),
        radial-gradient(circle at top, rgba(229, 57, 53, 0.06), transparent 42%),
        #020202;
    color: #f6f7fb;
    transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.45s ease;
}

.entry-neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.entry-shell {
    position: relative;
    z-index: 1;
    width: min(56rem, 100%);
    max-width: 100%;
    overflow-x: clip;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    text-align: center;
}

.entry-shell > * {
    min-width: 0;
}

.entry-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 10rem;
    margin-bottom: 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(229, 57, 53, 0.2);
    background: radial-gradient(circle, rgba(229, 57, 53, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.entry-brand-logo {
    width: 6.25rem;
    height: 6.25rem;
    filter: drop-shadow(0 0 28px rgba(229, 57, 53, 0.55));
}

.entry-brand-label {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: rgba(246, 247, 251, 0.68);
}

.entry-brand-name {
    margin-top: 0.7rem;
    font-family: "Space Grotesk", "Sora", sans-serif;
    font-size: clamp(3.6rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.08em;
    max-width: 100%;
    text-wrap: balance;
}

.entry-brand-subtitle {
    width: min(40rem, 100%);
    margin: 1.2rem auto 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    letter-spacing: 0.02em;
    color: rgba(246, 247, 251, 0.68);
    text-wrap: balance;
}

.entry-language-bar {
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.1rem;
    margin: 2.35rem auto 0;
    padding: 1.1rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.entry-language-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.78rem;
    min-width: 7.9rem;
    padding: 1rem 1.28rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.entry-language-button span {
    white-space: nowrap;
}

.entry-language-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.entry-language-button.is-active {
    background: rgba(229, 57, 53, 0.14);
    border-color: rgba(229, 57, 53, 0.36);
}

.entry-flag {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.entry-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.8rem;
    padding: 0.95rem 1.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d82323, #ff4a3d);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 45px rgba(229, 57, 53, 0.35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.2s ease;
}

.entry-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.entry-cta:hover {
    box-shadow: 0 20px 48px rgba(229, 57, 53, 0.48);
}

.home-entry-dismissed .entry-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-1.5rem);
}

.home-entry-dismissed .page-shell {
    animation: home-page-reveal 0.5s ease both;
}

@keyframes home-page-reveal {
    from {
        opacity: 0.86;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .entry-overlay {
        padding-block: 1.2rem;
        overflow-y: auto;
        place-items: start center;
    }

    .entry-shell {
        width: min(26rem, 100%);
        padding-top: 0.35rem;
    }

    .entry-brand-mark {
        width: 8.4rem;
        height: 8.4rem;
    }

    .entry-brand-logo {
        width: 5.1rem;
        height: 5.1rem;
    }

    .entry-language-bar {
        width: min(24rem, 100%);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
        padding: 0.95rem;
        border-radius: 1.7rem;
    }

    .entry-language-button {
        min-width: 0;
        width: 100%;
        padding-inline: 1rem;
    }

    .entry-brand-label {
        font-size: 0.8rem;
        letter-spacing: 0.28em;
    }

    .entry-brand-name {
        font-size: clamp(2.8rem, 15vw, 4.9rem);
        line-height: 0.94;
        letter-spacing: -0.06em;
    }

    .entry-brand-subtitle {
        width: min(23rem, 100%);
        font-size: 0.98rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .entry-overlay {
        padding: 0.95rem 1rem 1.2rem;
    }

    .entry-shell {
        width: min(18.75rem, calc(100vw - 2rem));
        gap: 0;
    }

    .entry-brand-mark {
        width: 7.2rem;
        height: 7.2rem;
        margin-bottom: 1.15rem;
    }

    .entry-brand-logo {
        width: 4.5rem;
        height: 4.5rem;
    }

    .entry-brand-label {
        font-size: 0.74rem;
        letter-spacing: 0.22em;
    }

    .entry-brand-name {
        margin-top: 0.5rem;
        font-size: clamp(1.95rem, 10.5vw, 2.9rem);
        line-height: 0.98;
        letter-spacing: -0.035em;
    }

    .entry-brand-subtitle {
        width: min(16.8rem, 100%);
        margin-top: 0.9rem;
        font-size: 0.9rem;
        line-height: 1.44;
    }

    .entry-language-bar {
        width: 100%;
        gap: 0.72rem;
        margin-top: 1.55rem;
        padding: 0.8rem;
        border-radius: 1.4rem;
    }

    .entry-language-button {
        gap: 0.62rem;
        min-height: 3.35rem;
        padding: 0.82rem 0.78rem;
        font-size: 0.92rem;
    }

    .entry-flag {
        width: 1.45rem;
        height: 1.45rem;
    }

    .entry-cta {
        width: 100%;
        min-height: 3.4rem;
        margin-top: 1.15rem;
        padding-inline: 1rem;
        font-size: 0.98rem;
    }
}

@media (max-width: 430px) {
    .entry-overlay {
        padding-inline: 0.85rem;
    }

    .entry-shell {
        width: min(17.4rem, calc(100vw - 1.7rem));
    }

    .entry-brand-mark {
        width: 6.35rem;
        height: 6.35rem;
        margin-bottom: 0.95rem;
    }

    .entry-brand-logo {
        width: 4rem;
        height: 4rem;
    }

    .entry-brand-label {
        font-size: 0.68rem;
        letter-spacing: 0.18em;
    }

    .entry-brand-name {
        font-size: clamp(1.8rem, 9.2vw, 2.45rem);
        line-height: 1;
        letter-spacing: -0.025em;
    }

    .entry-brand-subtitle {
        width: min(15rem, 100%);
        font-size: 0.84rem;
        line-height: 1.38;
    }

    .entry-language-bar {
        width: min(16.4rem, 100%);
        grid-template-columns: minmax(0, 1fr);
        gap: 0.58rem;
        margin-top: 1.2rem;
        padding: 0.68rem;
    }

    .entry-language-button {
        justify-content: flex-start;
        min-height: 2.95rem;
        padding: 0.72rem 0.9rem;
        font-size: 0.88rem;
    }

    .entry-flag {
        width: 1.32rem;
        height: 1.32rem;
    }

    .entry-cta {
        width: min(16.4rem, 100%);
        min-height: 3.15rem;
        margin-top: 0.95rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 360px) {
    .entry-shell {
        width: min(15.8rem, calc(100vw - 1.2rem));
    }

    .entry-brand-name {
        font-size: clamp(1.6rem, 8.8vw, 2.05rem);
    }

    .entry-brand-subtitle {
        width: min(13.9rem, 100%);
        font-size: 0.8rem;
    }

    .entry-language-bar {
        gap: 0.6rem;
        padding: 0.6rem;
    }

    .entry-language-button {
        min-height: 2.78rem;
        padding: 0.66rem 0.8rem;
        font-size: 0.84rem;
    }

    .entry-cta {
        min-height: 3rem;
        font-size: 0.88rem;
    }
}
