/* EHSMS Interactive - estilos compartilhados por todas as paginas */
/* =========================================================
   EHSMS Interactive — folha de estilo
   Estrategia: tipografia fluida (clamp) + grids elasticos,
   para que o layout caiba em QUALQUER largura sem que o
   navegador precise "encolher" a pagina no celular.
   ========================================================= */

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

:root {
    --primary: #00D9FF;
    --secondary: #FF00FF;
    --accent: #0099FF;
    --dark: #0f1419;
    --darker: #0a0e14;
    --light: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --muted: #b8c5d6;
    --header-h: 68px;
    --radius: 14px;
}

html {
    /* Impede o iOS de reescalar fontes e trava o overflow lateral */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    overflow-x: hidden;
}

body {
    font-family: 'Space Mono', monospace;
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    background: var(--darker);
}

/* Nada pode estourar a largura da tela */
img, svg, video, canvas, iframe { max-width: 100%; height: auto; display: block; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('banner-ehsms-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 20, 40, 0.88) 0%, rgba(10, 30, 60, 0.85) 50%, rgba(0, 60, 100, 0.85) 100%);
    z-index: -1;
}

/* Acessibilidade: foco visivel e link de atalho */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: -100px;
    transform: translateX(-50%);
    background: var(--primary);
    color: #001018;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    z-index: 2000;
    text-decoration: none;
    transition: top 0.25s;
}

.skip-link:focus { top: 0; }

/* Barra de progresso de leitura */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1200;
    pointer-events: none;
}

/* =============== Header e Navegacao =============== */
header {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.94) 0%, rgba(26, 35, 50, 0.94) 100%);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--text-light);
    padding: 0.6rem clamp(0.85rem, 4vw, 2rem);
    padding-left: max(clamp(0.85rem, 4vw, 2rem), env(safe-area-inset-left));
    padding-right: max(clamp(0.85rem, 4vw, 2rem), env(safe-area-inset-right));
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: padding 0.3s, box-shadow 0.3s;
}

header.scrolled {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
}

/* Logo dividido: marca pixel-art + wordmark, para caber em telas estreitas */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
}

.logo-mark {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.85rem, 3.4vw, 1.35rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(0.6rem, 1.6vw, 0.85rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: clamp(0.9rem, 2.2vw, 2rem);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: clamp(0.82rem, 1.15vw, 0.95rem);
    white-space: nowrap;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* =============== Player de audio =============== */
.audio-player {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.audio-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: var(--text-light);
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.audio-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

.audio-btn.muted {
    background: linear-gradient(135deg, #444 0%, #555 100%);
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 30%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.2) 100%);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-light);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.8);
    cursor: pointer;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-light);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.8);
    cursor: pointer;
    border: none;
}

/* =============== Seletor de idioma =============== */
.lang-switcher { position: relative; }

.lang-btn {
    /* Globo + codigo do idioma + seta: o globo e o simbolo universal de
       idioma, e a seta avisa que abre uma lista. So a bandeira nao
       comunicava isso para quem vem de fora. */
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    min-height: 40px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.lang-globo { font-size: 1.05rem; }

.lang-codigo {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lang-seta {
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform 0.25s;
}

.lang-btn[aria-expanded="true"] {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.14);
}

.lang-btn[aria-expanded="true"] .lang-seta { transform: rotate(180deg); }

.lang-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    background: #151b26;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
    min-width: 170px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    z-index: 1001;
}

.lang-menu.open { display: block; }

.lang-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    transition: background 0.2s;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] { background: rgba(0, 217, 255, 0.15); }

/* =============== Botao hamburguer + menu lateral =============== */
.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}

.menu-toggle span {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.2s, top 0.3s;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1400;
}

.nav-backdrop.open { opacity: 1; visibility: visible; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 84vw);
    background: linear-gradient(160deg, #10161f 0%, #0a1220 100%);
    border-left: 1px solid rgba(0, 217, 255, 0.2);
    box-shadow: -12px 0 40px rgba(0,0,0,0.6);
    transform: translateX(100%);
    /* visibility entra na transicao para o painel nao sumir de repente ao fechar */
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0.32s;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    padding-top: max(1.25rem, env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
}

.mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.32s cubic-bezier(.4, 0, .2, 1), visibility 0s linear 0s;
}

.mobile-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-head .logo-mark { font-size: 1rem; }

.mobile-nav-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.95rem 0.75rem;
    border-radius: 10px;
    font-size: 1.02rem;
    border-left: 3px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(0, 217, 255, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
}

.mobile-nav-foot {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-volume {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.mobile-nav-volume .volume-slider { display: block; width: 100%; }

body.nav-open { overflow: hidden; }

/* =============== Hero =============== */
.hero {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.92) 0%, rgba(26, 35, 50, 0.92) 50%, rgba(0, 153, 255, 0.85) 100%), url('banner-ehsms-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: clamp(3.5rem, 10vw, 6rem) clamp(1rem, 5vw, 2rem);
    text-align: center;
    min-height: 520px;
    min-height: min(700px, 88svh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 7vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(127, 119, 221, 0.4);
    position: relative;
    z-index: 2;
    animation: slideDown 0.8s ease-out;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: clamp(1px, 0.6vw, 3px);
    text-transform: uppercase;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero p {
    font-size: clamp(0.95rem, 2.6vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out 0.4s both;
    width: 100%;
    max-width: 420px;
}

.scroll-hint {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    animation: bob 2.2s ease-in-out infinite;
    pointer-events: none;
}

.scroll-hint::after { content: '\2193'; font-size: 1.1rem; }

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============== Botoes =============== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 14px clamp(20px, 5vw, 32px);
    min-height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, #00b4ff 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
    font-size: clamp(0.88rem, 2.2vw, 1rem);
    box-shadow: 0 6px 18px rgba(0, 153, 255, 0.28);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 217, 255, 0.45);
}

.cta-button:active { transform: translateY(-1px); }

.cta-button.ghost {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: none;
}

.cta-button.ghost:hover {
    background: rgba(0, 217, 255, 0.14);
    border-color: var(--primary);
}

/* =============== Layout =============== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}

section {
    padding: clamp(2.75rem, 8vw, 4rem) clamp(0.5rem, 3vw, 2rem);
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: clamp(1px, 0.4vw, 2px);
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0, 217, 255, 0.4);
    overflow-wrap: break-word;
}

.section-title::after {
    content: '';
    display: block;
    width: 68px;
    height: 3px;
    margin: 0.9rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin: 1.25rem auto 2.5rem;
    font-size: clamp(0.9rem, 2.3vw, 1.1rem);
    max-width: 640px;
}

#sobre, #jogos, #apps, #politicas, #contato, .parallax-bg { background: transparent; }

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: clamp(1.15rem, 3.6vw, 1.8rem);
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-text p {
    margin-bottom: 1rem;
    color: #d0dce8;
    line-height: 1.85;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

/* Faixa de numeros */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 2.5rem auto 0;
}

.stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.3s, border-color 0.3s;
}

.stat:hover { transform: translateY(-4px); border-color: var(--primary); }

.stat b {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat span {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============== Cards =============== */
.cards-grid {
    display: grid;
    /* min() impede que a coluna de 300px force scroll lateral em telas de 320px */
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.25rem, 4vw, 2rem);
}

.cards-grid-single {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 217, 255, 0.25);
}

.card-header {
    height: clamp(150px, 42vw, 210px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background-size: cover;
    background-position: center;
}

.cards-grid-single .card-header { height: clamp(130px, 34vw, 170px); }

.card-header.has-image {
    background-image: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%), var(--card-img);
}

.card-content {
    padding: clamp(1.25rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: clamp(1.1rem, 3.2vw, 1.5rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.card-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: clamp(0.86rem, 2.2vw, 0.95rem);
    flex: 1;
}

.card-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    background: var(--accent);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.card-status.beta { background: #14a06a; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* =============== Politicas =============== */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.policy-group-title {
    color: var(--text-light);
    margin: 2.5rem 0 1.25rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(1rem, 3vw, 1.3rem);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.policy-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.5), transparent);
}

.policy-box {
    background: var(--light);
    padding: clamp(1.25rem, 4vw, 2rem);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.policy-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.policy-box h3 {
    color: var(--dark);
    margin-bottom: 0.85rem;
    font-size: clamp(1rem, 2.8vw, 1.3rem);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.policy-box p {
    color: #555;
    line-height: 1.8;
    font-size: clamp(0.86rem, 2.2vw, 0.95rem);
}

/* =============== Secao CTA / parallax =============== */
.parallax-section {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.92) 0%, rgba(26, 35, 50, 0.92) 50%, rgba(0, 153, 255, 0.85) 100%), url('banner-ehsms-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: clamp(340px, 55vw, 500px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    padding: clamp(2.5rem, 8vw, 4rem) clamp(1rem, 5vw, 2rem);
}

.parallax-overlay {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.parallax-overlay h2 {
    font-size: clamp(1.4rem, 5.5vw, 2.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 217, 255, 0.4);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: clamp(1px, 0.4vw, 2px);
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.parallax-overlay p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* =============== Contato =============== */
.contact-box {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: clamp(0.85rem, 3.2vw, 1.05rem);
    /* E-mail longo nao pode estourar a tela */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-feedback {
    display: block;
    margin-top: 1rem;
    color: #4ade80;
    font-size: 0.85rem;
    min-height: 1.2em;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.show { opacity: 1; }

/* =============== Footer =============== */
footer {
    background: var(--darker);
    color: var(--text-light);
    padding: clamp(2.5rem, 7vw, 3rem) clamp(1rem, 5vw, 2rem);
    padding-bottom: calc(clamp(2.5rem, 7vw, 3rem) + env(safe-area-inset-bottom));
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 217, 255, 0.15);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.footer-section a,
.footer-section p {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin: 0.65rem 0;
    opacity: 0.75;
    transition: opacity 0.3s, color 0.3s;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.footer-section a:hover { opacity: 1; color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: #8a97a8;
    font-size: 0.85rem;
}

/* =============== Faixa de chamada (o que a pessoa ganha) =============== */
.section-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2rem);
    flex-wrap: wrap;
    margin-top: clamp(1.75rem, 5vw, 2.5rem);
    padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
    border-radius: var(--radius);
    background: linear-gradient(120deg, rgba(0, 217, 255, 0.12) 0%, rgba(255, 0, 255, 0.10) 100%);
    border: 1px solid rgba(0, 217, 255, 0.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.section-cta p {
    color: var(--text-light);
    font-size: clamp(0.92rem, 2.4vw, 1.08rem);
    line-height: 1.6;
    margin: 0;
    flex: 1 1 260px;
    min-width: 0;
}

.section-cta .cta-button { flex-shrink: 0; }

/* =============== Ficha tecnica dos jogos =============== */
.card-header { position: relative; }

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 14, 20, 0.82);
    color: var(--primary);
    border: 1px solid rgba(0, 217, 255, 0.45);
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.game-tagline {
    color: var(--accent) !important;
    font-weight: 700;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 0.85rem;
    margin-bottom: 1.25rem !important;
    flex: none !important;
}

.game-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
    gap: 0.85rem;
    margin-bottom: 1.35rem;
    padding: 1rem;
    background: #f2f5f8;
    border-radius: 10px;
}

.game-meta > div { min-width: 0; }

.game-meta dt {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7c8896;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.game-meta dd {
    font-size: 0.86rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Trilha de estagio do desenvolvimento */
.stage-track {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    list-style: none;
}

.stage-track li {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #99a4b2;
    font-weight: 700;
    padding-top: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.stage-track li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d7dee6;
    border: 2px solid #d7dee6;
    z-index: 2;
}

/* Linha que liga os pontos */
.stage-track li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #d7dee6;
    z-index: 1;
}

.stage-track li.done::before { background: var(--accent); border-color: var(--accent); }
.stage-track li.done:not(:last-child)::after { background: var(--accent); }

.stage-track li.current { color: var(--accent); }

.stage-track li.current::before {
    background: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.2);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
}

.card-actions .cta-button { padding: 12px 20px; min-height: 44px; }

/* =============== Formulario da lista de interessados =============== */
.signup-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 5vw, 2.5rem);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.field { margin-bottom: 1.4rem; }

.field > label,
.fieldset-legend {
    display: block;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

.field .req { color: var(--secondary); margin-left: 2px; }

.field-hint {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
    width: 100%;
    background: rgba(10, 16, 24, 0.55);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Space Mono', monospace;
    /* 16px evita o zoom automatico do iOS ao focar o campo */
    font-size: 16px;
    padding: 13px 14px;
    line-height: 1.5;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: #6c7a8a; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.field-error {
    display: none;
    color: #ff8a8a;
    font-size: 0.8rem;
    margin-top: 0.4rem;
    line-height: 1.45;
}

.field-error.show { display: block; }

.char-count {
    display: block;
    text-align: right;
    color: #7d8a99;
    font-size: 0.72rem;
    margin-top: 0.3rem;
}

.char-count.near { color: #ffb454; }

/* Escolha de interesse */
.interest-fieldset { border: none; margin-bottom: 1.4rem; }

.interest-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 0.7rem;
}

.interest-option {
    position: relative;
    display: block;
}

.interest-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.interest-option span {
    display: block;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.45;
    cursor: pointer;
    background: rgba(10, 16, 24, 0.4);
    transition: border-color 0.25s, background 0.25s;
    min-height: 48px;
}

.interest-option input:checked + span {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.14);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.interest-option input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Consentimento */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent label {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    cursor: pointer;
}

.form-actions .cta-button { width: 100%; }

.form-note {
    color: #8a97a8;
    font-size: 0.78rem;
    line-height: 1.6;
    margin-top: 1.1rem;
    text-align: center;
}

/* Campo isca anti-robo: fica fora da tela, humano nunca ve */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Painel de sucesso */
.form-success { display: none; }
.form-success.show { display: block; }
.signup-wrap.sent .signup-form { display: none; }

.form-success h3 {
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.05rem, 3.2vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.form-success > p {
    color: #d0dce8;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.form-success pre {
    background: rgba(10, 16, 24, 0.65);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 1rem;
    color: #c6d3e0;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 1.25rem;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.success-actions .cta-button { flex: 1 1 200px; }

@media (max-width: 420px) {
    .section-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .section-cta .cta-button { width: 100%; }
    .card-actions .cta-button { width: 100%; }
    .success-actions .cta-button { flex: 1 1 100%; }
    .stage-track li { font-size: 0.56rem; letter-spacing: 0; padding-top: 16px; }
}

/* =============== Aviso de graficos provisorios =============== */
.wip-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: #fff6e0;
    border: 1px solid #e8c46a;
    border-left: 4px solid #d99b16;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.25rem;
}

.wip-notice .wip-icon {
    font-size: 1.1rem;
    line-height: 1.3;
    flex-shrink: 0;
}

.wip-notice b {
    display: block;
    color: #6b4a05;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.wip-notice span {
    display: block;
    color: #6d5a33;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Variante alpha: arte ja e a final, o que muda e o conteudo */
.wip-notice.alpha {
    background: #eaf3ff;
    border-color: #7fb0e8;
    border-left-color: #2f7fd4;
}

.wip-notice.alpha b { color: #123a63; }
.wip-notice.alpha span { color: #2f4d69; }

.wip-badge.alpha {
    background: rgba(47, 127, 212, 0.92);
    color: #eaf3ff;
}

/* Variante beta: app real, ja em teste fechado na loja */
.wip-notice.beta {
    background: #e8f7ee;
    border-color: #7ecfa1;
    border-left-color: #14a06a;
}

.wip-notice.beta b { color: #0d4a30; }
.wip-notice.beta span { color: #2c5843; }

.wip-badge.beta {
    background: rgba(20, 160, 106, 0.94);
    color: #eafaf2;
}

/* Selo sobre a imagem principal do card */
.wip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(217, 155, 22, 0.92);
    color: #2b1d00;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    max-width: calc(100% - 24px);
    text-align: right;
    line-height: 1.35;
}

/* =============== Demonstração em vídeo (card do app) =============== */
.demo-video {
    position: relative;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 0.75rem;
    aspect-ratio: 434 / 850;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1420;
    border: 1px solid #d9e0e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.demo-video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.demo-video-toggle {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(10, 16, 24, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}

.demo-video-toggle:hover { background: rgba(0, 153, 255, 0.85); }

.demo-caption {
    text-align: center;
    font-size: 0.72rem !important;
    color: #7c8896 !important;
    line-height: 1.5;
    margin-bottom: 1.35rem !important;
    flex: none !important;
}

/* =============== Galeria dentro do card =============== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(96px, 45%), 1fr));
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

.gallery figure { margin: 0; min-width: 0; }

/* Capturas de celular sao verticais: 3 por linha e recorte pelo topo */
.gallery.portrait { grid-template-columns: repeat(3, 1fr); }
.gallery.portrait button { aspect-ratio: 9 / 16; }
.gallery.portrait button img { object-position: top center; }

.gallery button {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid #d9e0e8;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f6;
    cursor: pointer;
    position: relative;
    aspect-ratio: 16 / 10;
    transition: border-color 0.25s, transform 0.25s;
}

.gallery button:hover,
.gallery button:focus-visible {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.gallery button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery figcaption {
    font-size: 0.68rem;
    color: #7c8896;
    line-height: 1.45;
    margin-top: 0.35rem;
    text-align: center;
    overflow-wrap: anywhere;
}

.gallery-hint {
    font-size: 0.75rem !important;
    color: #8a97a8 !important;
    text-align: center;
    margin-bottom: 1.25rem !important;
    flex: none !important;
}

/* =============== Lightbox =============== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 12, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-stage {
    position: relative;
    max-width: min(1100px, 100%);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Reserva altura para o painel nao colapsar enquanto a imagem carrega */
    min-height: min(40vh, 320px);
    flex: 1;
}

.lightbox-img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    object-fit: contain;
}

.lightbox-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s;
}

.lightbox-btn:hover { background: rgba(0, 217, 255, 0.25); }

.lightbox-close {
    position: absolute;
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0.75rem;
    z-index: 2;
}

.lightbox-foot {
    width: min(1100px, 100%);
    margin-top: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.lightbox-caption {
    color: #e4ecf4;
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.lightbox-counter {
    color: #8a97a8;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.lightbox-wip {
    display: block;
    margin-top: 0.85rem;
    color: #e8c46a;
    font-size: 0.76rem;
    line-height: 1.6;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

body.lightbox-open { overflow: hidden; }

/* No celular as setas ficam sobre a imagem para sobrar largura */
@media (max-width: 640px) {
    .lightbox-stage .lightbox-btn {
        position: absolute;
        top: 50%;
        margin-top: -23px;
        background: rgba(5, 8, 12, 0.7);
    }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
    .lightbox-img { max-height: 62vh; }
}

/* =============== Voltar ao topo =============== */
.back-to-top {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 999;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { box-shadow: 0 8px 25px rgba(0, 217, 255, 0.65); }

/* =============== Animacao de entrada ao rolar =============== */
/* Só esconde se o JS estiver ativo (html.js). Sem JS, tudo aparece normalmente. */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   BREAKPOINTS
   ========================================================= */

/* Tablet para cima: politicas ficam 2x2 (mais equilibrado que 3+1) */
@media (min-width: 700px) {
    .policies-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / celular grande: troca a navegacao por menu lateral */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .audio-player .volume-slider { display: none; }
    .logo-text { display: none; }
}

@media (max-width: 420px) {
    :root { --header-h: 60px; }
    .audio-btn { min-width: 38px; min-height: 38px; font-size: 1rem; }
    .lang-btn { min-height: 38px; padding: 0 7px; gap: 4px; }
    .lang-globo { font-size: 0.95rem; }
    .lang-codigo { font-size: 0.74rem; }
    .menu-toggle { width: 38px; height: 38px; }
    .menu-toggle span:nth-child(1) { top: 12px; }
    .menu-toggle span:nth-child(2) { top: 18px; }
    .menu-toggle span:nth-child(3) { top: 24px; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1),
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; }
    .nav-actions { gap: 0.35rem; }
    .hero-actions .cta-button { width: 100%; }
    .contact-actions .cta-button { width: 100%; }
    .scroll-hint { display: none; }
}

/* Celular deitado / telas baixas: hero nao pode ocupar a tela toda */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { min-height: auto; padding-top: 3rem; padding-bottom: 3rem; }
    .scroll-hint { display: none; }
}

/* Telas sem hover (toque): remove efeitos que "grudam" no dedo */
@media (hover: none) {
    .card:hover, .policy-box:hover, .stat:hover,
    .cta-button:hover, .audio-btn:hover, .lang-btn:hover { transform: none; }
}

/* Respeita quem pediu menos animacao no sistema */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* Impressao */
@media print {
    header, .back-to-top, .scroll-progress, .mobile-nav, .nav-backdrop,
    .scroll-hint, .audio-player, .skip-link { display: none !important; }
    body::before, body::after { display: none; }
    body { color: #000; background: #fff; }
    .section-title, .about-text p, .footer-section a { color: #000 !important; -webkit-text-fill-color: #000; }
    .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   LANDING PAGES (auto-em-dia.html, survivors.html, mmorpg.html)
   ========================================================= */

/* Header enxuto: sem menu, so logo + voltar + idioma */
.lp-header nav { justify-content: space-between; }

.lp-back {
    color: var(--muted);
    text-decoration: none;
    font-size: clamp(0.75rem, 2.2vw, 0.88rem);
    white-space: nowrap;
    padding: 6px 0;
    transition: color 0.25s;
}

.lp-back:hover { color: var(--primary); }

/* ---------- Topo ---------- */
.lp-hero {
    position: relative;
    color: var(--text-light);
    text-align: center;
    padding: clamp(3rem, 9vw, 5.5rem) clamp(1rem, 5vw, 2rem);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.lp-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.lp-hero > * { position: relative; z-index: 2; }

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 16, 24, 0.75);
    border: 1px solid rgba(0, 217, 255, 0.45);
    color: var(--primary);
    padding: 7px 15px;
    border-radius: 20px;
    font-size: clamp(0.66rem, 2vw, 0.76rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.lp-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 6.5vw, 3rem);
    font-weight: 900;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.85), 0 0 30px rgba(0, 217, 255, 0.3);
    overflow-wrap: break-word;
}

.lp-hero .lp-pitch {
    font-size: clamp(0.98rem, 2.8vw, 1.25rem);
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}

.lp-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 460px;
    margin: 0 auto;
}

/* Logo do jogo no lugar do titulo em texto */
.lp-logo {
    margin: 0 auto 1rem;
    max-width: min(520px, 100%);
    line-height: 0;
}

.lp-logo img {
    width: 100%;
    height: auto;
    /* leve brilho para a arte nao sumir sobre o fundo escuro */
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7));
}

.lp-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.95rem, 3vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 1rem;
    text-shadow: 0 3px 16px rgba(0,0,0,0.85);
    overflow-wrap: break-word;
}

@media (max-width: 420px) {
    .lp-logo { max-width: 100%; margin-bottom: 0.85rem; }
}

/* ---------- Blocos de conteudo ---------- */
.lp-section {
    padding: clamp(2.5rem, 8vw, 4rem) clamp(0.5rem, 3vw, 2rem);
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.lp-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 5vw, 2.1rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.4vw, 2px);
    text-align: center;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 15px rgba(0, 217, 255, 0.35);
    overflow-wrap: break-word;
}

.lp-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 0.85rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.lp-lead {
    text-align: center;
    color: var(--muted);
    font-size: clamp(0.9rem, 2.3vw, 1.05rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 1.25rem auto 2.5rem;
}

/* ---------- Beneficios ---------- */
.lp-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 1.75rem);
    max-width: 1000px;
    margin: 0 auto;
}

.lp-beneficio {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 4vw, 1.75rem);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.3s, border-color 0.3s;
}

.lp-beneficio:hover { transform: translateY(-4px); border-color: var(--primary); }

.lp-beneficio .lp-icone {
    font-size: 1.9rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.85rem;
}

.lp-beneficio h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.95rem, 2.6vw, 1.1rem);
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    overflow-wrap: break-word;
}

.lp-beneficio p {
    color: #d0dce8;
    font-size: clamp(0.86rem, 2.2vw, 0.95rem);
    line-height: 1.7;
}

/* ---------- Perguntas frequentes ---------- */
.lp-faq {
    max-width: 720px;
    margin: 0 auto;
}

.lp-faq details {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.25s;
}

.lp-faq details[open] { border-color: rgba(0, 217, 255, 0.45); }

.lp-faq summary {
    padding: clamp(0.95rem, 3vw, 1.2rem) clamp(1rem, 3.5vw, 1.5rem);
    color: var(--text-light);
    font-weight: 700;
    font-size: clamp(0.9rem, 2.4vw, 1rem);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    line-height: 1.5;
    min-height: 48px;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.lp-faq details[open] summary::after { transform: rotate(45deg); }

.lp-faq .lp-resposta {
    padding: 0 clamp(1rem, 3.5vw, 1.5rem) clamp(1rem, 3.5vw, 1.35rem);
    color: #c6d3e0;
    font-size: clamp(0.86rem, 2.2vw, 0.95rem);
    line-height: 1.75;
}

/* ---------- Ficha tecnica no fundo escuro ---------- */
.lp-ficha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 1rem;
    max-width: 760px;
    margin: 0 auto;
}

.lp-ficha > div {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0, 217, 255, 0.18);
    border-radius: var(--radius);
    padding: 1.15rem 1rem;
    text-align: center;
}

.lp-ficha dt {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.lp-ficha dd {
    font-size: clamp(0.85rem, 2.3vw, 0.98rem);
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Trilha de estagio sobre fundo escuro */
.lp-ficha-trilha {
    max-width: 760px;
    margin: 1.5rem auto 0;
}

.lp-ficha-trilha .stage-track { margin-bottom: 0; }
.lp-ficha-trilha .stage-track li { color: #7d8a99; }
.lp-ficha-trilha .stage-track li::before { background: #33404f; border-color: #33404f; }
.lp-ficha-trilha .stage-track li:not(:last-child)::after { background: #33404f; }
.lp-ficha-trilha .stage-track li.done::before,
.lp-ficha-trilha .stage-track li.done:not(:last-child)::after { background: var(--primary); border-color: var(--primary); }
.lp-ficha-trilha .stage-track li.current { color: var(--primary); }
.lp-ficha-trilha .stage-track li.current::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 217, 255, 0.25);
}

/* ---------- Galeria e video no fundo escuro ---------- */
.lp-midia { max-width: 900px; margin: 0 auto; }

.lp-midia .gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 45%), 1fr));
    gap: 0.85rem;
}

.lp-midia .gallery.portrait { grid-template-columns: repeat(auto-fit, minmax(min(110px, 30%), 1fr)); }
.lp-midia .gallery button { border-color: rgba(255,255,255,0.16); background: #0d1420; }
.lp-midia .gallery figcaption { color: var(--muted); font-size: 0.72rem; }
.lp-midia .gallery-hint { color: #7d8a99 !important; }

.lp-midia .demo-video {
    max-width: 260px;
    border-color: rgba(0, 217, 255, 0.25);
}

.lp-midia .demo-caption { color: var(--muted) !important; }

.lp-midia .wip-notice { max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Barra fixa de chamada no celular ---------- */
.lp-barra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: none;
    padding: 0.7rem clamp(0.75rem, 4vw, 1rem);
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(10, 14, 20, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 217, 255, 0.28);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.lp-barra.show { transform: translateY(0); }
.lp-barra .cta-button { width: 100%; }

@media (max-width: 760px) {
    .lp-barra { display: block; }
    /* espaco para a barra nao tapar o rodape */
    body.tem-barra footer { padding-bottom: calc(clamp(2.5rem, 7vw, 3rem) + 72px + env(safe-area-inset-bottom)); }
    .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 420px) {
    .lp-actions .cta-button { width: 100%; }
}
