/* styles.css - Neo-Dark Brutalism */

:root {
    --bg-color: #09090B; /* Quase Preto Absoluto */
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --accent: #CDFC00; /* Verde Ácido de Alto Contraste */
    --accent-hover: #b4df00;
    --border-color: #27272A;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Noise overlay for brutalist texture */
.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Hero Section - Typography Massive
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    padding: 2rem 5%;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    padding-right: 2rem;
}

.massive-title {
    font-size: clamp(6rem, 18vw, 15rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.06em;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

/* Glitch Effect para o Título */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 4px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -4px;
    text-shadow: -2px 0 #FF003C;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    20% { clip: rect(61px, 9999px, 12px, 0); }
    40% { clip: rect(93px, 9999px, 60px, 0); }
    60% { clip: rect(32px, 9999px, 8px, 0); }
    80% { clip: rect(110px, 9999px, 102px, 0); }
    100% { clip: rect(20px, 9999px, 45px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(32px, 9999px, 9px, 0); }
    20% { clip: rect(80px, 9999px, 32px, 0); }
    40% { clip: rect(13px, 9999px, 86px, 0); }
    60% { clip: rect(56px, 9999px, 11px, 0); }
    80% { clip: rect(90px, 9999px, 65px, 0); }
    100% { clip: rect(12px, 9999px, 80px, 0); }
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Brutalist Button - Bordas zero, hover físico */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #000;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    font-family: 'Outfit', sans-serif; /* Override button defaults */
}

button.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 8px 8px 0px rgba(205, 252, 0, 0.4);
    background-color: var(--accent-hover);
}

.btn-primary.huge {
    font-size: 1.5rem;
    padding: 1.5rem 4rem;
}

/* Layered Depth Image */
.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55vw;
    max-width: 800px;
    z-index: 1;
    pointer-events: none;
}

.author-img {
    width: 100%;
    height: auto;
    /* Estética Brutalista: Foto em tons de cinza com alto contraste para transmitir autoridade e se fundir no escuro */
    filter: grayscale(100%) contrast(115%) drop-shadow(-30px 30px 40px rgba(0,0,0,0.9));
    opacity: 0.9;
    transition: all 0.8s ease;
    /* Sem distorção 3D (como tinha no livro) para manter o retrato frontal e imponente */
}

/* ==========================================================================
   Content Narrative
   ========================================================================== */
.narrative {
    padding: 8rem 5%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.chapter {
    margin-bottom: 10rem;
    padding-left: 3rem;
    border-left: 2px solid var(--border-color);
}

.chapter.alt {
    border-left: none;
    border-right: 2px solid var(--border-color);
    padding-left: 0;
    padding-right: 3rem;
    text-align: right;
}

.chapter-meta {
    font-family: monospace;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.chapter h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.chapter p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 750px;
}

.chapter.alt p {
    margin-left: auto;
}

.highlight {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    border-left: 6px solid var(--accent);
    padding-left: 2rem;
    margin-top: 4rem;
    line-height: 1.3;
}

.chapter.alt .highlight {
    border-left: none;
    border-right: 6px solid var(--accent);
    padding-left: 0;
    padding-right: 2rem;
}

/* Final CTA */
.cta-final {
    text-align: center;
    padding: 12rem 0 8rem 0;
}

.cta-final h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Animations */
.fragment {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Mobile Adjustments
   ========================================================================== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 20vh;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
        z-index: 3;
    }

    .subtitle {
        margin: 0 auto 3rem auto;
    }

    .hero-visual {
        position: absolute;
        right: auto;
        left: 50%;
        top: 20%;
        transform: translateX(-50%);
        width: 120vw;
        opacity: 0.15; /* Faz a imagem virar background no mobile */
        z-index: 1;
    }

    .author-img {
        filter: grayscale(100%) contrast(115%);
    }

    .chapter {
        padding-left: 1.5rem;
        margin-bottom: 6rem;
    }

    .chapter.alt {
        padding-right: 1.5rem;
        text-align: left;
        border-right: none;
        border-left: 2px solid var(--border-color);
    }
    
    .chapter.alt p {
        margin-left: 0;
    }
    
    .chapter.alt .highlight {
        border-right: none;
        border-left: 6px solid var(--accent);
        padding-right: 0;
        padding-left: 1.5rem;
    }
}

/* ==========================================================================
   Modal (Popup) de Captação de Leads
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #121215;
    border: 1px solid var(--border-color);
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent);
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-form input {
    background: #09090B;
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-form input:focus {
    border-color: var(--accent);
}

.modal-form .btn-primary {
    width: 100%;
    text-align: center;
}

.hidden {
    display: none !important;
}

.form-feedback {
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
}

.form-feedback.error {
    color: #FF003C;
}

.form-feedback.success {
    color: var(--accent);
}
