/* ══════════════════════════════════════════════════
   MTEC SPDA — style.css
   Cinematográfico · Elétrico · Responsivo
══════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #05070b;
  --bg-mid:  #0b1020;
  --bg-hi:   #111827;
  --cyan:    #4cc9ff;
  --cyan2:   #00e5ff;
  --cyan3:   #6be7ff;
  --white:   #ffffff;
  --muted:   #b8c5d6;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; color: var(--cyan2); }

::-webkit-scrollbar         { width: 3px; }
::-webkit-scrollbar-track   { background: var(--bg); }
::-webkit-scrollbar-thumb   { background: var(--cyan); border-radius: 2px; }

/* ══════════════════════════════════════════════════
   LOADER
══════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.loader-bolt-icon {
  width: 24px; height: 40px;
  animation: bPulse .7s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px var(--cyan2));
}
@keyframes bPulse { from { opacity: .4; } to { opacity: 1; } }

.loader-label { font-size: .72rem; letter-spacing: .38em; color: var(--muted); text-transform: uppercase; }

.loader-bar-wrap { width: 150px; height: 1px; background: rgba(76,201,255,.15); border-radius: 1px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--cyan2)); box-shadow: 0 0 8px var(--cyan2); transition: width .05s linear; }

/* ══════════════════════════════════════════════════
   WEBGL CANVAS (atmosphere)
══════════════════════════════════════════════════ */
#webgl-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100vw; height: 100vh; }

/* ══════════════════════════════════════════════════
   CURSOR
══════════════════════════════════════════════════ */
#cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; }

.cursor-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan2); transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan2), 0 0 20px var(--cyan);
  transition: transform .08s;
}
.cursor-ring {
  position: absolute; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(76,201,255,.5); transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, transform .12s var(--ease);
}
body.hov .cursor-ring { width: 52px; height: 52px; border-color: var(--cyan2); opacity: .6; }
@media (hover: none) { #cursor { display: none; } body { cursor: auto; } }

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  /* vidro molhado — muito transparente, blur forte, brilho na borda */
  background: rgba(5, 10, 18, .38);
  backdrop-filter: blur(28px) saturate(160%) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(1.06);
  border-bottom: 1px solid rgba(76,201,255,.18);
  box-shadow: 0 1px 0 0 rgba(255,255,255,.05) inset,
              0 4px 24px 0 rgba(0,0,0,.22);
  transition: background .5s, padding .4s, border-color .4s, box-shadow .4s;
}
#nav.scrolled {
  background: rgba(5,7,11,.60);
  backdrop-filter: blur(32px) saturate(180%) brightness(1.04);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.04);
  padding: 12px 5%;
  border-bottom: 1px solid rgba(76,201,255,.28);
  box-shadow: 0 1px 0 0 rgba(255,255,255,.06) inset,
              0 6px 32px 0 rgba(0,0,0,.28);
}

/* ── Nav logo (imagem) ───────────────────────────── */
.nav-logo-img {
  height: 46px; width: auto;
  opacity: 0;
  transition: opacity .6s ease;
  filter: drop-shadow(0 0 8px rgba(76,201,255,.45));
}
.nav-logo-img.vis { opacity: 1; }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: .78rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase;
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content:''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--cyan2); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(76,201,255,.35) !important; padding: 7px 18px; border-radius: 3px;
  color: var(--cyan2) !important; transition: background .3s, box-shadow .3s !important;
}
.nav-cta:hover { background: rgba(76,201,255,.1); box-shadow: 0 0 20px rgba(76,201,255,.2); }
.nav-cta::after { display: none !important; }

/* Burger */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: min(320px, 80vw); height: 100vh;
  background: rgba(5,7,11,.97); backdrop-filter: blur(20px);
  z-index: 99; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 32px; padding: 40px;
  border-left: 1px solid rgba(76,201,255,.12);
  transition: right .5s var(--ease);
}
.mobile-menu.open { right: 0; }
.mm-link { font-size: 1.3rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; transition: color .3s; }
.mm-link:hover, .mm-cta { color: var(--cyan2); }
.mm-cta { border: 1px solid rgba(76,201,255,.4); padding: 10px 24px; border-radius: 3px; }

/* ══════════════════════════════════════════════════
   JOURNEY SECTION  (seção principal cinematográfica)
══════════════════════════════════════════════════ */
#journey {
  position: relative; z-index: 1;
  height: 650vh;         /* espaço de scroll = "película" */
}

/* Sticky frame — tela que fica presa enquanto scroll rola */
.journey-sticky {
  position: sticky; top: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Layers comuns */
.jl {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Vídeo ── */
.jl-video { z-index: 1; transform-origin: center center; will-change: transform, filter; }

.jvid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.jvid-charged { opacity: 0; }

/* Flash aleatório nas nuvens */
.cloud-flash {
  position: absolute; inset: 0; z-index: 2;
  background: white; opacity: 0; pointer-events: none;
  will-change: opacity;
}

/* ── Interior da nuvem ── */
.jl-interior {
  z-index: 2; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(200,240,255,.55) 0%, rgba(76,201,255,.18) 45%, transparent 70%);
}
.interior-radial {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(255,255,255,.75) 0%, rgba(160,235,255,.35) 30%, transparent 65%);
  animation: intFlick .12s ease-in-out infinite alternate;
}
@keyframes intFlick { from { opacity: .6; } to { opacity: 1; } }

/* ── Canvas do raio ── */
.jl-bolt { z-index: 3; pointer-events: none; }

/* ── Prédio ── */
.jl-building {
  z-index: 4; pointer-events: none;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; will-change: transform, opacity;
}
.building-wrap { position: relative; width: 100%; max-width: 560px; display: flex; align-items: flex-end; justify-content: center; }
.building-img {
  width: 100%; max-height: 75vh;
  object-fit: contain; object-position: bottom center;
  /* Fundo branco é removido via JS (Canvas pixel manipulation em main.js).
     Aqui aplicamos apenas o glow elétrico sobre a imagem já transparente. */
  filter: drop-shadow(0 0 30px rgba(76,201,255,.55))
          drop-shadow(0 0 70px rgba(76,201,255,.28))
          drop-shadow(0 0 130px rgba(76,201,255,.12));
}

/* Impact burst — alinhado ao captor no topo do prédio */
.impact-burst {
  position: absolute;
  /* predio-recebendo-raio2.png bottom-aligned: captor ≈ 7% do wrap */
  top: 7%; left: 50%;
  width: 90px; height: 90px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle,
    rgba(255,255,255,.98) 0%,
    rgba(120,220,255,.7) 30%,
    rgba(76,201,255,.3) 60%,
    transparent 80%);
  opacity: 0; pointer-events: none;
  filter: blur(3px);
}

/* ── Textos ── */
.jtext {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 0 6%; pointer-events: none; opacity: 0;
  will-change: opacity;
}
.jtext-2 { justify-content: flex-end; padding-bottom: 12vh; }
.jtext-3 { justify-content: flex-end; padding-bottom: 10vh; }

/* ── Scrim escuro atrás dos textos para garantir legibilidade ── */

/* jtext-1 (hero): gradiente radial escuro centrado no texto */
#jtext-1::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 56%,
    rgba(3,5,10,.72) 0%,
    rgba(3,5,10,.42) 40%,
    transparent 68%);
  z-index: 0;
}
#jtext-1 > * { position: relative; z-index: 1; }

/* jtext-2 (nuvens claras): gradiente escuro vindo de baixo */
#jtext-2::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgba(3,5,10,.82) 0%,
    rgba(3,5,10,.55) 35%,
    rgba(3,5,10,.18) 60%,
    transparent 80%);
  z-index: 0;
}
#jtext-2 > * { position: relative; z-index: 1; }

/* jtext-3 (solução / prédio): gradiente suave de baixo */
#jtext-3::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    rgba(3,5,10,.65) 0%,
    rgba(3,5,10,.30) 40%,
    transparent 65%);
  z-index: 0;
}
#jtext-3 > * { position: relative; z-index: 1; }

.jt-eyebrow {
  font-size: clamp(.6rem, 1.1vw, .75rem); letter-spacing: .3em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 20px;
  text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.7);
}
.jt-title {
  font-size: clamp(4.5rem, 13vw, 11rem); font-weight: 700;
  line-height: .9; letter-spacing: -.02em; margin-bottom: 24px;
  display: flex; flex-direction: column; align-items: center;
  /* sombra dupla: nítida + difusa para contraste máximo */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.95)) drop-shadow(0 4px 32px rgba(0,0,0,.7));
}
.jt-line { display: block; overflow: visible; }
.jt-accent {
  color: transparent; -webkit-text-stroke: 1.5px var(--cyan);
  filter: drop-shadow(0 0 20px rgba(76,201,255,.5)) drop-shadow(0 2px 8px rgba(0,0,0,.9));
}
/* chars do Splitting */
.jt-title .char { display: inline-block; opacity: 0; transform: translateY(50%) rotateX(-45deg); filter: blur(5px); }

.jt-sub {
  font-size: clamp(.8rem, 1.4vw, .95rem); color: var(--white);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 48px;
  text-shadow: 0 1px 8px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,.85);
}

.jtext h2 {
  font-size: clamp(1.8rem, 4.5vw, 4rem); font-weight: 700;
  line-height: 1.1; margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.95), 0 4px 40px rgba(0,0,0,.8);
  color: var(--white);
}
.jtext p {
  font-size: clamp(.85rem, 1.4vw, 1rem); color: var(--white);
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 2px 18px rgba(0,0,0,.7);
}

/* Scroll hint */
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint span { font-size: .58rem; letter-spacing: .32em; color: var(--white); text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--cyan), transparent); animation: sLine 1.8s ease-in-out infinite; }
@keyframes sLine { 0%{transform:scaleY(0);transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 100%{transform:scaleY(1);transform-origin:bottom;opacity:0;} }

/* Flash branco */
.j-flash { position: absolute; inset: 0; z-index: 20; background: #fff; opacity: 0; pointer-events: none; }

/* Barra de progresso */
.j-prog { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: rgba(76,201,255,.07); z-index: 25; }
.j-prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--cyan2)); box-shadow: 0 0 6px var(--cyan2); }

/* tag inline */
.tag {
  display: inline-block; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(76,201,255,.25); padding: 5px 14px; border-radius: 2px; margin-bottom: 20px;
}
.tag .char { display: inline-block; }

/* ══════════════════════════════════════════════════
   SEÇÕES (conteúdo abaixo da jornada)
══════════════════════════════════════════════════ */
.section {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 7%; overflow: hidden;
}

/* ── Imagens das seções: SEM background falso ── */
.sec-img-glow {
  position: relative; display: flex; align-items: center; justify-content: center;
  /* glow via filter no container, não no img */
  filter: drop-shadow(0 0 25px rgba(76,201,255,.12));
}
.sec-img {
  display: block; max-width: 100%;
  /* Fundo branco removido via JS (Canvas pixel manipulation) */
  opacity: 0; transform: translateY(30px) scale(.97);
  transition: none; /* animado pelo GSAP */
}

/* ── Conteúdo de seção ── */
.sec-content { max-width: 520px; }
.sec-content--right  { margin-left: auto; }
.sec-content--left   { margin-right: auto; }
.sec-content--centered { text-align: center; max-width: 680px; margin: 0 auto; }
.sec-content--top    { width: 100%; text-align: center; margin-bottom: 50px; }

.sec-title {
  font-size: clamp(2rem, 4.5vw, 4rem); font-weight: 700; line-height: 1.05;
  letter-spacing: -.02em; margin-bottom: 24px;
}
.sec-title--center { text-align: center; }
.sec-title--xl     { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
.sec-title .char   { display: inline-block; opacity: 0; transform: translateY(35px); }

.sec-body {
  font-size: clamp(.9rem, 1.4vw, 1.05rem); color: var(--muted); line-height: 1.78;
  opacity: 0; transform: translateY(18px);
}
.sec-body--center { text-align: center; max-width: 480px; margin: 0 auto 40px; }

/* ── Impact ── */
.sec-impact { gap: 60px; background: linear-gradient(135deg, var(--bg-mid), var(--bg)); }
.sec-visual  { flex: 1; min-height: 400px; display: flex; align-items: center; justify-content: center; }

.feat-list { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.feat-item {
  display: flex; align-items: center; gap: 12px;
  font-size: .88rem; color: var(--muted);
  opacity: 0; transform: translateX(18px);
}
.feat-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan2); box-shadow: 0 0 8px var(--cyan2); flex-shrink: 0;
}

/* SVG linhas elétricas */
.elec-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.elec-line { fill: none; stroke: var(--cyan2); stroke-width: 1.5; stroke-dasharray: 300; stroke-dashoffset: 300; filter: drop-shadow(0 0 4px var(--cyan2)); }

/* ── Concept ── */
.sec-concept { gap: 60px; background: var(--bg-mid); flex-direction: row-reverse; }
.concept-wrap { min-height: 460px; width: 100%; max-width: 520px; }

.blueprint-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(76,201,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(76,201,255,.04) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0; transition: opacity 1s;
}
.blueprint-grid.vis { opacity: 1; }

.bp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 36px; opacity: 0; transform: translateY(18px); }
.spec-item { text-align: center; }
.spec-num  { font-size: clamp(2rem,4vw,3.2rem); font-weight: 700; color: var(--cyan2); line-height: 1; }
.spec-unit { font-size: 1.1rem; color: var(--cyan); }
.spec-lbl  { display: block; font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }

/* ── Practice ── */
.sec-practice  { flex-direction: column; background: linear-gradient(to bottom, var(--bg-mid), var(--bg)); }
.practice-wrap { width: 100%; }
.practice-img-wrap { position: relative; max-width: 860px; margin: 0 auto; min-height: 400px; }

.comp-label { position: absolute; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-8px); }
.comp-dot   { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan2); box-shadow: 0 0 10px var(--cyan2); flex-shrink: 0; animation: dotP 2s ease-in-out infinite; }
.comp-line  { width: 36px; height: 1px; background: linear-gradient(90deg, var(--cyan2), transparent); }
.comp-txt   { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--cyan3); white-space: nowrap; }
@keyframes dotP { 0%,100%{box-shadow:0 0 6px var(--cyan2);} 50%{box-shadow:0 0 18px var(--cyan2),0 0 36px rgba(76,201,255,.5);} }

.trace-svg   { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trace-path  { fill: none; stroke: var(--cyan2); stroke-width: 2; stroke-dasharray: 1400; stroke-dashoffset: 1400; filter: drop-shadow(0 0 5px var(--cyan2)); opacity: .7; }
.trace-dot   { fill: #fff; opacity: 0; filter: drop-shadow(0 0 5px var(--cyan2)); }

/* ── Differentials ── */
.sec-diff { flex-direction: column; gap: 64px; background: var(--bg); }
.diff-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; width: 100%; max-width: 1200px; margin: 0 auto; }

.diff-card {
  position: relative; padding: 32px 24px; border-radius: 4px;
  border: 1px solid rgba(76,201,255,.1); background: rgba(11,16,32,.6);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(36px);
  transition: border-color .3s, transform .3s;
  overflow: hidden;
}
.diff-card:hover { border-color: rgba(76,201,255,.35); transform: translateY(-4px) !important; }
.diff-glow {
  position: absolute; bottom: -40px; left: 50%; width: 110px; height: 70px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse, rgba(76,201,255,.15) 0%, transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.diff-card:hover .diff-glow { opacity: 1; }
.diff-icon { width: 40px; height: 40px; color: var(--cyan2); margin-bottom: 18px; }
.diff-icon svg { width: 100%; height: 100%; }
.diff-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 10px; }
.diff-card p  { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* ── Contact ── */
.sec-contact { flex-direction: column; justify-content: space-between; background: var(--bg); }
.contact-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 25%, rgba(76,201,255,.07) 0%, transparent 60%);
}

.cta-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 44px; border: 1px solid rgba(76,201,255,.45); border-radius: 3px;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(18px);
  transition: box-shadow .4s, color .3s;
}
.cta-btn:hover { box-shadow: 0 0 40px rgba(76,201,255,.28), inset 0 0 28px rgba(76,201,255,.07); color: var(--cyan2); }
.cta-glow { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(76,201,255,.06), transparent); pointer-events: none; }

/* ══════════════════════════════════════════════════
   SEÇÃO BLOG
   payload-cms: collection="posts" limit=3
══════════════════════════════════════════════════ */
.sec-blog {
  position: relative;
  padding: 100px 5% 100px;
  overflow: hidden;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

/* ── Grade 3 cards ─────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 64px auto 52px;
}
@media (max-width: 900px)  { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ── Card ──────────────────────────────────────── */
.blog-card {
  position: relative;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(76,201,255,.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  /* estado inicial para animação de entrada */
  opacity: 0;
  transform: translateY(40px);
  transition: border-color .35s, box-shadow .35s, transform .35s;
}
.blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.blog-card:nth-child(1) { transition-delay: .05s; }
.blog-card:nth-child(2) { transition-delay: .18s; }
.blog-card:nth-child(3) { transition-delay: .31s; }

.blog-card:hover {
  border-color: rgba(76,201,255,.25);
  box-shadow: 0 0 48px rgba(76,201,255,.08), 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(-6px);
}

/* barra de luz no hover */
.blog-card-line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .35s, transform .35s;
}
.blog-card:hover .blog-card-line { opacity: 1; transform: scaleX(1); }

/* ── Imagem / capa ──────────────────────────────── */
.blog-card-img-wrap {
  position: relative;
  height: 180px; flex-shrink: 0;
  overflow: hidden;
}
.blog-card-img {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform .55s var(--ease);
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }

/* foto real do artigo */
.blog-card-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .55s var(--ease);
}
.blog-card:hover .blog-card-photo { transform: scale(1.08); }

/* overlay escuro sobre a foto para a tag ficar legível */
.blog-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(3,5,10,.22) 0%,
    rgba(3,5,10,.10) 40%,
    rgba(3,5,10,.60) 100%
  );
  pointer-events: none;
}

.blog-tag {
  position: absolute; top: 12px; left: 14px;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan2);
  background: rgba(5,10,20,.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(76,201,255,.22);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ── Corpo do card ──────────────────────────────── */
.blog-card-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}

.blog-date {
  font-size: .68rem; letter-spacing: .08em;
  color: var(--muted); opacity: .55;
}

.blog-card-title {
  font-size: 1rem; font-weight: 600; line-height: 1.45;
  color: var(--white);
  transition: color .25s;
}
.blog-card:hover .blog-card-title { color: var(--cyan3); }

.blog-card-excerpt {
  font-size: .82rem; line-height: 1.65;
  color: var(--muted); opacity: .75;
  flex: 1;
  /* 3 linhas máx */
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.blog-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
  margin-top: 4px;
  transition: gap .25s, color .25s;
}
.blog-read-more svg { width: 16px; height: 16px; transition: transform .25s; }
.blog-card:hover .blog-read-more { color: var(--cyan2); gap: 10px; }
.blog-card:hover .blog-read-more svg { transform: translateX(3px); }

/* ── CTA "Ver todos" ────────────────────────────── */
.blog-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  border: 1px solid rgba(76,201,255,.3);
  border-radius: 4px;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(76,201,255,.04);
  backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s, box-shadow .3s, transform .25s;
  opacity: 0; transform: translateY(16px);
}
.blog-cta.is-visible { opacity: 1; transform: translateY(0); transition-delay: .44s; }
.blog-cta:hover {
  color: var(--white); border-color: rgba(76,201,255,.65);
  box-shadow: 0 0 32px rgba(76,201,255,.18);
  transform: translateY(-2px);
}
.blog-cta svg { width: 20px; height: 20px; transition: transform .25s; }
.blog-cta:hover svg { transform: translateX(4px); }

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(76,201,255,.10);
  padding: 48px 5% 32px;
  margin-top: 60px;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
}

/* topo: logo + normas */
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-logo { height: 36px; width: auto; opacity: .55; filter: brightness(0) invert(1); }
.footer-norm { font-size: .68rem; letter-spacing: .14em; color: var(--cyan); opacity: .45; text-transform: uppercase; }

/* grade 3 colunas */
.footer-grid {
  width: 100%; max-width: 1100px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
  align-items: start;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col--center { align-items: center; text-align: center; }

.footer-col-title {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); opacity: .7; margin-bottom: 2px;
}

/* redes sociais */
.footer-socials { display: flex; flex-direction: column; gap: 10px; }
.fsoc {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--muted);
  transition: color .25s, transform .25s;
}
.fsoc:hover { color: var(--white); transform: translateX(4px); }
.fsoc svg { width: 20px; height: 20px; flex-shrink: 0; }
.fsoc--ig:hover { color: #e1306c; }
.fsoc--li:hover { color: #0a66c2; }
.fsoc--tt:hover { color: #69c9d0; }
.fsoc--yt:hover { color: #ff0000; }

/* links legais */
.footer-links { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.footer-links a {
  font-size: .82rem; color: var(--muted);
  transition: color .25s; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: transparent;
}
.footer-links a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

.footer-copy { font-size: .74rem; color: var(--muted); opacity: .55; line-height: 1.6; }

/* mapa */
.footer-col--map .footer-map-wrap {
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(76,201,255,.12);
  box-shadow: 0 0 24px rgba(76,201,255,.06);
}
.footer-col--map iframe { display: block; filter: invert(90%) hue-rotate(180deg) brightness(.85) saturate(1.4); }

/* ══════════════════════════════════════════════════
   BLOG READER — painel deslizante
══════════════════════════════════════════════════ */

/* Backdrop escuro sobre a página enquanto reader está aberto */
#blog-reader-backdrop {
  position: fixed; inset: 0; z-index: 790;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .65s var(--ease);
}
body.blog-reading #blog-reader-backdrop {
  opacity: 1; pointer-events: auto;
}

/* A página desliza para a esquerda */
body.blog-reading #journey,
body.blog-reading .section {
  transform: translateX(-7%) scale(0.97);
  opacity: .18;
  transition: transform .65s var(--ease), opacity .5s ease;
  pointer-events: none;
}

/* O painel reader */
#blog-reader {
  position: fixed;
  top: 0; right: 0;
  width: min(780px, 100vw);
  height: 100vh;
  z-index: 800;
  background: var(--bg-hi);
  transform: translateX(100%);
  transition: transform .7s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex; flex-direction: column;
  box-shadow: -12px 0 60px rgba(0,0,0,.6);
  border-left: 1px solid rgba(76,201,255,.10);
}
#blog-reader.open { transform: translateX(0); }

/* barra de topo do reader */
.br-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(17,24,39,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(76,201,255,.08);
  flex-shrink: 0;
}
.br-back {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid rgba(76,201,255,.22);
  color: var(--muted); border-radius: 4px;
  padding: 7px 14px; font-size: .78rem; letter-spacing: .06em;
  cursor: pointer; transition: color .25s, border-color .25s, background .25s;
}
.br-back:hover { color: var(--white); border-color: var(--cyan); background: rgba(76,201,255,.07); }
.br-back svg { width: 16px; height: 16px; }
.br-logo { height: 30px; width: auto; opacity: .55; filter: brightness(0) invert(1); }

/* hero da imagem */
.br-hero {
  position: relative; height: 280px; flex-shrink: 0; overflow: hidden;
}
.br-hero-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
#blog-reader.open .br-hero-img { transform: scale(1.05); }
.br-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,1) 0%, rgba(17,24,39,.5) 40%, rgba(17,24,39,.1) 100%);
}
.br-hero-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 36px;
}
.br-tag {
  display: inline-block;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan2); border: 1px solid rgba(76,201,255,.3);
  background: rgba(5,10,20,.7); padding: 4px 10px; border-radius: 4px;
  margin-bottom: 10px;
}
.br-title {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700; line-height: 1.25; color: var(--white);
  margin: 0 0 8px;
}
.br-date { font-size: .72rem; color: var(--muted); opacity: .65; }

/* corpo do artigo */
.br-body {
  padding: 40px 36px 60px;
  flex: 1;
}
.br-content {
  font-size: .95rem; line-height: 1.85; color: var(--muted);
  max-width: 660px;
}
.br-content h2 {
  font-size: 1.2rem; font-weight: 600; color: var(--white);
  margin: 32px 0 12px;
  padding-left: 14px;
  border-left: 2px solid var(--cyan);
}
.br-content h3 {
  font-size: 1rem; font-weight: 600; color: var(--cyan3);
  margin: 24px 0 8px;
}
.br-content p { margin-bottom: 18px; }
.br-content ul { padding-left: 20px; margin-bottom: 18px; }
.br-content li { margin-bottom: 8px; }
.br-content strong { color: var(--white); font-weight: 600; }
.br-content .br-highlight {
  background: rgba(76,201,255,.07);
  border: 1px solid rgba(76,201,255,.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--white);
  font-style: italic;
}

/* CTA ao final do artigo */
.br-cta-wrap {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(76,201,255,.08);
  text-align: center;
}
.br-cta-text { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.br-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid rgba(76,201,255,.4);
  border-radius: 4px;
  color: var(--cyan2); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s, box-shadow .3s;
}
.br-cta-btn:hover { background: rgba(76,201,255,.1); box-shadow: 0 0 24px rgba(76,201,255,.2); }

/* ── WhatsApp FAB ─────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.12); }
.whatsapp-icon { width: 58px; height: 58px; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.35); }
  50%       { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

.whatsapp-tooltip {
  position: absolute; right: 68px;
  background: rgba(5,10,18,.85); backdrop-filter: blur(10px);
  color: var(--white); font-size: .76rem; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 6px; white-space: nowrap;
  border: 1px solid rgba(37,211,102,.25);
  opacity: 0; pointer-events: none;
  transform: translateX(6px);
  transition: opacity .25s, transform .25s;
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════
   DEV CREDIT — 3BF
══════════════════════════════════════════════════ */
.dev-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg);
  border-top: 1px solid rgba(76,201,255,.05);
  font-size: .68rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
}
.dev-credit a {
  display: flex;
  align-items: center;
  opacity: .45;
  transition: opacity .25s ease;
  line-height: 1;
}
.dev-credit a:hover { opacity: 1; }
.dev-credit-logo {
  height: 16px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(1.6);
  transition: filter .25s ease;
}
.dev-credit a:hover .dev-credit-logo {
  filter: grayscale(0) brightness(1);
}

/* ══════════════════════════════════════════════════
   SPLITTING — char base
══════════════════════════════════════════════════ */
.word { display: inline-block; overflow: hidden; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .diff-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .sec-impact, .sec-concept { flex-direction: column !important; }
  .sec-content--right, .sec-content--left { margin: 0; max-width: 100%; }
  .sec-visual  { width: 100%; justify-content: center; }
  .concept-wrap { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  #journey { height: 480vh; }
  .section { padding: 70px 6%; }
  .diff-grid { grid-template-columns: 1fr; }
  .comp-label { display: none; }
  .jt-title { font-size: clamp(3.5rem, 18vw, 7rem); }
  .jtext h2 { font-size: clamp(1.5rem, 6vw, 2.4rem); }
  .sec-title--xl { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .spec-grid { gap: 10px; }
}

@media (max-width: 480px) {
  #journey { height: 420vh; }
  .jt-title { font-size: clamp(3rem, 20vw, 5.5rem); }
  .spec-grid { grid-template-columns: repeat(3,1fr); }
  .jt-accent { -webkit-text-stroke-width: 1px; }
}
