/* ==========================================================================
   HOME — estilo flat, alinhado à documentação (Inter, cards sólidos,
   borda #1a1a2e, acento ciano). Sem blur/glass/glow.
   ========================================================================== */
:root {
    --bg: #06060e;
    --bg-2: #0a0a16;
    --card-bg: #0e0e1c;
    --card-bg-2: #12122a;
    --card-border: #1a1a2e;
    --cyan: #00d4ff;
    --cyan-2: #00d9ff;
    --blue: #0077ff;
    --green: #00c853;
    --red: #ef4444;
    --yellow: #f59e0b;
    --text: #e0e0e0;
    --text-muted: #888;
    --text-dim: #555;
    --line: #1a1a2e;
    --grad-brand: linear-gradient(135deg, var(--blue), var(--cyan));
    --grad-text: linear-gradient(135deg, #7dd3fc 0%, var(--cyan) 50%, var(--blue) 100%);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.gaming, h1, h2, h3, .brand-name {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

::selection { background: rgba(0, 212, 255, 0.22); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040409; }
::-webkit-scrollbar-thumb { background: #1a1a2e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ---------- superficies (flat, como a docs) ---------- */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.grad-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- barra de status ---------- */
.statusbar {
    background: var(--bg-2);
    border-bottom: 1px solid var(--card-border);
    font-size: 12px;
    padding: 9px 16px;
}

/* Aviso geral (site_notifications) - faixa rolando da direita para a esquerda.
   O aviso aparece UMA vez, atravessa a tela e reinicia pela direita (loop
   infinito, sem repetir o texto dentro da mesma passagem). */
.site-notice {
    max-width: 1200px;
    margin: 8px auto 0;
    padding: 0 16px;
}

/* Moldura que recorta o texto durante a passagem. O overflow esconde o que
   esta fora dos limites. */
.site-notice-in {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.35;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--cyan);
    background: var(--card-bg);
    color: #d9f4ff;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.site-notice.lvl-alerta .site-notice-in {
    border-color: var(--card-border);
    border-left-color: var(--yellow);
    color: #ffe6bd;
}

.site-notice.lvl-sucesso .site-notice-in {
    border-color: var(--card-border);
    border-left-color: var(--green);
    color: #ccffe9;
}

/* Texto unico que atravessa a faixa: entra pela direita (fora da moldura),
   cruza toda a largura e sai pela esquerda, repetindo. As distancias saem da
   largura medida em JS (variaveis --marquee-from / --marquee-to), porque o
   percentual sozinho nao cobre a largura da moldura. */
.site-notice-track {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 0;
    will-change: transform;
    animation: marquee var(--marquee-duration, 16s) linear infinite;
}

.site-notice-in:hover .site-notice-track {
    animation-play-state: paused;
}

.site-notice-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: 0.9;
}

.site-notice-title {
    font-weight: 700;
    white-space: nowrap;
}

.site-notice-msg {
    opacity: 0.92;
    white-space: nowrap;
}

.site-notice-sep {
    opacity: 0.5;
    padding: 0 6px;
}

@keyframes marquee {
    from { transform: translateX(var(--marquee-from, 100%)); }
    to   { transform: translateX(var(--marquee-to, -100%)); }
}

.statusbar-in {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.statusbar-left { display: flex; align-items: center; gap: 8px; }

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex: 0 0 auto;
}

.pulse-dot.offline { background: var(--red); }

.statusbar-label { color: var(--text-dim); font-weight: 500; }
.statusbar-value { color: var(--green); font-weight: 700; letter-spacing: .4px; }
.statusbar-value.offline { color: var(--red); }
.statusbar-sep { color: #333; }
.statusbar-right { display: flex; align-items: center; gap: 16px; color: var(--text-dim); }
.statusbar-right strong { color: #c8c8d4; font-weight: 600; }
.statusbar-link { color: var(--cyan); font-weight: 500; transition: color .2s; }
.statusbar-link:hover { color: #fff; }

/* ---------- header ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
}

.topbar-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
    flex: 0 0 auto;
}

.brand:hover .brand-mark { border-color: rgba(0, 212, 255, .5); }
.brand-mark svg { width: 21px; height: 21px; color: var(--cyan); stroke-width: 2.4; }

.brand-name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-name em { font-style: normal; color: var(--cyan); }
.brand-tag { font-size: 10px; text-transform: uppercase; font-weight: 700; font-family: 'Inter', sans-serif; color: var(--cyan); background: rgba(0, 212, 255, .12); border: 1px solid rgba(0, 212, 255, .28); padding: 2px 6px; border-radius: 5px; letter-spacing: .5px; }
.brand-sub { display: block; font-size: 10px; color: var(--text-dim); font-weight: 500; letter-spacing: .2px; line-height: 1.3; margin-top: 3px; }

.topnav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }

.topnav a {
    color: #b8b8c8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.topnav a:hover { color: #fff; }
.topnav a svg { width: 15px; height: 15px; color: var(--cyan); }
.topnav .pill { background: rgba(0, 212, 255, .1); color: var(--cyan); border: 1px solid rgba(0, 212, 255, .25); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-menu {
    display: none;
    padding: 8px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: #b8b8c8;
    cursor: pointer;
}

.icon-menu svg { width: 22px; height: 22px; }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--card-border);
    background: var(--bg-2);
    padding: 14px 20px 20px;
}

.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; color: #b8b8c8; text-decoration: none; font-weight: 500; }
.mobile-menu a:hover { color: #fff; }

/* logo (imagem PNG) dentro da marca */
.brand-logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.site-brand-mark img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- botoes ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--cyan);
    color: #04121a;
    border-color: var(--cyan);
}

.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost { background: transparent; color: var(--cyan); border-color: rgba(0, 212, 255, .4); }
.btn-ghost:hover { background: rgba(0, 212, 255, .1); color: #fff; }

.btn-soft { background: var(--card-bg); color: #d0d0dc; border-color: var(--card-border); }
.btn-soft:hover { background: #1a1a35; color: #fff; }

.btn-sm { padding: 9px 16px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 66px 20px 74px;
    text-align: center;
    overflow: hidden;
}

.glow-a, .glow-b { display: none; }

.hero-in { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 212, 255, .1);
    border: 1px solid rgba(0, 212, 255, .28);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

.hero h1 {
    font-size: clamp(30px, 5.2vw, 52px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1.14;
    margin-bottom: 16px;
}

.hero p { font-size: clamp(15px, 1.8vw, 17px); color: var(--text-muted); line-height: 1.7; max-width: 640px; margin: 0 auto; }
.hero p strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- bloco principal ---------- */
.main { flex: 1; max-width: 1120px; margin: 0 auto; padding: 0 20px 70px; width: 100%; }

/* ---------- titulos de secao ---------- */
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 42px; }
.sec-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--cyan); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: #fff; letter-spacing: -.3px; }
.sec-head p { font-size: 14px; color: var(--text-muted); margin-top: 10px; }

/* ---------- como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 76px; }
.step { border-radius: 12px; padding: 26px; border-left: 4px solid var(--cyan); transition: border-color .2s; }
.step:hover { border-color: rgba(0, 212, 255, .5); border-left-color: var(--cyan); }
.step-num { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; color: var(--cyan); background: rgba(0, 212, 255, .1); border: 1px solid rgba(0, 212, 255, .28); margin-bottom: 16px; }
.step:nth-child(2) .step-num { color: #7dd3fc; background: rgba(125, 211, 252, .1); border-color: rgba(125, 211, 252, .28); }
.step:nth-child(3) .step-num { color: var(--green); background: rgba(0, 200, 83, .1); border-color: rgba(0, 200, 83, .28); }
.step h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- planos ---------- */
.plans-section { padding: 8px 0 76px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.plan-card { border-radius: 14px; padding: 24px; display: flex; flex-direction: column; position: relative; transition: border-color .2s; }
.plan-card:hover { border-color: rgba(0, 212, 255, .4); }
.plan-card.featured { border: 1px solid var(--cyan); }

.plan-ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--cyan); color: #04121a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }

.plan-img { width: 100%; height: 130px; border-radius: 10px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--card-border); }
.plan-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-dim); }
.plan-img-placeholder svg { width: 32px; height: 32px; }

.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.plan-name { color: #fff; font-size: 18px; font-weight: 700; }
.plan-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--cyan); background: rgba(0, 212, 255, .1); border: 1px solid rgba(0, 212, 255, .28); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.plan-kind.full { color: var(--green); background: rgba(0, 200, 83, .09); border-color: rgba(0, 200, 83, .28); }
.plan-desc { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; min-height: 34px; }

.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 3px; }
.plan-price small { font-size: 12px; color: var(--text-muted); }
.plan-price b { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.plan-card.featured .plan-price b { color: var(--cyan); }
.plan-period { font-size: 11px; color: var(--text-muted); }

.plan-features { list-style: none; border-top: 1px solid var(--card-border); padding-top: 16px; margin: 16px 0 20px; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: #c0c0d0; }
.plan-features li svg { width: 14px; height: 14px; color: var(--green); flex: 0 0 auto; margin-top: 2px; stroke-width: 3; }
.plan-features li.muted { color: var(--text-dim); }
.plan-features li.muted svg { color: var(--text-dim); }
.plan-card .btn { margin-top: auto; }

.table-empty { grid-column: 1 / -1; text-align: center; color: var(--text-dim); font-size: 13px; padding: 40px 0; }

/* ---------- FAQ (pergunta + resposta) ---------- */
.faq { max-width: 780px; margin: 0 auto; }

.faq-item {
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s, background .2s;
    padding: 16px 20px;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, .3);
}

.faq-head { display: flex; align-items: center; gap: 13px; }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: none; }

.faq-q:hover { color: var(--cyan); }
.faq-txt { flex: 1; min-width: 0; }

.faq-chev {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--text-dim);
    transition: transform .25s;
}

.faq-q:hover .faq-chev { color: var(--cyan); }
.faq-item[open] .faq-q { color: var(--cyan); }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--cyan); }

.faq-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, .09);
    border: 1px solid rgba(0, 212, 255, .22);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
}

.faq-a {
    font-size: 13.5px;
    color: #a8a8b8;
    line-height: 1.7;
    margin: 11px 0 0 39px;
    padding-left: 14px;
    border-left: 2px solid rgba(0, 212, 255, .2);
}

.faq-a[hidden] { display: none; }
.faq-a p + p { margin-top: 9px; }

.faq-a strong { color: #fff; }
.faq-a a { color: var(--cyan); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--card-border); background: var(--bg-2); padding: 40px 0 30px; font-size: 12.5px; color: var(--text-muted); }
.footer-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--card-border); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--card-bg); border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-weight: 800; font-size: 12px; }
.footer-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.footer-brand b { color: #fff; font-size: 17px; font-weight: 700; }
.footer-brand b em { font-style: normal; color: var(--cyan); }
.footer-tag { color: var(--text-muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 20px; font-size: 11.5px; line-height: 1.7; }
.footer-bottom p { max-width: 620px; }
.footer-meta { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.footer-meta b { color: #c8c8d4; font-weight: 600; }
.footer-meta .ok { color: var(--green); }

/* ---------- toast ---------- */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 13px 18px; transform: translateY(120px); opacity: 0; pointer-events: none; transition: all .3s; border-color: rgba(0, 212, 255, .4); }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 19px; height: 19px; color: var(--cyan); flex: 0 0 auto; }
.toast b { display: block; color: #fff; font-size: 12.5px; }
.toast span { font-size: 12px; color: #b0b0c0; }

/* ---------- reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity .7s cubic-bezier(.22, .68, .3, 1),
        transform .7s cubic-bezier(.22, .68, .3, 1);
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

.reveal-scale { transform: translateY(20px) scale(.98); }
.reveal-scale.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
    .pulse-dot, .hero-badge i { animation: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
    .topnav { display: none; }
    .icon-menu { display: inline-flex; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .topbar-in { height: 66px; padding: 0 14px; gap: 10px; }
    .brand { min-width: 0; }
    .brand-sub { display: none; }
    .brand-name { font-size: 19px; }
    .topbar-actions .btn { display: none; }
    .statusbar-right .hide-sm { display: none; }
    .hero { padding: 44px 16px 52px; }
    .main { padding: 0 14px 56px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .plan-card .btn { width: 100%; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
    .faq-item { padding: 14px 16px; }
    .faq-a { margin-left: 0; padding-left: 12px; }
}
