/* ==================================
   VÁRIAVEIS GLOBAIS E RESET
   ================================== */
:root {
    --bg-dark: #09090D;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #E60036; /* Crimson */
    --accent: #FF6B00; /* Sunset */
    --text-main: #FFFFFF;
    --text-muted: #CBD5E1; /* Cinza muito mais claro para leitura */
    
    --font-head: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    overflow-x: clip; /* TRAVA o scroll lateral sem quebrar position: sticky */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* Permite o sticky funcionar e evita barra lateral */
}

/* ==================================
   LENIS SMOOTH SCROLL CSS
   ================================== */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* ==================================
   EFEITOS E UTILITÁRIOS
   ================================== */
.glow-orb {
    position: fixed;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 0, 54, 0.15) 0%, rgba(255, 107, 0, 0.1) 40%, rgba(9, 9, 13, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(60px);
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent), #FF0055, var(--primary));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: liquidGradient 4s linear infinite;
    position: relative;
}

@keyframes liquidGradient {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* ==================================
   NAVBAR
   ================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent);
}
.btn-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 30px;
}
.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburguer Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}
.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* X Animation for Toggle */
.menu-toggle.toggle-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.toggle-active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.toggle-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================================
   HERO SECTION (CINEMATIC)
   ================================== */
.hero-cinematic {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden; /* Evita que o blur escape */
}
.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2; /* Fica acima da orb */
}

.badge {
    background: rgba(255, 107, 0, 0.1); 
    color: var(--accent); 
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 107, 0, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Tipografia Cinematográfica */
.hero-title-cinematic {
    font-size: clamp(2.5rem, 8vw, 7rem); /* Ajustado para ser mais flexível */
    font-family: var(--font-head);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 30px;
}
.blur-reveal {
    /* Estado inicial para animação JS */
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.1);
}

.rotating-words-container {
    display: block; /* Ocupa a largura inteira, garantindo que quebre a linha corretamente */
    position: relative;
    height: 1.2em;
    overflow: visible; 
    width: 100%; /* Largura total para centralizar o absoluto */
}
.rotating-words-container .word {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center; /* Centraliza perfeitamente independente do tamanho da palavra */
    top: 0;
    opacity: 0;
    transform: translateY(100%); /* Começa embaixo */
}

.highlight-glow {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-shadow: 0 0 40px rgba(255, 75, 43, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(230, 0, 54, 0.5);
    display: inline-block;
}
.btn-primary:hover {
    box-shadow: 0 15px 40px -10px rgba(230, 0, 54, 0.8);
}
.cta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================================
   MAGNETIC BUTTON (JS TARGET)
   ================================== */
.magnetic-btn {
    /* JS manipula transições de transform aqui */
}

/* ==================================
   SPACERS & COMMON
   ================================== */
.spacer {
    padding: 120px 5%;
}
.section-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
    text-transform: uppercase;
}

/* ==================================
   MARQUEE INFINITO
   ================================== */
.marquee-wrapper {
    background: var(--primary);
    padding: 20px 0;
    transform: rotate(-2deg) scale(1.05);
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 30px rgba(230, 0, 54, 0.4);
    z-index: 10;
    position: relative;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
}
.marquee-content h2 {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 3rem;
    color: #000;
    margin: 0 20px;
    font-weight: 800;
}

/* ==================================
   MANIFESTO (KINETIC TYPOGRAPHY)
   ================================== */
.manifesto-pin {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}
.manifesto-text-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.m-phrase {
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 0 4%; /* Respiro lateral fixo */
}
.m-line {
    overflow: hidden;
    line-height: 1.2;
    padding: 10px 20px; /* Folga horizontal e vertical para segurança */
}
.m-line span {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 4.5vw, 4.5rem); /* Ajustado para equilíbrio entre impacto e segurança */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    transform: translateY(110%);
    color: var(--text-main);
    white-space: nowrap; 
}
span.highlight-red, .m-line span.highlight-red {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(230, 0, 54, 0.3);
}

/* ==================================
   PILHAS (GLASSMORPHISM)
   ================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(255, 107, 0, 0.3);
}
.card-icon {
    font-family: var(--font-head);
    font-size: 3rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}
.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-main);
}
.glass-card p {
    color: #FFFFFF; /* Branco puro para contraste máximo */
    line-height: 1.6;
    font-size: 1.05rem; /* Aumentado para facilitar leitura */
    opacity: 0.9;
}

/* ==================================
   HORIZONTAL SCROLL (THE FLEX)
   ================================== */
.horizontal-wrapper {
    overflow: hidden;
    background: #000;
    padding: 0;
}
.horizontal-container {
    display: flex;
    width: 300vw; /* 3 painéis de 100vw */
    height: 100vh;
}
.h-panel {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
}
.panel-dark { background: #09090D; }
.panel-red { background: var(--primary); }
.panel-orange { background: var(--accent); }

.panel-content {
    max-width: 800px;
}
.massive-text {
    font-family: var(--font-head);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}
.h-panel p {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    max-width: 560px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* ==================================
   FINAL CTA
   ================================== */
.final-cta {
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(230, 0, 54, 0.1) 0%, rgba(9, 9, 13, 1) 70%);
}
.cta-content {
    max-width: 700px;
}
.cta-content h2 {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 24px;
}
.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}
.pulse-glow {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 107, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

/* ==================================
   LOGO WALL (VIÉS DE AUTORIDADE)
   ================================== */
.logo-wall-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.logo-wall-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
}
.logo-wall-content span {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 40px;
    letter-spacing: 2px;
}
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}



/* ==================================
   O INIMIGO COMUM (COMPARISON)
   ================================== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}
.comp-card {
    padding: 60px;
}
.comp-card h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.comp-card ul {
    list-style: none;
}
.comp-card li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}
.comp-card li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}
.bad-way {
    background: #110d0d;
}
.good-way {
    background: var(--accent);
}
.good-way h3, .good-way li {
    color: #000;
}
.good-way li::before {
    content: "✓";
    color: #000;
}
@media (max-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr; }
}

/* ==================================
   STICKY PROCESS (THE ELEVATOR)
   ================================== */
.process-pin-section {
    display: flex;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    padding-bottom: 20vh; /* Espaço para o último card rolar livremente */
}
.process-container {
    display: flex;
    max-width: 1300px;
    width: 100%;
    gap: 10%;
    align-items: flex-start;
}
.process-left {
    position: sticky;
    top: 30vh;
    width: 40%;
}
.left-aligned {
    text-align: left;
    margin-bottom: 30px;
}
.process-tracker {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tracker-numbers {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
}
.total-step {
    color: var(--text-muted);
    font-size: 1.5rem;
}
.tracker-bar {
    width: 5px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}
.tracker-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transition: height 0.3s ease;
}

.process-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30vh; /* Distância massiva entre os cards para forçar a rolagem longa */
    padding-top: 30vh; /* Começa a aparecer bem para baixo */
}
.process-card {
    position: relative;
    opacity: 0.75; /* Aumentado de 0.7 para 0.75 para brilho total */
    transform: scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), border-color 0.6s ease;
}
.process-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--accent);
    box-shadow: 0 30px 60px -15px rgba(255, 107, 0, 0.2);
}
.p-card-number {
    position: absolute;
    top: -40px;
    right: -20px;
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    z-index: -1;
}
@media (max-width: 900px) {
    .process-container { flex-direction: column; }
    .process-left { 
        position: sticky; 
        top: 20px; 
        width: 100%; 
        background: var(--bg-dark);
        z-index: 10;
        padding: 20px 0;
        margin-bottom: 30px; 
    }
    .process-right { width: 100%; padding-top: 0; gap: 40vh; }
    .process-card { opacity: 0.75; transform: scale(0.98); } /* Brilho total no mobile */
    .tracker-bar { 
        height: 5px; 
        width: 100%; 
        display: block; 
    }
    .tracker-fill { width: 0%; height: 100%; }
}

/* ==================================
   RESPONSIVIDADE MOBILE COMPLETA
   ================================== */
@media (max-width: 768px) {

    /* ==================
       BASE
    ================== */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .spacer {
        padding: 70px 6%;
    }

    /* ==================
       NAVBAR
    ================== */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(9, 9, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        border-left: 1px solid rgba(255,255,255,0.08);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-family: var(--font-head);
    }

    /* ==================
       HERO
    ================== */
    .hero-cinematic {
        height: 100dvh;
        padding: 90px 6% 40px;
        align-items: center;
    }

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

    .hero-title-cinematic {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        letter-spacing: -1px;
        line-height: 1.15;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 28px;
        padding: 0 4%;
    }

    .rotating-words-container {
        height: 1.2em;
    }

    /* ==================
       MARQUEE
    ================== */
    .marquee-content h2 {
        font-size: 1.8rem;
    }

    /* ==================
       STATS WALL
       (mantém o ticker infinito, apenas ajusta a fonte e padding)
    ================== */
    .logo-wall-wrapper {
        padding: 40px 0;
        overflow: hidden;
    }

    .logo-wall-content span {
        font-size: 1rem;
        padding: 12px 24px;
        margin: 0 10px;
    }

    /* ==================
       MANIFESTO MOBILE
       (mantém o PIN e o posicionamento igual ao desktop)
    ================== */
    .m-phrase {
        padding: 0 5%;
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* ==================
       MANIFESTO MOBILE
    ================== */
    .m-phrase {
        padding: 0 4%;
        text-align: center;
        width: 100%;
        left: 0;
    }

    .m-line {
        overflow: hidden;
        line-height: 1.1;
        padding: 2px 0;
    }

    .m-line span {
        font-size: clamp(1rem, 5.2vw, 1.7rem); /* Reduzido levemente para folga total */
        letter-spacing: -0.5px;
        white-space: nowrap;
        line-height: 1.1;
        text-align: center;
        display: block;
    }

    /* ==================
       COMPARISON
    ================== */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comp-card {
        padding: 36px 20px;
    }

    .comp-card h3 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    /* ==================
       PROCESS (ELEVATOR)
    ================== */
    .process-container {
        flex-direction: column;
        gap: 0;
    }

    .process-left {
        position: sticky;
        top: 80px; /* Logo abaixo da navbar */
        width: 100%;
        background: var(--bg-dark);
        z-index: 100;
        padding: 20px 0;
        margin-bottom: 40px;
        box-shadow: 0 15px 15px -10px var(--bg-dark);
    }

    .process-right {
        width: 100%;
        padding-top: 0;
        gap: 25vh; /* Distância entre os cards no mobile */
    }

    .process-card {
        opacity: 0.75;
        transform: scale(0.98);
    }

    .tracker-bar {
        height: 5px;
        width: 100%;
    }

    .tracker-fill {
        width: 0%;
        height: 100%;
    }

    /* ==================
       PILLARS
    ================== */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ==================
       HORIZONTAL PANELS
       (mantém o scroll horizontal igual ao desktop)
    ================== */
    .h-panel {
        padding: 40px 6%;
    }

    .massive-text {
        font-size: clamp(3.5rem, 16vw, 6rem);
        line-height: 1.0;
        margin-bottom: 16px;
        letter-spacing: -1px;
    }

    .panel-content p {
        font-size: 1rem;
        max-width: 100%;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* ==================
       FINAL CTA
    ================== */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

