:root {
    --glass: rgba(18, 22, 32, 0.55);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #f4f6fb;
    --muted: rgba(244, 246, 251, 0.65);
    --accent: #7eb8ff;
    --tile-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
    color: var(--text);
    background: #0b0f16;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.bg-carousel {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

.bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: none;
}

.bg-slide.is-active {
    opacity: 1;
}

.bg-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.bg-carousel--fallback .bg-slide--gradient {
    opacity: 1;
    background: linear-gradient(125deg, #1a2a4a 0%, #2d1f4a 40%, #0f2740 100%);
    animation: hueShift 24s ease-in-out infinite alternate;
}

@keyframes hueShift {
    0% {
        filter: hue-rotate(0deg) saturate(1.1);
    }
    100% {
        filter: hue-rotate(35deg) saturate(1.25);
    }
}

.scrim {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 120% 80% at 50% 40%, rgba(10, 14, 24, 0.25), rgba(6, 8, 14, 0.82));
    pointer-events: none;
}

.shell {
    position: relative;
    z-index: 2;
    width: min(960px, 92vw);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.brand {
    text-align: center;
    margin-bottom: clamp(1.5rem, 5vw, 2.75rem);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.brand h1 {
    margin: 0 0 0.35rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.tagline {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: clamp(0.75rem, 3vw, 1.5rem);
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(1.25rem, 3vw, 2rem) 1rem;
    text-decoration: none;
    color: var(--text);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--tile-shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.tile:not(.tile--muted):hover,
.tile:not(.tile--muted):focus-visible {
    transform: translateY(-4px);
    border-color: rgba(126, 184, 255, 0.45);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(126, 184, 255, 0.25);
    outline: none;
}

.tile:not(.tile--muted):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.tile--muted {
    cursor: default;
    color: var(--muted);
    opacity: 0.92;
}

.tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.tile--muted .tile__icon {
    color: rgba(200, 210, 230, 0.55);
}

.tile__label {
    font-weight: 600;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    letter-spacing: 0.01em;
}
