/* CSS Reset & Variable Definitions */
:root {
    --bg-dark: #f5f3ff;
    --primary-grad: linear-gradient(135deg, #1e1b4b 0%, #5b21b6 50%, #1d4ed8 100%);
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.35);
    --text-primary: #1e1b4b;
    --text-secondary: rgba(30, 27, 75, 0.7);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    /* Very bright, warm cotton-candy pastel gradient (removes all dark/scooky tones) */
    background-image: linear-gradient(135deg, #e0f2fe 0%, #f3e8ff 50%, #fce7f3 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Three.js Canvas positioning */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Global Glass Backdrop (Balanced 16px blur to avoid over-blurring while softening details) */
.glass-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    background: rgba(255, 255, 255, 0.15); /* Bright white wash to reflect pastels */
}

/* Global Glass Backdrop Layer (This blurs the 3D canvas beneath it) */

/* Layout Container */
.main-container {
    position: relative;
    z-index: 10; /* Make sure UI elements are on top of the blur filter */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px;
}

/* Premium Minimalist Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px); /* Subtle card-level blur */
    -webkit-backdrop-filter: blur(8px);
    border-radius: 32px;
    padding: 56px 72px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(30, 27, 75, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    animation: cardFadeIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Typography Styling */
.main-title {
    font-family: var(--font-head);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 10px rgba(91, 33, 182, 0.15));
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 4px;
    word-break: keep-all;
    margin-top: 12px;
}

/* Responsive Styles for Mobile Layouts */
@media (max-width: 768px) {
    .glass-card {
        padding: 44px 32px;
        max-width: 340px;
        border-radius: 24px;
    }

    .main-title {
        font-size: 2.35rem;
        letter-spacing: -0.5px;
    }

    .subtitle {
        font-size: 0.95rem;
        letter-spacing: 3px;
        margin-top: 8px;
    }
}
