/* =======================================================================
   Anivexa — landing page
   Paleta e layout inspirados na página original.
   ======================================================================= */

:root {
    --mint: #12e2b0;
    --mint-dark: #0bbf94;
    --navy-900: #0b0530;
    --navy-800: #120a33;
    --navy-700: #1a0f4a;
    --purple-700: #2b1b63;
    --purple-600: #3a2280;
    --pink: #e23ac8;
    --blue: #35c8f7;
    --text: #ffffff;
    --text-dim: #c9c4e8;
    --radius: 10px;
    --wrap: 1180px;
    --font: "Segoe UI", "Poppins", "Montserrat", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

/**
 * Reduz movimento para quem pede — MENOS o palco do hero (.stage) e o modal
 * de entrada (.auth), que por decisão do dono do produto rodam sempre.
 *
 * A lista do `:not()` é essencial: sem ela este bloco zera a duração de
 * TODAS as animações. Já quebrou duas vezes — os 8 chips da órbita
 * empilhavam num ponto só, e o logotipo do modal aparecia preenchido de
 * imediato em vez de se preencher. Ao criar animação que deve rodar sempre,
 * acrescente o seletor aqui.
 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *:not(.stage, .stage *, .auth, .auth *),
    *:not(.stage, .stage *, .auth, .auth *)::before,
    *:not(.stage, .stage *, .auth, .auth *)::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--navy-800);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/**
 * O atributo `hidden` tem de vencer sempre.
 *
 * Sem isto, qualquer regra de autor com `display` (um `display: grid` numa
 * classe, por exemplo) sobrepõe o `display: none` que o navegador aplica ao
 * `hidden`, e o elemento continua na tela. Aconteceu no modal de entrada:
 * o estado de carregamento ficava visível junto com as opções.
 */
[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: min(100% - 2.5rem, var(--wrap));
    margin-inline: auto;
}

.center { text-align: center; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--mint);
    color: #06251f;
    padding: .75rem 1.25rem;
    font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--mint);
    color: #06251f;
    text-align: center;
    font-size: .95rem;
    padding: .55rem 0;
}
.topbar__link { color: #06251f; }

/* ---------- Header ---------- */
.site-header {
    position: absolute;
    inset-inline: 0;
    z-index: 20;
    padding: 1rem 0;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.logo__text {
    font-size: 1.85rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }

.site-nav {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
}
.search__icon {
    position: absolute;
    left: .7rem;
    width: 20px; height: 20px;
    color: #b9b3dd;
    pointer-events: none;
}
.search__input {
    width: clamp(160px, 22vw, 240px);
    padding: .55rem .9rem .55rem 2.3rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font: inherit;
    font-size: .95rem;
}
.search__input::placeholder { color: #cfc9ee; }
.search__input:focus { background: rgba(255, 255, 255, .26); }

/* ---------- Seletor de idioma ---------- */
.langpicker { position: relative; }

.langpicker__button {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .55rem;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    transition: border-color .18s ease, background-color .18s ease;
}
.langpicker__button::-webkit-details-marker { display: none; }
.langpicker__button:hover { border-color: var(--mint); background: rgba(255, 255, 255, .08); }

.langpicker__globe { width: 18px; height: 18px; flex: none; }
.langpicker__caret { width: 14px; height: 14px; flex: none; transition: rotate .18s ease; }
.langpicker[open] .langpicker__caret { rotate: 180deg; }

.langpicker__menu {
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    z-index: 40;
    min-width: 11rem;
    margin: 0;
    padding: .3rem;
    list-style: none;
    border-radius: 12px;
    background: #1c1150;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}

.langpicker__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .6rem;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: .9rem;
}
.langpicker__item:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.langpicker__item.is-current { color: #fff; font-weight: 600; }

.langpicker__code {
    flex: none;
    width: 2rem;
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    padding: .15rem 0;
    border-radius: 5px;
    background: rgba(255, 255, 255, .12);
}
.langpicker__item.is-current .langpicker__code { background: var(--mint); color: #06251f; }
.langpicker__name { flex: 1; }
.langpicker__check { width: 15px; height: 15px; flex: none; color: var(--mint); }

/* No rodapé o menu abre para cima, senão sai da página. */
.langpicker--footer .langpicker__menu { top: auto; bottom: calc(100% + .45rem); }
.langpicker--footer .langpicker__button { border-color: rgba(18, 226, 176, .5); color: var(--mint); }

.nav-icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
}
.nav-icon svg { width: 22px; height: 22px; }

.btn {
    display: inline-block;
    padding: .5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    transition: background-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn--ghost { border: 2px solid var(--mint); color: var(--mint); }
.btn--ghost:hover { background: var(--mint); color: #06251f; }
.btn--solid { background: var(--mint); color: #06251f; }
.btn--solid:hover { background: #fff; }
.btn--outline {
    border: 2px solid var(--mint);
    color: var(--mint);
    padding: .7rem 2rem;
}
.btn--outline:hover { background: var(--mint); color: #06251f; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    padding: 8.5rem 0 5rem;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 620px at 30% 45%, #2b1a8d 0%, rgba(43, 26, 141, 0) 62%),
        radial-gradient(900px 520px at 78% 30%, #4a1f8f 0%, rgba(74, 31, 143, 0) 60%),
        linear-gradient(160deg, #150c46 0%, #120a33 55%, #1b0b3b 100%);
}
/* O palco do vídeo manda no hero: uma coluna só, centralizada. */
.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.hero__art {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Folga para os chips que orbitam acima e abaixo do palco não
       encostarem no cabeçalho nem no logotipo. */
    margin-block: 1rem 3rem;
}
.hero__art img { margin-inline: auto; }

.hero__copy { text-align: center; }
.hero__logo { margin: 0 0 .75rem; }
.hero__wordmark {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.03em;
    line-height: 1;
    background: linear-gradient(100deg, #ffffff 15%, var(--mint) 55%, #b06bff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__tagline {
    max-width: 58ch;
    margin: 0 auto 2rem;
    color: var(--text-dim);
    font-size: 1.05rem;
}

.stores {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.store {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--mint);
    color: #06251f;
    padding: .6rem 1.1rem;
    border-radius: var(--radius);
    transition: transform .18s ease, background-color .18s ease;
}
.store:hover { background: #fff; transform: translateY(-2px); text-decoration: none; }
.store__glyph { width: 26px; height: 26px; flex: none; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__text small { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.store__text strong { font-size: 1.15rem; }

/* ---------- Seções ---------- */
.section-title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-align: center;
    margin: 0 0 .75rem;
}
.section-sub {
    text-align: center;
    color: var(--text-dim);
    margin: 0 0 2.25rem;
    font-size: 1.05rem;
}
.section-title--left,
.section-sub--left { text-align: left; }

.interests {
    background: var(--navy-800);
    padding: 4rem 0 4.5rem;
}
.interests--grid { padding-top: 1rem; }

.page-head { padding: 8.5rem 0 1rem; background: var(--navy-800); }

.cards {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0 0 .5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Barra de rolagem discreta no lugar da barra cinza do sistema. */
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 226, 176, .55) transparent;
}
.cards::-webkit-scrollbar { height: 6px; }
.cards::-webkit-scrollbar-track { background: rgba(255, 255, 255, .07); border-radius: 999px; }
.cards::-webkit-scrollbar-thumb {
    background: rgba(18, 226, 176, .55);
    border-radius: 999px;
}
.cards::-webkit-scrollbar-thumb:hover { background: var(--mint); }
.cards--wrap { scrollbar-width: none; }
.cards--wrap::-webkit-scrollbar { display: none; }
.cards--wrap {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
}

.card {
    flex: 0 0 auto;
    width: 148px;
    scroll-snap-align: start;
}
.card__link {
    position: relative;
    display: block;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #241a4f;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card__link:hover,
.card__link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
    text-decoration: none;
}
.card__cover {
    position: absolute;
    inset: 0;
    background:
        /* brilho no canto + faixa diagonal: dá volume sem precisar de foto */
        radial-gradient(90% 60% at 25% 12%, rgba(255, 255, 255, .35) 0%, transparent 55%),
        linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .13) 46%, transparent 54%),
        linear-gradient(170deg, var(--c1, #6a5adb) 0%, var(--c2, #2b1b63) 100%);
    transition: scale .35s ease;
}
.card__link:hover .card__cover,
.card__link:focus-visible .card__cover { scale: 1.06; }
.card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 55%);
}
.card__badge {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 1;
    width: 30px; height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .92);
    color: #1d1240;
    font-size: .95rem;
    line-height: 1;
}
.card__name {
    position: absolute;
    left: 12px; right: 12px; bottom: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

/* ---------- Go deep ---------- */
.deep {
    background: var(--purple-700);
    padding: 4.5rem 0;
}
.deep__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.bubbles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    justify-items: center;
}
.bubble {
    width: clamp(88px, 11vw, 132px);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: .5rem;
    font-weight: 700;
    font-size: .95rem;
    border: 4px solid rgba(255, 255, 255, .28);
    background: linear-gradient(145deg, var(--pink), var(--purple-600));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.bubble:nth-child(even) { background: linear-gradient(145deg, var(--blue), #3457d5); }
.bubble--poll { background: linear-gradient(145deg, #ff3fd0, #a01ec8); }
.bubble--qa   { background: linear-gradient(145deg, #4fd7ff, #2f6ae0); }
.bubble--fav  { background: linear-gradient(145deg, #45c6f7, #2b6ae0); }
.bubble:nth-child(1) { transform: translateY(-14px); }
.bubble:nth-child(3) { transform: translateY(10px); }
.bubble:nth-child(5) { transform: translateY(12px); }

/* ---------- Unite ---------- */
.unite {
    background: var(--navy-900);
    padding: 4rem 0;
}
.unite__inner {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 2rem;
}
/* O mapa já vem com fundo transparente, então assenta direto no escuro.
   O drop-shadow em tom neon reforça o brilho das conexões. */
.unite__map-img {
    width: 100%;
    filter: drop-shadow(0 0 28px rgba(86, 60, 220, .45));
}

/* ---------- Build ---------- */
.build {
    background: var(--purple-700);
    padding: 4.5rem 0;
}
.build__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.checklist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.checklist__item {
    border-left: 4px solid var(--mint);
    padding-left: .85rem;
    color: #efedff;
}
.checklist__item--pink { border-left-color: var(--pink); }
.checklist__item--blue { border-left-color: var(--blue); }
.build .stores { justify-content: flex-start; }

/* ---------- Conteúdo textual ---------- */
.prose {
    background: var(--navy-800);
    padding: 3.5rem 0;
}
.prose--page { padding-top: 9rem; }
.prose h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose p { color: var(--text-dim); max-width: 70ch; }

.community-head { text-align: center; }
.community-head__name {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: .5rem 0 .25rem;
}
.community-head__members { color: var(--text-dim); margin: 0 0 1.75rem; }
.breadcrumb { color: var(--mint); }
.hero--community .hero__bg,
.hero--community {
    background: linear-gradient(160deg, var(--c1, #3a2280) 0%, var(--c2, #120a33) 100%);
}

.error-page {
    padding: 10rem 0 6rem;
    text-align: center;
    background: var(--navy-800);
    min-height: 60vh;
}
.error-page__code {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 800;
    color: var(--mint);
    margin: 0;
    line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--navy-900);
    padding: 3rem 0 2.5rem;
    font-size: .95rem;
}
.popular__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 .75rem;
}
.popular__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: 0 0 1.5rem;
    padding: 0 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    color: var(--text-dim);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}
.footer-bottom { text-align: center; }
.social {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0;
    margin: 0 0 1rem;
}
.social__icon {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1d1240;
    font-weight: 800;
}
.copyright { color: #8f89b8; margin: 0; font-size: .85rem; }

.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1d1240;
    border: 2px solid rgba(255, 255, 255, .25);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 30;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
    .deep__inner,
    .unite__inner,
    .build__inner {
        grid-template-columns: 1fr;
    }
    .hero { padding-top: 10.5rem; }
    .build .stores { justify-content: center; }
    .section-title--left,
    .section-sub--left { text-align: center; }
    .checklist { max-width: 32rem; margin-inline: auto; }
}

@media (max-width: 720px) {
    .site-header__inner { flex-direction: column; gap: .75rem; }
    .site-nav { justify-content: center; }
    .hero { padding-top: 12.5rem; }
    .search__input { width: 100%; }
    .bubbles { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
    .bubble { font-size: .8rem; border-width: 3px; }
}
