/* =========================
   Avalie Itens — index.css
   - Header claro (logo preto com contraste)
   - Tipografia legível e responsiva
   - Botões com alto contraste
   - Foco/hover acessíveis
   - Grid responsivo (hero, features, depoimentos)
   ========================= */

/* Reset básico */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    color: #0f172a;
    /* slate-900 */
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Paleta (alto contraste) */

:root {
    --header-bg: #f5f7fa;
    --header-border: #e1e5ea;
    --text: #0f172a;
    /* slate-900 */
    --muted: #475569;
    /* slate-600 */
    --muted-2: #64748b;
    /* slate-500 */
    --primary: #111827;
    /* gray-900 para botões */
    --primary-contrast: #ffffff;
    --ghost: #111827;
    --ghost-border: #cbd5e1;
    /* slate-300 */
    --surface: #0b0f1a;
    /* azul/noite leve p/ hero */
    --card: #0f1524;
    /* cartão escuro */
    --card-border: rgba(255, 255, 255, .12);
    --accent: #2563eb;
    /* azul forte */
    --accent-2: #00d5ff;
    /* ciano para detalhes */
    --focus: #ffbf47;
    /* foco acessível */
}

/* Ornamentação de fundo (suave) */

.bg-ornaments {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 96%, rgba(0, 0, 0, .04) 96%), linear-gradient(90deg, transparent 96%, rgba(0, 0, 0, .04) 96%);
    background-size: 28px 28px, 28px 28px;
}

.orb {
    position: absolute;
    filter: blur(60px);
    opacity: .45;
}

.orb-a {
    width: 380px;
    height: 380px;
    left: -120px;
    top: 80px;
    background: radial-gradient(circle, #b4e1ff, transparent 70%);
}

.orb-b {
    width: 420px;
    height: 420px;
    right: -140px;
    top: 320px;
    background: radial-gradient(circle, #ffd1a1, transparent 70%);
}

/* Container */

.nx-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header claro */

.nx-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nx-header .nx-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1.2rem;
}

.nx-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.nx-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

@media(max-width:768px) {
    .nx-logo-img {
        height: 26px;
    }
}

@media(max-width:480px) {
    .nx-logo-img {
        height: 22px;
    }
}

.nx-logo-text {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}

/* Nav */

.nx-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nx-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    /* gray-800 */
}

.nx-link:hover {
    color: #111827;
}

.nx-link:focus-visible,
.nx-btn:focus-visible,
.nx-burger:focus-visible,
.nx-menu-link:focus-visible,
.nx-menu-btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Botões */

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: transform .06s ease, box-shadow .06s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.nx-btn:hover {
    transform: translateY(-1px);
}

.nx-btn:active {
    transform: translateY(0);
}

.nx-btn-primary {
    background: var(--primary);
    color: var(--primary-contrast);
    box-shadow: 0 6px 16px rgba(17, 24, 39, .18);
}

.nx-btn-primary:hover {
    filter: brightness(1.08);
}

.nx-btn-ghost {
    background: #fff;
    color: var(--ghost);
    border: 1px solid var(--ghost-border);
}

.nx-btn-ghost:hover {
    background: #f8fafc;
}

/* slate-50 */

.nx-btn-full {
    width: 100%;
    text-align: center;
}

.nx-btn.sm {
    padding: .5rem .8rem;
    font-size: .9rem;
    line-height: 1;
}

/* Ações auth no header */

.nx-auth {
    display: flex;
    gap: .5rem;
    margin-left: .5rem;
}

/* Burger + menu mobile simples */

.nx-burger {
    display: none;
    width: 42px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nx-burger span {
    display: block;
    height: 3px;
    margin: 6px 0;
    background: #111827;
    border-radius: 2px;
}

@media(max-width: 920px) {
    .nx-link {
        display: none;
    }
    .nx-auth {
        display: none;
    }
    .nx-burger {
        display: block;
    }
}

.nx-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid var(--header-border);
}

.nx-menu.open {
    display: block;
}

.nx-menu a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
}

.nx-menu-link {
    color: #111827;
    font-weight: 600;
}

.nx-menu-link:hover {
    background: #f8fafc;
}

.nx-menu-btn {
    color: #111827;
    font-weight: 800;
    border-top: 1px solid #eef2f7;
}

.nx-menu-btn.primary {
    background: #111827;
    color: #fff;
}

/* Hero (card escuro sobre base escura para contraste com header claro) */

.nx-hero {
    background: linear-gradient(180deg, #0b0f1a 0%, #0e1322 100%);
    padding: 56px 0 48px;
    color: #e5e7eb;
}

.nx-hero-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1.2fr .8fr;
}

@media(max-width: 980px) {
    .nx-hero-grid {
        grid-template-columns: 1fr;
    }
}

.nx-hero-copy .nx-badge {
    display: inline-block;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: .32rem .6rem;
    border-radius: 999px;
    font-size: .82rem;
    color: #e5e7eb;
}

.nx-title {
    margin: .8rem 0 .4rem 0;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
}

.nx-title .block {
    display: block;
}

.accent {
    letter-spacing: .3px;
    color: #dbeafe;
}

/* azul muito claro */

.nx-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin: .6rem 0 1rem;
}

.nx-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.nx-points {
    padding: 0;
    margin: .4rem 0 1rem;
    list-style: none;
    color: #cbd5e1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nx-points li::before {
    content: "• ";
    color: #93c5fd;
}

.nx-disclaimer {
    color: #9fb2c7;
    font-size: .9rem;
}

/* Card hero */

.nx-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    color: #e5e7eb;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.nx-card-head {
    display: flex;
    gap: .35rem;
    align-items: center;
    padding: .6rem .7rem;
    background: rgba(255, 255, 255, .06);
}

.nx-card-head .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .38);
}

.nx-card-body {
    padding: 1rem;
}

.nx-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
    margin: .8rem 0;
}

.stat {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: .7rem;
    text-align: center;
}

.kpi {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
}

.label {
    display: block;
    font-size: .86rem;
    color: #cbd5e1;
    margin-top: .15rem;
}

.nx-card-cta {
    display: grid;
    gap: .5rem;
    margin-top: .75rem;
}

/* Seções */

.nx-section {
    padding: 56px 0;
    background: #ffffff;
    color: var(--text);
}

.nx-section:nth-of-type(even) {
    background: #f9fafb;
}

/* alterna leve */

.nx-section-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: #0f172a;
}

/* Features */

.nx-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media(max-width: 980px) {
    .nx-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 640px) {
    .nx-features {
        grid-template-columns: 1fr;
    }
}

.nx-feature {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(2, 6, 23, .04);
}

.nx-feature .ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #111827;
    color: #fff;
    font-weight: 800;
    margin-bottom: .5rem;
}

.nx-feature h3 {
    margin: .2rem 0 .3rem;
}

.nx-feature p {
    color: var(--muted);
    margin: 0;
}

/* Depoimentos */

.nx-testimonials .nx-testi-grid,
.nx-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .nx-testi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nx-testi-grid {
        grid-template-columns: 1fr;
    }
}

.testi {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: .8rem;
    align-items: center;
    box-shadow: 0 8px 20px rgba(2, 6, 23, .05);
}

.testi img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.testi .quote {
    margin: 0 0 .35rem 0;
    font-size: .98rem;
    line-height: 1.45;
    color: #111827;
}

.testi .name {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.testi .meta {
    color: #475569;
    font-weight: 600;
    font-size: .9rem;
}

/* FAQ */

.nx-faq .nx-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media(max-width: 800px) {
    .nx-faq-grid {
        grid-template-columns: 1fr;
    }
}

.qa {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
}

.qa summary {
    cursor: pointer;
    font-weight: 800;
    color: #0f172a;
    list-style: none;
}

.qa summary::-webkit-details-marker {
    display: none;
}

.qa p {
    color: var(--muted);
}

/* Rodapé */

.nx-footer {
    background: #0b0f1a;
    color: #cbd5e1;
    padding: 28px 0;
}

.nx-footnote {
    margin: 0;
}

/* Acessibilidade extra */

@media (prefers-reduced-motion: reduce) {
    .nx-btn,
    .nx-link {
        transition: none !important;
    }
    .orb,
    .grid-lines {
        display: none;
    }
}