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

:root {
    --white: #ffffff;
    --muted: #999999;
    --subtle: #555555;
    --bg: #000000;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'IBM Plex Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

#content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

#heading {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--white);
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 1s ease-out 0.3s forwards;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(255, 255, 255, 0.04);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 40px rgba(255, 255, 255, 0.06),
            0 0 80px rgba(255, 255, 255, 0.03);
    }
    50% {
        text-shadow: 
            0 0 60px rgba(255, 255, 255, 0.12),
            0 0 120px rgba(255, 255, 255, 0.06);
    }
}

.glow-active {
    animation: fadeUp 1s ease-out 0.3s forwards, glowPulse 4s ease-in-out 1.5s infinite !important;
}

#cursor {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    animation: blink 0.6s step-end infinite;
    margin-left: 2px;
    opacity: 1;
    transition: opacity 0.3s;
}

#cursor.hidden {
    opacity: 0;
}

@keyframes blink {
    50% { opacity: 0; }
}

#divider {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #666666, transparent);
    margin: 1.5rem auto;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#divider.expanded {
    width: min(80%, 400px);
}

#subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.85rem, 2.5vw, 1.05rem);
    font-weight: 300;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

#easter-egg {
    position: fixed;
    bottom: 60px;
    right: 30px;
    font-size: 0.9rem;
    opacity: 0.08;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.3s ease;
    z-index: 10;
    user-select: none;
}

#easter-egg:hover {
    opacity: 0.6;
    transform: scale(1.3) rotate(-10deg);
}

#tooltip {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 300;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 10;
    white-space: nowrap;
}

#tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1.2rem;
    z-index: 5;
}

#footer a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--subtle);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--muted);
}

@media (max-width: 480px) {
    #content {
        padding: 1.5rem;
    }
    
    #easter-egg {
        bottom: 55px;
        right: 20px;
    }
    
    #tooltip {
        bottom: 82px;
        right: 12px;
    }
}