/* ==========================================================================
   emanujaff.com.br — folha de estilo do site público

   Identidade "terminal": uma cor só, zero degradê, superfície chapada,
   borda de 1px, canto pequeno e tipografia monoespaçada nos rótulos e
   números. É de propósito diferente dos dois produtos da casa:

     Órbita    → escuro frio, azul/violeta/teal, degradê, canto redondo, Sora
     OfertaBot → papel quente, laranja #FF4A1C, Bricolage Grotesque
     emanujaff → preto neutro, lima, chapado, Space Grotesk + JetBrains Mono

   Se um dia isso mudar, mude aqui primeiro: nenhuma regra escreve cor
   direto, tudo passa pelas variáveis do bloco 1.

   Estrutura: tokens · temas · base · layout · componentes · seções · responsivo
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — tema escuro (padrão)
   -------------------------------------------------------------------------- */
:root {
    /* Uma cor de marca só. Não existe cor secundária nem degradê. */
    --accent:        #AEEA2A;
    --accent-ink:    #AEEA2A;
    --accent-soft:   rgba(174, 234, 42, .12);
    --accent-line:   rgba(174, 234, 42, .34);

    --ok-ink:        #AEEA2A;
    --warn-ink:      #E8B341;
    --danger-ink:    #FF6B5E;

    /* Superfícies — preto neutro, sem viés quente nem azulado */
    --bg:            #08090A;
    --bg-soft:       #0D0F10;
    --bg-elev:       #121415;
    --surface:       #0D0F10;
    --surface-hover: #141718;
    --field:         #0B0D0E;
    --field-focus:   #101314;
    --edge-tint:     rgba(255, 255, 255, .014);

    --border:        rgba(255, 255, 255, .11);
    --border-strong: rgba(255, 255, 255, .22);
    --grid:          rgba(255, 255, 255, .022);
    --grid-strong:   rgba(255, 255, 255, .03);

    /* Texto */
    --heading:       #F2F4F0;
    --text:          #DDE0DA;
    --text-soft:     #A8ADA4;
    --muted:         #6F756C;
    --placeholder:   rgba(255, 255, 255, .24);
    --ghost-ink:     rgba(255, 255, 255, .13);
    --ghost-ink-2:   rgba(255, 255, 255, .05);

    /* Camadas */
    --header-bg:     rgba(8, 9, 10, .86);
    --nav-bg:        #08090A;
    --pop-bg:        #121415;
    --panel-bg:      #0B0D0E;
    --scroll-thumb:  rgba(255, 255, 255, .14);
    --scroll-thumb-h:rgba(255, 255, 255, .24);

    --page-bg:       var(--bg);

    /* Estados */
    --ok-bg:         rgba(174, 234, 42, .07);
    --ok-border:     rgba(174, 234, 42, .3);
    --danger-bg:     rgba(255, 107, 94, .08);
    --danger-border: rgba(255, 107, 94, .32);

    /* Formas — cantos pequenos, nada de pílula */
    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  10px;
    --radius-xl:  12px;

    --shadow:     none;
    --shadow-lg:  none;

    --container: 1180px;
    --gutter:    24px;

    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body:    'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

    --ease:      cubic-bezier(.22, 1, .36, 1);
    --ease-out:  cubic-bezier(.16, 1, .3, 1);

    --header-h: 68px;

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Tokens — tema claro
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
    --accent:        #8CC814;
    --accent-ink:    #4A6B0A;
    --accent-soft:   rgba(140, 200, 20, .16);
    --accent-line:   rgba(74, 107, 10, .3);

    --ok-ink:        #4A6B0A;
    --warn-ink:      #8A5D00;
    --danger-ink:    #C2342A;

    --bg:            #F3F5F1;
    --bg-soft:       #FFFFFF;
    --bg-elev:       #E9ECE5;
    --surface:       #FFFFFF;
    --surface-hover: #F7F9F5;
    --field:         #FFFFFF;
    --field-focus:   #FFFFFF;
    --edge-tint:     rgba(14, 18, 12, .016);

    --border:        rgba(14, 18, 12, .14);
    --border-strong: rgba(14, 18, 12, .28);
    --grid:          rgba(14, 18, 12, .04);
    --grid-strong:   rgba(14, 18, 12, .05);

    --heading:       #0C0F0A;
    --text:          #1D211B;
    --text-soft:     #41463D;
    --muted:         #6A7063;
    --placeholder:   rgba(14, 18, 12, .34);
    --ghost-ink:     rgba(14, 18, 12, .14);
    --ghost-ink-2:   rgba(14, 18, 12, .06);

    --header-bg:     rgba(243, 245, 241, .88);
    --nav-bg:        #F3F5F1;
    --pop-bg:        #FFFFFF;
    --panel-bg:      #FFFFFF;
    --scroll-thumb:  rgba(14, 18, 12, .2);
    --scroll-thumb-h:rgba(14, 18, 12, .32);

    --ok-bg:         rgba(140, 200, 20, .1);
    --ok-border:     rgba(74, 107, 10, .28);
    --danger-bg:     rgba(194, 52, 42, .08);
    --danger-border: rgba(194, 52, 42, .28);

    color-scheme: light;
}

/* Sem JavaScript: segue a preferência do sistema */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --accent:        #8CC814;
        --accent-ink:    #4A6B0A;
        --accent-soft:   rgba(140, 200, 20, .16);
        --accent-line:   rgba(74, 107, 10, .3);

        --ok-ink:        #4A6B0A;
        --warn-ink:      #8A5D00;
        --danger-ink:    #C2342A;

        --bg:            #F3F5F1;
        --bg-soft:       #FFFFFF;
        --bg-elev:       #E9ECE5;
        --surface:       #FFFFFF;
        --surface-hover: #F7F9F5;
        --field:         #FFFFFF;
        --field-focus:   #FFFFFF;
        --edge-tint:     rgba(14, 18, 12, .016);

        --border:        rgba(14, 18, 12, .14);
        --border-strong: rgba(14, 18, 12, .28);
        --grid:          rgba(14, 18, 12, .04);
        --grid-strong:   rgba(14, 18, 12, .05);

        --heading:       #0C0F0A;
        --text:          #1D211B;
        --text-soft:     #41463D;
        --muted:         #6A7063;
        --placeholder:   rgba(14, 18, 12, .34);
        --ghost-ink:     rgba(14, 18, 12, .14);
        --ghost-ink-2:   rgba(14, 18, 12, .06);

        --header-bg:     rgba(243, 245, 241, .88);
        --nav-bg:        #F3F5F1;
        --pop-bg:        #FFFFFF;
        --panel-bg:      #FFFFFF;
        --scroll-thumb:  rgba(14, 18, 12, .2);
        --scroll-thumb-h:rgba(14, 18, 12, .32);

        --ok-bg:         rgba(140, 200, 20, .1);
        --ok-border:     rgba(74, 107, 10, .28);
        --danger-bg:     rgba(194, 52, 42, .08);
        --danger-border: rgba(194, 52, 42, .28);

        color-scheme: light;
    }
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* Malha técnica de fundo — sem brilho, sem orbe */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 48px 48px;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: color .18s var(--ease);
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--heading);
    text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
    background: var(--accent);
    color: #0A0C08;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-h); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 999;
    padding: 10px 18px;
    background: var(--accent);
    color: #0A0C08;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-weight: 600;
}
.skip-link:focus { left: 16px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding: clamp(60px, 8vw, 112px) 0;
}

.section--tight { padding: clamp(44px, 5.5vw, 76px) 0; }

.section--edge {
    border-top: 1px solid var(--border);
    background: var(--edge-tint);
}

.section__head {
    max-width: 700px;
    margin-bottom: clamp(34px, 4.5vw, 56px);
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

/* Rótulo de seção no formato "// SERVIÇOS" */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: '//';
    color: var(--muted);
}

.section__title {
    font-size: clamp(28px, 4.2vw, 44px);
    margin-bottom: 16px;
}

.section__lead {
    font-size: clamp(15.5px, 1.5vw, 17.5px);
    color: var(--muted);
    max-width: 62ch;
}

.section__head--center .section__lead { margin-inline: auto; }

/* Sem degradê: o "destaque" é a cor sólida da marca */
.grad { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn .ico { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(3px); }

.btn--primary {
    background: var(--accent);
    color: #0A0C08;
    font-weight: 600;
}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); }

.btn--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.btn--wa {
    background: transparent;
    border-color: #1FA855;
    color: #3BC673;
}
.btn--wa:hover { background: rgba(31, 168, 85, .12); }

.btn--sm { padding: 9px 15px; font-size: 13px; }
.btn--lg { padding: 15px 26px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--accent-ink);
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--heading); }
.link-arrow:hover .ico { transform: translateX(3px); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-soft);
}

.pill--dot::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    animation: blip 1.6s steps(1) infinite;
}

@keyframes blip { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }

.tag {
    display: inline-block;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}

.site-header.is-stuck {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--heading);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 30px; height: 30px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: #0A0C08;
}
.brand__dot { color: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: 2px; }

.nav__link {
    position: relative;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--muted);
    transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--heading); background: var(--surface-hover); }

.nav__link.is-active { color: var(--accent-ink); }
.nav__link.is-active::before {
    content: '[';
    margin-right: 2px;
    color: var(--accent-line);
}
.nav__link.is-active::after {
    content: ']';
    margin-left: 2px;
    color: var(--accent-line);
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
    display: none;
    width: 38px; height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    color: var(--heading);
}

.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover { color: var(--accent-ink); border-color: var(--accent); }

.theme-toggle .ico {
    grid-area: 1 / 1;
    width: 17px; height: 17px;
    transition: opacity .25s var(--ease), transform .3s var(--ease);
}

.theme-toggle__moon { opacity: 0; transform: scale(.6); }
.theme-toggle__sun  { opacity: 1; }

:root[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-toggle__sun  { opacity: 0; transform: scale(.6); }

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) .theme-toggle__moon { opacity: 1; transform: none; }
    :root:not([data-theme]) .theme-toggle__sun  { opacity: 0; transform: scale(.6); }
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: grid;
    align-content: start;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    background: var(--nav-bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-nav a {
    padding: 16px 2px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 19px;
    font-weight: 500;
    color: var(--text);
}
.mobile-nav a:hover, .mobile-nav a.is-active { color: var(--accent-ink); }
.mobile-nav .btn { margin-top: 22px; }

body.nav-open { overflow: hidden; }

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    z-index: 101;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width .1s linear;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(44px, 7vw, 84px));
    padding-bottom: clamp(52px, 7vw, 92px);
}

/* Os orbes do visual antigo não existem mais neste sistema */
.hero__orbs { display: none; }

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(34px, 4.5vw, 64px);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-soft);
}

.hero__kicker {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.hero__title {
    font-size: clamp(36px, 5.6vw, 62px);
    line-height: 1.02;
    letter-spacing: -.04em;
    margin-bottom: 6px;
}

.hero__rotator {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(17px, 2.2vw, 24px);
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--muted);
    margin: 16px 0 20px;
    min-height: 1.4em;
}

.hero__rotator::before {
    content: '$ ';
    color: var(--accent-line);
}

.hero__rotator b {
    font-weight: 500;
    color: var(--accent-ink);
}
.hero__rotator b::after { content: none; }

.caret {
    display: inline-block;
    width: 8px;
    height: 1.05em;
    margin-left: 2px;
    vertical-align: -.16em;
    background: var(--accent);
    animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__sub {
    font-size: clamp(15.5px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 54ch;
    margin-bottom: 30px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.hero__proof {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    padding-top: 0;
    border-top: 1px solid var(--border);
}

.hero__proof-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 18px 16px 0 0;
    border-right: 1px solid var(--border);
}
.hero__proof-item:last-child { border-right: 0; }
.hero__proof-item + .hero__proof-item { padding-left: 16px; }

.hero__proof-value {
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 700;
    color: var(--accent-ink);
    letter-spacing: -.02em;
}
.hero__proof-label {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   8. Painel do hero — terminal
   -------------------------------------------------------------------------- */
.hero__visual { position: relative; }

.panel {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-bg);
    overflow: hidden;
}
.panel::before { content: none; }

.panel__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
}
.panel__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.panel__dot:nth-child(1) { background: #FF5F56; }
.panel__dot:nth-child(2) { background: #E8B341; }
.panel__dot:nth-child(3) { background: var(--accent); }

.panel__title {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
}
.panel__live {
    width: 6px; height: 6px;
    background: var(--accent);
    animation: blip 1.6s steps(1) infinite;
}

.panel__body {
    position: relative;
    padding: 16px 18px 18px;
    display: grid;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    min-height: 344px;
    grid-template-rows: auto 1fr auto;
}

/* Linhas de log */
.term { display: grid; gap: 5px; }

.term__line {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    line-height: 1.5;
    color: var(--text-soft);
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.term__line.is-in { opacity: 1; transform: none; }

.term__prompt { color: var(--accent-ink); flex: none; }
.term__cmd    { color: var(--heading); font-weight: 500; }
.term__ok     { color: var(--accent-ink); flex: none; }
.term__dim    { color: var(--muted); }
.term__time {
    margin-left: auto;
    flex: none;
    color: var(--muted);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
}

.term__rule {
    height: 1px;
    background: var(--border);
    align-self: end;
}

/* Barras de medida dentro do terminal */
.term__meter { display: grid; gap: 6px; }
.term__meter-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.term__meter-top b {
    color: var(--accent-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.term__bar {
    height: 6px;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.term__bar i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width .7s var(--ease);
}

/* Componentes antigos do painel, mantidos em versão chapada */
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi {
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--field);
}
.kpi__label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    margin-bottom: 6px;
}
.kpi__value {
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 700;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
}
.kpi__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ok-ink);
}
.kpi__trend .ico { width: 12px; height: 12px; }

.float-card { display: none; }

/* --------------------------------------------------------------------------
   9. Marquee
   -------------------------------------------------------------------------- */
.marquee {
    position: relative;
    padding: 16px 0;
    border-block: 1px solid var(--border);
    background: var(--edge-tint);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: 0;
    animation: scroll 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    border-right: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    transition: color .2s var(--ease);
}
.marquee__item:hover { color: var(--accent-ink); }
.marquee__item i {
    width: 4px; height: 4px;
    background: var(--accent);
    opacity: .7;
}

/* --------------------------------------------------------------------------
   10. Números
   -------------------------------------------------------------------------- */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.metric {
    position: relative;
    padding: clamp(22px, 3vw, 32px) clamp(20px, 2.4vw, 26px);
    background: var(--surface);
    border-right: 1px solid var(--border);
    transition: background-color .2s var(--ease);
}
.metric:last-child { border-right: 0; }
.metric:hover { background: var(--surface-hover); }
.metric::after { content: none; }

.metric__value {
    display: flex;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--heading);
    font-variant-numeric: tabular-nums;
    margin-bottom: 7px;
}
.metric__affix { color: var(--accent-ink); }

.metric__label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. Cards de serviço
   -------------------------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(22px, 2.6vw, 30px);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background-color .2s var(--ease);
}
.card::before { content: none; }
.card:hover { background: var(--surface-hover); }

.card__icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--accent-ink);
    transition: border-color .2s var(--ease);
}
.card:hover .card__icon { border-color: var(--accent); }
.card__icon .ico { width: 20px; height: 20px; }

.card__title { font-size: 18px; font-weight: 600; }

.card__text {
    font-size: 14.5px;
    color: var(--muted);
    flex: 1;
}

.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.card__index {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ghost-ink);
}

/* --------------------------------------------------------------------------
   12. Processo
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 22px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    counter-increment: step;
    transition: background-color .2s var(--ease);
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--surface-hover); }

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 22px; right: 22px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ghost-ink);
}

.step__icon {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--accent-ink);
}
.step__icon .ico { width: 18px; height: 18px; }

.step h3 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Portfólio
   -------------------------------------------------------------------------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
}

.filter {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.filter:hover { color: var(--heading); border-color: var(--border-strong); }
.filter.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0A0C08;
    font-weight: 600;
}

.works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.work {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.work:hover { border-color: var(--accent-line); background: var(--surface-hover); }

/* Capa chapada com malha — sem foto, sem degradê colorido */
.work__cover {
    position: relative;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
}

/* "contain", não "cover": as capas aqui são logos, e cortar logo é pior
   do que sobrar fundo. A malha atrás faz o espaço parecer proposital. */
.work__cover img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 26px 30px;
    transition: opacity .3s var(--ease);
}
.work__cover::after { content: none; }

/* Malha também atrás da capa com imagem, para não ficar um vazio chapado */
.work__cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
    background-size: 26px 26px;
}

.work__art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.work__art::before { content: none; }
.work__monogram {
    position: relative;
    font-family: var(--font-mono);
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -.04em;
    color: var(--accent-ink);
    transition: none;
}
.work__monogram::before { content: '['; color: var(--ghost-ink); }
.work__monogram::after  { content: ']'; color: var(--ghost-ink); }
.work:hover .work__monogram { transform: none; }

.work__badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.work__year {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--muted);
}

.work__body {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px 20px 16px;
    flex: 1;
}

.work__client {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
}

.work__title { font-size: 18px; }

.work__text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    flex: 1;
}

.work__tags { display: flex; flex-wrap: wrap; gap: 5px; }

.work__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid var(--border);
}

/* O card inteiro abre o site do projeto; este botão precisa ficar por cima
   dessa camada para continuar levando ao estudo de caso. */
.work__caso {
    position: relative;
    z-index: 4;
    font-size: 13px;
}

.work__site {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--muted);
    transition: color .2s var(--ease);
}
.work__site .ico { width: 13px; height: 13px; }
.work:hover .work__site { color: var(--accent-ink); }

.work__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* Ficha técnica do projeto (lista chave → valor em mono) */
.specs {
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.specs div {
    display: flex;
    gap: 14px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12.5px;
}
.specs div:last-child { border-bottom: 0; }
.specs dt {
    flex: none;
    width: 34%;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11.5px;
}
.specs dd { margin: 0; color: var(--text); }

/* --------------------------------------------------------------------------
   14. Depoimentos
   -------------------------------------------------------------------------- */
.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quote {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 24px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    transition: background-color .2s var(--ease);
}
.quote:last-child { border-right: 0; }
.quote:hover { background: var(--surface-hover); }

.quote__mark { color: var(--accent-line); }
.quote__mark .ico { width: 24px; height: 24px; }

.quote__text {
    font-size: 15px;
    color: var(--text-soft);
    flex: 1;
    line-height: 1.65;
}

.quote__stars { display: flex; gap: 2px; color: var(--accent-ink); }
.quote__stars .ico { width: 13px; height: 13px; fill: currentColor; stroke: none; }

.quote__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    flex: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-ink);
    overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.quote__name {
    display: block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
}
.quote__role { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq {
    display: grid;
    gap: 0;
    max-width: 860px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq__item {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background-color .2s var(--ease);
}
.faq__item:last-child { border-bottom: 0; }
.faq__item.is-open { background: var(--surface-hover); }

.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 18px 22px;
    border: 0;
    background: none;
    text-align: left;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--heading); }
.faq__item.is-open .faq__q { color: var(--accent-ink); }

.faq__icon {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    flex: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent-ink);
    transition: transform .25s var(--ease), border-color .2s var(--ease);
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); border-color: var(--accent); }
.faq__icon .ico { width: 15px; height: 15px; }

.faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }
.faq__a p {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--muted);
    max-width: 68ch;
}

/* --------------------------------------------------------------------------
   16. Faixa de conversão
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    padding: clamp(36px, 5vw, 60px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    text-align: center;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-strong) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent, #000);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent, #000);
}

.cta-band > * { position: relative; }

.cta-band h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    margin-bottom: 14px;
}
.cta-band p {
    max-width: 56ch;
    margin: 0 auto 26px;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 16.5px);
}
.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   17. Páginas internas
   -------------------------------------------------------------------------- */
.page-head {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(36px, 5vw, 62px));
    padding-bottom: clamp(24px, 3.5vw, 40px);
    border-bottom: 1px solid var(--border);
}
.page-head::before { content: none; }
.page-head__inner { position: relative; max-width: 760px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 14px; }
.page-head p { font-size: clamp(15.5px, 1.6vw, 17.5px); color: var(--muted); max-width: 60ch; }

.crumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
}
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .ico { width: 12px; height: 12px; opacity: .45; }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.2em; font-size: 16px; color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--heading); font-weight: 600; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: clamp(30px, 4.5vw, 58px);
    align-items: start;
}

.aside-card {
    position: sticky;
    top: calc(var(--header-h) + 18px);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.aside-card h3 { font-size: 17px; margin-bottom: 8px; }
.aside-card p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.check-list { display: grid; gap: 10px; list-style: none; padding: 0; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-soft);
}
.check-list .ico {
    width: 17px; height: 17px;
    flex: none;
    margin-top: 3px;
    color: var(--accent-ink);
    background: none;
    border-radius: 0;
    padding: 0;
}

.side-nav { display: grid; gap: 1px; }
.side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-soft);
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.side-nav a:hover { background: var(--surface-hover); color: var(--accent-ink); }
.side-nav a .ico { width: 14px; height: 14px; opacity: 0; transition: opacity .2s var(--ease); }
.side-nav a:hover .ico { opacity: 1; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}
.gallery__item {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    background: var(--bg-elev);
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity .3s var(--ease);
}
.gallery__item:hover img { opacity: .82; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 5vh 5vw;
    background: rgba(4, 5, 5, .95);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), visibility .2s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
}
.lightbox__close {
    position: absolute;
    top: 20px; right: 20px;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.results {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--ok-border);
    border-radius: var(--radius);
    background: var(--ok-bg);
}
.results h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ok-ink);
    margin-bottom: 4px;
}
.results .ico { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   18. Formulários
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; }

.form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.field { display: grid; gap: 7px; }

.label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.label span { color: var(--accent-ink); }

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--field);
    color: var(--text);
    font-size: 15px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.input::placeholder { color: var(--placeholder); }
.input:hover { border-color: var(--border-strong); }
.input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--field-focus);
}
textarea.input { resize: vertical; min-height: 128px; line-height: 1.55; }

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236F756C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
select.input option { background: var(--bg-soft); color: var(--text); }

.field--error .input { border-color: var(--danger-ink); }
.field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--danger-ink);
}

.hint { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0;
    pointer-events: none;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.alert .ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert--error {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger-ink);
}
.alert--success {
    border-color: var(--ok-border);
    background: var(--ok-bg);
    color: var(--ok-ink);
}

/* --------------------------------------------------------------------------
   19. Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    margin-top: clamp(56px, 7vw, 92px);
    padding-top: clamp(44px, 5.5vw, 68px);
    border-top: 1px solid var(--border);
    background: var(--edge-tint);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(26px, 3.5vw, 48px);
    padding-bottom: 42px;
}

.footer__about { max-width: 34ch; }
.footer__about .brand { margin-bottom: 16px; }
.footer__about p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.footer h4 {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.footer__links { display: grid; gap: 10px; list-style: none; padding: 0; }
.footer__links a { font-size: 14px; color: var(--text-soft); }
.footer__links a:hover { color: var(--accent-ink); }

.socials { display: flex; gap: 6px; }
.socials a {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-soft);
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { color: var(--accent-ink); border-color: var(--accent); }
.socials .ico { width: 17px; height: 17px; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
}
.footer__bottom a:hover { color: var(--accent-ink); }

.fab-wa {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: var(--radius);
    border: 1px solid #1FA855;
    background: var(--bg);
    color: #3BC673;
    transition: background-color .2s var(--ease);
}
.fab-wa:hover { background: rgba(31, 168, 85, .14); }
.fab-wa .ico { width: 24px; height: 24px; }

.to-top {
    position: fixed;
    right: 20px; bottom: 78px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text-soft);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), visibility .25s, color .2s, border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--accent); color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   20. Estados de página
   -------------------------------------------------------------------------- */
.state {
    display: grid;
    place-items: center;
    min-height: 72vh;
    padding-top: var(--header-h);
    text-align: center;
}
.state__code {
    font-family: var(--font-mono);
    font-size: clamp(64px, 13vw, 132px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.05em;
    margin-bottom: 16px;
}
.state__icon {
    display: grid;
    place-items: center;
    width: 68px; height: 68px;
    margin: 0 auto 24px;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.state__icon .ico { width: 32px; height: 32px; stroke-width: 2; }
.state h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 12px; }
.state p { color: var(--muted); max-width: 48ch; margin: 0 auto 26px; }
.state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* --------------------------------------------------------------------------
   21. Animações de entrada
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal="left"]  { transform: translateX(-16px); }
[data-reveal="right"] { transform: translateX(16px); }
[data-reveal="scale"] { transform: none; }

/* --------------------------------------------------------------------------
   22. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { max-width: 560px; }
    .split { grid-template-columns: 1fr; }
    .aside-card { position: static; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__about { grid-column: 1 / -1; max-width: none; }
    .card, .metric, .step, .quote { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 860px) {
    :root { --gutter: 18px; }
    .nav, .header__actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .kpi-row { grid-template-columns: 1fr 1fr; }
    .hero__proof-item { border-right: 0; padding-left: 0 !important; }
}

@media (max-width: 560px) {
    body { font-size: 15.5px; }
    .hero__actions .btn { width: 100%; }
    .footer__grid { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .panel__body { min-height: 300px; font-size: 12px; }
    .fab-wa { width: 44px; height: 44px; right: 16px; bottom: 16px; }
    .to-top { right: 16px; bottom: 70px; }
    .specs div { flex-direction: column; gap: 3px; }
    .specs dt { width: auto; }
}

/* --------------------------------------------------------------------------
   23. Acessibilidade e impressão
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .marquee__track { animation: none; }
    .term__line { opacity: 1 !important; transform: none !important; }
}

@media print {
    body::before,
    .site-header, .fab-wa, .to-top, .mobile-nav, .scroll-progress { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; }
}
