:root {
    --bg: #0f0f0f;
    --text: #f5f5f5;
    --hl-green: #00ff9f;
    --hl-blue: #00d4ff;
    --hl-purple: #7a5cff;
    --font-heading: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Hide default for custom cursor */
}

/* Messy Grid Background */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(122, 92, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 92, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    transform: rotate(-3deg);
}

.container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
    text-align: left;
    transform: rotate(1deg);
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    text-transform: lowercase;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.title:hover {
    transform: scale(1.02) skewX(-2deg);
}

.highlight-glitch {
    color: var(--hl-blue);
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--hl-blue), var(--hl-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glitch effect on hover */
.highlight-glitch:hover::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 var(--hl-green);
    top: 0;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    overflow: hidden;
    animation: glitch 0.3s linear infinite;
}

.highlight-glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 2px 0 var(--hl-purple);
    top: 0;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    overflow: hidden;
    animation: glitch 0.2s linear infinite reverse;
}

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

.subtitle {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--hl-green);
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--hl-green);
    display: inline-block;
    transform: rotate(-2deg) translate(-10px, 0);
    box-shadow: 5px 5px 0px var(--hl-green);
    background: var(--bg);
    transition: all 0.2s ease;
}

.subtitle:hover {
    transform: rotate(1deg) translate(0, -2px);
    box-shadow: 8px 8px 0px rgba(0, 255, 159, 0.4);
}

.description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    max-width: 500px;
    color: #e0e0e0;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
    border-left: 3px solid var(--hl-purple);
    padding-left: 1rem;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.cta-button {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 800;
    color: var(--bg);
    background: var(--text);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 5px; /* Softer brutalism */
    display: inline-block;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 4px 4px 0 var(--text);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--hl-blue), var(--hl-purple));
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.cta-button:hover {
    color: var(--text);
    box-shadow: 8px 8px 0 rgba(0, 212, 255, 0.4);
    transform: translate(-4px, -4px) rotate(-1deg);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Scattered Elements / Messy Graphics */
.scattered-text {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
    text-transform: lowercase;
    opacity: 0.6;
    pointer-events: none;
    border: 1px dashed rgba(245, 245, 245, 0.5);
    padding: 4px 10px;
    z-index: 0;
    background: var(--bg);
    transition: transform 0.1s linear;
}

.text-1 {
    top: 15%;
    left: 8%;
    transform: rotate(-12deg);
}

.text-2 {
    bottom: 20%;
    right: 12%;
    transform: rotate(25deg);
}

.text-3 {
    top: 35%;
    right: 8%;
    transform: rotate(90deg);
    color: var(--hl-blue);
    border-color: var(--hl-blue);
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.shape-1 {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122,92,255,0.2) 0%, rgba(15,15,15,0) 70%);
    top: -50px;
    right: -100px;
    filter: blur(40px);
}

.shape-2 {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, rgba(15,15,15,0) 70%);
    bottom: -150px;
    left: -150px;
    filter: blur(50px);
}

.line {
    position: absolute;
    background: var(--hl-green);
    opacity: 0.2;
    z-index: -1;
}

.line-1 {
    width: 2px;
    height: 150vh;
    left: 20%;
    top: -20vh;
    transform: rotate(15deg);
}

.line-2 {
    width: 150vw;
    height: 2px;
    top: 70%;
    left: -20vw;
    transform: rotate(-5deg);
    background: var(--hl-blue);
    opacity: 0.15;
}


/* Custom Cursor */
.custom-cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--hl-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
    left: -100px;
    top: -100px;
}

/* Mobile responsividade */
@media (max-width: 768px) {
    body {
        cursor: auto;
        overflow-y: auto;
    }
    
    .custom-cursor {
        display: none;
    }

    .container {
        padding: 1.5rem;
        text-align: left;
        transform: rotate(0);
        margin-top: 2rem;
    }

    .line-1 { left: 10%; }
    .line-2 { top: 80%; }

    .title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 2rem;
    }

    .subtitle {
        transform: rotate(0deg);
        font-size: 1.1rem;
        box-shadow: 3px 3px 0px var(--hl-green);
    }

    .text-1 { top: 5%; left: 5%; font-size: 0.75rem; transform: rotate(-5deg); }
    .text-2 { bottom: 15%; right: 5%; transform: rotate(15deg); }
    .text-3 { display: none; }

}
