:root {
    --bg-color: #050505;
    --text-color: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.enigmatic-container {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: #fff;
}

.center-piece {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: max-content;
    pointer-events: none;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.5rem, 12vw, 15rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.85;
    overflow: hidden;
    color: #fff;
    letter-spacing: -6px;
    margin: 0;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: revealBrutal 0.8s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

.glitch-text span {
    animation-delay: 0.2s;
    position: relative;
}

/* CSS-only Glitch Effect */
.glitch-text span::before, .glitch-text span::after {
    content: 'GUERRILHA';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    color: #fff;
    opacity: 0;
}

.glitch-text span::before {
    left: 4px;
    text-shadow: -2px 0 #fff;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
    animation-delay: 1.5s;
}

.glitch-text span::after {
    left: -4px;
    text-shadow: -2px 0 #fff;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    animation-delay: 1.5s;
}

.sub-text {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    width: 100%;
    margin-top: 2rem;
}

/* Animations */
@keyframes revealBrutal {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInBrutal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeInBrutal 1s ease forwards;
    animation-delay: 1.2s;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); opacity: 1; }
    20% { clip-path: inset(60% 0 10% 0); opacity: 1; }
    40% { clip-path: inset(40% 0 50% 0); opacity: 1; }
    60% { clip-path: inset(80% 0 5% 0); opacity: 1; }
    80% { clip-path: inset(10% 0 70% 0); opacity: 1; }
    100% { clip-path: inset(30% 0 40% 0); opacity: 1; }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); opacity: 1; }
    20% { clip-path: inset(30% 0 20% 0); opacity: 1; }
    40% { clip-path: inset(70% 0 10% 0); opacity: 1; }
    60% { clip-path: inset(20% 0 50% 0); opacity: 1; }
    80% { clip-path: inset(50% 0 30% 0); opacity: 1; }
    100% { clip-path: inset(5% 0 80% 0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .enigmatic-container {
        padding: 1.5rem;
    }
    .logo {
        font-size: 0.7rem;
        letter-spacing: 8px;
    }
    .center-piece {
        width: 100%;
    }
    h1 {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
        letter-spacing: -2px;
    }
    .sub-text {
        font-size: 0.7rem;
        letter-spacing: 4px;
        margin-top: 1.5rem;
    }
}
