:root {
    --bg-start: #1f1c2c;
    --bg-end: #090909;
    --accent: #00d9ff;
    --accent-soft: rgba(0, 217, 255, 0.2);
    --text-color: #f5f7ff;
    --muted-color: #95a5c6;
}

* {
    box-sizing: border-box;
    transition: all .3s ease;
}

body {
    font-family: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 20% 20%, rgba(0, 217, 255, .25), transparent 40%),
                radial-gradient(circle at 80% 10%, rgba(255, 16, 240, .2), transparent 35%),
                linear-gradient(135deg, var(--bg-start), var(--bg-end));
    display: block;
    opacity: 0;
    animation: pageFadeIn .6s ease forwards;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 60%);
    mix-blend-mode: screen;
}

main {
    width: 100%;
    min-height: 100vh;
    background: rgba(11, 14, 30, .85);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 35px 70px rgba(4, 6, 20, .6);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(18px);
    position: relative;
    padding-bottom: clamp(6rem, 12vw, 8rem);
}

main .up {
    flex: 1;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    padding-bottom: clamp(6rem, 12vw, 7.5rem);
    overflow-y: auto;
}

.page-header {
    margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.page-header .eyebrow {
    letter-spacing: .3em;
    text-transform: uppercase;
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
    margin-bottom: .5rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: .5rem;
}

.page-header p {
    color: var(--muted-color);
    max-width: 620px;
    line-height: 1.6;
}

.tab-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.tab-1 a {
    position: relative;
    padding: 1.25rem;
    border-radius: 26px;
    text-decoration: none;
    color: inherit;
    min-height: 170px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    box-shadow: 0 20px 40px rgba(7, 12, 32, .35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tab-1 a::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0));
    transition: opacity .4s ease;
}

.tab-1 a:hover {
    transform: translateY(-8px);
}

.tab-1 a:hover::after {
    opacity: 1;
}

.tab-1 a span {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    z-index: 1;
}

.tab-1 a span img {
    width: 64%;
    max-width: 72px;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, .45));
}

.tab-1 a p {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    letter-spacing: .02em;
    z-index: 1;
}

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    padding: .75rem 1.5rem calc(.75rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .3rem;
    background: rgba(11, 16, 35, .9);
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 20px 45px rgba(3, 3, 15, .65);
    backdrop-filter: blur(22px);
    z-index: 12;
}

.footer a {
    text-align: center;
    color: rgba(255, 255, 255, .7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    font-size: .78rem;
    letter-spacing: .05em;
}

.footer a:hover {
    color: var(--text-color);
}

.footer .nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.footer svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer .nav-label {
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: none;
}

.footer a.active {
    color: var(--accent);
    font-weight: 700;
}

.footer a.active .nav-icon {
    background: var(--accent-soft);
    color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 217, 255, .25);
    border: 1px solid rgba(0, 217, 255, .5);
}

.footer a:not(.active) .nav-icon {
    border: 1px solid rgba(255, 255, 255, .05);
}

.page-root.is-exiting,
body.is-exiting {
    animation: pageFadeOut .35s ease forwards;
}

@media (max-width: 640px) {
    .tab-1 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .tab-1 a {
        padding: 1rem;
        min-height: 150px;
    }
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 0;
        filter: blur(16px);
    }
}
