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

:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    background: radial-gradient(circle at 50% 50%, rgba(255, 100, 50, 0) 0%, transparent 50%);
    transition: background 0.3s ease-out;
    mix-blend-mode: screen;
}

#ember-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#cursor-glow {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 120, 50, 0.8) 0%, rgba(255, 80, 30, 0.4) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

#cursor-glow.visible {
    opacity: 1;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-bg {
    background-image: url('images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    transition: transform 0.1s ease-out;
}

.logo-bg.hidden {
    opacity: 0;
    filter: brightness(0);
}

.logo-bg.reveal {
    animation: igniteReveal 2s ease-out forwards;
}

@keyframes igniteReveal {
    0% {
        opacity: 0;
        filter: brightness(0) blur(10px);
    }
    30% {
        opacity: 0.5;
        filter: brightness(2) blur(5px);
    }
    60% {
        opacity: 0.8;
        filter: brightness(1.5) blur(2px);
    }
    100% {
        opacity: 1;
        filter: brightness(1) blur(0);
    }
}

.logo-bg.shimmer {
    animation: heatShimmer 3s ease-in-out infinite;
}

.logo-bg.reveal.shimmer {
    animation: igniteReveal 2s ease-out forwards, heatShimmer 3s ease-in-out 2s infinite;
}

@keyframes heatShimmer {
    0%, 100% {
        filter: blur(0px);
    }
    25% {
        filter: blur(0.3px);
    }
    50% {
        filter: blur(0px);
    }
    75% {
        filter: blur(0.4px);
    }
}

.tagline {
    position: fixed;
    bottom: 15%;
    right: 10%;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.tagline.visible {
    opacity: 1;
}

.tagline .cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: rgba(255, 150, 50, 0.8);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.copyright {
    position: fixed;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.1em;
    z-index: 5;
}
