:root {
    --overlay-top: rgba(42, 15, 63, 0.84);
    --overlay-bottom: rgba(42, 15, 63, 0.62);
    --btn-bg: #ffffff;
    --btn-text: #2a0f3f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000;
    overflow: hidden; /* desktop full-screen */
}

/* Full-screen split */
.gateway {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Each panel */
.panel {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden; /* required for zoom hover */
}

/* Background image layer */
.bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: scale(1);
    filter: contrast(1.03) saturate(1.03);
    transition: transform 0.65s ease, filter 0.65s ease;
    will-change: transform, filter;
}

/* Purple overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--overlay-top), var(--overlay-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    transition: background 0.45s ease;
}

.content {
    max-width: 560px;
    color: #ffffff;
}

.content h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 34px;
    opacity: 0.96;
}

.content a {
    display: inline-block;
    padding: 16px 44px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.35);
}

/* Quality effect on hover (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .panel:hover .bg {
        transform: scale(1.06);
        filter: contrast(1.10) saturate(1.15) brightness(1.04);
    }

    .panel:hover .overlay {
        background: linear-gradient(
            180deg,
            rgba(42, 15, 63, 0.90),
            rgba(42, 15, 63, 0.60)
        );
    }
}

/* Mobile stack */
@media (max-width: 900px) {
    body { overflow-y: auto; }

    .gateway {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .panel {
        width: 100%;
        height: 62vh;
    }

    .overlay {
        padding: 34px 22px;
    }
}
