:root {
    --bg-base: #000000;
    --text-primary: #ffffff;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sophisticated Noise Overlay for Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Elegant Slow Background Lighting */
.mesh-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vw;
    height: 150vh;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    transform: translate(-50%, -50%) scale(1);
    animation: breathe 10s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes breathe {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Layout */
.container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem;
}

/* Main Brand Text - Cinematic Reveal */
.brand {
    display: flex;
    overflow: hidden; /* Crucial for the slide-up reveal */
    padding: 1rem 0;
}

.letter {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 8rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    
    /* Animation state */
    opacity: 0;
    transform: translateY(110%);
    
    /* Smooth transition for interactive magnetic hover */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                color 0.3s ease, 
                text-shadow 0.3s ease,
                z-index 0s;
                
    /* Initial reveal */
    animation: revealLetter 2s cubic-bezier(0.16, 1, 0.3, 1) var(--delay) forwards;
}

/* Staggered animation for letters */
.brand .letter:nth-child(1) { --delay: 0.1s; }
.brand .letter:nth-child(2) { --delay: 0.15s; }
.brand .letter:nth-child(3) { --delay: 0.2s; }
.brand .letter:nth-child(4) { --delay: 0.25s; }
.brand .letter:nth-child(5) { --delay: 0.3s; }
.brand .letter:nth-child(6) { --delay: 0.35s; }
/* 7 is the space */
.brand .letter:nth-child(8) { --delay: 0.5s; }
.brand .letter:nth-child(9) { --delay: 0.55s; }
.brand .letter:nth-child(10) { --delay: 0.6s; }
.brand .letter:nth-child(11) { --delay: 0.65s; }

.space {
    width: clamp(1rem, 3vw, 3rem);
}

@keyframes revealLetter {
    0% {
        opacity: 0;
        transform: translateY(110%);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Interactive Cursor Glow */
.cursor-glow {
    position: fixed;
    top: -300px;
    left: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
}

/* Subtle Glare Sweep Effect */
.container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg);
    animation: sweep 8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    animation-delay: 2.5s;
    pointer-events: none;
    z-index: 10;
}

@keyframes sweep {
    0% { left: -100%; }
    30% { left: 200%; }
    100% { left: 200%; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .space {
        display: none; /* Hide the physical space if we wrap */
    }
    .letter:nth-child(8) { /* Ensure 'SOON' starts on a new line beautifully if it wraps */
        margin-left: 1rem;
    }
}
