/* ── Landing gateway page – all styles ── */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background: #FFFFFF;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Decorative SVG icons ── */
.deco {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: .18;
}

/* Left side — document/globe icon (top-left) */
.deco--book {
    width: 240px;
    left: -20px;
    top: 50px;
}

/* Left side — map pins icon (bottom-left) */
.deco--pins {
    width: 190px;
    left: 30px;
    bottom: 50px;
}

/* Right side — university building (top-right) */
.deco--building {
    width: 270px;
    right: -20px;
    top: 30px;
}

@media (max-width: 1100px) {
    .deco--book     { transform: scale(.75); transform-origin: top left; }
    .deco--pins     { transform: scale(.75); transform-origin: bottom left; }
    .deco--building { transform: scale(.75); transform-origin: top right; }
}

/* ── Tablet: tighten spacing ── */
@media (max-width: 960px) {
    .cards { gap: 20px; max-width: 720px; }
    .card  { padding: 22px 22px 22px; }
}

@media (max-width: 860px) {
    .deco  { display: none; }
    .cards { max-width: 640px; }
    .card  { padding: 20px 20px 20px; }
}

/* ── Layout stack ── */
.page-header,
.page-main,
.page-footer { position: relative; z-index: 1; }

/* ── Header / Logo ── */
.page-header {
    text-align: center;
    padding: 28px 24px 8px;
    flex-shrink: 0;
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo__svg {
    display: block;
    height: 80px;
    width: auto;
}

/* ── Main ── */
.page-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 16px;
}

.welcome-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #0d0028;
    text-align: center;
    margin-bottom: 6px;
}

.welcome-sub {
    font-size: 1rem;
    color: #6b6a80;
    text-align: center;
    margin-bottom: 28px;
}

/* ── Cards row ── */
.cards {
    display: flex;
    gap: 28px;
    max-width: 880px;
    width: 100%;
    justify-content: center;
}

/* ── Role card ── */
.card {
    flex: 1;
    max-width: 410px;
    border-radius: var(--radius-card);
    padding: 28px 34px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Student */
.card--student { background: var(--student-bg); }

/* Exhibitor */
.card--exhibitor { background: var(--exhibitor-bg); }

/* ── Icon circle ── */
.card__icon {
    width: 76px; height: 76px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
    position: relative; z-index: 1;
}

.card--student  .card__icon { background: var(--student-bg-deep);   color: var(--student-accent); }
.card--exhibitor .card__icon { background: var(--exhibitor-bg-deep); color: var(--exhibitor-accent); }

/* ── Card text ── */
.card__title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative; z-index: 1;
}

.card--student  .card__title  { color: var(--student-accent); }
.card--exhibitor .card__title { color: var(--exhibitor-accent); }

.card__desc {
    font-size: .92rem;
    line-height: 1.55;
    color: #4a4870;
    margin-bottom: auto;
    padding-bottom: 20px;
    position: relative; z-index: 1;
}

/* ── SVG scene (bottom decoration) ── */
.card__scene {
    position: absolute;
    bottom: 58px;
    left: 0; right: 0;
    width: 100%;
    pointer-events: none;
    opacity: 1;
}

/* ── Button ── */
.card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    border-radius: var(--radius-btn);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 700;
    color: var(--uni-white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    position: relative; z-index: 2;
}

.card__btn:hover { opacity: .88; transform: scale(.985); }

.card--student  .card__btn { background: var(--student-btn); }
.card--exhibitor .card__btn { background: var(--exhibitor-btn); }

/* ── Footer ── */
.page-footer {
    background: var(--uni-blue);
    color: rgba(255,255,255,.75);
    text-align: center;
    padding: 12px 24px;
    font-size: .82rem;
    letter-spacing: .02em;
    flex-shrink: 0;
}

/* ── Mobile: single-column + allow scrolling ── */
@media (max-width: 700px) {
    body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .page-main {
        justify-content: flex-start;
        padding-top: 16px;
        padding-bottom: 24px;
    }

    .welcome-sub { margin-bottom: 20px; }

    .cards {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        max-width: 480px;
    }

    .card {
        max-width: 100%;
        min-height: unset;
        padding: 22px 24px 24px;
    }

    .card__scene { bottom: 60px; }

    .card__btn { padding: 16px 24px; }
}

/* ── Compact phone ── */
@media (max-width: 480px) {
    .page-header { padding: 20px 16px 8px; }
    .logo__svg   { height: 64px; }

    .welcome-title { font-size: 1.3rem; }
    .welcome-sub   { font-size: .9rem; margin-bottom: 16px; }

    .page-main { padding: 12px 16px 20px; }
    .cards     { gap: 14px; }
    .card      { padding: 18px 16px 20px; }

    .card__icon  { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 10px; }
    .card__title { font-size: 1.15rem; }
    .card__desc  { font-size: .88rem; padding-bottom: 14px; }
    .card__btn   { padding: 14px 20px; font-size: .95rem; }

    .page-footer { padding: 10px 16px; font-size: .78rem; }
}

/* ── iOS safe areas (notch/home bar) ── */
@supports (padding: env(safe-area-inset-bottom)) {
    .page-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}
