/* --- Variáveis e Configurações Base --- */
:root {
    --bg-dark: #050505;
    --text-light: #f5f5f5;
    --text-muted: #7a7a7a;
    --font-head: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Trava o scroll da página (usado pela tela de intro) */
body.locked {
    overflow: hidden;
    height: 100dvh;
    touch-action: none;
}

.intro-overlay {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    display: flex;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* --- Tela de Bloqueio (Overlay) --- */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 1.2s;
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    text-align: center;
    padding: 2rem;
}

.logo-large {
    font-family: var(--font-head);
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: 0.4em;
    margin-right: -0.4em;
    margin-bottom: 0.5rem;
}

.intro-content p {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3rem;
}

/* --- Efeito de Película --- */
.cinematic-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, transparent 20%, #000 150%);
    opacity: 0.8;
}

/* --- Header Responsivo --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: env(safe-area-inset-top, 2rem) 5% 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 0.3em;
}

.desktop-nav a {
    display: none;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-left: 3rem;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--text-light);
}

/* --- Elementos Globais --- */
.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 3rem;
    font-family: var(--font-head);
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-ghost:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

/* --- MOBILE FIRST (Layout Base) --- */
section {
    min-height: 100dvh;
    padding: 6rem 5% env(safe-area-inset-bottom, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-content p {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
}

.about-split h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.abstract-shape {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #111, #222);
    margin-top: 3rem;
    border-radius: 2px;
}

/* --- DESKTOP (Mutação do Layout) --- */
@media (min-width: 1024px) {
    .desktop-nav a {
        display: inline-block;
    }

    .hero {
        align-items: center;
        text-align: center;
    }

    .about-split {
        flex-direction: row;
        align-items: center;
        gap: 10%;
        padding: 0 10%;
    }

    .split-text,
    .split-visual {
        flex: 1;
    }

    .abstract-shape {
        height: 600px;
        margin-top: 0;
    }
}

/* --- Utilitários JS de Animação --- */
.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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