@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
    --bg-color-light: #f8f9fa;
    --text-color-light: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #050505; /* Start pitch black */
    transition: background-color 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- LIGHTS ON STATE --- */
body.lights-on {
    /* Warm Neutral Mesh Gradient */
    background: 
        radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(217, 119, 6, 0.08) 0%, transparent 50%),
        radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.9) 0%, transparent 25%),
        linear-gradient(135deg, #ffffff 0%, #f5f5f4 50%, #e7e5e4 100%);
    background-size: 200% 200%;
    animation: mesh-shift 15s ease-in-out infinite;
}

@keyframes mesh-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

body.lights-on #dark-overlay {
    opacity: 0;
    pointer-events: none;
}

body.lights-on #main-content {
    opacity: 1;
    transform: translateY(0);
}

body.lights-on .hint-text {
    opacity: 0;
}

/* --- LIGHTS OFF / DARK OVERLAY --- */
#dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, #1a1a1a, #000000);
    z-index: 10;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none; /* Let clicks pass through to chain if needed, though chain is z-index 20 */
}

.hint-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4b5563;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    transition: opacity 0.5s;
    pointer-events: none;
    user-select: none;
}

/* --- CHAIN MECHANISM --- */
#chain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none; /* Container doesn't block, children do */
}

#chain-mount {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #444;
    border-radius: 50%;
    z-index: 25;
}

#chain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 21;
    cursor: grab;
    pointer-events: auto; /* Force events */
}

#chain-canvas:active {
    cursor: grabbing;
}
/* Handle is now drawn on canvas or part of physics, static styles removed */

/* --- MAIN CONTENT --- */
#main-content {
    position: relative;
    z-index: 5;
    text-align: center;
    opacity: 0;
    width: 100%;
    transform: translateY(20px);
    transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
    color: var(--text-color-light);
}

.coming-soon-text {
    font-size: 12rem;
    font-weight: 900;
    letter-spacing: -2px;
    /* Black to warm gradient */
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 50%, #78716c 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    
    /* 3D tilt ready */
    transform-style: preserve-3d;
    perspective: 1000px;
    
    /* Glow animation */
    animation: text-glow 3s infinite alternate;
    
    /* Warm shadow for depth */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.brand-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 10px;
    color: #78716c; /* Warm stone */
    text-transform: lowercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.anim-wrapper {
    display: inline-block;
    animation: float-anim 4s ease-in-out infinite;
}

@keyframes float-anim {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px rgba(0,0,0,0);
    }
    100% {
        text-shadow: 0 20px 50px rgba(0,0,0,0.2);
    }
}

/* Response for smaller screens */
@media (max-width: 768px) {
    .coming-soon-text {
        font-size: 4rem;
    }
}
