*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #12031f;
    --bg-2: #1c0633;
    --surface: #22093d;
    --surface-2: #2c0d4d;
    --purple: #8b3fd9;
    --purple-light: #b07cf0;
    --pink: #ff2e9a;
    --pink-light: #ff7ab8;
    --text: #ffffff;
    --text-muted: #d9cbe8;
    --text-faint: #a593ba;
    --border: #3d1863;
    --border-strong: #6b2a8f;
    --radius: 18px;
    --header-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* Fundo fixo em camada própria (background-attachment: fixed falha no celular) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 120% 60% at 50% -5%, rgba(255, 46, 154, 0.28), transparent 60%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(139, 63, 217, 0.25), transparent 60%),
        linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

img, svg { display: block; }

a { color: inherit; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Textos de destaque com COR SÓLIDA: gradiente via background-clip
   fica escuro/ilegível em navegadores com modo escuro forçado */
.accent { color: var(--pink-light); }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.header.scrolled,
.header.menu-open {
    background-color: rgba(18, 3, 31, 0.96);
    border-bottom-color: var(--border);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--pink-light);
    text-decoration: none;
    text-shadow: 0 0 18px rgba(255, 46, 154, 0.45);
}

.nav-list {
    display: none;
    list-style: none;
}

.nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}

.menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: -10px;
}

.menu-btn span {
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu mobile em tela cheia */
.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-menu a {
    display: block;
    padding: 16px 4px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
    display: flex;
    font-size: 1rem;
    margin-top: 20px;
    border-bottom: none;
}

/* ===== BOTÕES ===== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0 28px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn:active { transform: scale(0.97); }

.btn-download {
    background-color: var(--pink);
    color: #fff;
    box-shadow: 0 8px 28px rgba(255, 46, 154, 0.45);
}

.btn-telegram {
    background-color: #229ed9;
    color: #fff;
    box-shadow: 0 8px 28px rgba(34, 158, 217, 0.3);
}

.btn:focus-visible,
.menu-btn:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--pink-light);
    outline-offset: 3px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
    padding: calc(var(--header-h) + 36px) 0 48px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: rgba(255, 46, 154, 0.12);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink-light);
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2rem, 8.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: var(--text);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 30px;
}

.trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 22px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* ===== SHOWCASE ===== */
.showcase {
    padding: 24px 0 56px;
}

.showcase .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.phone-mockup {
    width: 220px;
    aspect-ratio: 1 / 2;
    background-color: var(--surface);
    border-radius: 38px;
    border: 2px solid var(--border-strong);
    padding: 10px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 46, 154, 0.2);
    animation: float-phone 5s ease-in-out infinite;
}

@keyframes float-phone {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 20px;
    background-color: var(--bg);
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--surface-2), #4a1780);
    border-radius: 28px;
    overflow: hidden;
}

.screen-header {
    padding: 38px 12px 10px;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--pink-light);
}

.screen-content {
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.content-card {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(255, 46, 154, 0.55), rgba(139, 63, 217, 0.55));
    border-radius: 10px;
    animation: pulse 3s ease-in-out infinite;
}

.content-card:nth-child(2n) { animation-delay: 0.5s; }
.content-card:nth-child(3n) { animation-delay: 1s; }

@keyframes pulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

.showcase-text {
    text-align: center;
    max-width: 440px;
}

.showcase-text h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.showcase-text > p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.feature-list {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.check {
    width: 24px;
    height: 24px;
    background-color: var(--pink);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* ===== SEÇÕES ===== */
.section {
    padding: 56px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-faint);
    margin-bottom: 32px;
}

/* ===== GALERIA ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    background: linear-gradient(150deg, rgba(255, 46, 154, 0.4), rgba(139, 63, 217, 0.35) 60%, var(--surface));
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background-color: rgba(18, 3, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.play-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
    fill: #fff;
}

.gallery-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(transparent, rgba(18, 3, 31, 0.92));
    font-weight: 700;
    font-size: 0.85rem;
}

.lock {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background-color: rgba(18, 3, 31, 0.7);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--pink-light);
}

.gallery-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.gallery-item.has-image {
    background-color: var(--surface);
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-faint);
    padding: 30px 0;
}

/* ===== PLAYER ===== */
.player-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    gap: 12px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background-color: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* ===== STATS ===== */
.stats {
    background-color: rgba(18, 3, 31, 0.6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 36px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 12px;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--pink-light);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    color: var(--text-faint);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ===== FAQ (details/summary nativo: acessível e sem altura fixa) ===== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--pink-light);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 18px 18px;
    color: var(--text-muted);
}

/* ===== DOWNLOAD ===== */
.download-box {
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 0 70px rgba(255, 46, 154, 0.15);
}

.download-box h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.download-box p {
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 32px 20px calc(110px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.85rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--pink-light);
    margin-bottom: 8px;
}

/* ===== BARRA FIXA DE DOWNLOAD (mobile) ===== */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + var(--safe-bottom));
    background-color: rgba(18, 3, 31, 0.97);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    transform: translateY(110%);
    transition: transform 0.3s;
}

.sticky-cta.show { transform: none; }

.sticky-cta .btn {
    min-height: 50px;
    font-size: 0.92rem;
    padding: 0 16px;
}

.sticky-cta .btn-telegram {
    width: 56px;
    flex-shrink: 0;
    padding: 0;
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== PÁGINAS INTERNAS ===== */
.page {
    padding: calc(var(--header-h) + 8px) 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--pink-light); }

.page-head {
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 10px;
}

.page-head .lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 720px;
}

.prose {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 1.02rem;
}

.prose h2 {
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1.25;
    margin: 32px 0 10px;
}

.prose h3 {
    color: var(--text);
    font-size: 1.12rem;
    margin: 22px 0 6px;
}

.prose p,
.prose ul,
.prose ol { margin-bottom: 14px; }

.prose ul,
.prose ol { padding-left: 22px; }

.prose li { margin-bottom: 6px; }

.prose strong { color: var(--text); }

.prose a {
    color: var(--pink-light);
    text-underline-offset: 3px;
}

.page-cta {
    margin-top: 36px;
}

/* ===== PÁGINA DE VÍDEO ===== */
.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 75vh;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.video-stage.no-image {
    background: linear-gradient(150deg, rgba(255, 46, 154, 0.45), rgba(139, 63, 217, 0.4) 60%, var(--surface));
}

.video-stage video,
.video-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #000;
}

.video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(18, 3, 31, 0.25);
    border: 0;
    cursor: pointer;
}

.video-play span {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: var(--pink);
    box-shadow: 0 10px 40px rgba(255, 46, 154, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.video-play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    fill: #fff;
}

.video-play:hover span { transform: scale(1.08); }

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-bottom: 14px;
}

.related {
    margin-top: 48px;
}

.related h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* ===== RODAPÉ: LINKS ===== */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 10px 0 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-links a:hover { color: var(--pink-light); }

.section-more {
    text-align: center;
    margin-top: 24px;
}

.section-more .btn {
    display: inline-flex;
    width: auto;
    background-color: var(--surface-2);
    border-color: var(--border-strong);
    color: var(--text);
}

.nav-list a[aria-current="page"],
.mobile-menu a[aria-current="page"] { color: var(--pink-light); }

/* ===== TABLET+ ===== */
@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .cta-buttons .btn { width: auto; }

    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }

    .download-box { padding: 52px 40px; }
}

/* ===== DESKTOP ===== */
@media (min-width: 960px) {
    :root { --header-h: 76px; }

    .menu-btn,
    .mobile-menu,
    .sticky-cta { display: none; }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .nav-list a:hover { color: var(--pink-light); }

    .hero { padding: calc(var(--header-h) + 80px) 0 72px; }

    .hero p { font-size: 1.2rem; }

    .showcase .container {
        flex-direction: row;
        justify-content: center;
        gap: 80px;
    }

    .phone-mockup { width: 260px; }

    .showcase-text { text-align: left; }

    .showcase-text h2 { font-size: 2.3rem; }

    .section { padding: 88px 0; }

    .section-subtitle { margin-bottom: 48px; }

    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }

    .feature-card {
        flex-direction: column;
        padding: 28px;
        transition: transform 0.3s, border-color 0.3s;
    }

    .feature-card:hover,
    .gallery-item:hover {
        transform: translateY(-6px);
        border-color: var(--pink-light);
    }

    .gallery-item { transition: transform 0.3s, border-color 0.3s; }

    .gallery-item:hover .play-icon { transform: translate(-50%, -50%) scale(1.12); }

    .btn-download:hover { box-shadow: 0 12px 40px rgba(255, 46, 154, 0.7); transform: translateY(-3px); }
    .btn-telegram:hover { box-shadow: 0 12px 40px rgba(34, 158, 217, 0.5); transform: translateY(-3px); }

    .stat-number { font-size: 3rem; }

    footer { padding-bottom: 32px; }
}

/* Respeita quem desativou animações no sistema */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
