:root {
    --bg-color: #FFFFFF;
    --text-main: #1D1D1F;
    --text-light: #86868B;
    --accent-blue: #007AFF;
    --accent-red: #FF3B30;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 20px 40px rgba(0,0,0,0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
}

/* --- AURORA BACKGROUND --- */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: #FFFFFF;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 15s infinite alternate;
}

.blob-one {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #E0F2FE;
}

.blob-two {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #F3E8FF;
    animation-delay: -5s;
}

.blob-three {
    top: 40%;
    left: 30%;
    width: 30vw;
    height: 30vw;
    background: #E0E7FF;
    opacity: 0.2;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.1);
    }
}

/* --- NAV --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    height: 40px;
    width: auto;
    mix-blend-mode: multiply;
}

.logo span {
    font-weight: 700;
    letter-spacing: -0.05em;
    font-size: 1.1rem;
}

.nav-links {
    list-style: none;
}

    .nav-links a {
        font-weight: 500;
        color: var(--text-light);
        text-decoration: none;
        transition: 0.3s;
    }

        .nav-links a:hover {
            color: var(--accent-red);
        }

/* --- HUB LAYOUT --- */
.hub-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.header-section {
    text-align: center;
    margin-bottom: 4rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.gradient-text {
    background: linear-gradient(135deg, #1D1D1F 0%, #86868B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- GAME CARDS --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .game-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.calculus {
    background: #E0E7FF;
    color: #5856D6;
}

.logic {
    background: #FFE5E5;
    color: #FF3B30;
}

.coming-soon {
    background: #F5F5F7;
    color: #86868B;
}

/* Play Button fake link */
.play-btn {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

/* Locked State */
.game-card.locked {
    opacity: 0.6;
    cursor: default;
}

    .game-card.locked:hover {
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.6);
    }

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}
