/* ============================================================
   JCLA — Design System
   Conceito: "o terminal e a diretoria"
   Navy profundo, fios de 1px, rótulos monoespaçados,
   verde como único acento.
   ============================================================ */

:root {
    /* Superfícies */
    --navy-950: #060D18;
    --navy-900: #0A1628;
    --navy-800: #0E1B30;
    --navy-700: #13233C;
    --navy-600: #1B2E4B;

    /* Fundo das seções escuras. Translúcido de propósito: é por aqui
       que a cena tridimensional aparece, sem competir com o texto. */
    --secao-escura: rgba(6, 13, 24, 0.82);

    /* Linhas e traços */
    --line:        rgba(143, 163, 191, 0.14);
    --line-strong: rgba(143, 163, 191, 0.26);

    /* Acentos */
    --green:      #00D97E;
    --green-soft: rgba(0, 217, 126, 0.12);
    --green-line: rgba(0, 217, 126, 0.32);
    --blue:       #3B82F6;
    --blue-soft:  rgba(59, 130, 246, 0.12);

    /* Texto */
    --text:  #E9EFF8;
    --muted: #93A6C2;
    --dim:   #61779A;

    /* Tipografia */
    --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --fs-display: clamp(2.5rem, 5.4vw, 4.65rem);
    --fs-h2:      clamp(1.9rem, 3.4vw, 2.9rem);
    --fs-h3:      1.3125rem;
    --fs-body:    1.0625rem;
    --fs-sm:      0.9375rem;
    --fs-mono:    0.75rem;

    /* Ritmo */
    --gut: clamp(1.5rem, 5vw, 4.5rem);
    --section-y: clamp(5rem, 11vw, 9rem);
    --maxw: 1240px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: var(--fs-body);
    line-height: 1.62;
    color: var(--text);
    background: var(--navy-900);
    position: relative;
    z-index: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.026em;
}

p { margin: 0; }
a { color: inherit; }

::selection { background: var(--green); color: var(--navy-950); }

/* ---------- Utilitários ---------- */

.wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gut);
}

/* Rótulo monoespaçado numerado — a assinatura da página */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
}
.eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.eyebrow .idx { color: var(--green); }

.lede {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.66;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Fundo com textura de grade de dados — deriva lenta */
.grid-bg {
    position: absolute;
    inset: -80px;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 72%);
    opacity: 0.6;
    pointer-events: none;
    animation: grid-drift 32s linear infinite;
}
@keyframes grid-drift {
    from { background-position: 0 0; }
    to   { background-position: 76px 76px; }
}

/* Auroras — dois halos que respiram atrás do conteúdo */
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    will-change: transform, opacity;
}
.aurora.a1 {
    width: 46vw; height: 46vw;
    max-width: 700px; max-height: 700px;
    top: -14%; left: 4%;
    background: radial-gradient(circle, rgba(0, 217, 126, 0.20) 0%, transparent 68%);
    animation: drift-a 19s ease-in-out infinite alternate;
}
.aurora.a2 {
    width: 40vw; height: 40vw;
    max-width: 620px; max-height: 620px;
    top: 12%; right: -6%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 68%);
    animation: drift-b 24s ease-in-out infinite alternate;
}
@keyframes drift-a {
    from { transform: translate3d(0, 0, 0) scale(1);      opacity: .75; }
    to   { transform: translate3d(7vw, 5vh, 0) scale(1.16); opacity: 1; }
}
@keyframes drift-b {
    from { transform: translate3d(0, 0, 0) scale(1.1);      opacity: .6; }
    to   { transform: translate3d(-6vw, 7vh, 0) scale(0.92); opacity: .95; }
}

/* Holofote que segue o cursor */
.spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s var(--ease);
    background: radial-gradient(
        420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(0, 217, 126, 0.10) 0%,
        transparent 62%
    );
}
.hero:hover .spotlight { opacity: 1; }

/* Barra de progresso da rolagem */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--green), #3B82F6);
    z-index: 200;
    pointer-events: none;
}

/* ---------- Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    font-family: var(--sans);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color .22s var(--ease), border-color .22s var(--ease),
                color .22s var(--ease), transform .22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--green);
    color: #04231A;
}
.btn-primary:hover { background: #23E894; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    border-color: var(--green-line);
    color: var(--green);
}

.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.875rem; }

.btn .arrow { transition: transform .22s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 40, 0.78);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(8, 18, 33, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 68px;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.94;
    transition: opacity .22s var(--ease);
}
.logo:hover { opacity: 1; }

.nav {
    display: flex;
    gap: 1.9rem;
    margin-left: auto;
}
.nav a {
    font-size: var(--fs-sm);
    color: var(--muted);
    text-decoration: none;
    transition: color .2s var(--ease);
}
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.08em;
    padding: 0.5rem 1.9rem 0.5rem 0.7rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2393A6C2' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang:hover { border-color: var(--line-strong); color: var(--text); }
.lang option { background: var(--navy-800); color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    width: 120vw;
    height: 80vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 217, 126, 0.07) 0%, transparent 62%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-copy { max-width: 34rem; }

.hero h1 {
    font-size: var(--fs-display);
    margin-block: 1.6rem 1.5rem;
    letter-spacing: -0.038em;
}
.hero h1 .accent {
    color: var(--green);
    position: relative;
    white-space: nowrap;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.2rem;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.6rem;
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.06em;
    color: var(--dim);
}
.pulse-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(0, 217, 126, 0.5);
    animation: pulse-ring 2.6s infinite;
    flex-shrink: 0;
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(0, 217, 126, 0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(0, 217, 126, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 217, 126, 0); }
}

/* ============================================================
   MOCKUP DO PRODUTO
   Reprodução em HTML/CSS da interface do JCLA.
   Dados fictícios (Aurora Distribuidora) — trocar por
   captura real quando houver ambiente de demonstração.
   ============================================================ */

.mock-stage { position: relative; perspective: 1600px; }

.mockup {
    position: relative;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #F7F9FC;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .35s var(--ease);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 32px 70px -22px rgba(0, 0, 0, 0.7),
        0 0 44px -10px rgba(0, 217, 126, 0.22),
        0 0 0 1px rgba(0, 217, 126, 0.1);
}

/* Reflexo do mockup no "chão" */
.mock-reflection {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 100%;
    height: 90px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(0, 217, 126, 0.16), transparent 70%);
    filter: blur(18px);
    opacity: 0.65;
    pointer-events: none;
}

/* Varredura de luz atravessando o mockup */
.mockup::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%);
    transform: translateX(-120%);
    pointer-events: none;
    animation: sweep 7s var(--ease) 4.6s infinite;
}
@keyframes sweep {
    0%        { transform: translateX(-120%); }
    22%, 100% { transform: translateX(120%); }
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #EDF1F7;
    border-bottom: 1px solid #DCE3EE;
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E3; }
.mock-title {
    margin-left: 0.6rem;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    color: #7A8CA5;
}
.mock-badge {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #1D4ED8;
    background: #DDE8FE;
    padding: 2px 7px;
    border-radius: 3px;
}

.mock-body { display: flex; min-height: 400px; }

/* Trilho lateral — espelha a sidebar real do app */
.mock-rail {
    width: 46px;
    flex-shrink: 0;
    background: #FFFFFF;
    border-right: 1px solid #E4EAF3;
    padding: 0.7rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}
.rail-logo {
    width: 24px; height: 24px;
    border-radius: 6px;
    background: linear-gradient(140deg, #2563EB, #1E40AF);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.35rem;
}
.rail-item {
    width: 24px; height: 24px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: #94A3B8;
}
.rail-item.on { background: #E6EEFD; color: #2563EB; }
.rail-item svg { width: 13px; height: 13px; }

.mock-main {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Pergunta do usuário */
.mock-q {
    align-self: flex-end;
    max-width: 84%;
    background: #DDE8FE;
    color: #12315E;
    font-size: 12.5px;
    line-height: 1.45;
    padding: 0.5rem 0.8rem;
    border-radius: 12px 12px 3px 12px;
}
.mock-q .caret {
    display: inline-block;
    width: 1.5px;
    height: 0.92em;
    background: #2563EB;
    vertical-align: -2px;
    margin-left: 1px;
    animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Resposta */
.mock-a { min-width: 0; }

.mock-a-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 13px;
    font-weight: 600;
    color: #0B1F3A;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}
.mock-a-head svg { width: 14px; height: 14px; color: #2563EB; flex-shrink: 0; }

.mock-insight {
    display: flex;
    gap: 0.45rem;
    font-size: 11.5px;
    line-height: 1.5;
    color: #45566E;
    margin-bottom: 0.28rem;
}
.mock-insight b { color: #0B1F3A; font-weight: 600; }
.mock-insight .up { color: #067A4B; font-weight: 600; }
.mock-insight::before {
    content: '';
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #B6C2D4;
    margin-top: 0.55em;
    flex-shrink: 0;
}

/* Gráfico de barras */
.mock-chart {
    margin-top: 0.7rem;
    padding: 0.75rem 0.7rem 0.4rem;
    background: #FFFFFF;
    border: 1px solid #E4EAF3;
    border-radius: 8px;
}
.chart-plot {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 92px;
}
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.chart-bar {
    width: 100%;
    border-radius: 2px 2px 0 0;
    background: linear-gradient(180deg, #60A5FA, #2563EB);
    height: 0;
    transition: height 0.85s var(--ease);
}
.chart-col.peak .chart-bar { background: linear-gradient(180deg, #00E88A, #00A85F); }
.chart-x {
    display: flex;
    gap: 4px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #EDF1F7;
}
.chart-x span {
    flex: 1;
    text-align: center;
    font-family: var(--mono);
    font-size: 7.5px;
    letter-spacing: 0.02em;
    color: #9AA9BE;
}

/* Barra de ações — os botões reais do app */
.mock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0.7rem;
}
.mock-actions span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    color: #5B6C85;
    border: 1px solid #DDE4EE;
    border-radius: 4px;
    padding: 3px 7px;
    background: #FBFCFE;
}
.mock-actions span.solid {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}

/* Estados da animação */
.mock-a, .mock-thinking { opacity: 0; }
.mock-thinking {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: #8494AC;
}
.mock-thinking i {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #2563EB;
    display: inline-block;
    animation: bounce 1.3s infinite;
}
.mock-thinking i:nth-child(2) { animation-delay: .16s; }
.mock-thinking i:nth-child(3) { animation-delay: .32s; }
@keyframes bounce {
    0%, 65%, 100% { transform: translateY(0); opacity: .45; }
    32%           { transform: translateY(-4px); opacity: 1; }
}

.mockup.playing .mock-thinking { animation: flash 1.5s var(--ease) 1.9s both; }
.mockup.playing .mock-a        { animation: rise .6s var(--ease) 3.3s both; }
@keyframes flash {
    0%   { opacity: 0; }
    18%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { opacity: 0; height: 0; margin: 0; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: none; }
}

/* Etiqueta de dados fictícios — honestidade com o visitante */
.mock-caption {
    margin-top: 0.85rem;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--dim);
    text-align: center;
}

/* ============================================================
   FAIXA DE CAPACIDADES
   ============================================================ */

.strip {
    border-block: 1px solid var(--line);
    background: var(--navy-950);
}
.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.strip-item {
    padding: 1.6rem var(--gut);
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.strip-item:first-child { border-left: 0; }
.strip-item svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }
.strip-item span {
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.35;
}

/* ============================================================
   SEÇÕES
   ============================================================ */

section[id] { scroll-margin-top: 80px; }

.sec { padding-block: var(--section-y); }
.sec-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head h2 { font-size: var(--fs-h2); margin-block: 1.4rem 1.15rem; }

/* ---------- 01 · Problema: antes / depois ---------- */

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.compare-col { background: var(--navy-800); padding: clamp(1.6rem, 3vw, 2.4rem); }
.compare-col.now { background: var(--navy-950); }

.compare-tag {
    font-family: var(--mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    padding-bottom: 1.15rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.compare-col.jcla .compare-tag { color: var(--green); border-bottom-color: var(--green-line); }

.compare-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.compare-list li {
    display: flex;
    gap: 0.85rem;
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--muted);
}
.compare-col.jcla .compare-list li { color: var(--text); }
.compare-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.24em; }
.compare-col.now svg  { color: #6B7C96; }
.compare-col.jcla svg { color: var(--green); }

/* ---------- 02 · Como funciona ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.step {
    background: var(--navy-900);
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 2.4vw, 2rem);
    position: relative;
    transition: background-color .3s var(--ease);
}
.step:hover { background: var(--navy-800); }

/* Fio de luz que corre no topo dos cards ao passar o mouse */
.step::before, .feat::before, .auto::before, .ben::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    transform: scaleX(0);
    transition: transform .55s var(--ease);
    pointer-events: none;
}
.step:hover::before, .feat:hover::before,
.auto:hover::before, .ben:hover::before { transform: scaleX(1); }
.feat, .auto, .ben { position: relative; }
.step-n {
    font-family: var(--mono);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--navy-600);
    letter-spacing: -0.04em;
    transition: color .3s var(--ease);
}
.step:hover .step-n { color: var(--green); }
.step h3 { font-size: var(--fs-h3); margin-block: 1.5rem 0.8rem; }
.step p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.step .snippet {
    display: block;
    margin-top: 1.15rem;
    padding: 0.7rem 0.85rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--green);
    background: var(--navy-950);
    border: 1px solid var(--line);
    border-left: 2px solid var(--green);
    border-radius: 0 5px 5px 0;
    overflow-x: auto;
    white-space: pre;
}

/* ---------- 03 · Recursos ---------- */

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.feat {
    background: var(--navy-900);
    padding: clamp(1.9rem, 3.2vw, 2.75rem);
    position: relative;
    transition: background-color .3s var(--ease);
}
.feat:hover { background: var(--navy-800); }
.feat-icon {
    width: 40px; height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: var(--green);
    margin-bottom: 1.5rem;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.feat:hover .feat-icon { border-color: var(--green-line); background: var(--green-soft); }
.feat-icon svg { width: 19px; height: 19px; }
.feat h3 { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.feat p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }

/* O selo "Em breve" saiu junto com o card de previsão: nada na
   página promete recurso futuro. */

/* ---------- 04 · Automações ---------- */

.autos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.auto {
    background: var(--navy-800);
    padding: clamp(1.6rem, 2.8vw, 2.25rem);
    display: flex;
    flex-direction: column;
    transition: background-color .3s var(--ease);
}
.auto:hover { background: var(--navy-700); }
.auto-tag {
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 1.15rem;
}
.auto h3 { font-size: 1.1875rem; margin-bottom: 0.7rem; }
.auto p { font-size: 0.9375rem; color: var(--muted); line-height: 1.6; }
.auto-eg {
    margin-top: auto;
    padding-top: 1.35rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text);
}
.auto-eg::before {
    content: '›';
    color: var(--green);
    font-weight: 600;
    line-height: 1.3;
}

/* Destaque do comportamento anti-spam */
.callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.1rem, 2.4vw, 2rem);
    align-items: start;
    margin-top: 1.5rem;
    padding: clamp(1.5rem, 2.8vw, 2.1rem);
    background: var(--navy-800);
    border: 1px solid var(--green-line);
    border-radius: 12px;
}
.callout-icon {
    width: 38px; height: 38px;
    border-radius: 9px;
    background: var(--green-soft);
    border: 1px solid var(--green-line);
    display: grid;
    place-items: center;
    color: var(--green);
}
.callout-icon svg { width: 18px; height: 18px; }
.callout h4 { font-size: 1.0625rem; margin-bottom: 0.5rem; }
.callout p { font-size: 0.9375rem; color: var(--muted); line-height: 1.62; max-width: 78ch; }

/* ---------- 05 · Perguntas reais ---------- */

.asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.ask {
    background: var(--navy-800);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.5rem 1.4rem;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ask:hover { border-color: var(--green-line); transform: translateY(-3px); }
.ask-dept {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 1rem;
}
.ask-q {
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--text);
    padding-bottom: 1.1rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px dashed var(--line-strong);
}
.ask-q::before { content: '“'; color: var(--green); margin-right: 1px; }
.ask-q::after  { content: '”'; color: var(--green); margin-left: 1px; }
.ask-a {
    display: flex;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted);
}
.ask-a svg { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; margin-top: 0.28em; }

/* ---------- 05 · Benefícios ---------- */

.bens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
}
.ben {
    background: var(--navy-900);
    padding: 1.85rem clamp(1.3rem, 2.2vw, 1.9rem);
    transition: background-color .3s var(--ease);
}
.ben:hover { background: var(--navy-800); }
.ben h4 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    margin-bottom: 0.65rem;
}
.ben h4 svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
.ben p { font-size: 0.875rem; color: var(--muted); line-height: 1.58; }

/* ============================================================
   CTA + FORMULÁRIO
   ============================================================ */

.cta {
    position: relative;
    padding-block: var(--section-y);
    border-top: 1px solid var(--line);
    background: var(--navy-950);
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    bottom: -55%;
    left: 50%;
    width: 100vw;
    height: 85vh;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(0, 217, 126, 0.09) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}

.cta-copy h2 { font-size: var(--fs-h2); margin-block: 1.4rem 1.2rem; }

.contacts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 2.2rem; }
.contacts a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.05rem 1.25rem;
    background: var(--navy-900);
    text-decoration: none;
    font-family: var(--mono);
    font-size: var(--fs-sm);
    color: var(--text);
    transition: background-color .22s var(--ease), color .22s var(--ease);
}
.contacts a:hover { background: var(--navy-800); color: var(--green); }
.contacts svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.form-card {
    background: var(--navy-800);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: clamp(1.75rem, 3.4vw, 2.75rem);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 0.55rem; }
.form-card .sub { font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }

.field { margin-bottom: 1.15rem; }
.field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 0.5rem;
}
.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    font-family: var(--sans);
    font-size: var(--fs-sm);
    color: var(--text);
    background: var(--navy-950);
    border: 1px solid var(--line);
    border-radius: 7px;
    transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #4E637F; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green-line);
    box-shadow: 0 0 0 3px rgba(0, 217, 126, 0.09);
}
.field textarea { resize: vertical; min-height: 96px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }

.submit-btn { width: 100%; margin-top: 0.6rem; }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.form-msg {
    display: none;
    margin-top: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 7px;
    font-size: 0.875rem;
    text-align: center;
}
.form-msg.success { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }
.form-msg.error   { background: rgba(239, 68, 68, 0.1); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.35); }

.privacy {
    margin-top: 1.15rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--dim);
    text-align: center;
}

/* ============================================================
   RODAPÉ
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--navy-900);
    padding-block: 3rem 2.25rem;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.footer-tag { font-size: var(--fs-sm); color: var(--muted); max-width: 38ch; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1.75rem;
    font-family: var(--mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.06em;
    color: var(--dim);
}
.footer-bottom a { color: var(--dim); text-decoration: none; transition: color .2s var(--ease); }
.footer-bottom a:hover { color: var(--green); }

/* ============================================================
   REVELAÇÃO AO ROLAR
   Só esconde se o JS assumiu o controle (html.js). Há ainda um
   timer de segurança no script — nunca deixa conteúdo invisível.
   ============================================================ */

/* --- Bloco inteiro entrando --- */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* --- Cascata: cada filho entra depois do anterior ---------------
   O atraso vem do CSS, por nth-child, e não do JavaScript. Nenhum
   laço percorre elementos calculando delay a cada revelação, e o
   navegador resolve tudo na própria thread de composição.

   O movimento combina três coisas de leve — subir, crescer e
   ganhar nitidez. Uma só (o fade) parece software; as três juntas
   parecem objeto físico entrando em foco. É o que faz a diferença
   entre "animado" e "caro".
   ---------------------------------------------------------------- */
.js .cascata > * {
    opacity: 0;
    transform: translateY(46px) scale(0.94);
    transition:
        opacity   .85s var(--ease),
        transform .85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js .cascata.in > * {
    opacity: 1;
    transform: none;
}

/* Solta o will-change depois da entrada: mantê-lo ligado reserva
   memória de GPU à toa pelo resto da visita. */
.js .cascata.in > * { will-change: auto; }

.js .cascata.in > *:nth-child(1)  { transition-delay: MARCA1_  0ms; }
.js .cascata.in > *:nth-child(2)  { transition-delay: MARCA2_ 75ms; }
.js .cascata.in > *:nth-child(3)  { transition-delay: 200ms; }
.js .cascata.in > *:nth-child(4)  { transition-delay: 300ms; }
.js .cascata.in > *:nth-child(5)  { transition-delay: 400ms; }
.js .cascata.in > *:nth-child(6)  { transition-delay: 500ms; }
.js .cascata.in > *:nth-child(7)  { transition-delay: 600ms; }
.js .cascata.in > *:nth-child(8)  { transition-delay: 700ms; }
.js .cascata.in > *:nth-child(9)  { transition-delay: 800ms; }
.js .cascata.in > *:nth-child(10) { transition-delay: 880ms; }
.js .cascata.in > *:nth-child(11) { transition-delay: 950ms; }
.js .cascata.in > *:nth-child(12) { transition-delay: 1010ms; }
/* Do 13º em diante o intervalo encurta: uma lista longa não pode
   deixar o último item esperando dois segundos para existir. */
.js .cascata.in > *:nth-child(n+13) { transition-delay: 1060ms; }

/* Cascata horizontal para a faixa de capacidades, que se lê da
   esquerda para a direita e não de cima para baixo. */
.js .cascata-lateral > * {
    opacity: 0;
    transform: translateX(-38px);
    transition: opacity .66s var(--ease), transform .66s var(--ease);
}
.js .cascata-lateral.in > * { opacity: 1; transform: none; }
.js .cascata-lateral.in > *:nth-child(1) { transition-delay:   0ms; }
.js .cascata-lateral.in > *:nth-child(2) { transition-delay:  90ms; }
.js .cascata-lateral.in > *:nth-child(3) { transition-delay: 180ms; }
.js .cascata-lateral.in > *:nth-child(4) { transition-delay: 270ms; }

/* --- Títulos: revelação por máscara ------------------------------
   O texto sobe por trás de um recorte, como se estivesse sendo
   descoberto. Usa clip-path para não precisar de elemento extra
   envolvendo o título — o que quebraria o HTML das traduções.
   ------------------------------------------------------------------ */
.js .titulo-mascara {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(26px);
    transition:
        opacity   1s var(--ease),
        clip-path 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .titulo-mascara.in {
    opacity: 1;
    clip-path: inset(0 0 -12% 0);
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .js .reveal,
    .js .cascata > *,
    .js .cascata-lateral > *,
    .js .titulo-mascara {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }
}

/* ============================================================
   CHAT
   ============================================================ */

#chatBot { position: fixed; bottom: 22px; right: 22px; z-index: 900; }

.chat-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.15rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: #04231A;
    background: var(--green);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 28px -8px rgba(0, 217, 126, 0.5);
    transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.chat-toggle:hover { background: #23E894; transform: translateY(-2px); }
.chat-toggle svg { width: 17px; height: 17px; }

.chat-window {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: 62px;
    right: 0;
    width: min(408px, calc(100vw - 44px));
    height: min(560px, calc(100vh - 130px));
    background: var(--navy-800);
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.75);
}
.chat-window.open { display: flex; }

.chat-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--line);
    background: var(--navy-950);
}
.chat-head h3 { font-size: 0.9375rem; font-weight: 600; }
.chat-head .pulse-dot { margin-right: 0.1rem; }
.chat-close {
    margin-left: auto;
    width: 26px; height: 26px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    border-radius: 5px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chat-close:hover { background: var(--navy-700); color: var(--text); }

.chat-msgs { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-msgs::-webkit-scrollbar { width: 5px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }

.msg { display: flex; gap: 0.65rem; align-items: flex-start; }
.msg .avatar {
    width: 27px; height: 27px;
    flex-shrink: 0;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
}
.msg.bot  .avatar { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-line); }
.msg.user .avatar { background: var(--navy-600); color: var(--muted); }
.msg .bubble {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--navy-700);
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow-wrap: anywhere;
}
.msg.user .bubble { background: var(--navy-950); }
.msg .bubble p { margin: 0.5em 0; }
.msg .bubble p:first-child { margin-top: 0; }
.msg .bubble p:last-child  { margin-bottom: 0; }
.msg .bubble h1, .msg .bubble h2, .msg .bubble h3 { font-size: 0.9375rem; margin: 0.7em 0 0.35em; }
.msg .bubble ul { margin: 0.5em 0; padding-left: 1.15rem; }
.msg .bubble li { margin: 0.28em 0; }
.msg .bubble code {
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--green);
    background: var(--navy-950);
    padding: 1px 5px;
    border-radius: 3px;
}
.msg .bubble a { color: var(--green); }
.msg .bubble strong { color: #fff; font-weight: 600; }

.chat-typing {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.07em;
    color: var(--dim);
    border-top: 1px solid var(--line);
}
.chat-typing.on { display: flex; }
.chat-typing i {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    animation: bounce 1.3s infinite;
}
.chat-typing i:nth-child(2) { animation-delay: .16s; }
.chat-typing i:nth-child(3) { animation-delay: .32s; }

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem;
    border-top: 1px solid var(--line);
    background: var(--navy-950);
}
.chat-input input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--navy-800);
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    transition: border-color .2s var(--ease);
}
.chat-input input:focus { border-color: var(--green-line); }
.chat-input input::placeholder { color: #4E637F; }
.chat-send {
    width: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--green);
    border: none;
    border-radius: 7px;
    color: #04231A;
    cursor: pointer;
    transition: background-color .2s var(--ease);
}
.chat-send:hover { background: #23E894; }
.chat-send svg { width: 15px; height: 15px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy  { max-width: 40rem; }
    .cta-inner  { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-item:nth-child(3) { border-left: 0; }
    .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .asks, .bens, .steps, .autos { grid-template-columns: 1fr 1fr; }
    .callout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav { display: none; }
    .header-actions { margin-left: auto; }
}

@media (max-width: 560px) {
    .header-inner { gap: 0.75rem; }
    .header-actions { gap: 0.55rem; }
    .logo { height: 26px; }
    .lang { padding: 0.45rem 1.6rem 0.45rem 0.55rem; }
    #cta-header { padding: 0.6rem 0.85rem; font-size: 0.8125rem; }
}

@media (max-width: 700px) {
    .steps, .feats, .asks, .bens, .autos { grid-template-columns: 1fr; }
    .compare { grid-template-columns: 1fr; }
    .row2 { grid-template-columns: 1fr; }
    .strip-grid { grid-template-columns: 1fr; }
    .strip-item { border-left: 0; border-top: 1px solid var(--line); }
    .strip-item:first-child { border-top: 0; }
    .mock-rail { display: none; }
    .footer-top { flex-direction: column; align-items: flex-start; }
    #chatBot { bottom: 16px; right: 16px; }
}

/* ============================================================
   SELETOR DE IDIOMA — agora são links reais, não troca de DOM.
   É isso que permite ao Google indexar as três versões.
   ============================================================ */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.lang-switch a {
    display: block;
    padding: 0.35rem 0.5rem;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--dim);
    text-decoration: none;
    border-radius: 4px;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current="true"] {
    color: var(--green);
    background: var(--green-soft);
}

/* Link de pular para o conteúdo — acessibilidade por teclado */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 0.7rem 1.1rem;
    background: var(--green);
    color: #04231A;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0 0 7px 0;
}
.skip-link:focus { left: 0; }

/* Foco visível e consistente em tudo que recebe teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   DEPOIMENTOS
   ============================================================ */

.deps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

/* Com um ou dois depoimentos, o grid de três colunas deixaria o card
   órfão encostado à esquerda. Nesses casos, centraliza e limita a
   largura para o bloco não parecer um erro de layout. */
.deps.poucos {
    grid-template-columns: repeat(auto-fit, minmax(300px, 430px));
    justify-content: center;
}

.dep {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--navy-800);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(1.5rem, 2.6vw, 2rem);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.dep:hover { border-color: var(--green-line); transform: translateY(-3px); }

.dep-mark {
    font-family: var(--mono);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--green);
    opacity: 0.55;
    margin-bottom: 0.75rem;
}

.dep blockquote {
    margin: 0 0 1.6rem;
    font-size: var(--fs-sm);
    line-height: 1.66;
    color: var(--text);
}

.dep-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.dep-photo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    background: var(--navy-600);
}

.dep-initials {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green);
    background: var(--green-soft);
    border: 1px solid var(--green-line);
}

.dep-name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }

.dep-role {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: var(--dim);
    margin-top: 2px;
}

/* ============================================================
   PERGUNTAS FREQUENTES
   Usa <details>: o conteúdo fica no HTML mesmo fechado, então
   crawler e leitor de tela alcançam tudo. E funciona sem JS.
   ============================================================ */

.faq-list {
    border-top: 1px solid var(--line);
    max-width: 62rem;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
    transition: color .2s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }

.faq-n {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dim);
    padding-top: 0.3rem;
    min-width: 2rem;
}

.faq-item[open] .faq-n { color: var(--green); }

.faq-sign {
    margin-left: auto;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    margin-top: 0.2rem;
}

.faq-sign::before,
.faq-sign::after {
    content: '';
    position: absolute;
    background: var(--muted);
    transition: transform .3s var(--ease), background-color .3s var(--ease);
}

.faq-sign::before { top: 9px; left: 2px; width: 16px; height: 1.5px; }
.faq-sign::after  { top: 2px; left: 9px; width: 1.5px; height: 16px; }

.faq-item[open] .faq-sign::after  { transform: rotate(90deg); }
.faq-item[open] .faq-sign::before { background: var(--green); }
.faq-item[open] .faq-sign::after  { background: var(--green); }

.faq-answer {
    padding: 0 0 1.6rem calc(2rem + 1rem);
    font-size: var(--fs-sm);
    line-height: 1.72;
    color: var(--muted);
    max-width: 74ch;
}

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

@media (max-width: 700px) {
    .deps { grid-template-columns: 1fr; }
    .faq-answer { padding-left: 0; }
    .faq-item summary { font-size: 1rem; }
}


/* ============================================================
   CENA TRIDIMENSIONAL
   Vive atrás de todo o conteúdo. Se o script não carregar — CDN
   fora do ar, rede corporativa bloqueando, WebGL indisponível —
   o canvas fica invisível e o fundo em CSS assume sozinho.
   ============================================================ */

#cena {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s var(--ease);
}

#cena.pronta { opacity: 1; }

/* Seções translúcidas deixam a cena respirar por trás.
   O contraste do texto continua bem acima do mínimo da WCAG:
   o fundo permanece escuro, só ganha profundidade. */
.strip,
.cta {
    background: var(--secao-escura);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero,
.sec { position: relative; }

/* Quem pediu menos movimento não recebe a cena — e a regra vale
   mesmo que o script tenha carregado antes da preferência mudar. */
@media (prefers-reduced-motion: reduce) {
    #cena { display: none; }
}

/* No celular a cena roda com menos pontos. O fundo das seções fica um
   pouco mais fechado que no desktop: em tela pequena o texto ocupa
   quase tudo, e contraste vale mais que atmosfera. */
@media (max-width: 900px) {
    .strip,
    .cta { background: rgba(6, 13, 24, 0.9); }
}
