/* ==========================================================================
   INDEX.CSS - Landing Page e Estilos Globais (Visibilidade 100% + Animação Premium)
   ========================================================================== */

:root {
    --bg-deep: #02040A;
    --primary-blue: #007BFF;
    --accent-cyan: #00D4FF;
    --accent-gold: #FFD700;
    --text-white: #F0F4F8;
    --text-grey: #cbd5e1;
    --sw-yellow: #FFE81F; /* Amarelo Star Wars */
    
    --glass-bg: rgba(11, 16, 33, 0.85);
    --glass-border: rgba(0, 212, 255, 0.3);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    background-image: radial-gradient(ellipse at bottom, #1B2735 0%, var(--bg-deep) 100%);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    /* Transição suave para todas as cores quando o tema mudar */
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Animação Cinematográfica ao trocar de Tema (Claro -> Escuro / Escuro -> Claro) */
body:not(.light-mode) {
    animation: themeTurnOff 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

body.light-mode {
    animation: themeTurnOn 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes themeTurnOn {
    0% { filter: brightness(0.3) blur(3px); }
    100% { filter: brightness(1) blur(0px); }
}

@keyframes themeTurnOff {
    0% { filter: brightness(1.5) blur(3px); }
    100% { filter: brightness(1) blur(0px); }
}

/* --- FUNDO ESTRELADO (COM DELAY ASSÍNCRONO) --- */
#stars-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
    opacity: 1;
    /* O SEGREDO: Fade-in de 2.5s que só começa APÓS 0.6s (quando o fundo já escureceu) */
    transition: opacity 2.5s ease-in-out 0.6s;
}

.star {
    position: absolute; background: #fff; border-radius: 50%; opacity: 0.5;
    animation: twinkle infinite alternate;
    /* Aceleração de Hardware: Acaba com as "travadas" do fluxo */
    will-change: opacity, transform;
}

@keyframes twinkle {
    from { opacity: 0.1; transform: scale(0.8); }
    to { opacity: 0.9; transform: scale(1.2); }
}

/* --- COMPONENTES GLOBAIS (Botões e Textos) --- */
.text-cyan { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
.text-grey { color: var(--text-grey); transition: color 0.6s; }
.orbitron { font-family: var(--font-heading); }

/* Container Geral para evitar conteúdo colado na borda */
.landing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-space {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    border: none; padding: 12px 25px; color: #000; font-weight: bold;
    font-family: var(--font-heading); border-radius: 5px; cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-space:hover { transform: scale(1.05); filter: brightness(1.2); }

.btn-outline {
    background: transparent; border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan); padding: 12px 25px; border-radius: 5px;
    font-family: var(--font-heading); cursor: pointer; transition: 0.3s;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover { background: rgba(0, 212, 255, 0.1); color: var(--text-white); }

/* ==========================================================================
   BOTÃO DE TEMA (ANIMAÇÃO SPRING PREMIUM)
   ========================================================================== */
.btn-theme-toggle {
    background: rgba(0, 0, 0, 0.5); 
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 1.2rem;
    cursor: pointer;
    
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0; 
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Curva "Spring" para efeito mola/elástico hiper fluido */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(5px);
}

.btn-theme-toggle:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--accent-cyan);
    /* Dá um tilt estiloso ao passar o mouse */
    transform: scale(1.15) rotate(15deg); 
}

/* Estado ativo (Modo Claro) - Ele dá um giro 360 ao ativar */
.light-mode #theme-toggle-btn {
    transform: rotate(360deg);
}
.light-mode #theme-toggle-btn:hover {
    transform: scale(1.15) rotate(375deg);
}

/* --- UTILITÁRIOS GLOBAIS --- */
.hidden { 
    display: none !important; 
}

/* --- MODAIS DE SISTEMA (PLAYER E MISSÕES) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* --- INTRO STAR WARS --- */
#star-wars-intro { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 200; perspective: 400px; overflow: hidden; cursor: pointer; }
.star-wars-container { display: flex; justify-content: center; position: relative; height: 800px; color: var(--sw-yellow); font-family: sans-serif; font-weight: 600; letter-spacing: 2px; line-height: 1.5; transform-origin: 50% 100%; animation: crawl 60s linear forwards; }
.crawl { position: relative; top: 90%; transform-origin: 50% 100%; text-align: justify; width: 80%; max-width: 600px; }
.crawl h1 { text-align: center; font-size: 3rem; margin: 0 0 50px 0; text-transform: uppercase; }
@keyframes crawl { 0% { top: 100%; transform: rotateX(20deg) translateZ(0); opacity: 1; } 100% { top: -6000px; transform: rotateX(25deg) translateZ(-2500px); opacity: 0; } }
.btn-skip-intro { position: absolute; bottom: 40px; right: 40px; z-index: 210; background: rgba(0,0,0,0.5); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); padding: 10px 20px; font-family: var(--font-heading); cursor: pointer; border-radius: 5px; transition: 0.3s; text-transform: uppercase; }
.btn-skip-intro:hover { background: var(--accent-cyan); color: #000; }

/* --- NAV BAR --- */
.lp-nav { position: sticky; top: 20px; margin: 0 auto; width: 90%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; z-index: 60; background: var(--glass-bg); backdrop-filter: blur(5px); border-radius: 50px; border: 1px solid var(--glass-border); transition: background 0.6s, border-color 0.6s, box-shadow 0.6s; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: bold; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-white); text-decoration: none; font-family: var(--font-heading); font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }

/* --- HERO SECTION --- */
.lp-hero { 
    display: flex; 
    align-items: flex-start;
    justify-content: space-between; 
    padding: 120px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
    min-height: 90vh; 
    position: relative; 
    flex-wrap: wrap; 
    gap: 40px; 
}

/* Lado Esquerdo: Texto e Botões */
.hero-content { 
    flex: 1; 
    min-width: 300px; 
    max-width: 650px; 
}
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--text-white); transition: color 0.6s; }
.hero-content p { font-size: 1.2rem; color: var(--text-grey); margin-bottom: 30px; line-height: 1.6; transition: color 0.6s; }
.hero-btns { display: flex; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }

/* Lado Direito: Card do Arquiteto */
.architect-card {
    flex: 0 0 400px; 
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--accent-cyan);
    padding: 25px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 10;
    transition: background 0.6s, box-shadow 0.6s, border-color 0.6s;
}

/* Estatísticas */
.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; color: var(--accent-cyan); font-weight: bold; font-family: var(--font-heading); }
.stat-label { font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* Terminal Code Block */
.terminal-box {
    background: #0d1117;
    border-left: 3px solid var(--accent-cyan);
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    margin: 20px 0;
    width: 100%;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    transition: background 0.6s, color 0.6s, border-color 0.6s;
    overflow-x: auto; /* Evita que códigos quebrem a tela */
}

/* --- SEÇÃO DE FEATURES --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 50px 5%; max-width: 1200px; margin: 0 auto; }
.feature-card { padding: 40px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s, background 0.6s; backdrop-filter: blur(5px); }
.feature-card:hover { transform: translateY(-10px); border-color: var(--accent-cyan); box-shadow: 0 10px 30px rgba(0,212,255,0.15); }
.feature-card h3 { font-family: var(--font-heading); margin-bottom: 10px; color: var(--text-white); transition: color 0.6s; }
.feature-card p { color: var(--text-grey); line-height: 1.6; transition: color 0.6s; }

/* --- SEÇÃO: A MISSÃO (.about-container) --- */
.lp-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-white);
    transition: color 0.6s;
}
.section-subtitle {
    text-align: center;
    color: var(--text-grey);
    margin-bottom: 50px;
    transition: color 0.6s;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    transition: background 0.6s, border-color 0.6s;
}

.about-text {
    flex: 1;
    min-width: 300px;
}
.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-white);
    transition: color 0.6s;
}
.about-text p {
    color: var(--text-grey);
    line-height: 1.6;
    margin-bottom: 15px;
    transition: color 0.6s;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    flex-wrap: wrap; /* Evita quebra ruim */
}
.stats-row div strong {
    font-size: 2rem;
    font-family: var(--font-heading);
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Terminal Visual na Missão */
.terminal-window {
    background: #0d1117;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: 'Courier New', monospace;
    transition: background 0.6s, border-color 0.6s;
    overflow-x: auto; /* Proteção mobile */
}

.term-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.term-title { margin-left: 10px; color: #888; font-size: 0.8rem; }

.code-line { color: #33ff00; margin: 5px 0; font-size: 0.9rem; transition: color 0.6s; }
.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- SEÇÃO: O ARQUITETO (.creator-card) --- */
.creator-card {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: background 0.6s, border-color 0.6s;
}
.creator-avatar {
    flex-shrink: 0;
    position: relative;
}
.creator-avatar img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    object-fit: cover;
}
.creator-info { flex: 1; }
.creator-info h3 { font-size: 2.2rem; margin-bottom: 5px; color: var(--text-white); transition: color 0.6s;}
.role-badge {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

.social-links-container { 
    display: flex; 
    gap: 15px; 
    margin-top: 25px; 
    flex-wrap: wrap; /* Proteção mobile */
}
.social-btn {
    text-decoration: none;
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 5px;
    transition: 0.3s;
    font-family: var(--font-heading);
    font-size: 0.8rem;
}
.social-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
}

/* --- SEÇÃO: JORNADA (.journey-container) --- */
.journey-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 50px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: background 0.6s, border-color 0.6s;
}
.journey-text { flex: 1; }
.journey-list {
    list-style: none;
    margin-top: 30px;
    position: relative;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 30px;
}
.journey-list li {
    margin-bottom: 20px;
    position: relative;
    color: var(--text-grey);
    font-size: 1.1rem;
    transition: color 0.6s;
}
.journey-list li strong { color: var(--text-white); margin-right: 5px; transition: color 0.6s; }

/* Bolinha da linha do tempo */
.journey-list .dot {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #333;
    border: 2px solid #000;
    transition: background 0.6s, border-color 0.6s;
}

.journey-list .dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.journey-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    font-size: 8rem;
    animation: floatRocket 3s ease-in-out infinite;
}

@keyframes floatRocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* --- FOOTER --- */
.lp-footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 40px; text-align: center; margin-top: 100px; background: rgba(0,0,0,0.5); transition: background 0.6s; }

/* ==========================================================================
   SISTEMA UNIVERSAL DE LIGHT MODE (A MÁGICA DA VISIBILIDADE 100%)
   ========================================================================== */

.light-mode {
    --bg-deep: #F0F4F8; /* Fundo cinza bem claro */
    --text-white: #0f172a; /* Tudo que é branco no tema escuro vira azul marinho super escuro (Chumbo) */
    --text-grey: #475569;  /* Cinza claro vira cinza médio pra manter contraste na leitura */
    
    --glass-bg: rgba(255, 255, 255, 0.85); /* Fundo dos cards e nav fica branco translúcido */
    --glass-border: rgba(0, 212, 255, 0.4); /* Borda ganha destaque */
    
    background-image: radial-gradient(ellipse at bottom, #e2e8f0 0%, var(--bg-deep) 100%);
}

/* Esconde estrelas porque no fundo branco fica feio - SUMIÇO INSTANTÂNEO */
.light-mode #stars-container { 
    opacity: 0; 
    transition: opacity 0.3s ease-out 0s;
}

/* Ajuste Fino dos Terminais para o Modo Claro */
.light-mode .terminal-box,
.light-mode .terminal-window {
    background: #e2e8f0; 
    border-color: #cbd5e1;
    color: #0f172a;
}
.light-mode .code-line {
    color: #0284c7; /* O verde brilhante do código vira um azul claro forte */
}
.light-mode .term-title { color: #475569; }

/* Botões Isolados para manter o estilo */
.light-mode .social-btn {
    color: var(--text-white);
    border-color: #94a3b8;
}
.light-mode .btn-skip-intro {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border-color: #cbd5e1;
}

/* Ajustes Específicos para Navbar e Footer */
.light-mode .lp-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}
.light-mode .lp-footer {
    background: rgba(255, 255, 255, 0.6);
}

/* Destaca as bolinhas da jornada que não estão ativas */
.light-mode .journey-list .dot:not(.active) {
    background: #fff;
    border-color: #cbd5e1;
}

/* ==========================================================================
   ACESSIBILIDADE: MENU DROPDOWN DE DALTONISMO
   ========================================================================== */
.dropdown-wrapper { position: relative; display: inline-block; }

.dropdown-menu {
    position: absolute;
    top: 130%; /* Abaixo do botão */
    right: 0; /* Alinha à direita para não quebrar a tela */
    background: rgba(11, 16, 33, 0.95);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    min-width: 250px;
    padding: 10px;
    gap: 5px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(0);
}

/* Estado oculto que mantém o display flex para a transição funcionar */
.dropdown-menu.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    display: flex !important;
}

.dropdown-menu button {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 12px 15px;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown-menu button:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.light-mode .dropdown-menu { background: rgba(255,255,255,0.95); border-color: #cbd5e1; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.light-mode .dropdown-menu p { color: #888; border-color: rgba(0,0,0,0.1); }
.light-mode .dropdown-menu button { color: #000; }
.light-mode .dropdown-menu button:hover { background: rgba(0,0,0,0.05); color: #0284c7; }

/* ==========================================================================
   MODOS DE DALTONISMO (CORES PASTEL, ALTA NIDEZ E BAIXA FADIGA VISUAL)
   ========================================================================== */

/* Garante que a leitura seja nítida, removendo brilhos que forçam a visão */
[class*="cb-"] * {
    text-shadow: none !important; 
}

/* Sem sublinhados irritantes. Usa apenas negrito para destaque limpo */
[class*="cb-"] .text-cyan,
[class*="cb-"] h1 .text-cyan, 
[class*="cb-"] h2 .text-cyan, 
[class*="cb-"] .section-title .text-cyan {
    text-decoration: none !important;
    font-weight: 700;
}

/* Formas geométricas para os dots do terminal ajudam sem depender da cor */
[class*="cb-"] .dot.red { border-radius: 2px; } /* Quadrado */
[class*="cb-"] .dot.yellow { border-radius: 4px; } /* Borda levemente arredondada */
/* .dot.green continua um círculo perfeito */

/* 1. Protanopia (Dificuldade com Vermelho) - Tons de Azul Céu e Ouro Suave */
.cb-protanopia {
    --bg-deep: #0F172A; /* Azul noturno muito suave */
    --primary-blue: #2563EB; 
    --accent-cyan: #60A5FA; /* Azul céu pastel (descansa os olhos) */
    --accent-gold: #FBBF24; /* Amarelo ouro fosco */
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(96, 165, 250, 0.3); 
}
.cb-protanopia .dot.red { background: #818CF8; } /* Índigo Suave */
.cb-protanopia .dot.yellow { background: #FBBF24; }
.cb-protanopia .dot.green { background: #60A5FA; }

/* 2. Deuteranopia (Dificuldade com Verde) - Tons de Teal e Laranja Fogo Fosco */
.cb-deuteranopia {
    --bg-deep: #09090B; /* Chumbo/Carbono escuro */
    --primary-blue: #0284C7;
    --accent-cyan: #38BDF8; /* Ciano fosco e limpo */
    --accent-gold: #F97316; /* Laranja profundo de alto contraste */
    --glass-bg: rgba(9, 9, 11, 0.85);
    --glass-border: rgba(56, 189, 248, 0.3);
}
.cb-deuteranopia .dot.red { background: #A78BFA; }
.cb-deuteranopia .dot.yellow { background: #FDE047; }
.cb-deuteranopia .dot.green { background: #38BDF8; }

/* 3. Tritanopia (Dificuldade com Azul) - Tons Rosa Salmão e Verde Água */
.cb-tritanopia {
    --bg-deep: #171717; /* Cinza quente */
    --primary-blue: #E11D48; 
    --accent-cyan: #F43F5E;  /* Rosa/Salmão agradável */
    --accent-gold: #2DD4BF;  /* Verde menta (muito relaxante) */
    --glass-bg: rgba(23, 23, 23, 0.85);
    --glass-border: rgba(244, 63, 94, 0.3); 
}
.cb-tritanopia .dot.red { background: #991B1B; }
.cb-tritanopia .dot.yellow { background: #FB923C; }
.cb-tritanopia .dot.green { background: #2DD4BF; }

/* Ajuste Universal: Códigos no terminal ficam da cor secundária (sem brilho neon) */
[class*="cb-"] .terminal-box .code-line, 
[class*="cb-"] .terminal-window .code-line { 
    color: var(--accent-gold) !important; 
}

/* Remove sombras pesadas dos botões no modo daltônico para manter a interface "Flat" */
[class*="cb-"] .btn-space { 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important; 
}
[class*="cb-"] .btn-theme-toggle { 
    border-color: var(--accent-cyan); 
    color: var(--accent-cyan); 
    box-shadow: none !important;
}
[class*="cb-"] .btn-theme-toggle:hover { 
    background: rgba(255,255,255,0.1); 
}

/* ==========================================================================
   ADAPTAÇÃO DA NAVE (ANIMAÇÃO MANTIDA + CORES CONFORTÁVEIS)
   ========================================================================== */
/* O hover original é mantido, mas as cores do emoji transformam-se via filtros óticos */

/* Protanopia (Sem Vermelho) -> Transforma o vermelho vibrante do foguete num Azul/Índigo relaxante */
.cb-protanopia .journey-visual {
    filter: hue-rotate(200deg) saturate(80%) drop-shadow(0 0 15px rgba(96, 165, 250, 0.3));
}

/* Deuteranopia (Sem Verde) -> Transforma o vermelho num Laranja Fogo/Amarelo forte */
.cb-deuteranopia .journey-visual {
    filter: hue-rotate(40deg) saturate(120%) drop-shadow(0 0 15px rgba(249, 115, 22, 0.3));
}

/* Tritanopia (Sem Azul) -> Transforma a estrutura da nave em tons de Rosa/Menta */
.cb-tritanopia .journey-visual {
    filter: hue-rotate(-60deg) saturate(100%) drop-shadow(0 0 15px rgba(244, 63, 94, 0.3));
}

/* ==========================================================================
   RESPONSIVIDADE MÁXIMA (BLINDAGEM ABSOLUTA CONTRA QUEBRAS DE TELA)
   ========================================================================== */

/* Tablet e Ecrãs Médios (Abaixo de 1024px) */
@media (max-width: 1024px) {
    /* O Hero Section (Topo) empilha o texto e o cartão */
    .lp-hero {
        padding: 100px 5% 50px 5%;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        min-height: auto;
    }

    .hero-content {
        max-width: 100% !important;
        margin-bottom: 40px;
    }
    
    .hero-btns { justify-content: center; }

    /* Centraliza o Cartão do Arquiteto no Mobile/Tablet */
    .architect-card {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Empilha as Secções de Missão, Criador e Jornada */
    .about-container, .creator-card, .journey-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 40px;
        padding: 40px 30px;
    }

    .about-container { flex-direction: column-reverse !important; }
    .creator-avatar { margin: 0 auto !important; }
    
    /* Centraliza os Terminais */
    .about-visual, .terminal-window {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stats-row, .social-links-container { justify-content: center; }
    .journey-list { text-align: left; display: inline-block; padding-left: 20px; }
    .journey-visual { font-size: 6rem; margin-bottom: 20px; }
}

/* Mobile Normal (Abaixo de 768px) */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    
    /* Navbar Flexível (Vira uma caixa com Chips) */
    .lp-nav {
        flex-direction: column !important;
        padding: 20px 15px;
        border-radius: 20px;
        gap: 20px;
        width: 95%;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    
    /* Força a quebra de linha dos botões de Tema e Login se não couberem */
    .lp-nav > div:last-child {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 8px 15px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
    }
    
    .light-mode .nav-links a { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1); color: var(--text-white); }

  /* =========================================================
       CORREÇÃO DO MENU DE DALTONISMO NO MOBILE
       ========================================================= */
    /* 1. Remove a "âncora" do botão, permitindo usar a tela toda */
    .dropdown-wrapper { position: static; }

    /* 2. Centraliza o menu perfeitamente usando a Navbar como base */
    .dropdown-menu { 
        top: 100%; 
        left: 50%; 
        right: auto;
        transform: translateX(-50%) !important; 
        width: 90vw; 
        max-width: 320px; /* Evita que fique esticado demais */
        margin-top: 10px; /* Dá um respiro da barra */
    }
    
    /* 3. Animação de fechar alinhada com o novo centro */
    .dropdown-menu.hidden { 
        transform: translate(-50%, -10px) !important; 
    }

    /* Retira bloqueios rígidos de largura */
    .about-text, .creator-info, .journey-text { min-width: 0 !important; width: 100% !important; }
    .creator-avatar img { width: 150px; height: 150px; }
    .creator-info h3 { font-size: 1.8rem; }
}

/* Mobile Estreito (Ecrãs muito pequenos) */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    
    .crawl h1 { font-size: 1.8rem; }
    .crawl p { font-size: 0.85rem; }
    
    .feature-card { padding: 25px 15px; }
    
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .btn-space, .btn-outline { width: 100%; justify-content: center; }

    /* O terminal diminui a letra para evitar quebra de linha que expande a tela */
    .terminal-window { padding: 15px 10px; }
    .terminal-box { font-size: 0.8rem; }
    .code-line { font-size: 0.75rem; }
    
    .stats-row { gap: 20px; }
    .stats-row div strong { font-size: 1.5rem; }
    
    /* Botão pular intro ajustado */
    .btn-skip-intro { bottom: 20px; right: 20px; font-size: 0.7rem; padding: 8px 12px; }
    
    /* Botões sociais preenchem a tela no mobile pequeno */
    .social-btn { width: 100%; text-align: center; }
}