/* ==========================================================================
   STYLE SYSTEM - OVEVETE 3D LANDING PAGE
   ========================================================================== */

/* Cores e Variáveis */
:root {
    --bg-dark: #0a0612;
    --card-bg: rgba(18, 12, 30, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #c2b9d0;
    --primary-sunset: linear-gradient(135deg, #FF5E3A 0%, #FF2A6D 50%, #8A2387 100%);
    --primary-hover: linear-gradient(135deg, #ff7252 0%, #ff4b85 50%, #a13ea0 100%);
    --whatsapp-green: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --whatsapp-hover: linear-gradient(135deg, #30e374 0%, #16a393 100%);
    --neon-blue: #05D9E8;
    --neon-pink: #FF2A6D;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --shadow-glow: 0 8px 32px 0 rgba(255, 42, 109, 0.15);
    --shadow-input: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container do Canvas Three.js */
#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Classes Utilitárias */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}

/* Transições de Fade */
.fade-out {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

/* HUD - Mira Central (Crosshair) */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

#crosshair .dot {
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 8px var(--neon-blue);
}

#crosshair .ring {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Mira no balão (Hover State) */
#crosshair.hovering .ring {
    width: 24px;
    height: 24px;
    border-color: var(--neon-blue);
    border-width: 2px;
    box-shadow: 0 0 12px rgba(5, 217, 232, 0.5);
    background-color: rgba(5, 217, 232, 0.1);
}

#crosshair.hovering .dot {
    background-color: var(--neon-blue);
}

/* HUD - Prompt de Interação */
#interaction-prompt {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 94, 58, 0.1);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floating-prompt 2s infinite ease-in-out;
}

@keyframes floating-prompt {
    0% { transform: translate(-50%, 0px); }
    50% { transform: translate(-50%, -6px); }
    100% { transform: translate(-50%, 0px); }
}

#interaction-prompt .key {
    background: var(--primary-sunset);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 10px rgba(255, 42, 109, 0.4);
}

#interaction-prompt .text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Tela Inicial / Instruções */
#intro-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 10, 32, 0.4) 0%, rgba(8, 3, 15, 0.85) 100%), 
                url('sunset_background.png') no-repeat center center;
    background-size: cover;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.intro-card {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    max-width: 580px;
    width: 100%;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 60px; /* Dá espaço para o balão flutuar acima do card */
    animation: card-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes card-appear {
    0% { transform: scale(0.9) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.logo-container {
    position: relative;
    width: 100%;
    height: 140px; /* Reserva espaço para o balão */
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.balloon-3d-pop {
    width: 190px;
    height: auto;
    position: absolute;
    top: -95px; /* Faz o balão se projetar para fora do topo do card */
    pointer-events: none;
    z-index: 10; /* Garante que está à frente de todas as outras camadas do card */
    animation: pop-out-float 4s infinite ease-in-out;
}

@keyframes pop-out-float {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.55)) drop-shadow(0 3px 6px rgba(204, 22, 22, 0.12));
    }
    50% {
        transform: translateY(-16px);
        filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.35)) drop-shadow(0 6px 14px rgba(204, 22, 22, 0.22));
    }
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.55)) drop-shadow(0 3px 6px rgba(204, 22, 22, 0.12));
    }
}

.intro-card h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--primary-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.intro-card .subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-blue);
    margin-bottom: 24px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-sunset);
    border-radius: 3px;
    margin-bottom: 24px;
}

.instructions {
    width: 100%;
    text-align: left;
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.instructions h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.control-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-cap {
    background: #251d33;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    min-width: 32px;
    text-align: center;
}

.mouse-icon {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    position: relative;
}

.mouse-icon .wheel {
    width: 2px;
    height: 6px;
    background: var(--neon-pink);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 4px); }
}

.control-desc {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Botões da UI */
.btn-primary {
    background: linear-gradient(135deg, #d61f26 0%, #0038a8 100%);
    border: 2.5px solid #ffffff; /* Representa o branco da bandeira de forma limpa */
    color: #ffffff;
    padding: 16px 36px;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 56, 168, 0.4), 0 0 15px rgba(214, 31, 38, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #eb2f36 0%, #0c4ce6 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 56, 168, 0.5), 0 0 20px rgba(214, 31, 38, 0.45);
    border-color: #ffffff;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* CSS Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal / Overlay de Conversão */
#modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 3, 10, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
}

.modal-card {
    background: rgba(18, 12, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 580px;
    width: 100%;
    border-radius: 28px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 30px rgba(5, 217, 232, 0.05);
    animation: modal-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-enter {
    0% { transform: scale(0.9) translateY(40px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Botão Fechar Modal */
.btn-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: rgba(255, 42, 109, 0.15);
    color: var(--neon-pink);
    border-color: rgba(255, 42, 109, 0.3);
    transform: rotate(90deg);
}

/* Cabeçalho do Modal */
.modal-header {
    margin-bottom: 24px;
}

.badge {
    background: rgba(5, 217, 232, 0.12);
    color: var(--neon-blue);
    border: 1px solid rgba(5, 217, 232, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #fff 0%, #d8d0e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-modal {
    font-size: 14px;
    font-weight: 500;
    color: var(--neon-pink);
}

/* Corpo do Modal */
.modal-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.modal-body p {
    margin-bottom: 20px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 18px;
    line-height: 1.2;
}

.feature-text {
    font-size: 13.5px;
}

/* Rodapé do Modal */
.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    border: none;
    color: #fff;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsividade */
@media (max-width: 600px) {
    .intro-card, .modal-card {
        padding: 24px;
    }
    
    .intro-card h1 {
        font-size: 32px;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
}
