:root {
    --primary: #3b82f6;
    --accent: #06b6d4;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --glass: rgba(30, 41, 59, 0.7);
}

html {
    background-color: var(--bg-dark);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: transparent;
    /* Transparent so map (z-index -1) shows through */
    color: var(--text-light);
    overflow: hidden;
    /* Desktop default, overridden on mobile */
}

/* 3D Container */
#globe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Strictly behind content */
    opacity: 0.6;
    pointer-events: none;
    /* Purely decorative, do not steal scroll/clicks */
}

/* UI Layer */
.overlay {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    /* Let clicks pass to globe if needed */
}

header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), transparent);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.auth-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    pointer-events: none;
    /* Allow clicks to pass through empty space */
}

main>* {
    pointer-events: auto;
    /* Re-enable for content */
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--accent);
}

p.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* App Grid Styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    pointer-events: none;
    /* Grid container shouldn't block */
}

.app-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: auto;
    /* Enable clicks on cards */
}

.app-card:hover:not(.disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.app-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.app-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.app-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.app-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.4;
}


footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    pointer-events: none;
    /* Footer container pass-through */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

footer p {
    pointer-events: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .overlay {
        height: auto;
        min-height: 100vh;
        display: block;
        /* Stack naturally */
    }

    h1 {
        font-size: 2.5rem;
    }

    header {
        padding: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    /* Ensure padding at bottom for scrolling */
    footer {
        padding-bottom: 2rem;
    }
}