@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    /* Paleta Deep Blue & Neon */
    --bg-core: #020617; /* Azul Quase Preto */

    --glass-bg: rgba(30, 41, 59, 0.4); /* Vidro Base */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.3); /* Borda mais clara no hover */

    --primary: #fbbf24; /* Gold / Fichas */
    --primary-glow: rgba(251, 191, 36, 0.5);
    --truco-color: #06b6d4; /* Ciano Neon */
    --truco-glow: rgba(6, 182, 212, 0.5);
    --cacheta-color: #f43f5e; /* Rose Neon */
    --cacheta-glow: rgba(244, 63, 94, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* --- CORREÇÃO DE SCROLL HORIZONTAL --- */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Essencial para cortar o brilho lateral */
    position: relative;
}

/* Garante que as seções cortem o brilho que vaza para fora */
section, header, footer {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    background-color: var(--bg-core);
    /* Fundo complexo: Padrão Grid + Manchas de cor */
    background-image:
    /* Padrão Quadriculado Sutil */
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    /* Manchas de Luz (Ciano e Rosa) */
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.15) 0px, transparent 50%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- COMPONENTES UI --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botões Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap; /* Evita que o texto quebre dentro do botão */
}

.btn-gold {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

    .btn-gold:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 40px var(--primary-glow), 0 0 10px #fff inset;
        background: #fff;
    }

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}

    .btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(251, 191, 36, 0.1);
        box-shadow: 0 0 15px var(--primary-glow);
    }

/* Cards de Vidro (Glassmorphism) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.bento-grid .glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-7px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 25px var(--primary-glow), inset 0 0 10px rgba(251, 191, 36, 0.2);
}

.truco-theme .glass-card:hover {
    border-color: var(--truco-color);
    transform: translateY(-7px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 30px var(--truco-glow), inset 0 0 15px var(--truco-glow);
}

.cacheta-theme .glass-card:hover {
    border-color: var(--cacheta-color);
    transform: translateY(-7px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), 0 0 30px var(--cacheta-glow), inset 0 0 15px var(--cacheta-glow);
}

/* --- LOGO --- */
.logo-round {
    border-radius: 50%;
    /* Shadow Dourado (Brilho) */
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary-glow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
}

    .logo-round:hover {
        transform: scale(1.05) rotate(3deg);
        box-shadow: 0 0 30px var(--primary), 0 0 60px var(--primary-glow);
    }

.nav-logo {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.hero-logo-img {
    width: 160px;
    height: 160px;
    margin-bottom: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    animation: fadeInLogo 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden; /* Garante que o glow não cause scroll */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

    .hero-content h1 {
        font-size: clamp(3.5rem, 8vw, 5.5rem);
        line-height: 1;
        font-weight: 900;
        margin-bottom: 25px;
        background: linear-gradient(to right, #fff, #cbd5e1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-align: center;
    }

        .hero-content h1 span {
            color: var(--primary);
            -webkit-text-fill-color: var(--primary);
            text-shadow: 0 0 20px var(--primary-glow);
        }

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: center;
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(180px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* --- GRID BENTO --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 24px;
    margin: 80px 0;
}

.bento-item {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .bento-item.large {
        grid-column: span 6;
    }

    .bento-item.full {
        grid-column: span 12;
        text-align: center;
        padding: 60px;
    }

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
}

/* --- SEÇÕES DE JOGO --- */
.game-section {
    padding: 100px 0;
    position: relative;
}

    .game-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    }

.game-header {
    margin-bottom: 60px;
    text-align: center;
}

    .game-header h2 {
        font-size: 3.5rem;
        margin-bottom: 10px;
        font-weight: 900;
    }

    .game-header p {
        font-size: 1.2rem;
        color: var(--text-muted);
    }

.truco-theme h2 {
    color: var(--truco-color);
    text-shadow: 0 0 35px var(--truco-glow);
}

.truco-theme .icon-box {
    color: var(--truco-color);
    border: 1px solid var(--truco-glow);
    background: rgba(6, 182, 212, 0.1);
}

.cacheta-theme h2 {
    color: var(--cacheta-color);
    text-shadow: 0 0 35px var(--cacheta-glow);
}

.cacheta-theme .icon-box {
    color: var(--cacheta-color);
    border: 1px solid var(--cacheta-glow);
    background: rgba(244, 63, 94, 0.1);
}

/* Visual Cards */
.visual-cards-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.v-card {
    width: 70px;
    height: 100px;
    background: #e2e8f0;
    color: #0f172a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: 'Arial', sans-serif;
    border: 2px solid #fff;
}

    .v-card.red {
        color: #dc2626;
    }

    .v-card small {
        font-size: 0.65rem;
        opacity: 0.8;
        text-transform: uppercase;
        font-weight: 600;
    }

    .v-card span {
        font-size: 1.8rem;
    }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: 0.3s;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

    .brand span {
        color: var(--primary);
        text-shadow: 0 0 15px var(--primary-glow);
    }

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    text-align: center;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
}

/* --- FOOTER I.A ACADEMY --- */
.footer-dev-premium {
    background: linear-gradient(to bottom, #0f172a, #020617);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
    position: relative;
}

.footer-content-dev {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dev-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

    .dev-brand span {
        font-size: 0.65rem;
        letter-spacing: 2px;
        color: #64748b;
        text-transform: uppercase;
    }

/* Estilo do Link (Dourado e Brilhante) */
.link-ia-academy {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fbbf24; /* Dourado */
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

    .link-ia-academy:hover {
        color: #fff;
        text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
        transform: scale(1.05);
    }

.footer-bottom-dev {
    font-size: 0.85rem;
    color: #475569;
    letter-spacing: 1px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    width: 100%;
    max-width: 300px;
}
/* --- AJUSTES MOBILE (Responsividade) --- */
@media (max-width: 600px) {
    /* 1. CORREÇÃO DA NAVBAR (BOTÕES DE LOGIN/CADASTRO) */
    .navbar {
        padding: 10px 0;
    }

    .nav-content {
        padding: 0 15px; /* Menos padding lateral no container */
        gap: 5px; /* Menos espaço entre logo e botões */
    }

    .brand {
        font-size: 1.1rem; /* Logo menor para sobrar espaço */
        white-space: nowrap;
        margin-right: auto; /* Empurra os botões para a direita */
    }

    .nav-logo {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    /* Container dos botões "Cadastrar" e "Entrar" */
    .nav-content > div {
        gap: 8px !important; /* Aproxima os botões um do outro */
        display: flex;
    }

    /* Força os botões da Navbar a serem PEQUENOS */
    .navbar .btn {
        width: auto !important;
        padding: 6px 12px !important; /* Padding bem reduzido */
        font-size: 0.75rem !important; /* Fonte pequena */
        height: auto;
        letter-spacing: 0;
        border-radius: 8px;
    }

    /* 2. CORREÇÃO DA HERO E BOTÕES DE AÇÃO PRINCIPAL */
    .hero {
        align-items: center;
        padding-top: 100px;
        padding-bottom: 40px;
        overflow: hidden; /* Corta qualquer coisa que saia da tela */
    }

    .hero-content {
        align-items: center;
        text-align: center;
        width: 100%;
        padding: 0; /* Remove padding extra que causa scroll */
    }

    .hero-logo-img {
        width: 100px; /* Logo central menor */
        height: 100px;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Título ajustado */
    }

    .hero-tagline {
        font-size: 0.95rem;
        padding: 0 10px;
    }

    /* Container dos botões da Hero (Jogar Agora / Conhecer) */
    .hero-content > div {
        display: flex;
        flex-direction: column; /* Um em cima do outro */
        width: 100%;
        align-items: center;
        gap: 12px !important;
        margin-top: 25px !important;
    }

    /* Botões da Hero (Largura controlada) */
    .hero-content .btn {
        width: 100%;
        max-width: 260px; /* Garante que caiba na tela sem encostar nas bordas */
        justify-content: center;
        padding: 12px 0;
        font-size: 1rem;
    }

    /* 3. AJUSTES GERAIS PARA EVITAR SCROLL LATERAL */
    .bento-grid {
        grid-template-columns: 1fr;
        margin: 30px 0;
        gap: 15px;
    }

    .bento-item, .bento-item.large, .bento-item.full {
        grid-column: span 1;
    }

    .glass-card {
        padding: 20px;
    }

    /* Reduz as cartas visuais para não estourar a largura */
    .visual-cards-container {
        gap: 5px;
        transform: scale(0.95);
    }

    .v-card {
        width: 45px;
        height: 70px;
    }

        .v-card span {
            font-size: 1.2rem;
        }
}