/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    /* Paleta Sonic */
    --sonic-blue: #0057b8;
    --sonic-dark-blue: #004499;
    --sonic-light-blue: #2389da;
    --sonic-red: #e71d2a;
    --sonic-gold: #ffcc00;
    --sonic-green: #2ecc71;
    
    /* Cores Neutras */
    --bg-dark: #0f1014;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    
    /* Fontes */
    --font-retro: 'Press Start 2P', cursive;
    --font-modern: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: var(--font-modern); 
    background-color: var(--bg-dark); 
    color: var(--text-light); 
    overflow-x: hidden; 
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent; /* Remove flash azul no toque mobile */
}

.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 25px; 
    width: 100%; 
}

/* =========================================
   2. TIPOGRAFIA
   ========================================= */
h1, h2, h3, h4 { 
    font-family: var(--font-retro); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

h1 { 
    font-size: 3.2rem; 
    color: var(--sonic-gold); 
    text-shadow: 4px 4px var(--sonic-red); 
    line-height: 1.3; 
    margin-bottom: 25px;
}

.text-gradient {
    background: linear-gradient(to bottom, #ffdd44, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(4px 4px var(--sonic-red));
}

h2.section-title { 
    font-size: 2rem; text-align: center; margin-bottom: 15px; 
}
.section-intro {
    text-align: center; font-size: 1.1rem; margin-bottom: 50px; 
    opacity: 0.9; max-width: 700px; margin: 0 auto;
}

.white-text { color: white !important; text-shadow: 2px 2px rgba(0,0,0,0.3); }
.dark-text { color: var(--text-dark) !important; }
.sonic-blue { color: var(--sonic-blue); }

/* =========================================
   3. HUD & MENU (CENTRALIZADO)
   ========================================= */
.hud-display {
    position: fixed; top: 20px; left: 25px; z-index: 200;
    display: flex; flex-direction: column; gap: 8px;
    font-family: var(--font-retro); pointer-events: none;
}
.score-box { 
    background: rgba(0, 0, 0, 0.7); padding: 8px 12px; border-radius: 6px;
    border-left: 4px solid var(--sonic-gold); backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hud-label { color: var(--sonic-red); margin-right: 10px; font-size: 0.8rem; }
.hud-value { color: white; font-size: 0.9rem; }

/* MENU CENTRALIZADO */
.main-nav {
    position: absolute; 
    top: 30px; 
    left: 50%; 
    transform: translateX(-50%); /* Centraliza perfeitamente */
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(15px);
    padding: 10px 30px; 
    border-radius: 50px; 
    border: 1px solid rgba(255,255,255,0.4);
    display: flex; 
    gap: 25px; 
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: max-content;
}

.nav-link {
    color: white; text-decoration: none; font-weight: bold; font-size: 0.85rem;
    transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px;
    padding: 8px 15px; border-radius: 20px;
}
.nav-link:hover { background: white; color: var(--sonic-blue); box-shadow: 0 0 15px rgba(255,255,255,0.6); }
.nav-link.highlight { background: var(--sonic-gold); color: var(--sonic-blue); box-shadow: 0 0 15px var(--sonic-gold); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at 70% 50%, #2389da 0%, #004499 70%);
    display: flex; align-items: center; position: relative;
    border-bottom: 8px solid var(--sonic-gold); overflow: hidden;
    padding-top: 80px;
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 40px;
}

.hero-text { text-align: left; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.hero-badge {
    background: var(--sonic-gold); color: black; padding: 6px 12px;
    font-weight: 900; font-size: 0.8rem; border-radius: 4px;
    margin-bottom: 25px; box-shadow: 4px 4px 0 rgba(0,0,0,0.2); transform: rotate(-2deg);
}
.hero-text .subtitle { 
    font-size: 1.25rem; margin-bottom: 40px; max-width: 580px; 
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); font-weight: 300;
}
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* Botões */
.sonic-button, .secondary-button { white-space: nowrap; }

.sonic-button {
    padding: 16px 32px; background: var(--sonic-red);
    color: white; font-family: var(--font-retro); font-size: 0.9rem;
    text-decoration: none; border-radius: 50px; border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 0 #990000; /* Sombra sólida estilo botão de arcade */
    transition: all 0.1s; cursor: pointer; position: relative; overflow: hidden;
}
.sonic-button:active { transform: translateY(4px); box-shadow: 0 4px 0 #990000; }

.secondary-button {
    padding: 16px 32px; background: rgba(255,255,255,0.1); color: white;
    font-family: var(--font-modern); font-weight: bold; text-decoration: none;
    border: 2px solid white; border-radius: 50px; transition: all 0.3s;
    backdrop-filter: blur(5px);
}
.secondary-button:hover { background: white; color: var(--sonic-blue); }

.hero-image-container { position: relative; display: flex; justify-content: center; }
.hero-img {
    width: 100%; max-width: 600px; height: auto;
    filter: drop-shadow(0 0 50px rgba(0,0,0,0.5)); position: relative; z-index: 2;
}
.hero-circle-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 500px; height: 500px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    z-index: 1; animation: pulseGlow 4s infinite alternate;
}

/* =========================================
   5. SEÇÕES DE CONTEÚDO
   ========================================= */
.info-section { padding: 100px 0; }
.blue-zone { background-color: var(--sonic-blue); }
.content-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.text-box p { font-size: 1.15rem; margin-bottom: 25px; opacity: 0.9; }
.brain-ring {
    width: 260px; height: 260px; margin: 0 auto; border: 25px solid var(--sonic-gold);
    border-radius: 50%; background: var(--sonic-light-blue); box-shadow: 0 0 40px rgba(0,0,0,0.3);
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
}

.gold-zone { background-color: var(--sonic-gold); border-y: 8px solid var(--sonic-red); }
.detailed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.fact-card {
    background: #ffffff; padding: 30px; border-radius: 16px;
    border-bottom: 6px solid rgba(0,0,0,0.1);
    transition: transform 0.3s; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.fact-card:hover { transform: translateY(-10px); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }
.card-content h4 { 
    color: var(--sonic-blue); font-size: 1rem; margin-bottom: 12px; 
    border-bottom: 2px solid var(--sonic-gold); display: inline-block; padding-bottom: 5px;
}
.card-content p { color: #444; font-size: 0.95rem; line-height: 1.5; }

.special-stage-bg { background: linear-gradient(135deg, #4b0082, #9400d3); padding: 90px 0; border-bottom: 8px solid var(--sonic-gold); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin: 0 auto; max-width: 1100px; }
.video-trigger {
    background: black; border: 4px solid white; border-radius: 12px;
    overflow: hidden; cursor: pointer; transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.video-trigger:hover { transform: scale(1.02); border-color: var(--sonic-gold); }
.video-thumb { position: relative; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s;}
.video-trigger:hover img { opacity: 1; }
.play-button { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 3rem; color: var(--sonic-gold); text-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.video-trigger h3 { 
    padding: 15px; text-align: center; color: var(--sonic-gold); 
    font-size: 0.9rem; margin: 0; background: var(--sonic-blue); 
}

/* =========================================
   6. SHOWCASE & LOJA
   ========================================= */
.product-showcase-section {
    padding: 120px 0; 
    background: radial-gradient(circle at center, #ffffff 0%, #eeeeee 100%);
    text-align: center;
}
.main-kit-display { position: relative; max-width: 800px; margin: 0 auto; }
.main-kit-display img { width: 100%; filter: drop-shadow(0 25px 40px rgba(0,0,0,0.3)); }

/* BOLHA DE PREÇO */
.kit-price-box {
    position: absolute; bottom: -30px; right: -20px; 
    background: var(--sonic-blue);
    padding: 30px; border-radius: 50%; 
    border: 6px solid var(--sonic-gold);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 260px; height: 260px; transform: rotate(8deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3); z-index: 10;
}
.price-value { 
    font-family: var(--font-modern); font-weight: 900; 
    font-size: 2.5rem; color: white; margin: 10px 0;
    white-space: nowrap; /* IMPEDE QUEBRA DE LINHA NO PREÇO */
}

.individual-items-section { padding: 100px 0; background: #004499; }
.items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.item-card {
    background: white; border-radius: 12px; overflow: hidden; 
    text-align: center; padding-bottom: 20px; transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
}
.item-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.item-image { 
    height: 220px; display: flex; align-items: center; justify-content: center; 
    padding: 20px; background: #f8f9fa; border-bottom: 4px solid var(--sonic-gold); 
}
.item-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.item-image-group { height: 220px; display: flex; align-items: center; justify-content: center; background: #f8f9fa; border-bottom: 4px solid var(--sonic-gold);}
.mini-img { max-height: 80%; max-width: 45%; }
.item-card h3 { color: #333; margin-top: 20px; font-weight: bold; font-size: 1rem; }

/* =========================================
   7. EXTRAS
   ========================================= */
.trust-bar-section { background: #111; padding: 30px 0; border-top: 1px solid #333; }
.trust-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 15px; color: #888; }
.trust-icon { font-size: 2rem; }
.trust-text strong { display: block; color: #fff; font-size: 0.9rem; }
.trust-text small { font-size: 0.8rem; }
footer { background: #000; padding: 40px 0; text-align: center; color: #555; font-size: 0.8rem; }

.collectible-ring {
    position: absolute; width: 50px; height: 50px; border: 6px solid var(--sonic-gold);
    border-radius: 50%; box-shadow: 0 0 15px var(--sonic-gold); 
    animation: float 2s infinite ease-in-out; cursor: pointer; z-index: 50;
    transition: 0.2s;
}
.collectible-ring:hover { background: rgba(255,204,0,0.2); transform: scale(1.1); }
.collectible-ring.collected { animation: ringCollected 0.5s forwards !important; }

@keyframes float { 0%, 100% {transform: translateY(0);} 50% {transform: translateY(-15px);} }
@keyframes pulseButton { 0% {box-shadow: 0 0 0 0 rgba(231, 29, 42, 0.7);} 70% {box-shadow: 0 0 0 15px rgba(231, 29, 42, 0);} 100% {box-shadow: 0 0 0 0 rgba(231, 29, 42, 0);} }
@keyframes pulseGlow { from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }
@keyframes ringCollected { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; display: none; } }

.animate-up, .animate-slide-left, .animate-pop-in, .animate-zoom { opacity: 0; transition: all 0.8s ease-out; }
.animate-up { transform: translateY(40px); }
.animate-slide-left { transform: translateX(-40px); }
.animate-pop-in { transform: scale(0.8); }
.animate-zoom { transform: scale(0.5); }
.visible { opacity: 1; transform: none; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-window { width: 90%; max-width: 900px; border: 4px solid var(--sonic-gold); border-radius: 12px; overflow: hidden; transform: scale(0); transition: 0.4s; }
.modal-overlay.active .modal-window { transform: scale(1); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.close-btn { position: absolute; top: -40px; right: 0; padding: 5px 15px; border: 2px solid white; }

/* =========================================
   8. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================= */

@media (max-width: 1024px) {
    /* Tablet */
    h1 { font-size: 2.5rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text { align-items: center; order: 2; }
    .hero-image-container { order: 1; }
    .hero-buttons { justify-content: center; } 
    .detailed-grid { grid-template-columns: repeat(2, 1fr); }
    .main-nav { display: none; } /* Ocultar em telas menores se desejar ou transformar em menu hambúrguer */
}

@media (max-width: 768px) {
    /* CELULAR */
    .container { padding: 0 15px; }
    h1 { font-size: 1.8rem; }
    
    .hero-section { padding-top: 40px; min-height: auto; padding-bottom: 60px; }
    .hero-circle-glow { width: 300px; height: 300px; }
    
    /* Botões Mobile */
    .hero-buttons { flex-direction: column; width: 100%; align-items: center; gap: 15px; }
    .sonic-button, .secondary-button {
        width: 100%; max-width: 320px;
        text-align: center; padding: 14px 20px; font-size: 0.85rem;
    }

    /* Grades */
    .detailed-grid { grid-template-columns: 1fr; }
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-grid { grid-template-columns: 1fr; }
    
    /* CORREÇÃO DO BOTÃO COMPRAR NA BOLHA DE PREÇO (MOBILE) */
    .kit-price-box { 
        position: relative; width: 220px; height: 220px; 
        margin: -40px auto 0; right: auto; bottom: auto; transform: none; 
    }
    
    .price-value { 
        font-size: 2rem; 
        margin: 5px 0 10px 0; 
        /* Mantém o preço na mesma linha sempre */
    }
    
    /* ESTILO ESPECÍFICO PARA O BOTÃO DENTRO DA BOLHA NO CELULAR */
    .kit-price-box .sonic-button {
        padding: 8px 20px;  /* Reduz padding vertical */
        font-size: 0.85rem; /* Reduz fonte levemente */
        width: auto;        /* Não força 100% de largura */
        min-width: 120px;   
        display: inline-block;
        white-space: nowrap; /* Garante que 'COMPRAR' fique numa linha */
    }
    
    .trust-grid { flex-direction: column; align-items: center; text-align: center; }
}