/* DEMO-2 -- BelajarLand public Gateway (`/`). Literal color values
   throughout, not `var(--custom-property)` -- matching student-login.css's
   own documented precedent (a real, reproduced bug where CSS custom
   properties declared in a linked stylesheet silently failed to resolve in
   this project's headless QA browser build). This file is small and
   self-contained, so there is no meaningful maintainability trade-off. */

body.gateway {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(160deg, #7c5cff 0%, #5b3df0 55%, #3d2a99 100%);
    font-family: 'Nunito', system-ui, sans-serif;
    color: #2c2350;
    display: flex;
    flex-direction: column;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gateway__hero {
    padding: 3.5rem 1.5rem 2rem;
    color: #ffffff;
}

.gateway__brand {
    font-size: 2.5rem;
    margin: 0 0 0.25rem;
}

.gateway__title {
    font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    font-weight: 800;
    font-size: 2.25rem;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.gateway__tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ece8ff;
    margin: 0;
}

.gateway__main {
    flex: 1;
    padding: 1rem 1rem 3rem;
}

.gateway__cards {
    max-width: 1040px;
}

.gateway-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    height: 100%;
    min-height: 44px;
    padding: 2rem 1.5rem;
    border-radius: 22px;
    background: #ffffff;
    color: #2c2350;
    box-shadow: 0 16px 36px rgba(29, 20, 66, 0.22);
    border: 3px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gateway-card:hover,
.gateway-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(29, 20, 66, 0.3);
    color: #2c2350;
    text-decoration: none;
}

.gateway-card:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.gateway-card__icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.gateway-card__title {
    font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.gateway-card__description {
    font-size: 0.95rem;
    color: #6b6690;
    font-weight: 600;
}

.gateway-card--student {
    border-color: #7c5cff;
}

.gateway-card--teacher {
    border-color: #2f8fdb;
}

.gateway-card--parent {
    border-color: #ff9d3d;
}

.gateway__footer {
    padding: 1.25rem 1.5rem 2rem;
    color: #ece8ff;
    font-size: 0.9rem;
}

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

    .gateway-card:hover,
    .gateway-card:focus-visible {
        transform: none;
    }
}

@media (max-width: 420px) {
    .gateway__title {
        font-size: 1.85rem;
    }

    .gateway-card {
        padding: 1.5rem 1.25rem;
    }
}
