:root {
    --bg: #0A192F;
    --accent: #00B0FF;
    --text: #E6F7FF;
    --muted: #9FD7FF;
    --card: #0F2542;
    --line: #0e3552;
    --ok: #2dd4bf;
    --warn: #fbbf24;
    --danger: #fb7185;

}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, sans-serif;
    background: var(--bg);
    /* fundo sólido – sem degradê 100% */
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(120%) blur(6px);
    background: rgba(10, 25, 47, 0.6);
    border-bottom: 1px solid #0d2b49;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand img {
    height: 38px;
    width: auto
}

.brand h1 {
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: .4px;
    font-weight: 700
}

.nav-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap
}

.nav-links a {
    font-size: .95rem;
    opacity: .9
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, var(--accent), #27c3ff);
    color: #001726;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    font-weight: 700;
    cursor: pointer
}

.btn:hover {
    filter: brightness(1.05)
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent)
}

.lang {
    display: flex;
    gap: 6px;
    align-items: center;
    border: 1px solid #1a3e62;
    padding: 6px 8px;
    border-radius: 10px
}

.lang button {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600
}

.lang button.active {
    color: #001726;
    background: linear-gradient(90deg, var(--accent), #27c3ff)
}

.hero {
    padding: 72px 0 40px;
    position: relative;
    overflow: hidden;
    isolation: isolate
}

/* halo somente no hero – NÃO ocupa a página inteira */
.hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 50%;
    width: 900px;
    height: 900px;
    translate: 0 20%;
    background: radial-gradient(600px 420px at 40% 20%, rgba(17, 53, 90, .55) 0, rgba(17, 53, 90, 0) 60%);
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    align-items: center
}

.kicker {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .85rem
}

.title {
    font-size: 2.65rem;
    line-height: 1.15;
    margin: .35em 0 .3em;
    letter-spacing: .2px
}

.subtitle {
    color: #cde9ff;
    font-size: 1.05rem;
    max-width: 44ch
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap
}

.chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: #0c3155;
    color: #bfe9ff;
    border: 1px dashed #1a5f88;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .9rem
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .0));
    border: 1px solid #173c60;
    border-radius: 16px;
    padding: 18px
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px
}

.metrics .k {
    font-weight: 800;
    font-size: 1.6rem
}

section {
    padding: 54px 0
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .82rem;
    background: #0d2e4c;
    color: #bde7ff;
    border: 1px solid #184469
}

h2 {
    font-size: 1.8rem;
    margin: .2em 0 .6em
}

h3 {
    margin: .2em 0 .4em
}

ul.clean {
    list-style: none;
    padding: 0;
    margin: 0
}

ul.clean li {
    margin: .4em 0;
    display: flex;
    gap: 10px
}

.li-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: .5em;
    flex: 0 0 auto
}

.diagram {
    border: 1px dashed #1a3e62;
    border-radius: 16px;
    padding: 16px;
    background: #0c2742
}

.diagram img {
    width: 100%;
    height: auto;
    border-radius: 12px
}

.cta-band {
    background: linear-gradient(90deg, rgba(0, 176, 255, .12), rgba(0, 176, 255, .04));
    border: 1px solid #184469;
    border-radius: 16px;
    padding: 22px
}

footer {
    border-top: 1px solid #0d2b49;
    padding: 26px 0 46px;
    color: #ccecff
}

.muted {
    color: #b9e3ff
}

/* ===== FX: Fumaça tecnológica (corrigido) ===== */
.fx-smoke {
    position: fixed;
    inset: -10% -10% 0 -10%;
    z-index: 0;
    pointer-events: none;
    opacity: .45;
    filter: blur(52px) saturate(120%);
    background:
        radial-gradient(170px 220px at 20% 25%, rgba(0, 176, 255, .20) 0, rgba(0, 176, 255, 0) 60%),
        radial-gradient(260px 200px at 75% 18%, rgba(82, 205, 255, .16) 0, rgba(82, 205, 255, 0) 60%),
        radial-gradient(240px 260px at 30% 70%, rgba(0, 176, 255, .12) 0, rgba(0, 176, 255, 0) 60%),
        radial-gradient(360px 260px at 85% 80%, rgba(82, 205, 255, .12) 0, rgba(82, 205, 255, 0) 60%);
    animation: drift 26s ease-in-out infinite;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(2%, -1%, 0) scale(1.03);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-smoke {
        animation: none
    }
}

/* camada de conteúdo acima da fumaça */
header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 10px
    }

    .grid-3 {
        grid-template-columns: 1fr
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .title {
        font-size: 2.2rem
    }
}

/* === FLAGS (idiomas) === */
.lang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center
}

.lang button {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 10px;
    color: var(--accent);
    background: transparent;
    border-radius: 10px;
    border: 1px solid #1a3e62;
    transition: all .2s ease;
}

.lang button img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 2px rgba(0, 0, 0, .35)
}

.lang button.active,
.lang button:hover {
    background: linear-gradient(90deg, var(--accent), #27c3ff);
    color: #001726;
    border-color: transparent;
}

#arquitetura img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #184469;
    background: #0c2742;
}

#arquitetura h3 {
    color: var(--accent);
}

#arquitetura p {
    color: var(--text);
}

/* --- HERO video --- */
.video-card { overflow: hidden; }

.video-frame {
  position: relative;            /* já está ok: container de referência */
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0f1117;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 176, 255, .12), transparent 60%);
  pointer-events: none;
}

/* vídeo/poster seguem iguais */
.video-frame iframe,
.video-el {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 16px;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  z-index: 1;
  filter: saturate(1.05) contrast(1.05);
}

/* >>> ajuste principal: centralizar o botão no frame <<< */
.video-play {
  position: absolute;            /* de relative -> absolute */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);  /* centraliza no meio */
  z-index: 2;                    /* acima do poster */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, .28);
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
  padding: 12px 18px;
  border-radius: 9999px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.video-play:hover {
  transform: translate(-50%, -50%) translateY(-1px) scale(1.02);
  border-color: rgba(255, 255, 255, .6);
  background: rgba(0, 0, 0, .48);
}

/* Esconde o botão e o poster quando reproduzindo */
.video-frame.is-playing .video-play,
.video-frame.is-playing .video-poster {
  display: none;
}

/* opcional: em telas muito pequenas, reduza o tamanho do botão */
@media (max-width: 480px) {
  .video-play svg { width: 48px; height: 48px; }
  .video-play { padding: 10px 14px; }
}


/* acessibilidade: esconder texto visual mantendo para leitores */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.video-caption {
    text-align: center;
}


/* =======================
   SCROLLBAR • CENC.Ai
   ======================= */

/* Evita "pulo" quando aparece a barra */
html {
    scrollbar-gutter: stable;
}

/* Firefox (todas as barras) */
* {
    scrollbar-width: thin;
    /* thin | auto */
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.06);
}

/* WebKit (Chrome/Edge/Safari) — global */
*::-webkit-scrollbar {
    width: 12px;
    /* vertical */
    height: 12px;
    /* horizontal */
    background: transparent;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(24, 68, 105, .6);
    /* #184469 */
}

*::-webkit-scrollbar-thumb {
    border-radius: 12px;
    border: 2px solid transparent;
    /* cria “folga” interna */
    background-clip: padding-box;
    background-image:
        linear-gradient(180deg, var(--accent), #27c3ff);
    /* mesmo gradiente dos botões */
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .18),
        0 1px 8px rgba(0, 176, 255, .18);
    /* glow suave */
}

*::-webkit-scrollbar-thumb:hover {
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, .22),
        0 2px 10px rgba(0, 176, 255, .28);
    filter: brightness(1.05);
}

*::-webkit-scrollbar-thumb:active {
    filter: brightness(1.1) saturate(1.02);
}

/* Cantos quando há barra dupla (horizontal + vertical) */
*::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

/* ===== Estilo “premium” para áreas específicas (opcional) ===== */
/* Deixe barras ainda mais finas em cards com muito conteúdo rolável */
.card::-webkit-scrollbar,
pre::-webkit-scrollbar,
code::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.card::-webkit-scrollbar-thumb,
pre::-webkit-scrollbar-thumb,
code::-webkit-scrollbar-thumb {
    background-image: linear-gradient(180deg, #27c3ff, var(--accent));
}

/* ===== Acessibilidade / UX ===== */
@media (max-width: 980px) {

    /* mobile: deixa mais fina pra não “pesar” visualmente */
    * {
        scrollbar-width: thin;
    }

    *::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
}

/* Prefere menos movimento? reduz o glow */
@media (prefers-reduced-motion: reduce) {
    *::-webkit-scrollbar-thumb {
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
    }
}