:root {
    --blue: #0b5de8;
    /* primária */
    --blue-2: #073a97;
    /* profundidade */
    --yellow: #ffd200;
    /* destaque (logo/CTA) */
    --bg: #0a1224;
    /* fundo dark */
    --card: #0f1b36;
    /* cards */
    --text: #ffd200;
    /* texto principal */
    --muted: #a7b3d4;
    /* texto secundário */
    --shadow: 0 12px 28px rgba(11, 93, 232, .25);
    --radius: 16px;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0
}

body {
    --bg1: #0a1224;
    --bg2: #0b5de8;
    --bg3: #021024;

    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding-top: 70px;
    font-family: Manrope, Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

    /* ===== Fundo principal gradiente animado ===== */
    background: linear-gradient(135deg, var(--bg1), var(--bg3));
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;

    /* ===== Camada de linhas techno ===== */
    position: relative;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Overlay com linhas finas neon ===== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===== Linhas diagonais com brilho azulado ===== */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, rgba(11, 93, 232, 0.06) 0px, rgba(11, 93, 232, 0.06) 2px, transparent 2px, transparent 20px);
    background-size: 60px 60px;
    pointer-events: none;
    mix-blend-mode: lighten;
    z-index: 0;
}

a {
    color: var(--yellow);
    text-decoration: none
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* antes estava 100vw */
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    overflow: visible;
    /* evita overflow lateral */
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    background: linear-gradient(to right, rgba(10, 18, 36, .85), rgba(11, 93, 232, .08));
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    /* ancoragem para o .mobile absoluto */
}

nav a {
    color: white;
    margin-left: auto;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

nav a:hover {
    color: #ffd700;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .2px
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff
}

.brand .name {
    font-size: 1.05rem
}

.brand .name strong {
    color: var(--yellow)
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 600
}

.menu a {
    opacity: .9
}

.menu a:hover {
    opacity: 1
}

.cta {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--yellow), #e3be00);
    color: #0a0a0a;
    box-shadow: var(--shadow);
    border: 0;
    cursor: pointer;
}

.cta:hover {
    transform: translateY(-1px)
}

.kicker {
    display: inline-block;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .82rem;
    color: var(--yellow);
    background: rgba(255, 210, 0, .12);
    padding: 6px 10px;
    border-radius: 8px
}

.title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    font-weight: 800;
    margin: .6rem 0 1rem
}

.title .accent {
    color: var(--yellow)
}

.subtitle {
    color: var(--muted);
    font-size: clamp(1rem, 2.1vw, 1.15rem);
    max-width: 100%;
}

.actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #0d1c3c99;
    backdrop-filter: blur(6px);
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .25)
}

.btn.primary {
    background: linear-gradient(180deg, var(--blue), var(--blue-2));
    border: 0;
    box-shadow: var(--shadow)
}

.trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    color: var(--text);
    font-size: 1rem;
    margin-top: 50px;
    text-align: center;
}

.trust img {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.trust span {
    white-space: nowrap;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .trust {
        flex-direction: column;
        /* imagem em cima */
        align-items: center;
        /* centraliza horizontalmente */
        justify-content: center;
        gap: 8px;
        width: 100%;
        margin: 0 auto;
        /* Centraliza dentro do grid */
        grid-column: 1 / -1 !important;
        /* Ocupa toda a largura do grid */
        place-self: center;
        /* Força centralização vertical/horizontal */
    }

    .trust img {
        height: 36px;
    }

    .trust span {
        white-space: normal;
        /* texto pode quebrar */
        text-align: center;
        line-height: 1.5;
        max-width: 90%;
        /* limita largura para melhor visual */
    }
}

.preview {
    background: linear-gradient(180deg, #0b1737, #0a1a44);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px
}

/* ===== Features / App ===== */
.section {
    padding: 30px 20px
}

.wrap {
    max-width: 1200px;
    margin: 0 auto
}

.heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px
}

.heading h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin: 0
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
}

.card {
    grid-column: span 4;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 16px;
    padding: 22px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(11, 93, 232, .35)
}

#home .card iframe {
    display: block;
    margin: 0 auto;
}

#home .card:nth-of-type(2) {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1000px) {
    #home .wrap {
        grid-template-columns: 1fr;
    }

    #home .card,
    #home .video-card {
        grid-column: span 12;
        padding: 30px;
    }

    #home .video-wrapper {
        max-width: 100%;
        aspect-ratio: 9 / 16;
        box-shadow: 0 0 20px rgba(0, 128, 255, 0.25);
    }
}

/* ===== DETALHES VISUAIS ===== */
#home h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

#home p {
    font-size: 1.1rem;
    color: #cfd8e3;
    line-height: 1.6;
}

#home .btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(180deg, var(--yellow), #e3be00);
    color: #121212;
    margin-bottom: 10px
}

.card h3 {
    margin: .2rem 0 .4rem;
    font-size: 1.1rem
}

.card p {
    color: var(--muted);
    margin: 0
}

.card a {
    cursor: pointer;
}

/* ===== CTA strip ===== */
.cta-strip {
    margin-top: 14px;
    background: linear-gradient(90deg, rgba(11, 93, 232, .18), rgba(255, 210, 0, .14));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ===== Responsive ===== */
@media (max-width:1000px) {

    .subtitle {
        margin-inline: auto
    }

    .preview {
        min-height: 260px
    }

    .grid .card {
        grid-column: span 6
    }
}

@media (max-width:720px) {
    .grid .card {
        grid-column: span 12
    }

    .footer-inner {
        grid-template-columns: 1fr
    }
}

/* --- Configuracao Flags ---  */
.flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flags img {
    width: 30px;
    height: 20px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.flags img.active {
    border: 2px solid #ffd700;
    transform: scale(1.1);
}

/* --- Configuracao Flags ---  */

/* --- Popup --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.modal-header img {
    height: 40px;
    margin-right: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--card)
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close:hover {
    color: red;
}

.modal-body h3 {
    margin-top: 20px;
    color: var(--blue-2);
}

.modal-body label {
    text-align: left;
}

.modal-body p {
    line-height: 1.6;
    color: var(--card);
    margin-bottom: 12px;
}

.footer {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    text-align: center;
}

/* ===== Modal Contato ===== */
#modalContato {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modalContato .modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

#modalContato label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: #333;
}

#modalContato input,
#modalContato textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

#modalContato textarea {
    resize: vertical;
}

#modalContato {
    margin-top: 20px;
    text-align: right;
}

#modalContato .btn-primary {
    background: #0057e7;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.2s;
}

#modalContato .btn-primary:hover {
    background: #0040b5;
}

#modalContato .btn-secondary {
    background: #ccc;
    color: #333;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#modalContato .btn-secondary:hover {
    background: #aaa;
}

/* ===== Ajuste modal abaixo do header ===== */
@media (max-width: 768px) {

    /* Ajuste para todos os modais */
    .modal,
    #modalContato {
        top: 70px;
        /* altura aproximada do header no mobile */
        height: calc(100% - 70px);
        background: rgba(0, 0, 0, 0.6);
        z-index: 2000;
        /* acima do conteúdo, abaixo do menu */
        align-items: flex-start;
        /* começa logo abaixo do topo */
        justify-content: center;
    }

    .modal-content,
    #modalContato .modal-content {
        margin: 20px auto;
        width: 90%;
        max-width: 600px;
        border-radius: 10px;
    }
}

/* ===== Modal Contato ===== */


/* CSS apenas do alert */
.alert {
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* ===== Grid Principal feature ===== */
.grid-feature-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    font-family: Arial, sans-serif;
}

/* ===== Card ===== */
.card-feature {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    height: 200px;
}

/* ===== Imagem ===== */
.card-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Texto sobre a imagem ===== */
.card-feature-text {
    position: absolute;
    bottom: 0px;
    /* posiciona na parte inferior */
    left: 0px;
    width: 100%;
    /* 70% antes */
    padding: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    /* degradê leve */
    box-sizing: border-box;
}

/* Ajuste para telas médias */
@media (max-width: 1000px) {

    .subtitle {
        margin-inline: auto;
    }

    .actions {
        justify-content: center;
    }
}

/* Ajuste fino para celulares pequenos */
@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .preview iframe {
        height: 220px !important;
    }

    .actions a {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Correção de overflow lateral no mobile ===== */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Garante que a hero e o vídeo respeitem o limite da tela */
.hero {
    max-width: 100%;
    overflow: hidden;
}

.hero .wrap {
    max-width: 1200px;
    margin: 20px;
}

/* ===== Responsividade para seção Google Play ===== */
#play .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    #play .grid {
        grid-template-columns: 1fr;
        /* força 1 coluna */
    }

    #play .card {
        grid-column: span 12 !important;
        width: 100%;
    }

    #play .actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #play .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Video card responsivo ===== */
#home .video-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

#home .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* limite opcional */
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#home .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Layout da seção inicial (home) ===== */
#home .wrap {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: stretch;
    /* garante mesma altura */
}

/* ===== Cards ===== */
#home .card,
#home .video-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    background: var(--card);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* texto ocupa metade (6 colunas) */
#home .card:first-of-type {
    grid-column: span 6;
}

/* vídeo ocupa a outra metade */
#home .video-card {
    grid-column: span 6;
}

/* vídeo responsivo com proporção fixa */
#home .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(11, 93, 232, 0.4);
    flex-grow: 1;
    /* ocupa toda a altura possível */
}

#home .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* layout vertical no mobile */
@media (max-width: 900px) {
    #home .wrap {
        grid-template-columns: 1fr;
    }

    #home .card,
    #home .video-card {
        grid-column: span 12;
    }

    #home .video-wrapper {
        max-width: 100%;
        aspect-ratio: 9 / 16;
    }
}

/* CONFIGURACOES DO MENU HAMBURGER */
.hamb {
    display: none;
    background: none;
    border: 0;
    color: var(--yellow);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 3000;
    /* garante estar sempre clicável */
}

.mobile {
    display: none;
    position: fixed;
    /* ← IMPORTANTE: de absolute para fixed */
    top: 70px;
    /* logo abaixo do header */
    left: 0;
    right: 0;
    background: #0b1735ee;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    flex-direction: column;
    border-radius: 0 0 8px 8px;
    z-index: 2000;
    /* ← acima do header */
}

.mobile a {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.mobile.open {
    display: flex !important;
}

/* 🔒 Desktop: garante esconder o menu mobile e o hambúrguer */
@media (min-width: 721px) {
    .hamb {
        display: none;
    }

    .mobile {
        display: none !important;
    }

    .preview {
        min-height: 260px
    }
}

@media (max-width:720px) {
    .menu {
        display: none
    }

    /* esconde menu desktop no mobile */
    .hamb {
        display: block
    }

    .card-container {
        grid-template-columns: 1fr;
        /* apenas uma coluna */
    }
}

/* CONFIGURACOES DO MENU HAMBURGER */

/* ===== Correção de overflow e layout geral ===== */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
}