/* =========================================
   TOKENS / BASE
========================================= */
:root {
    --bg: #0f2f54;
    --bg-2: #163d6d;
    --card: #0e2a4a;
    --border: #1f3f67;
    --text: #e9eef6;
    --muted: #b8c6da;
    --brand: #78b437;
    --brand-2: #60994f;
    --brand-3: #4c7f3e;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --header-bg: rgba(11, 15, 25, .7);
    --header-bg-scrolled: rgba(11, 15, 25, .82);
    --nav-link: #cfd6e6;
    --nav-link-hover: #fff;
    --nav-underline: var(--brand-2);
    --btn-bg: var(--card);
    --btn-text: #fff;
    --btn-border: var(--border);
    --btn-shadow: var(--shadow);
    --btn-ghost-bg: transparent;
    --btn-ghost-text: #fff;
    --btn-primary-bg: var(--brand);
    --btn-primary-fg: #fff;
    --input-bg: #0e1428;
    --input-text: #fff;
    --input-border: var(--border);
    --grad-1: #fff;
    --grad-2: var(--brand);
    --preloader-bg: #0a1f3a;
    --footer-bg-1: #0a0f1f;
    --footer-bg-2: #050810;
    --footer-divider: rgba(255, 255, 255, .06);
    --media-top: rgba(255, 255, 255, .04);
    --media-bottom: rgba(0, 0, 0, .06);
    --divider-soft: rgba(255, 255, 255, .18);
    --divider-strong: rgba(255, 255, 255, .32);
    --divider-glow: rgba(120, 180, 55, .14);
    --scene-padding-top: 58px;
    --scene-padding-bottom: 48px;
}

:root[data-theme="light"] {
    --bg: #f7fafc;
    --bg-2: #fff;
    --card: #fff;
    --border: #e4e9f1;
    --text: #1f4f7c;
    --muted: #6c7f94;
    --brand: #7aba3c;
    --brand-2: #5ea12d;
    --brand-3: #3f7e1f;
    --shadow: 0 8px 24px rgba(17, 24, 39, .08);
    --header-bg: rgba(255, 255, 255, .85);
    --header-bg-scrolled: rgba(255, 255, 255, .92);
    --nav-link: #3b5068;
    --nav-link-hover: #0f2f54;
    --btn-bg: var(--card);
    --btn-text: var(--text);
    --btn-border: var(--border);
    --btn-ghost-text: var(--text);
    --btn-primary-bg: var(--brand);
    --btn-primary-fg: #fff;
    --input-bg: #fff;
    --input-text: var(--text);
    --input-border: var(--border);
    --grad-1: #0f2f54;
    --grad-2: var(--brand);
    --preloader-bg: #f1f5f9;
    --footer-bg-1: #fff;
    --footer-bg-2: #f6f9fc;
    --footer-divider: #e9eef5;
    --media-top: rgba(0, 0, 0, .02);
    --media-bottom: rgba(0, 0, 0, .05);
    --divider-soft: rgba(122, 186, 60, .25);
    --divider-strong: rgba(122, 186, 60, .45);
    --divider-glow: rgba(122, 186, 60, .22);
}

/* 
@media (max-width:505px) {

    :root,
    :root[data-theme="light"] {
        --scene-padding-bottom: 48px;
    }
}

@media (max-width:467px) {

    :root,
    :root[data-theme="light"] {
        --scene-padding-bottom: 102px;
    }
} */

@media (max-width:429px) {

    :root,
    :root[data-theme="light"] {
        --scene-padding-bottom: 53px;
    }
}

@media (max-width:396px) {

    :root,
    :root[data-theme="light"] {
        --scene-padding-bottom: 70px;
    }
}

/* =========================================
   RESET / BASE
========================================= */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100dvh;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden !important;
}

/* =========================================
   LAYOUT UTILITÁRIO
========================================= */
.section {
    height: 100%;
    display: grid;
    place-items: center;
    padding-top: var(--scene-padding-top);
    padding-bottom: var(--scene-padding-bottom);
}


/* =========================================
   PRELOADER
========================================= */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--preloader-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .35s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: var(--brand);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}



/* =========================================
   LINKS / BOTÕES
========================================= */
a {
    color: var(--brand);
    text-decoration: none;
}

a:not(.btn):hover {
    color: var(--brand-2);
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: var(--btn-shadow);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

.btn--primary {
    background: var(--btn-primary-bg);
    border-color: transparent;
    color: var(--btn-primary-fg);
}

.btn--primary:hover {
    background: var(--brand-2);
}

.btn--primary:active {
    background: var(--brand-3);
    transform: translateY(0);
}

.btn--shine {
    position: relative;
    overflow: hidden;
}

.btn--shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transition: left .4s ease;
}

.btn--shine:hover::after {
    left: 120%;
}

/* =========================================
   HEADER / NAV (mantido)
========================================= */
.site-header {
    position: fixed;
    top: 0;
    z-index: 999;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
    background: var(--header-bg-scrolled);
}

.header-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    width: 100vw;
}

.brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    color: var(--text);
}

.brand-logo {
    width: 120px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    color: var(--nav-link);
    position: relative;
}

.nav a:hover {
    color: var(--nav-link-hover);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: var(--nav-underline);
    transition: width .25s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--nav-link-hover);
    margin: 5px 0;
    border-radius: 5px;
}

@media (max-width:880px) {
    .nav {
        position: fixed;
        inset: 60px 16px auto 16px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        display: none;
        flex-direction: column;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}

@media (max-width:236px) {
    .header-wrap {
        justify-content: center;
        gap: .4rem;
    }

    .nav {
        inset: 80px 16px auto 16px;
    }
}

/* =========================================
   FOOTER / HINT
========================================= */
.copy {
    width: 100vw;
    padding: 0 1rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    align-items: center;
    background: linear-gradient(180deg, var(--footer-bg-1), var(--footer-bg-2));
    border-top: 1px solid var(--footer-divider);
    backdrop-filter: blur(10px);
    z-index: 998;
    min-height: 48px;
}

.copy .hint {
    width: 100vw;
    bottom: calc(48px + 8px);
    /* manter como está no seu layout */
    text-align: center;
    background: linear-gradient(180deg, var(--footer-bg-1), var(--footer-bg-2));
    backdrop-filter: blur(10px);
    z-index: 999;
    color: var(--muted);
    font-size: 10px;
}


/* =========================================
   COPYRIGHT: imagem como “palavra”
========================================= */
.copy small {
    display: block;
    /* fluxo normal de texto */
    white-space: normal;
    /* permite quebra natural */
    line-height: 1.25;
    /* altura da linha estável */
}

.copy small img {
    height: 1.2em;
    /* tamanho tipográfico */
    width: auto;
    display: inline;
    /* comportamento inline */
    vertical-align: -0.15em;
    /* microajuste ótico; ajuste se quiser */
}


/* =========================================
   TÍTULOS REUTILIZÁVEIS
========================================= */
.section-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(26px, 5vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    margin: 0 auto 24px;
    max-width: 820px;
    text-align: center;
    color: var(--muted);
    font-size: clamp(14px, 2.2vw, 18px);
}

/* =========================================
   SCENE (base – sem 3D aqui)
========================================= */
.scene {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.scene {
  touch-action: none; /* impede o pan padrão aqui */
}

/* Áreas roláveis internas continuam com pan vertical nativo */
.scene > section .wrap,
.scene > section .scroll-area {
  touch-action: pan-y;              /* permite rolagem vertical */
  overscroll-behavior-y: contain;   /* evita bounce/encadeamento */
  -webkit-overflow-scrolling: touch;
}

/* =========================================
   SECTIONS
   (1) HERO
========================================= */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.3;
}


#hero .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

#hero .hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
    padding: 24px;
}

#hero .chip {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--divider-soft);
    background: rgba(255, 255, 255, .04);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .2px;
}

#hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(40px, 8vw, 58px);
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#hero h1 span {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#hero p {
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--muted);
    font-size: clamp(16px, 2.2vw, 20px);
}

#hero .cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* =========================================
   (2) SERVIÇOS
========================================= */

#servicos .wrap {
    width: min(1420px, 92vw);
    margin: 0 auto;
}

#servicos .grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width:1024px) {
    #servicos .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:640px) {
    #servicos .grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 120px;
}

.service-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    color: var(--text);
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   (3) COMPARATIVO
========================================= */

#compare .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width:900px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
}

.comp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: grid;
    gap: 12px;
}

.comp-card__head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.comp-card--with .comp-card__head h3 {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.comp-card--without .comp-card__head h3 {
    color: var(--muted);
}

.comp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.comp-list li {
    position: relative;
    padding-left: 28px;
    line-height: 1.4;
}

.comp-list--with li::before,
.comp-list--without li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.comp-list--with li::before {
    content: "✓";
    color: #0b2810;
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    border: 1px solid rgba(0, 0, 0, .1);
}

.comp-list--without li::before {
    content: "✕";
    color: #2b0d0b;
    background: linear-gradient(180deg, #ffb4aa, #ff8a80);
    border: 1px solid rgba(0, 0, 0, .1);
}

.comp-card--with {
    box-shadow: 0 12px 28px rgba(64, 160, 64, .15);
    border-color: var(--divider-glow);
}

.comp-card--without {
    box-shadow: 0 12px 28px rgba(225, 82, 65, .10);
    border-color: rgba(225, 82, 65, .25);
}

/* =========================================
   (3) CUSTOMIZAVEL
========================================= */
#customizavel .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.customizavel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width:900px) {
    .customizavel-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   (4) HÍBRIDO (Desktop ou Web)
========================================= */

#hibrido .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

#hibrido .section-title {
    margin: 0 0 8px;
}

#hibrido .section-subtitle {
    margin: 0 auto 24px;
    max-width: 880px;
}

.hibrido-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width:900px) {
    .hibrido-grid {
        grid-template-columns: 1fr;
    }
}

.hibrido-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.hibrido-card__head {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "ico title" "badges badges";
    column-gap: 10px;
    row-gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.hibrido-ico {
    grid-area: ico;
    font-size: 22px;
}

.hibrido-card__head h3 {
    grid-area: title;
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
}

.hibrido-badges {
    grid-area: badges;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hibrido-card--web h3 {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hibrido-card--desktop h3 {
    color: var(--text);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 1px solid var(--border);
    background: #f7f8fb;
    color: #3a3f4b;
}

.pill--net {
    background: #fff7e6;
    border-color: #ffe3ad;
    color: #9a6400;
}

.pill--local {
    background: #eaf6e1;
    border-color: rgba(122, 186, 60, .45);
    color: #1f5e1d;
}

.pill--offline {
    background: #f1f2f5;
    border-color: #e3e5ea;
    color: #5b5f6b;
}

.pill--any {
    background: #eef2ff;
    border-color: #d9e0ff;
    color: #3846a0;
}

.hibrido-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.hibrido-list li {
    position: relative;
    padding-left: 34px;
    line-height: 1.45;
}

.hibrido-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #1f5e1d;
    background: #eaf6e1;
    border: 1px solid rgba(122, 186, 60, .45);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06) inset;
}

.hibrido-list--shield li::before {
    content: "🛡️";
    color: #24425e;
    background: #e7f0fb;
    border: 1px solid rgba(40, 110, 180, .35);
}

.hibrido-note {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
}

/* =========================================
   (5) INTEGRAÇÕES
========================================= */
#integracoes .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.integracoes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width:1024px) {
    .integracoes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:680px) {
    .integracoes-grid {
        grid-template-columns: 1fr;
    }
}

.integration-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.integration-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.integration-logo {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--int-accent-1, var(--grad-1)), var(--int-accent-2, var(--grad-2)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.integration-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, .04);
}

.integration-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.integration-list li {
    position: relative;
    padding-left: 34px;
    line-height: 1.45;
}

.integration-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #1f5e1d;
    background: #eaf6e1;
    border: 1px solid rgba(122, 186, 60, .45);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06) inset;
}

.int--memed {
    --int-accent-1: #14b8a6;
    --int-accent-2: #0ea5e9;
    border-color: rgba(20, 184, 166, .35);
    box-shadow: 0 6px 18px rgba(20, 184, 166, .10), 0 1px 0 rgba(20, 184, 166, .20) inset;
}

.int--tiss {
    --int-accent-1: #60a5fa;
    --int-accent-2: #2563eb;
    border-color: rgba(37, 99, 235, .30);
    box-shadow: 0 6px 18px rgba(37, 99, 235, .10), 0 1px 0 rgba(37, 99, 235, .18) inset;
}

.int--dmed {
    --int-accent-1: #a855f7;
    --int-accent-2: #6366f1;
    border-color: rgba(99, 102, 241, .30);
    box-shadow: 0 6px 18px rgba(99, 102, 241, .10), 0 1px 0 rgba(99, 102, 241, .18) inset;
}

/* =========================================
   (6) CONTATO
========================================= */

#contato .wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

.contato-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.contato-card--mapa {
    padding: 16px;
    height: 100%;
}

.map-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px #eaeaea;
    background: #f2f4f7;
    margin-bottom: 16px;
}

.map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contato-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.contato-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .975rem;
}

.contato-info a {
    text-decoration: none;
    word-break: break-word;
}

.contato-info a:hover {
    text-decoration: underline;
}

.ci-ico {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
}

.contato-form {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.form-row label {
    font-size: .9rem;
    color: #3b3b3b;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--muted);
}



.form-actions {
    margin-top: 4px;
}

@media (max-width:980px) {
    .contato-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion:reduce) {

    .form-row input:focus,
    .form-row textarea:focus {
        box-shadow: none;
    }
}

/* =========================================
   ======== 3D STACK / FULLSCREEN NAV ========
   (coloque no final; remova blocos antigos duplicados)
========================================= */

/* bloqueia rolagem vertical */
html.no-scroll,
html.no-scroll body {
    height: 100%;
    overflow: hidden !important;
}

/* palco 3D */
.scene {
    perspective: 1200px;
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

/* cada section vira um slide fullscreen */
.scene>section {
    position: absolute;
    inset: 0;
    padding-top: var(--scene-padding-top);
    padding-bottom: var(--scene-padding-bottom);
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
    /* evita “vazar” conteúdo por baixo */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(220px) scale(1.06);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition:
        transform .70s cubic-bezier(.2, .7, .1, 1),
        opacity .55s ease-out,
        visibility 0s linear .55s;
}

/* estados visíveis durante transição/ativo */
.scene>section.is-active,
.scene>section.from-next,
.scene>section.from-prev,
.scene>section.to-next,
.scene>section.to-prev {
    visibility: visible;
    transition-delay: 0s, 0s, 0s;
}

/* ativo no plano */
.scene>section.is-active {
    opacity: 1;
    transform: translateZ(0) scale(1);
    pointer-events: auto;
    z-index: 3;
}

/* saída */
.scene>section.to-next,
.scene>section.to-prev {
    opacity: 0;
    z-index: 2;
}

/* entrada direcional */
.scene>section.from-next {
    opacity: .001;
    transform: translateZ(220px) scale(1.06);
    z-index: 2;
}

.scene>section.from-prev {
    opacity: .001;
    transform: translateZ(-220px) scale(0.92);
    z-index: 2;
}

/* passivos */
.scene>section.is-prev,
.scene>section.is-next {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
}

/* acessibilidade */
@media (prefers-reduced-motion:reduce) {

    .scene>section,
    .scene>section.is-active,
    .scene>section.from-next,
    .scene>section.from-prev,
    .scene>section.to-next,
    .scene>section.to-prev {
        transition: opacity .25s ease !important;
        transform: none !important;
    }
}

/* dots laterais */
.dots {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: auto;
}

.dots .dot {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* remove highlight no mobile */
}

/* hover só em dispositivos que suportam hover (desktop) */
@media (hover: hover) {
    .dots .dot:hover {
        transform: scale(1.25);
        box-shadow: 0 0 0 6px rgba(122, 186, 60, .18);
    }
}

/* foco visível (ex: teclado) */
.dots .dot:focus-visible {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(122, 186, 60, .18);
    outline: none;
}

/* neutraliza foco não-visível (mobile touch) */
.dots .dot:focus:not(:focus-visible) {
    transform: none;
    box-shadow: none;
    outline: none;
}

.dots .dot.is-active {
    background: var(--brand);
    transform: scale(1.35);
    box-shadow: 0 0 0 6px rgba(122, 186, 60, .22), 0 2px 10px rgba(0, 0, 0, .25);
}

@media (max-width:420px) {
    .dots {
        right: 12px;
        gap: 8px;
    }
}


/* cada section vira um slide fullscreen */
.scene>section {
    position: absolute;
    inset: 0;
    padding-top: var(--scene-padding-top);
    padding-bottom: var(--scene-padding-bottom);
    /* antes tinha 'background: linear-gradient(...)' aqui -> removido */
    background-color: var(--bg);
    /* cor base para bloquear vazamento sem tirar bg-image do hero */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 0;
    transform: translateZ(220px) scale(1.06);
    will-change: transform, opacity;
    backface-visibility: hidden;
    transition:
        transform .70s cubic-bezier(.2, .7, .1, 1),
        opacity .55s ease-out,
        visibility 0s linear .55s;
}

/* ===== Scroll interno por section ===== */
.scene>section .wrap {
    /* ocupa a altura visível descontando os paddings da cena */
    max-height: calc(97dvh - var(--scene-padding-top) - var(--scene-padding-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    /* evita bounce encadeado */
    -webkit-overflow-scrolling: touch;
    /* suaviza no iOS */
    padding: 10px 0;
}

/* (Opcional) se alguma section precisar de um contêiner específico: 
   crie .scroll-area dentro da section e use o mesmo estilo */
.scene>section .scroll-area {
    max-height: calc(100dvh - var(--scene-padding-top) - var(--scene-padding-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ===== Scrollbar verde ultra-clarinho e estável ===== */
:root {
    --scroll-track: transparent;
    --scroll-thumb: rgba(120, 180, 55, .10);
    /* muuuito claro */
}

:root[data-theme="light"] {
    --scroll-track: transparent;
    --scroll-thumb: rgba(96, 153, 79, .12);
    /* leve contraste no claro */
}

/* Alvo: áreas roláveis das sections */
.scene>section .wrap,
.scene>section .scroll-area {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: var(--scroll-thumb) var(--scroll-track);
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

/* WebKit (Chrome/Edge/Safari) */
.scene>section .wrap::-webkit-scrollbar,
.scene>section .scroll-area::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scene>section .wrap::-webkit-scrollbar-track,
.scene>section .scroll-area::-webkit-scrollbar-track {
    background: var(--scroll-track);
}

.scene>section .wrap::-webkit-scrollbar-thumb,
.scene>section .scroll-area::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    /* deixa mais “fino” visualmente */
    background-clip: padding-box;
    box-shadow: none;
    transition: none;
    /* sem transições visuais */
}

/* Importante: não mude cor no hover/active (mantém imperceptível) */
.scene>section .wrap::-webkit-scrollbar-thumb:hover,
.scene>section .scroll-area::-webkit-scrollbar-thumb:hover,
.scene>section .wrap::-webkit-scrollbar-thumb:active,
.scene>section .scroll-area::-webkit-scrollbar-thumb:active {
    background-color: var(--scroll-thumb);
}

/*
====================================================
  RECAPTCHA
====================================================
*/
.grecaptcha-badge{
    z-index: 999;
}



/*
====================================================
  ERROR PAGE
====================================================
*/
.error-hero {
    padding: clamp(56px, 8vw, 96px) 0;
    display: flex;
    justify-content: center;

    opacity: 1 !important;
    transform: translateZ(0) scale(1) !important;
    pointer-events: auto !important;
    z-index: 3 !important;
    visibility: visible !important;
    transition-delay: 0s, 0s, 0s !important;
}

.error-wrap {
    display: grid;
    place-items: center;
}

.error-card {
    width: min(760px, 92vw);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(var(--card-rgb, 15, 26, 51), .16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    padding: clamp(18px, 3.2vw, 28px);
    text-align: center;
}

.error-brand {
    display: grid;
    place-items: center;
    gap: 12px;
    margin-bottom: clamp(10px, 2.4vw, 18px);
}

.error-brand img {
    width: min(220px, 60%);
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .25));
}

.error-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: clamp(12px, 2vw, 18px) 0;
    font-size: clamp(20px, 3.4vw, 28px);
    line-height: 1.2;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-title .ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--media-top), transparent);
    color: var(--brand);
    font-size: 18px;
}

.error-copy {
    color: var(--muted);
    font-size: clamp(14px, 2.4vw, 17px);
    margin: 8px 0 0;
}

.error-divider {
    width: 120px;
    height: 1px;
    margin: clamp(12px, 2.4vw, 16px) auto;
    background: linear-gradient(90deg, transparent, var(--divider-soft), transparent);
    box-shadow: 0 0 0 1px var(--divider-glow) inset;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: clamp(12px, 2.4vw, 18px);
}