/* ============================================================
   NDBO Brazil - Design System v2
   Conceito: portal / multiverso de animes (não travado em 2 séries)
   ============================================================ */

:root {
    --bg: #08080c;
    --bg-soft: #0d0e14;
    --surface: #12131b;
    --surface-2: #191a24;
    --border: rgba(255,255,255,0.08);
    --text: #e7e7ec;
    --muted: #9a9aa8;
    --violet: #8b5cf6;
    --cyan: #22d3ee;
    --pink: #f472b6;
    --gold: #fbbf24;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

::selection { background: rgba(139,92,246,0.35); color: #fff; }

/* === Cursor padrão (mais leve, sem depender de sprite de anime específico) === */
a, button, [role="button"], select, label, summary { cursor: pointer; }

/* === Fundo com "portais" sutis + campo de estrelas (CSS puro, leve) === */
.bg-portal {
    position: relative;
    background-color: var(--bg);
    background-image:
        radial-gradient(700px circle at 12% 8%, rgba(139,92,246,0.16), transparent 60%),
        radial-gradient(600px circle at 90% 18%, rgba(34,211,238,0.14), transparent 60%),
        radial-gradient(800px circle at 50% 100%, rgba(244,114,182,0.08), transparent 60%),
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 22% 68%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 35% 12%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 48% 82%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 55%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 92% 70%, rgba(255,255,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.5) 0%, transparent 100%);
    background-attachment: fixed, fixed, fixed, local, local, local, local, local, local, local, local, local, local;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat;
    background-size: auto, auto, auto, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px, 340px 340px;
}

@media (prefers-reduced-motion: no-preference) {
    .bg-portal::before {
        content: '';
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        background-image: radial-gradient(1.5px 1.5px at 50% 50%, rgba(255,255,255,0.8) 0%, transparent 100%);
        background-size: 260px 260px;
        background-position: 130px 60px;
        animation: twinkle 5s ease-in-out infinite;
        opacity: 0.6;
    }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.75; }
}

/* ============================================================
   Tema Galaxia / Universo Colapsando
   Efeito leve: 1 imagem (lazy, so no hero) + aneis em CSS puro
   (conic-gradient + transform), sem canvas nem JS pesado.
   ============================================================ */
.cosmic-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}
.cosmic-hero .cosmic-photo {
    position: absolute;
    inset: 0;
    background-image: url('../images/galaxy-hero.jpg');
    background-size: cover;
    background-position: center 35%;
    opacity: 0.55;
    filter: saturate(1.15) contrast(1.05);
}
.cosmic-hero .cosmic-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, transparent 0%, rgba(8,8,12,0.55) 55%, var(--bg) 92%),
        linear-gradient(180deg, rgba(8,8,12,0.25) 0%, var(--bg) 100%);
}

/* Aneis de colapso: puro CSS, GPU-friendly (so transform/opacity) */
.collapse-rings {
    position: absolute;
    top: 26%;
    left: 50%;
    width: 1px; height: 1px;
    pointer-events: none;
}
.collapse-rings i {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    border: 1px solid rgba(139,92,246,0.35);
    transform: translate(-50%, -50%);
    animation: collapse-spin linear infinite;
}
.collapse-rings i:nth-child(1) { width: 420px; height: 420px; border-color: rgba(139,92,246,0.4); animation-duration: 34s; }
.collapse-rings i:nth-child(2) { width: 620px; height: 620px; border-color: rgba(34,211,238,0.28); animation-duration: 48s; animation-direction: reverse; }
.collapse-rings i:nth-child(3) { width: 860px; height: 860px; border-color: rgba(244,114,182,0.18); animation-duration: 64s; }

@keyframes collapse-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.collapse-core {
    position: absolute;
    top: 26%; left: 50%;
    width: 90px; height: 90px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(139,92,246,0.6) 35%, transparent 75%);
    filter: blur(6px);
    animation: core-pulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

@media (max-width: 768px) {
    .collapse-rings i:nth-child(2), .collapse-rings i:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .collapse-rings i, .collapse-core { animation: none; }
}

/* === Wordmark / logo (mini buraco negro) === */
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9) 0%, transparent 8%),
        conic-gradient(from 90deg, var(--violet), var(--cyan), var(--pink), var(--violet));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(139,92,246,0.55), inset 0 0 10px rgba(0,0,0,0.4);
    flex-shrink: 0;
    animation: brand-spin 8s linear infinite;
}
.brand-mark i { color: #08080c; font-size: 0.95rem; filter: drop-shadow(0 0 3px rgba(255,255,255,0.6)); }
@keyframes brand-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand-mark { animation: none; } }

.wordmark {
    background: linear-gradient(90deg, #fff 0%, #fff 55%, var(--cyan) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

/* === Separador com brilho === */
.glow-separator {
    width: 64px; height: 3px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    border-radius: 2px;
    box-shadow: 0 0 14px rgba(139,92,246,0.5);
}

/* === Pills / badges === */
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }

.badge-soon {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800;
    color: var(--gold);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    padding: 5px 14px; border-radius: 999px;
}

/* === Botões === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    color: #08080c;
    box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139,92,246,0.5); }
.btn-ghost {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.08); }

.btn-disabled {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* === Cards genéricos === */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* === Card de universo (com imagem) === */
.universe-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--border);
}
.universe-card .bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}
.universe-card:hover .bg-img { transform: scale(1.06); }
.universe-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,8,12,0.1) 0%, rgba(8,8,12,0.96) 88%);
}
.universe-card .content { position: relative; z-index: 2; padding: 1.75rem; }

/* === Card "em breve" (universo fantasma / silhueta) === */
.ghost-card {
    position: relative;
    border-radius: 20px;
    min-height: 280px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    border: 1.5px dashed rgba(255,255,255,0.14);
    background:
        radial-gradient(circle at 50% 30%, rgba(139,92,246,0.12), transparent 60%);
    padding: 2rem;
}
.ghost-card .ghost-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.4rem; color: var(--muted);
}

/* === Passo numerado (didático) === */
.step {
    position: relative;
    padding-left: 3.5rem;
}
.step .step-num {
    position: absolute; left: 0; top: 0;
    width: 2.5rem; height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    color: #08080c;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}

/* === FAQ accordion === */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; text-align: left;
    padding: 1.25rem 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    font-weight: 700; color: var(--text);
    background: none; border: none;
}
.faq-question i { transition: transform 0.25s ease; color: var(--violet); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--muted); font-size: 0.92rem; line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: 1.25rem; }

/* === Nav active === */
.nav-active { color: #fff !important; }

/* === Reveal on scroll === */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.page-enter { animation: fadeInUp 0.5s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pulse-dot { animation: pulse-dot 1.8s ease-in-out infinite; }

/* === Discord float === */
.discord-float { animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
