:root {
    /* Paleta de cores futurística */
    --primary: #00F0FF;
    --secondary: #7B2DFF;
    --accent: #FF2D55;
    --background: #0A0A0F;
    --text: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    overflow: hidden;
    background-color: var(--background);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
}

#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1rem, 3vw, 2rem);
}

.hero {
    text-align: center;
    margin-top: clamp(5vh, 10vh, 15vh);
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.title-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
    text-align: center; /* Adicionado para centralizar o texto */
}

.title {
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: clamp(2.8rem, 10vw, 9rem);
    line-height: 1;
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    display: flex;
    gap: clamp(0.3rem, 1vw, 1.2rem);
    position: relative;
    padding: clamp(0.5rem, 1vw, 1rem) clamp(1rem, 2vw, 2rem);
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.2));
}

.title::before,
.title::after {
    content: '';
    position: absolute;
    width: calc(100% + clamp(20px, 4vw, 40px));
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 240, 255, 0.2),
        var(--primary),
        rgba(0, 240, 255, 0.2),
        transparent
    );
    left: calc(clamp(10px, 2vw, 20px) * -1);
    animation: borderGlow 3s ease-in-out infinite;
}

.title::before {
    top: 0;
}

.title::after {
    bottom: 0;
}

.letter {
    display: inline-block;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        #4DFFFF 25%,
        var(--secondary) 50%,
        #4DFFFF 75%,
        var(--primary) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    animation: letterGlow 3s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.letter::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    opacity: 0;
    transform: translateZ(-1px);
    animation: glitch 0.3s ease-in-out infinite alternate;
    display: none;
}

.letter::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    opacity: 0;
    transform: translateZ(-1px);
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.letter:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.2);
}

.letter:hover::before {
    opacity: 0.7;
}

.letter:hover::after {
    display: block;
}

.letter:nth-child(2n) {
    animation-delay: 0.5s;
}

.letter:nth-child(3n) {
    animation-delay: 1s;
}

.subtitle-wrapper {
    position: relative;
    margin-top: clamp(-1rem, -1.5vw, -1.5rem);
    padding: clamp(0.3rem, 0.8vw, 1.5rem);
    width: 100%;
    overflow: visible;
    text-align: center;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 240, 255, 0.05),
        rgba(123, 45, 255, 0.05),
        transparent
    );
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    font-weight: 300;
    letter-spacing: clamp(0.15em, 0.25vw, 0.3em);
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        var(--primary),
        #4DFFFF,
        var(--secondary)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
    opacity: 0.7;
    transform: scale(0.98);
    transform-origin: center top;
    margin: clamp(-0.5rem, -0.8vw, -0.8rem) 0;
    line-height: 1.2;
    width: 100%;
    max-width: 95vw;
    position: relative;
    display: inline-block;
}

.brands {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 4vw, 4rem);
    margin-bottom: clamp(3vh, 6vh, 6vh);
    margin-top: clamp(2rem, 4vh, 4rem);
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.brand {
    text-align: center;
    transition: transform 0.3s ease;
}

.brand:hover {
    transform: translateY(-10px);
}

.brand-icon {
    width: clamp(60px, 10vw, 100px);
    height: clamp(60px, 10vw, 100px);
    margin: 0 auto clamp(0.8rem, 1.5vw, 1.5rem);
    position: relative;
}

.brand h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
}

.brand p {
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    margin-top: clamp(0.3rem, 0.5vw, 0.5rem);
}

@keyframes letterGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
        transform: translateY(0);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
        transform: translateY(-2px);
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.5;
        filter: blur(0px);
    }
    50% {
        opacity: 0.8;
        filter: blur(1px);
    }
}

@keyframes glitch {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(0);
    }
    40% {
        clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
        transform: translate(-2px);
    }
    80% {
        clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
        transform: translate(2px);
    }
}

.click-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(0);
    background: radial-gradient(circle, 
        rgba(0, 240, 255, 0.4) 0%,
        rgba(123, 45, 255, 0.2) 50%,
        transparent 70%
    );
    animation: rippleEffect 1s ease-out forwards;
    z-index: 1;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Breakpoints mais detalhados para melhor responsividade */
@media (max-width: 1200px) {
    .title {
        font-size: clamp(3rem, 10vw, 7rem);
        gap: clamp(0.3rem, 0.8vw, 1rem);
    }
    
    .subtitle {
        font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: clamp(2.5rem, 8vw, 5rem);
        gap: 0.25rem;
        padding: 0.5rem 1.5rem;
    }

    .subtitle {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
        letter-spacing: 0.15em;
    }
    
    .brands {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }

    .hero {
        margin-top: 8vh;
        padding: 0 0.5rem;
    }

    .title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        padding: 0.5rem;
        gap: 0.2rem;
    }

    .subtitle {
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        letter-spacing: 0.12em;
        margin-top: -0.3rem;
    }

    .title-group {
        max-width: 98vw;
    }
}
