/* =========================================================================
   NBT TICKET — Site institucional
   Tokens derivados da marca: fundo azul-marinho, gradiente azul → verde.
   Elemento de assinatura: recorte de bilhete perfurado (ticket-stub).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    /* cor */
    --navy: #0B1E36;
    --navy-elevated: #12294B;
    --navy-line: rgba(255,255,255,0.14);
    --light: #F5F7FB;
    --white: #FFFFFF;
    --ink: #0E1B2E;
    --ink-soft: #55637A;
    --line: #E4E9F2;
    --blue: #2E6FE0;
    --green: #35C48C;
    --gradient: linear-gradient(135deg, #2E6FE0 0%, #35C48C 100%);
    --amber: #F0923B;

    /* tipografia */
    --f-display: 'Space Grotesk', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.secao { padding: 96px 0; }
.secao-titulo { max-width: 640px; margin-bottom: 52px; }
.eyebrow {
    font-family: var(--f-mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.eyebrow::before { content: '●'; font-size: 8px; color: var(--green); }
.secao-titulo h2 { font-size: clamp(28px, 3.4vw, 40px); }
.secao-titulo p { margin-top: 14px; font-size: 17px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------- Navegação */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,30,54,0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--navy-line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 48px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #C7D1E0; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
    background: var(--gradient); color: #fff; font-weight: 600; font-size: 14px;
    padding: 10px 18px; border-radius: 9px; border: none; white-space: nowrap;
    transition: opacity .15s, transform .15s;
}
.nav-cta:hover { opacity: .92; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; }

@media (max-width: 880px) {
    .nav-links { position: fixed; inset: 84px 0 0 0; background: var(--navy); flex-direction: column; padding: 28px; gap: 22px; transform: translateY(-110%); transition: transform .25s; }
    .nav-links.aberto { transform: translateY(0); }
    .nav-toggle { display: block; }
}

/* ---------------------------------------------------------- Hero */
.hero {
    background: var(--navy);
    color: #fff;
    padding: 88px 0 110px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 82% 15%, rgba(53,196,140,0.16), transparent 45%),
                radial-gradient(circle at 8% 85%, rgba(46,111,224,0.18), transparent 45%);
    pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; }
.hero-ticket-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
    color: #A9BBD6; border: 1px dashed var(--navy-line); border-radius: 999px;
    padding: 7px 14px 7px 8px; margin-bottom: 26px;
}
.hero-ticket-tag .ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(53,196,140,0.2); }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; font-size: 18px; color: #B9C6DC; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 10px; border: none;
    transition: transform .15s, opacity .15s, box-shadow .15s;
}
.btn-primario { background: var(--gradient); color: #fff; box-shadow: 0 10px 30px -10px rgba(46,111,224,0.55); }
.btn-primario:hover { transform: translateY(-2px); opacity: .95; }
.btn-fantasma { background: transparent; color: #fff; border: 1px solid var(--navy-line); }
.btn-fantasma:hover { background: rgba(255,255,255,0.06); }
.btn-escuro { background: var(--navy); color: #fff; }
.btn-escuro:hover { background: #0f2846; }
.hero-microcopy { margin-top: 18px; font-size: 13px; color: #7C8BA6; }

/* mockup de fila de chamados no hero — elemento animado */
.mockup {
    background: var(--navy-elevated);
    border: 1px solid var(--navy-line);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
}
.mockup-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mockup-topo .titulo { font-family: var(--f-mono); font-size: 12px; color: #8FA3C4; letter-spacing: .04em; }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: #223B60; }
.mockup-colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup-coluna { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 8px; min-height: 210px; }
.mockup-coluna h5 { font-family: var(--f-mono); font-size: 10.5px; color: #7C8BA6; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; padding-left: 4px; }
.ticket-card {
    background: #0F2643; border: 1px solid var(--navy-line); border-radius: 8px;
    padding: 9px 10px; margin-bottom: 8px; font-size: 11.5px;
    transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .5s;
}
.ticket-card .num { font-family: var(--f-mono); color: #6FA0F5; font-size: 10px; display: block; margin-bottom: 3px; }
.ticket-card .tit { color: #E7ECF5; font-weight: 500; }
.ticket-card .prio { display: inline-block; margin-top: 6px; font-size: 9.5px; padding: 1px 7px; border-radius: 999px; }
.prio-alta { background: rgba(240,146,59,0.18); color: #F0923B; }
.prio-media { background: rgba(46,111,224,0.18); color: #6FA0F5; }
.prio-critica { background: rgba(224,71,62,0.18); color: #F08078; }
.mockup-toast {
    margin-top: 14px; display: flex; align-items: center; gap: 8px;
    font-family: var(--f-mono); font-size: 11px; color: #9FE6C3;
    background: rgba(53,196,140,0.09); border: 1px solid rgba(53,196,140,0.3);
    border-radius: 8px; padding: 8px 12px; opacity: 0; transform: translateY(6px);
    transition: opacity .4s, transform .4s;
}
.mockup-toast.mostrar { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------- Tira de bilhete (assinatura visual) */
.tira-bilhete {
    background: var(--light);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
    overflow: hidden;
}
.tira-lista { display: flex; align-items: center; justify-content: space-between; gap: 0; flex-wrap: wrap; }
.tira-item {
    flex: 1; min-width: 190px; text-align: center; padding: 6px 22px;
    font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-soft);
    position: relative;
}
.tira-item strong { display: block; font-family: var(--f-body); font-weight: 700; color: var(--ink); font-size: 14.5px; margin-top: 2px; }
.tira-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 0; height: 60%; border-right: 1.5px dashed #C7D0E0;
}

/* ---------------------------------------------------------- Ticket stub (cartão de recorte de bilhete) */
.ticket-stub {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ticket-stub:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(11,30,54,0.28); border-color: #C9D6EC; }
.ticket-stub::before, .ticket-stub::after {
    content: ''; position: absolute; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 50%; background: var(--light);
    border: 1px solid var(--line);
}
.ticket-stub::before { left: -11px; }
.ticket-stub::after { right: -11px; }
.ticket-stub .perfuracao {
    position: absolute; left: 14px; right: 14px; top: 0;
    border-top: 1.5px dashed #D7DEEA;
}
.ticket-codigo {
    font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--blue);
    letter-spacing: .04em; margin-bottom: 12px; display: inline-block;
    background: rgba(46,111,224,0.08); padding: 3px 9px; border-radius: 5px;
}

/* ---------------------------------------------------------- Recursos */
.recursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; margin-top: 6px; }
.recursos-grid .ticket-stub h3 { font-size: 18.5px; margin-bottom: 10px; }
.recursos-grid .ticket-stub p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 920px) { .recursos-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .recursos-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Como funciona */
.secao-escura { background: var(--navy); color: #fff; }
.secao-escura .secao-titulo p { color: #B9C6DC; }
.secao-escura .eyebrow { color: #6FA0F5; }
.passos {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.passos::before {
    content: ''; position: absolute; top: 27px; left: 6%; right: 6%; height: 0;
    border-top: 1.5px dashed rgba(255,255,255,0.18);
}
.passo { position: relative; }
.passo .marcador {
    width: 54px; height: 54px; border-radius: 50%; background: var(--navy-elevated);
    border: 1px solid var(--navy-line); display: flex; align-items: center; justify-content: center;
    font-family: var(--f-mono); font-weight: 600; color: var(--green); margin-bottom: 18px; position: relative; z-index: 1;
}
.passo h4 { font-size: 16.5px; margin-bottom: 8px; }
.passo p { font-size: 14px; color: #A9BBD6; }
@media (max-width: 880px) { .passos { grid-template-columns: 1fr 1fr; } .passos::before { display: none; } }
@media (max-width: 560px) { .passos { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Planos */
.planos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plano { display: flex; flex-direction: column; }
.plano.destaque { border-color: var(--blue); box-shadow: 0 24px 60px -28px rgba(46,111,224,0.35); }
.plano-selo {
    position: absolute; top: -13px; left: 26px; background: var(--gradient); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 12px; border-radius: 999px;
}
.plano h3 { font-size: 20px; margin-bottom: 6px; }
.plano .desc { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 18px; }
.plano .preco { font-family: var(--f-display); font-size: 15px; color: var(--ink-soft); margin-bottom: 20px; }
.plano .preco strong { display: block; font-size: 30px; color: var(--ink); font-weight: 700; }
.plano ul { margin-bottom: 24px; flex: 1; }
.plano li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink); padding: 7px 0; }
.plano li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
@media (max-width: 920px) { .planos-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ---------------------------------------------------------- Formulário de demonstração */
.demo-wrap {
    background: var(--light);
}
.demo-caixa {
    display: grid; grid-template-columns: 0.85fr 1.15fr;
    background: var(--navy); border-radius: 22px; overflow: hidden;
    box-shadow: 0 50px 90px -40px rgba(11,30,54,0.5);
}
.demo-info { padding: 48px 44px; color: #fff; }
.demo-info h2 { font-size: 28px; margin-bottom: 16px; }
.demo-info p { color: #B9C6DC; font-size: 15px; }
.demo-info ul { margin-top: 26px; }
.demo-info li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #DCE4F0; padding: 8px 0; }
.demo-info li::before { content: '—'; color: var(--green); }
.demo-form { background: var(--white); padding: 44px; }
.linha-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo-f { margin-bottom: 16px; }
.campo-f label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.campo-f input, .campo-f select, .campo-f textarea {
    width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px;
    font-size: 14px; font-family: inherit; background: #FBFCFE;
}
.campo-f input:focus, .campo-f select:focus, .campo-f textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,111,224,0.12); }
.demo-form .btn-primario { width: 100%; margin-top: 4px; padding: 14px; font-size: 15.5px; }
.demo-form .aviso { font-size: 12px; color: var(--ink-soft); margin-top: 12px; text-align: center; }
@media (max-width: 880px) { .demo-caixa { grid-template-columns: 1fr; border-radius: 18px; } .demo-info, .demo-form { padding: 34px 26px; } }

.erro-msg { background: #FDECEC; color: #C0392B; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }

/* ---------------------------------------------------------- FAQ */
.faq { max-width: 780px; }
.faq details {
    border-bottom: 1px solid var(--line); padding: 20px 0;
}
.faq summary {
    cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-display); font-size: 22px; color: var(--blue); flex-shrink: 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; max-width: 620px; }

/* ---------------------------------------------------------- CTA final */
.cta-final {
    background: var(--navy); color: #fff; text-align: center; padding: 90px 0;
    position: relative; overflow: hidden;
}
.cta-final::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(46,111,224,0.22), transparent 55%);
}
.cta-final .container { position: relative; }
.cta-final h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.cta-final p { color: #B9C6DC; font-size: 17px; margin-bottom: 32px; }

/* ---------------------------------------------------------- Rodapé */
.rodape { background: #081527; color: #8FA3C4; padding: 56px 0 28px; }
.rodape-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.rodape-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rodape-logo img { height: 40px; }
.rodape p.tag { font-size: 13.5px; max-width: 260px; }
.rodape h6 { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #5D7196; margin-bottom: 14px; }
.rodape li { margin-bottom: 10px; font-size: 14px; }
.rodape li a:hover { color: #fff; }
.rodape-baixo { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
@media (max-width: 780px) { .rodape-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------- Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visivel { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; }
    .mockup { max-width: 480px; }
    .recursos-grid, .planos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .secao { padding: 64px 0; }
    .linha-form { grid-template-columns: 1fr; }
}
