/* ==========================================================================
   R.R EDUCAÇÃO — TRILHA DAS MATÉRIAS SHOWCASE
   Arquivo: css/trilhadasmaterias.css
   Padrão Visual: Golden Master (Matriz Oficial do 3 Pistas)
   ========================================================================== */

:root {
    --bg-main: #08090d;
    --card-bg: rgba(18, 22, 34, 0.75);
    --card-hover: rgba(26, 32, 50, 0.88);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(0, 255, 204, 0.45);
    
    /* Cores de Destaque */
    --accent-neon: #00ffcc;
    --accent-cyan: #00ffcc;
    --accent-cyan-glow: rgba(0, 255, 204, 0.35);
    --accent-blue: #0070f3;
    
    /* Paleta Trilha Pedagógica & Aventura */
    --accent-purple: #7928ca;
    --accent-emerald: #10b981;
    --accent-gold: #ffb703;
    --accent-gold-light: #ffe066;
    --accent-gold-glow: rgba(255, 183, 3, 0.35);

    /* Tipografia e Textos */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Gradientes Oficiais */
    --gradient-primary: linear-gradient(135deg, #00ffcc 0%, #7928ca 100%);
    --gradient-title: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
    --gradient-title-accent: linear-gradient(135deg, #00ffcc 0%, #00b4d8 50%, #7928ca 100%);
    --gradient-gold: linear-gradient(135deg, #ffe066 0%, #ffb703 50%, #e09f00 100%);
    --gradient-pro: linear-gradient(135deg, #00ffcc 0%, #0070f3 100%);

    /* Dimensões Globais */
    --header-height: 72px;
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* --------------------------------------------------------------------------
   RESET & SETUP BASE
-------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   BRILHOS AMBIENTAIS GLOBAIS (AMBIENT GLOWS)
-------------------------------------------------------------------------- */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

.glow-cyan {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0, 255, 204, 0) 70%);
    top: -120px;
    left: -120px;
}

.glow-purple {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--accent-purple) 0%, rgba(121, 40, 202, 0) 70%);
    top: 30%;
    right: -140px;
}

/* --------------------------------------------------------------------------
   CABEÇALHO OFICIAL (CÓPIA EXATA DA MATRIZ 3 PISTAS)
-------------------------------------------------------------------------- */
.brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.brand-box:hover {
    transform: translateY(-1px);
}

.logo-rs {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -2px;
    display: flex;
    gap: 0px;
}

.logo-rs span {
    background: linear-gradient(135deg, #00ffcc 0%, #7000ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.logo-rs span.mirrored {
    transform: scaleX(-1);
}

.logo-sub {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

header, .site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: rgba(8, 9, 13, 0.8);
    transition: background-color 0.3s;
    height: 80px;
}

header .container, .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Navegação Principal - Seletor PT-BR encostado à esquerda */
nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin-left: 40px;
    align-items: center;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.lang-selector:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-selector i {
    font-size: 1.1rem;
}

/* Ações do Usuário (Agrupadas estritamente à direita) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.btn-planos {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-planos:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.btn-register {
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: var(--accent-cyan);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.1);
}

.btn-register:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.4);
    transform: translateY(-1px);
}

/* Menu Lateral de Perfil e Login (Slide-in Drawer Oficial) */
.profile-trigger-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 72px;
    cursor: pointer;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: color 0.2s;
    color: var(--text-muted);
}

.profile-trigger-area:hover {
    color: var(--text-main);
}

.profile-icon {
    font-size: 1.8rem;
    transition: transform 0.2s;
}

.profile-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-trigger-area:hover .profile-icon {
    transform: scale(1.08);
    color: var(--accent-neon);
}

.side-menu {
    position: fixed;
    top: 72px;
    right: -320px;
    width: 290px;
    height: calc(100vh - 72px);
    background-color: rgba(14, 16, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px 0;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
    z-index: 999;
    color: var(--text-main);
}

.profile-trigger-area:hover .side-menu,
.side-menu:hover {
    right: 0;
}

.side-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
}

.side-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.side-menu li a i {
    font-size: 1.25rem;
    color: var(--accent-neon);
    transition: transform 0.2s;
}

.side-menu li a:hover {
    background: rgba(121, 40, 202, 0.12);
    color: var(--text-main);
    border-left-color: var(--accent-purple);
    padding-left: 28px;
}

.side-menu li a:hover i {
    transform: scale(1.15);
}

.side-menu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin: 20px 24px 8px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   HERO SECTION
-------------------------------------------------------------------------- */
.hero-wrapper {
    position: relative;
    padding: 50px 0 60px;
    z-index: 1;
}

.game-hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h1 span {
    background: var(--gradient-title-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-actions-btn {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: #06070a;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.35);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 255, 204, 0.55);
    filter: brightness(1.08);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   MOCKUP DA ARENA (TABULEIRO DO SABER - TILT 3D A 60 FPS)
-------------------------------------------------------------------------- */
.hero-visual-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
}

.hero-visual {
    width: 100%;
    max-width: 530px;
    background: #0d1017;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.mockup-header {
    background: rgba(16, 20, 34, 0.94);
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    position: relative;
}

.mockup-traffic-lights {
    display: flex;
    gap: 7px;
    z-index: 1;
}

.mockup-traffic-lights span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #e05252; }
.dot-yellow { background: #e5a93c; }
.dot-green { background: #3eb489; }

.mockup-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #94a3b8;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   INTERIOR DO MOCKUP: ANIMAÇÃO MINIMALISTA EM SILHUETA / SOMBRA (LOOP)
   ========================================================================== */
.trail-arena {
    padding: 0;
    height: 320px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 55%, #151922 0%, #0d1017 75%, #080a0f 100%);
}

.silhouette-scene {
    position: relative;
    width: 480px;
    height: 220px;
}

/* 3 Patamares Horizontais em Tom Grafite / Chumbo Fosco */
.matte-platform {
    position: absolute;
    top: 155px;
    width: 96px;
    height: 14px;
    background: linear-gradient(180deg, #1e2430 0%, #121620 100%);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 10px 24px rgba(0, 0, 0, 0.65),
        0 2px 4px rgba(0, 0, 0, 0.4);
}

.matte-platform::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.platform-1 { left: 48px; }
.platform-2 { left: 192px; }
.platform-3 { left: 336px; }

/* Objeto em Silhueta (Balão Erlenmeyer) & Sombra de Base Plana */
.silhouette-runner {
    position: absolute;
    top: 123px;
    left: 0;
    width: 28px;
    height: 32px;
    pointer-events: none;
    animation: runnerProgress 4.6s infinite linear;
}

/* Sombra Oval no Solo para Base Plana do Erlenmeyer */
.silhouette-shadow {
    position: absolute;
    bottom: -3px;
    left: 14px;
    width: 26px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
    transform: translateX(-50%);
    animation: shadowPulse 4.6s infinite linear;
}

/* O Erlenmeyer Saltador com Curva de Parábola e Física Elástica */
.silhouette-jumper {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 32px;
    transform-origin: bottom center;
    animation: jumperHop 4.6s infinite linear;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Silhueta Vetorial do Erlenmeyer (Dark Matte / Grafite Chumbo) */
.erlenmeyer-silhouette {
    display: block;
    width: 28px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* --------------------------------------------------------------------------
   KEYFRAMES: PROGRESSÃO HORIZONTAL (RUNNER)
-------------------------------------------------------------------------- */
@keyframes runnerProgress {
    /* Entrada a partir de fora da tela à esquerda (-62px) até o Patamar 1 (82px) */
    0% {
        transform: translateX(-62px);
        animation-timing-function: ease-in-out;
    }
    21% {
        transform: translateX(82px);
    }
    /* Pausa/amortecimento no Patamar 1 */
    25% {
        transform: translateX(82px);
        animation-timing-function: ease-in-out;
    }
    /* Salto do Patamar 1 (82px) para o Patamar 2 (226px) */
    46% {
        transform: translateX(226px);
    }
    /* Pausa/amortecimento no Patamar 2 */
    50% {
        transform: translateX(226px);
        animation-timing-function: ease-in-out;
    }
    /* Salto do Patamar 2 (226px) para o Patamar 3 (370px) */
    71% {
        transform: translateX(370px);
    }
    /* Pausa/amortecimento no Patamar 3 */
    75% {
        transform: translateX(370px);
        animation-timing-function: ease-in-out;
    }
    /* Salto final do Patamar 3 (370px) saindo pela direita (514px) */
    96% {
        transform: translateX(514px);
    }
    /* Loop sem corte visual (ocorre fora da tela) */
    100% {
        transform: translateX(514px);
    }
}

/* --------------------------------------------------------------------------
   KEYFRAMES: PARÁBOLA DO SALTO E FÍSICA ELÁSTICA (JUMPER)
-------------------------------------------------------------------------- */
@keyframes jumperHop {
    /* SALTO 1: Entrada -> Patamar 1 */
    0% {
        transform: translateY(0) rotate(6deg) scale(0.92, 1.12);
        animation-timing-function: ease-out;
    }
    10.5% {
        transform: translateY(-64px) rotate(10deg) scale(0.96, 1.04);
        animation-timing-function: ease-in;
    }
    19% {
        transform: translateY(-8px) rotate(3deg) scale(1, 1);
    }
    21% {
        transform: translateY(0) rotate(0deg) scale(1.16, 0.84);
        animation-timing-function: ease-out;
    }
    23% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
    }
    24.5% {
        transform: translateY(0) rotate(0deg) scale(0.94, 1.06);
    }

    /* SALTO 2: Patamar 1 -> Patamar 2 */
    25% {
        transform: translateY(0) rotate(6deg) scale(0.92, 1.12);
        animation-timing-function: ease-out;
    }
    35.5% {
        transform: translateY(-64px) rotate(10deg) scale(0.96, 1.04);
        animation-timing-function: ease-in;
    }
    44% {
        transform: translateY(-8px) rotate(3deg) scale(1, 1);
    }
    46% {
        transform: translateY(0) rotate(0deg) scale(1.16, 0.84);
        animation-timing-function: ease-out;
    }
    48% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
    }
    49.5% {
        transform: translateY(0) rotate(0deg) scale(0.94, 1.06);
    }

    /* SALTO 3: Patamar 2 -> Patamar 3 */
    50% {
        transform: translateY(0) rotate(6deg) scale(0.92, 1.12);
        animation-timing-function: ease-out;
    }
    60.5% {
        transform: translateY(-64px) rotate(10deg) scale(0.96, 1.04);
        animation-timing-function: ease-in;
    }
    69% {
        transform: translateY(-8px) rotate(3deg) scale(1, 1);
    }
    71% {
        transform: translateY(0) rotate(0deg) scale(1.16, 0.84);
        animation-timing-function: ease-out;
    }
    73% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
    }
    74.5% {
        transform: translateY(0) rotate(0deg) scale(0.94, 1.06);
    }

    /* SALTO 4: Patamar 3 -> Saída pela Direita */
    75% {
        transform: translateY(0) rotate(6deg) scale(0.92, 1.12);
        animation-timing-function: ease-out;
    }
    85.5% {
        transform: translateY(-64px) rotate(10deg) scale(0.96, 1.04);
        animation-timing-function: ease-in;
    }
    94% {
        transform: translateY(-8px) rotate(3deg) scale(1, 1);
    }
    96% {
        transform: translateY(0) rotate(0deg) scale(1.16, 0.84);
        animation-timing-function: ease-out;
    }
    98% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1, 1);
    }
}

/* --------------------------------------------------------------------------
   KEYFRAMES: SOMBRA NO CHÃO (ESMAECE NO AR, DENSIFICA NO POUSO)
-------------------------------------------------------------------------- */
@keyframes shadowPulse {
    /* SALTO 1 */
    0% {
        transform: translateX(-50%) scale(0.85, 0.7);
        opacity: 0.55;
        filter: blur(2.5px);
        animation-timing-function: ease-out;
    }
    10.5% {
        transform: translateX(-50%) scale(0.35, 0.35);
        opacity: 0.12;
        filter: blur(5px);
        animation-timing-function: ease-in;
    }
    21% {
        transform: translateX(-50%) scale(1.22, 1);
        opacity: 0.92;
        filter: blur(1.5px);
        animation-timing-function: ease-out;
    }
    23% {
        transform: translateX(-50%) scale(1, 0.9);
        opacity: 0.78;
        filter: blur(2px);
    }
    24.5% {
        transform: translateX(-50%) scale(0.9, 0.8);
        opacity: 0.72;
        filter: blur(2px);
    }

    /* SALTO 2 */
    25% {
        transform: translateX(-50%) scale(0.85, 0.7);
        opacity: 0.55;
        filter: blur(2.5px);
        animation-timing-function: ease-out;
    }
    35.5% {
        transform: translateX(-50%) scale(0.35, 0.35);
        opacity: 0.12;
        filter: blur(5px);
        animation-timing-function: ease-in;
    }
    46% {
        transform: translateX(-50%) scale(1.22, 1);
        opacity: 0.92;
        filter: blur(1.5px);
        animation-timing-function: ease-out;
    }
    48% {
        transform: translateX(-50%) scale(1, 0.9);
        opacity: 0.78;
        filter: blur(2px);
    }
    49.5% {
        transform: translateX(-50%) scale(0.9, 0.8);
        opacity: 0.72;
        filter: blur(2px);
    }

    /* SALTO 3 */
    50% {
        transform: translateX(-50%) scale(0.85, 0.7);
        opacity: 0.55;
        filter: blur(2.5px);
        animation-timing-function: ease-out;
    }
    60.5% {
        transform: translateX(-50%) scale(0.35, 0.35);
        opacity: 0.12;
        filter: blur(5px);
        animation-timing-function: ease-in;
    }
    71% {
        transform: translateX(-50%) scale(1.22, 1);
        opacity: 0.92;
        filter: blur(1.5px);
        animation-timing-function: ease-out;
    }
    73% {
        transform: translateX(-50%) scale(1, 0.9);
        opacity: 0.78;
        filter: blur(2px);
    }
    74.5% {
        transform: translateX(-50%) scale(0.9, 0.8);
        opacity: 0.72;
        filter: blur(2px);
    }

    /* SALTO 4 */
    75% {
        transform: translateX(-50%) scale(0.85, 0.7);
        opacity: 0.55;
        filter: blur(2.5px);
        animation-timing-function: ease-out;
    }
    85.5% {
        transform: translateX(-50%) scale(0.35, 0.35);
        opacity: 0.12;
        filter: blur(5px);
        animation-timing-function: ease-in;
    }
    96% {
        transform: translateX(-50%) scale(1.22, 1);
        opacity: 0.92;
        filter: blur(1.5px);
        animation-timing-function: ease-out;
    }
    98% {
        transform: translateX(-50%) scale(1, 0.9);
        opacity: 0.78;
        filter: blur(2px);
    }
    100% {
        transform: translateX(-50%) scale(1, 0.9);
        opacity: 0.78;
        filter: blur(2px);
    }
}

/* --------------------------------------------------------------------------
   COMO FUNCIONA O JOGO (NÚMEROS MONUMENTAIS 2.6rem E GRADIENTE)
-------------------------------------------------------------------------- */
.how-it-works-section {
    padding: 60px 0 70px;
    position: relative;
    z-index: 1;
}

.section-title-wrap {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 42px;
}

.section-title-wrap h2 {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-wrap p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step-card:hover {
    background: var(--card-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 204, 0.15);
}

.step-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.step-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.5rem;
}

.step-number {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-title-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   SEÇÃO DE PLANOS (PRO VS PREMIUM - RIGOROSAMENTE NIVELADOS)
-------------------------------------------------------------------------- */
.avatars-section {
    padding: 60px 0 75px;
    position: relative;
    z-index: 1;
}

.avatars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Card PRO (Cobalto & Tecnologia) */
.pro-box {
    background: linear-gradient(180deg, rgba(14, 18, 30, 0.92) 0%, rgba(9, 12, 20, 0.98) 100%);
    border: 1px solid rgba(0, 112, 243, 0.35);
    border-radius: var(--radius-lg);
    padding: 38px 32px 34px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 112, 243, 0.12);
    backdrop-filter: blur(16px);
}

.plan-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 18px;
}

.badge-pro {
    background: rgba(0, 112, 243, 0.15);
    border: 1px solid rgba(0, 112, 243, 0.35);
    color: #60a5fa;
}

.pro-box h2 {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.pro-box p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Minicards Compactos PRO (Estrutura Vertical Idêntica ao 3 Pistas) */
.minicards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
}

.minicard-pro {
    background: rgba(12, 16, 27, 0.85);
    border: 1px solid rgba(0, 112, 243, 0.2);
    border-radius: 12px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.minicard-pro:hover {
    background: rgba(0, 112, 243, 0.12);
    border-color: rgba(0, 112, 243, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 243, 0.15);
}

.minicard-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 112, 243, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.minicard-icon-box i {
    font-size: 1.6rem;
    color: #38bdf8;
}

.minicard-pro span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.btn-pro-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-pro);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0, 112, 243, 0.35);
    transition: all 0.25s ease;
    margin-top: auto;
    text-align: center;
}

.btn-pro-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 112, 243, 0.5);
    filter: brightness(1.1);
}

/* Card Mestre Premium (Obsidiana & Ouro Metálico) */
.premium-box {
    background: linear-gradient(180deg, rgba(22, 18, 10, 0.9) 0%, rgba(12, 10, 8, 0.97) 100%);
    border: 1px solid rgba(255, 183, 3, 0.35);
    border-radius: var(--radius-lg);
    padding: 38px 32px 34px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 35px rgba(255, 183, 3, 0.12);
    backdrop-filter: blur(16px);
}

.badge-premium {
    background: rgba(255, 183, 3, 0.15);
    border: 1px solid rgba(255, 183, 3, 0.35);
    color: var(--accent-gold-light);
}

.premium-box h3 {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-box h3 i {
    color: var(--accent-gold);
}

.premium-box p {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.premium-highlight {
    background: rgba(255, 183, 3, 0.08);
    border: 1px dashed rgba(255, 183, 3, 0.4);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.premium-highlight i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Vitrine VIP (3 Itens Mitológicos) */
.vip-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 26px;
}

.vip-card {
    background: rgba(18, 14, 8, 0.85);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: 12px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s ease;
}

.vip-card:hover {
    border-color: rgba(255, 183, 3, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 183, 3, 0.15);
}

.vip-img-container {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1.5px solid rgba(255, 183, 3, 0.35);
    background: #000;
}

.round-pedestal {
    width: 68px;
    height: 68px;
    border-radius: 50%;
}

.rect-pedestal {
    width: 78px;
    height: 68px;
    border-radius: 10px;
}

.vip-img-round {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    padding: 6px;
    background: rgba(15, 23, 42, 0.8);
    display: block;
    transition: transform 0.3s ease;
}

.vip-img-rect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.vip-card:hover img {
    transform: scale(1.08);
}

.vip-card h5 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
}

.vip-card span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.btn-premium-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-gold);
    color: #0d0d0d;
    font-size: 1rem;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.35);
    transition: all 0.25s ease;
    margin-top: auto;
    text-align: center;
}

.btn-premium-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 183, 3, 0.55);
    filter: brightness(1.08);
}

/* --------------------------------------------------------------------------
   CTA FINAL
-------------------------------------------------------------------------- */
.cta-section {
    padding: 60px 0 80px;
    position: relative;
    z-index: 1;
}

.cta-content {
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 204, 0.12) 0%, rgba(14, 18, 30, 0.95) 75%);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 255, 204, 0.15);
    backdrop-filter: blur(16px);
}

.cta-content h2 {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 32px;
}

.btn-cta {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   RODAPÉ OFICIAL
-------------------------------------------------------------------------- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(6, 7, 10, 0.95);
    padding: 36px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background: rgba(0, 255, 204, 0.15);
    color: var(--accent-cyan);
    border-color: rgba(0, 255, 204, 0.4);
    transform: translateY(-2px);
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   RESPONSIVIDADE (MOBILE & TABLET BREAKPOINTS)
-------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .game-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 28px;
    }

    .hero-actions-btn {
        justify-content: center;
    }

    .avatars-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* 1. Trava estrita contra rolagem horizontal fantasma */
    html, body {
        width: 100% !important;
        position: relative;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
        box-sizing: border-box !important;
    }

    /* 2. Ajuste responsivo do título e subtítulo da Hero */
    .hero h1, h1, .hero-text h1 {
        font-size: clamp(1.75rem, 6.8vw, 2.3rem) !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    .hero p, .hero-desc, .hero-text p {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* 3. Redimensionamento da janela de mockup (pré-visualização com 3 pontinhos) */
    .preview-card,
    .mockup-window,
    .game-preview,
    .mac-window,
    .hero-visual,
    .hero-visual-wrapper,
    [class*="preview"],
    [class*="mockup"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Garante que botões e flexbox respeitem os limites da tela */
    .hero-actions, .cta-group, .hero-actions-btn {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-iniciar, .btn-primary, .btn-secondary {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
    }

    .game-hero {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 40px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-text {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .mockup-title {
        font-size: 0.72rem !important;
        letter-spacing: 1px !important;
    }

    .trail-arena {
        height: 250px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .silhouette-scene {
        transform: scale(0.64) !important;
        transform-origin: center center !important;
        max-width: 100% !important;
    }

    :root {
        --header-height: 66px;
    }

    .section-title-wrap h2,
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .pro-box h2,
    .premium-box h3 {
        font-size: 1.7rem;
    }

    .minicards-grid {
        grid-template-columns: 1fr;
    }

    .vip-showcase-grid {
        gap: 10px;
    }

    .round-pedestal {
        width: 58px;
        height: 58px;
    }

    .rect-pedestal {
        width: 68px;
        height: 58px;
    }
}

@media (max-width: 480px) {
    .hero-actions-btn {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cta-content {
        padding: 36px 18px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    nav ul {
        margin-left: 16px;
        gap: 12px;
    }

    .trail-arena {
        height: 250px;
    }

    .silhouette-scene {
        transform: scale(0.68);
        transform-origin: center center;
    }
}

/* =======================================================
   CABEÇALHO PADRÃO OFICIAL & GAVETA LATERAL - R.R EDUCAÇÃO
   ======================================================= */

/* Header Base */
header, .site-header {
    border-bottom: 1px solid var(--border-subtle, #1f222f);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: rgba(11, 12, 16, 0.88);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-actions {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.profile-trigger-area {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100% !important;
    cursor: pointer;
    padding: 0 16px;
    border-left: 1px solid var(--border-subtle, #1f222f);
    background: transparent !important;
}

.profile-trigger-area:hover,
.profile-trigger-area.perfil-ativo {
    background: transparent !important;
}

.profile-text, #texto-usuario-header {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-muted, #9ca3af);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.profile-trigger-area:hover .profile-text,
.profile-trigger-area.perfil-ativo .profile-text {
    color: #00f5d4 !important;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

/* Gaveta Lateral (Side Menu) */
.side-menu {
    position: fixed;
    top: 80px;
    right: 0;
    width: 300px;
    height: calc(100vh - 80px);
    background: rgba(14, 17, 27, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-subtle, #1f222f);
    padding: 24px 0;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.7);
    z-index: 999;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.side-menu.menu-ativo {
    transform: translateX(0) !important;
}

/* AJUSTES OBRIGATÓRIOS PARA CELULAR (Evitar amassar botões e travar o menu) */
@media (max-width: 768px) {
    html, body {
        position: relative;
        width: 100%;
    }

    /* Oculta seletores desnecessários no topo para desapertar o header no mobile */
    .btn-planos,
    nav,
    .lang-selector {
        display: none !important;
    }

    .btn-register {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .profile-trigger-area {
        padding: 0 8px;
        border-left: none;
    }

    /* No celular a gaveta vira um drawer que cobre 82% da tela por cima de tudo */
    .side-menu {
        top: 0;
        height: 100vh;
        width: 82% !important;
        max-width: 320px;
        z-index: 2000;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
    }
}


/* Prioridade e Interatividade da Gaveta Lateral */
.side-menu {
    pointer-events: auto !important;
}
.side-menu a,
.side-menu button {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 2005;
}
