/* ==========================================================
   TECHTIPO, LDA — Design System 2026
   Tema: "Industrial Aurora" — dark, glass, verde elétrico
   ========================================================== */

/* ----------------------------------------------------------
   1. Tokens
---------------------------------------------------------- */
:root {
    /* Cor */
    --bg: #05070b;
    --bg-2: #090c12;
    --verde: #6ebe14;
    --lima: #b7f14e;
    --verde-suave: rgba(110, 190, 20, 0.12);
    --verde-borda: rgba(110, 190, 20, 0.35);
    --grad-marca: linear-gradient(115deg, #6ebe14 0%, #b7f14e 55%, #dcff9a 100%);

    --texto: #eef2ea;
    --texto-2: rgba(233, 240, 228, 0.64);
    --texto-3: rgba(233, 240, 228, 0.42);

    --vidro: rgba(18, 23, 30, 0.45);
    --vidro-forte: rgba(14, 18, 24, 0.78);
    --borda: rgba(255, 255, 255, 0.08);
    --borda-suave: rgba(255, 255, 255, 0.05);

    /* Forma */
    --raio: 22px;
    --raio-pill: 999px;

    /* Tipografia */
    --fonte-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --fonte-corpo: 'Inter', 'Segoe UI', sans-serif;
    --fonte-mono: 'JetBrains Mono', 'Cascadia Code', monospace;

    /* Movimento */
    --ease-suave: cubic-bezier(0.16, 0.84, 0.44, 1);
    --ease-elastico: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ----------------------------------------------------------
   2. Reset e base
---------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg);
    color: var(--texto);
    font-family: var(--fonte-corpo);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--verde); color: #05070b; }

img { max-width: 100%; display: block; }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(110,190,20,0.5); }

/* Acessibilidade: link para saltar navegação */
.skip-link {
    position: fixed;
    top: -60px; left: 16px;
    z-index: 2000;
    background: var(--verde);
    color: #05070b;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--raio-pill);
    text-decoration: none;
    transition: top 0.25s var(--ease-suave);
}
.skip-link:focus { top: 16px; }

:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ----------------------------------------------------------
   3. Camadas de fundo (aurora + partículas + grão)
---------------------------------------------------------- */
.fundo-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.orbe {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.5;
    will-change: transform;
}
.orbe-1 {
    width: 55vw; height: 55vw;
    top: -22vw; right: -18vw;
    background: radial-gradient(circle, rgba(110,190,20,0.20) 0%, transparent 65%);
    animation: derivaOrbe1 26s ease-in-out infinite alternate;
}
.orbe-2 {
    width: 45vw; height: 45vw;
    bottom: -20vw; left: -15vw;
    background: radial-gradient(circle, rgba(60,130,40,0.16) 0%, transparent 65%);
    animation: derivaOrbe2 32s ease-in-out infinite alternate;
}
.orbe-3 {
    width: 30vw; height: 30vw;
    top: 40%; left: 55%;
    background: radial-gradient(circle, rgba(183,241,78,0.08) 0%, transparent 60%);
    animation: derivaOrbe1 40s ease-in-out infinite alternate-reverse;
}
@keyframes derivaOrbe1 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-8vw, 6vh, 0) scale(1.15); }
}
@keyframes derivaOrbe2 {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6vw, -8vh, 0) scale(1.1); }
}

#fundo-particulas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.12s ease-out;
    transform-style: preserve-3d;
}

/* Grão de filme por cima de tudo (muito subtil) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

header, main, section, footer { position: relative; z-index: 3; }

/* Partículas do clique */
.particle {
    position: fixed;
    background: var(--grad-marca);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 12px rgba(110, 190, 20, 0.9);
}
.burst-particle { animation: burstAnimation 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards; }
@keyframes burstAnimation {
    0%   { opacity: 1; transform: translate(-50%, -50%) translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0.2); }
}

/* ----------------------------------------------------------
   4. Cursor personalizado (desktop)
---------------------------------------------------------- */
.cursor-ponto, .cursor-aro {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: 50%;
    opacity: 0;
}
.cursor-ponto {
    width: 7px; height: 7px;
    background: var(--lima);
    box-shadow: 0 0 10px rgba(183, 241, 78, 0.8);
}
.cursor-aro {
    width: 38px; height: 38px;
    border: 1.5px solid rgba(110, 190, 20, 0.55);
    transition: width 0.25s var(--ease-suave), height 0.25s var(--ease-suave),
                border-color 0.25s, background-color 0.25s;
}
.cursor-aro.interativo {
    width: 58px; height: 58px;
    border-color: rgba(183, 241, 78, 0.9);
    background: rgba(110, 190, 20, 0.08);
}
body.cursor-ativo .cursor-ponto,
body.cursor-ativo .cursor-aro { opacity: 1; }
@media (pointer: coarse) {
    .cursor-ponto, .cursor-aro { display: none; }
}

/* ----------------------------------------------------------
   5. Header / Navegação
---------------------------------------------------------- */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: padding 0.35s var(--ease-suave);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--raio-pill);
    border: 1px solid transparent;
    transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
header.encolhido { padding: 10px 16px; }
header.encolhido .header-inner {
    background: var(--vidro-forte);
    border-color: var(--borda);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.logo { display: flex; flex-direction: column; text-decoration: none; gap: 3px; }
.logo-img { max-width: 108px; height: auto; }
.logo-slogan {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    color: var(--texto-3);
    font-weight: 500;
    text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 6px; }
nav a {
    position: relative;
    color: var(--texto-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: var(--raio-pill);
    transition: color 0.3s, background-color 0.3s;
}
nav a:hover { color: var(--texto); background: rgba(255, 255, 255, 0.05); }
nav a.ativo { color: var(--lima); }
nav a.ativo::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-marca);
}
.nav-cta {
    margin-left: 14px;
    color: #05070b !important;
    background: var(--grad-marca);
    box-shadow: 0 0 22px rgba(110, 190, 20, 0.35);
    transition: transform 0.3s var(--ease-elastico), box-shadow 0.3s !important;
}
.nav-cta:hover {
    background: var(--grad-marca) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(110, 190, 20, 0.55);
}
.nav-cta.ativo::after { display: none; }

/* Seletor de língua PT / EN */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    padding: 4px 6px;
    border: 1px solid var(--borda);
    border-radius: var(--raio-pill);
    background: rgba(255, 255, 255, 0.03);
}
.lang-switch a {
    padding: 5px 9px;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: var(--texto-3);
}
.lang-switch a:hover { color: var(--texto); background: rgba(255, 255, 255, 0.06); }
.lang-switch a.ativo-lang { color: var(--lima); }
.lang-switch .sep {
    color: var(--borda);
    font-size: 11px;
    user-select: none;
}

/* Botão hamburger animado */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borda);
    border-radius: 12px;
    cursor: pointer;
    padding: 0 11px;
}
.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--texto);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-suave), opacity 0.3s;
}
.menu-toggle.ativo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.ativo span:nth-child(2) { opacity: 0; }
.menu-toggle.ativo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------
   6. Hero
---------------------------------------------------------- */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 190px 24px 110px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.hero.hero-pequeno { min-height: 58vh; padding: 190px 24px 70px; }

/* Grelha técnica subtil por trás do hero */
.hero::before {
    content: "";
    position: absolute;
    inset: -40px 0 0 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    border-radius: var(--raio-pill);
    background: var(--vidro);
    border: 1px solid var(--verde-borda);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--lima);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 34px;
    box-shadow: 0 0 30px rgba(110, 190, 20, 0.12) inset;
}
.badge::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--verde);
    box-shadow: 0 0 0 0 rgba(110, 190, 20, 0.6);
    animation: pulsoPonto 2.2s infinite;
    flex-shrink: 0;
}
@keyframes pulsoPonto {
    0%   { box-shadow: 0 0 0 0 rgba(110, 190, 20, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(110, 190, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 190, 20, 0); }
}

.hero h1 {
    font-family: var(--fonte-display);
    font-size: clamp(42px, 7vw, 92px);
    line-height: 1.03;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.hero.hero-pequeno h1 { font-size: clamp(40px, 6vw, 76px); }
.hero p {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--texto-2);
    max-width: 780px;
    line-height: 1.65;
    text-wrap: pretty;
}

.destaque {
    background: var(--grad-marca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
/* Quando a animação letra-a-letra divide o texto em spans inline-block,
   o background-clip: text do elemento pai deixa de "ver" essas letras
   (o recorte só considera texto inline direto) e o texto ficava invisível.
   Solução: aplicar o gradiente a cada letra/palavra animada. */
.destaque .anim-letra,
.destaque .anim-palavra {
    background: var(--grad-marca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-top: 44px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Indicador de scroll */
.indicador-scroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.indicador-scroll::before {
    content: "";
    width: 3px; height: 8px;
    border-radius: 3px;
    background: var(--verde);
    animation: rodaScroll 1.8s var(--ease-suave) infinite;
}
@keyframes rodaScroll {
    0%   { transform: translateY(0); opacity: 1; }
    70%  { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ----------------------------------------------------------
   7. Faixa marquee
---------------------------------------------------------- */
.faixa-marquee {
    overflow: hidden;
    border-top: 1px solid var(--borda-suave);
    border-bottom: 1px solid var(--borda-suave);
    padding: 22px 0;
    position: relative;
    z-index: 3;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-conteudo {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: deslizaMarquee 36s linear infinite;
}
.faixa-marquee:hover .marquee-conteudo { animation-play-state: paused; }
.marquee-conteudo span {
    font-family: var(--fonte-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--texto-3);
    white-space: nowrap;
}
.marquee-conteudo .ponto-marquee {
    color: var(--verde);
    font-size: 18px;
    letter-spacing: 0;
}
@keyframes deslizaMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   8. Botões
---------------------------------------------------------- */
.btn-acao, .btn-primario, .btn-secundario, .btn-cta-link {
    position: relative;
    display: inline-block;
    padding: 15px 36px;
    border-radius: var(--raio-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.3s var(--ease-elastico), box-shadow 0.35s, background-color 0.3s,
                color 0.3s, border-color 0.3s;
    will-change: transform;
}

.btn-primario {
    background: var(--grad-marca);
    color: #05070b;
    box-shadow: 0 0 28px rgba(110, 190, 20, 0.3);
}
.btn-primario:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 44px rgba(110, 190, 20, 0.5);
}

.btn-secundario {
    background: var(--vidro);
    border-color: var(--borda);
    color: var(--texto);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-secundario:hover {
    border-color: var(--verde-borda);
    color: var(--lima);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.btn-acao {
    padding: 12px 26px;
    border-color: var(--verde-borda);
    color: var(--lima);
    background: var(--verde-suave);
    font-size: 12px;
}
.btn-acao:hover {
    background: var(--verde);
    border-color: var(--verde);
    color: #05070b;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(110, 190, 20, 0.4);
}
.card .btn-acao { margin-top: 22px; }

/* ----------------------------------------------------------
   9. Secções
---------------------------------------------------------- */
.seccao {
    padding: 110px 48px;
    max-width: 1280px;
    margin: 0 auto;
}
.seccao-alt {
    position: relative;
}
.seccao-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.006));
    border: 1px solid var(--borda-suave);
    pointer-events: none;
}
.seccao-alt > * { position: relative; }

.cabecalho-seccao {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 72px;
}
.cabecalho-seccao h2, .seccao-impacto h2, .servico-bloco h2, .texto-caso h2, .bloco-cta h2 {
    font-family: var(--fonte-display);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.cabecalho-seccao h2 {
    font-size: clamp(30px, 4vw, 46px);
    margin-bottom: 18px;
    line-height: 1.12;
}
.cabecalho-seccao p {
    font-size: 17px;
    color: var(--texto-2);
    line-height: 1.65;
}
.cabecalho-seccao.alinhado-esquerda { text-align: left; margin: 0 0 50px; max-width: 850px; }
.cabecalho-seccao.alinhado-esquerda p { margin-bottom: 16px; }
.cabecalho-seccao.alinhado-esquerda p:last-child { margin-bottom: 0; }

.accao-seccao { text-align: center; margin-top: 56px; }

/* ----------------------------------------------------------
   10. Cards (vidro + spotlight)
---------------------------------------------------------- */
.grelha-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.grelha-cards.duas-colunas { grid-template-columns: repeat(2, 1fr); }
.grelha-cards.tres-colunas { grid-template-columns: repeat(3, 1fr); }

.card {
    position: relative;
    background: var(--vidro);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 38px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-suave);
}
/* Spotlight que segue o cursor (definido por --mx / --my via JS) */
.card::before, .card-metrica::before, .passo-processo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(110, 190, 20, 0.10), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.card:hover::before, .card-metrica:hover::before, .passo-processo:hover::before { opacity: 1; }
.card:hover {
    border-color: var(--verde-borda);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(110, 190, 20, 0.08);
}
.card > * { position: relative; }

.icone-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lima);
    width: 62px; height: 62px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(110,190,20,0.16), rgba(110,190,20,0.04));
    border: 1px solid var(--verde-borda);
    margin-bottom: 22px;
    box-shadow: 0 0 24px rgba(110, 190, 20, 0.12);
}
.icone-card svg { width: 28px; height: 28px; }

.card h3 {
    font-family: var(--fonte-display);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.card p { font-size: 14.5px; color: var(--texto-2); line-height: 1.65; }

/* ----------------------------------------------------------
   11. Processo (timeline)
---------------------------------------------------------- */
.grelha-processo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    counter-reset: passo;
}
.passo-processo {
    position: relative;
    padding: 32px 26px;
    border-radius: var(--raio);
    border: 1px solid var(--borda-suave);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-suave);
}
.passo-processo:hover { border-color: var(--verde-borda); transform: translateY(-4px); }
.passo-processo > * { position: relative; }
.numero-passo {
    font-family: var(--fonte-mono);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(183,241,78,0.9), rgba(110,190,20,0.25));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.passo-processo h3 {
    font-family: var(--fonte-display);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}
.passo-processo p { font-size: 14px; color: var(--texto-2); line-height: 1.65; }
/* Linha de ligação entre passos */
.passo-processo:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 48px; right: -26px;
    width: 26px; height: 1px;
    background: linear-gradient(90deg, var(--verde-borda), transparent);
}

/* ----------------------------------------------------------
   12. Estatísticas
---------------------------------------------------------- */
.linha-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 64px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    padding: 30px 44px;
    border-radius: var(--raio);
    border: 1px solid var(--borda-suave);
    background: rgba(255, 255, 255, 0.015);
    min-width: 220px;
}
.stat-item .stat-valor {
    font-family: var(--fonte-mono);
    font-size: 46px;
    font-weight: 800;
    background: var(--grad-marca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat-item .stat-label {
    font-size: 13.5px;
    color: var(--texto-2);
    margin-top: 8px;
    max-width: 190px;
}

/* Secção de impacto + métricas */
.seccao-impacto {
    padding: 120px 48px;
    max-width: 1280px;
    margin: 0 auto;
}
.container-impacto { text-align: center; }
.seccao-impacto h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; }
.seccao-impacto .sub-impacto {
    font-size: 17px;
    color: var(--texto-2);
    max-width: 680px;
    margin: 0 auto 64px;
    line-height: 1.65;
}
.grelha-metricas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card-metrica {
    position: relative;
    background: var(--vidro);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 46px 32px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.4s, transform 0.4s var(--ease-suave);
}
.card-metrica:hover { border-color: var(--verde-borda); transform: translateY(-4px); }
.card-metrica > * { position: relative; }
.icone-metrica {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lima);
    width: 58px; height: 58px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(110,190,20,0.18), rgba(110,190,20,0.04));
    border: 1px solid var(--verde-borda);
    margin-bottom: 20px;
}
.valor-metrica {
    font-family: var(--fonte-mono);
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--grad-marca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.texto-metrica { font-size: 14.5px; color: var(--texto-2); line-height: 1.5; }

/* ----------------------------------------------------------
   13. Casos de uso
---------------------------------------------------------- */
.seccao-caso {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 90px 48px;
    max-width: 1200px;
    margin: 0 auto;
}
.seccao-caso + .seccao-caso { border-top: 1px solid var(--borda-suave); }
.conteudo-caso {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    width: 100%;
    gap: 56px;
    align-items: start;
}
.numero-caso {
    font-family: var(--fonte-mono);
    font-size: clamp(80px, 10vw, 150px);
    font-weight: 800;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(110, 190, 20, 0.5);
    position: sticky;
    top: 140px;
}
.tags-caso { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
    padding: 6px 14px;
    background: var(--verde-suave);
    border: 1px solid rgba(110, 190, 20, 0.25);
    border-radius: var(--raio-pill);
    font-size: 11px;
    font-weight: 600;
    color: var(--lima);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s, transform 0.3s var(--ease-elastico);
}
.tag:hover { background: rgba(110, 190, 20, 0.22); transform: translateY(-2px); }
.texto-caso h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; line-height: 1.15; }
.subtitulo-caso {
    color: var(--lima);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: 0.3px;
}
.descricao-caso {
    font-size: 17px;
    color: var(--texto-2);
    line-height: 1.7;
    margin-bottom: 26px;
}
.lista-beneficios { list-style: none; margin-bottom: 34px; }
.lista-beneficios li {
    font-size: 15px;
    color: rgba(238, 242, 234, 0.85);
    margin-bottom: 13px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.55;
}
.lista-beneficios li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--verde-suave);
    border: 1px solid var(--verde-borda);
    color: var(--lima);
    font-size: 11px;
    font-weight: 800;
}

/* ----------------------------------------------------------
   14. Serviços detalhados
---------------------------------------------------------- */
.servico-bloco {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: start;
    padding: 90px 48px;
    max-width: 1280px;
    margin: 0 auto;
}
.servico-bloco + .servico-bloco { border-top: 1px solid var(--borda-suave); }
.servico-bloco h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; line-height: 1.12; }
.subtitulo-servico {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-3);
    margin: 26px 0 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.subtitulo-servico::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--borda), transparent);
}
.painel-servico {
    background: var(--vidro);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    padding: 36px 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.painel-servico .subtitulo-servico:first-child { margin-top: 0; }
.lista-tecnologias { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* ----------------------------------------------------------
   15. CTA final
---------------------------------------------------------- */
.seccao-cta { padding: 110px 48px; max-width: 1280px; margin: 0 auto; }
.seccao-cta.sem-padding-topo { padding-top: 0; }
.bloco-cta {
    position: relative;
    border-radius: 30px;
    padding: 96px 48px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(900px circle at 50% 130%, rgba(110, 190, 20, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(16, 22, 14, 0.9), rgba(7, 10, 6, 0.95));
    border: 1px solid var(--verde-borda);
    box-shadow: 0 0 80px rgba(110, 190, 20, 0.1), 0 30px 80px rgba(0, 0, 0, 0.5);
}
/* Anel de luz a percorrer o contorno */
.bloco-cta::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--anguloCta, 0deg),
        transparent 0deg, transparent 300deg, rgba(183, 241, 78, 0.9) 330deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: rodaAnelCta 6s linear infinite;
    pointer-events: none;
}
@property --anguloCta {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes rodaAnelCta {
    to { --anguloCta: 360deg; }
}
.bloco-cta > * { position: relative; }
.bloco-cta h2 {
    font-size: clamp(30px, 4.4vw, 52px);
    color: var(--texto);
    margin-bottom: 18px;
    line-height: 1.08;
}
.bloco-cta p {
    font-size: 17.5px;
    color: var(--texto-2);
    max-width: 640px;
    margin: 0 auto 44px;
    line-height: 1.65;
}
.bloco-cta .btn-cta-link {
    background: var(--grad-marca);
    color: #05070b;
    margin: 6px 8px;
    box-shadow: 0 0 34px rgba(110, 190, 20, 0.35);
}
.bloco-cta .btn-cta-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 48px rgba(110, 190, 20, 0.55);
}
.bloco-cta .btn-cta-link.secundario-cta {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--borda);
    color: var(--texto);
    box-shadow: none;
}
.bloco-cta .btn-cta-link.secundario-cta:hover {
    border-color: var(--verde-borda);
    color: var(--lima);
    transform: translateY(-3px);
}
.nota-cta { font-size: 13px !important; color: var(--texto-3) !important; margin: 22px auto 0 !important; }

/* ----------------------------------------------------------
   16. Contacto
---------------------------------------------------------- */
.grelha-contacto {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
}
.grelha-contacto .cabecalho-seccao {
    text-align: left;
    margin: 0 0 34px;
}
.info-contacto-item {
    display: flex;
    gap: 20px;
    padding: 26px 24px;
    border-radius: var(--raio);
    border: 1px solid var(--borda-suave);
    background: rgba(255, 255, 255, 0.015);
    margin-bottom: 14px;
    transition: border-color 0.35s, transform 0.35s var(--ease-suave);
}
.info-contacto-item:hover { border-color: var(--verde-borda); transform: translateX(6px); }
.info-contacto-item .icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lima);
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(110,190,20,0.18), rgba(110,190,20,0.04));
    border: 1px solid var(--verde-borda);
}
.info-contacto-item .icone svg { width: 24px; height: 24px; }
.info-contacto-item h4 {
    font-family: var(--fonte-display);
    font-size: 16px;
    margin-bottom: 4px;
}
.info-contacto-item a, .info-contacto-item span {
    color: rgba(238, 242, 234, 0.85);
    text-decoration: none;
    font-size: 15px;
}
.info-contacto-item a:hover { color: var(--lima); }
.info-contacto-item .descricao { color: var(--texto-3); font-size: 13px; margin-top: 4px; display: block; }

.mapa-caixa {
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    background: var(--vidro);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.mapa-caixa iframe {
    border: 0;
    display: block;
    width: 100%;
    min-height: 420px;
    flex: 1;
    filter: grayscale(0.85) invert(0.92) contrast(0.9) hue-rotate(180deg);
    transition: filter 0.5s;
}
.mapa-caixa:hover iframe { filter: none; }

/* ----------------------------------------------------------
   17. Páginas legais
---------------------------------------------------------- */
.pagina-legal {
    padding: 180px 48px 110px;
    max-width: 880px;
    margin: 0 auto;
}
.pagina-legal h1 {
    font-family: var(--fonte-display);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.pagina-legal .ultima-atualizacao {
    color: var(--texto-3);
    font-size: 14px;
    margin-bottom: 56px;
    font-family: var(--fonte-mono);
}
.pagina-legal section {
    margin-bottom: 20px;
    padding: 30px 32px;
    border-radius: var(--raio);
    border: 1px solid var(--borda-suave);
    background: rgba(255, 255, 255, 0.015);
}
.pagina-legal h2 {
    font-family: var(--fonte-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    background: var(--grad-marca);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.pagina-legal p, .pagina-legal li {
    font-size: 15px;
    color: rgba(238, 242, 234, 0.75);
    line-height: 1.8;
}
.pagina-legal p + p { margin-top: 13px; }
.pagina-legal ul { padding-left: 22px; margin-top: 10px; }
.pagina-legal a { color: var(--lima); }

/* ----------------------------------------------------------
   18. Footer
---------------------------------------------------------- */
footer {
    border-top: 1px solid var(--borda-suave);
    padding: 80px 48px 32px;
    background: linear-gradient(180deg, transparent, rgba(110, 190, 20, 0.03));
}
.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.footer-desc { margin-top: 16px; max-width: 330px; }
.footer-col h4 {
    font-family: var(--fonte-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--texto-3);
    margin-bottom: 22px;
}
.footer-col p, .footer-col a {
    font-size: 14.5px;
    color: var(--texto-2);
    line-height: 1.9;
    text-decoration: none;
    display: block;
    width: fit-content;
}
.footer-col a {
    position: relative;
    transition: color 0.3s, transform 0.3s var(--ease-suave);
}
.footer-col a:hover { color: var(--lima); transform: translateX(4px); }
.footer-slogan {
    color: var(--texto-3);
    font-size: 13px;
    font-style: italic;
    margin-top: 16px;
}
.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--borda-suave);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--texto-3);
}
.footer-bottom a {
    color: var(--texto-3);
    text-decoration: none;
    margin-left: 22px;
    transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--lima); }

/* ----------------------------------------------------------
   19. Barra de progresso de leitura
---------------------------------------------------------- */
#barra-progresso {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0%;
    background: var(--grad-marca);
    z-index: 1000;
    box-shadow: 0 0 10px rgba(110, 190, 20, 0.6);
    transition: width 0.12s ease-out;
}

/* ----------------------------------------------------------
   20. Animações de scroll
---------------------------------------------------------- */
.anim-grupo-palavra { display: inline-block; white-space: nowrap; }

.anim-letra, .anim-palavra {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em);
    transition: opacity 0.55s cubic-bezier(.22,.7,.32,1), transform 0.55s cubic-bezier(.22,.7,.32,1);
}
.anim-texto-visivel .anim-letra,
.anim-texto-visivel .anim-palavra {
    opacity: 1;
    transform: translateY(0);
}

.anim-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s var(--ease-suave), transform 0.75s var(--ease-suave);
}
.anim-reveal.anim-visivel {
    opacity: 1;
    transform: translateY(0);
}
.anim-reveal.anim-esquerda { transform: translateY(20px) translateX(-36px); }
.anim-reveal.anim-direita  { transform: translateY(20px) translateX(36px); }
.anim-reveal.anim-esquerda.anim-visivel,
.anim-reveal.anim-direita.anim-visivel { transform: translateY(0) translateX(0); }

.icone-card, .icone-metrica, .info-contacto-item .icone {
    transition: opacity 0.5s ease, transform 0.55s var(--ease-elastico);
}
.icone-card:not(.anim-visivel), .icone-metrica:not(.anim-visivel),
.info-contacto-item .icone:not(.anim-visivel) {
    opacity: 0;
    transform: scale(0.55);
}

/* ----------------------------------------------------------
   21. Responsividade
---------------------------------------------------------- */
@media (max-width: 1080px) {
    .grelha-cards.tres-colunas { grid-template-columns: repeat(2, 1fr); }
    .grelha-processo { grid-template-columns: repeat(2, 1fr); }
    .passo-processo:not(:last-child)::after { display: none; }
    .grelha-metricas { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 992px) {
    header { padding: 12px; }
    .header-inner {
        background: var(--vidro-forte);
        border-color: var(--borda);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-radius: 20px;
        padding: 10px 18px;
    }
    .menu-toggle { display: flex; }
    nav {
        position: fixed;
        top: 84px; left: 12px; right: 12px;
        background: var(--vidro-forte);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--borda);
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        gap: 4px;
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.3s var(--ease-suave), transform 0.3s var(--ease-suave);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
    nav.aberto {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    nav a { padding: 13px 16px; }
    nav a.ativo::after { left: 16px; right: auto; width: 22px; bottom: 8px; }
    .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
    .lang-switch { margin-left: 0; margin-top: 10px; justify-content: center; }
    .lang-switch a { flex: 0 0 auto; }

    .hero { min-height: 78vh; padding: 150px 20px 90px; }
    .hero.hero-pequeno { padding: 150px 20px 60px; }
    .seccao, .seccao-caso, .seccao-cta, .servico-bloco, .seccao-impacto { padding: 70px 22px; }
    .conteudo-caso, .servico-bloco, .grelha-contacto { grid-template-columns: 1fr; gap: 30px; }
    .numero-caso { position: static; font-size: 64px; -webkit-text-stroke-width: 1px; }
    .grelha-processo, .grelha-cards.duas-colunas, .grelha-cards.tres-colunas { grid-template-columns: 1fr; }
    .bloco-cta { padding: 64px 26px; }
    .linha-stats { gap: 14px; }
    .stat-item { min-width: 0; flex: 1 1 140px; padding: 24px 18px; }
    footer { padding: 60px 22px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom a { margin-left: 0; margin-right: 20px; }
    .pagina-legal { padding: 150px 22px 70px; }
    .indicador-scroll { display: none; }
}

/* ----------------------------------------------------------
   22. Acessibilidade: movimento reduzido
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .anim-letra, .anim-palavra, .anim-reveal,
    .icone-card, .icone-metrica, .info-contacto-item .icone {
        opacity: 1 !important;
        transform: none !important;
    }
    #barra-progresso, .indicador-scroll, .cursor-ponto, .cursor-aro { display: none; }
    .marquee-conteudo { animation: none; }
}
