/* ============================================================
   TecWorks — Tema institucional / corporativo (claro)
   Inspiração: TOTVS / SAP / enterprise
   ============================================================ */

:root {
  --brand-600: #00a48d;
  --brand-700: #008674;
  --ink: #263238;
}

html { scroll-behavior: smooth; }
/* overflow-x: clip (e não hidden) impede o scroll horizontal SEM criar um
   container de scroll no body — pré-requisito para o position: sticky da
   seção imersiva (#sistema) fixar corretamente em relação à viewport. */
body { overflow-x: clip; }

/* Imagens sempre responsivas (evita estouro de largura em grids) */
img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
#nav.scrolled { box-shadow: 0 6px 24px -12px rgba(15,27,34,0.18); }
/* Logo: nunca encolher nem distorcer. flex:none impede o flexbox de comprimir
   o link quando o menu fica largo; max-width:none anula o img{max-width:100%}
   global (que deixava a imagem espremer mantendo a altura fixa de h-9). */
.logo-link { flex: none; }
.logo-link img { width: auto; max-width: none; height: 36px; }
.logo-mark { display: inline-grid; place-items: center; }
.nav-link { position: relative; transition: color .2s; }
.nav-link:hover { color: var(--brand-700); }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -22px;
  width: 0; height: 2px; background: var(--brand-600); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.mobile-link { padding: .7rem .25rem; border-radius: .5rem; transition: background .2s, color .2s; }
.mobile-link:hover { background: #f1f5f9; color: var(--brand-700); }

.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #56dcc6; display: inline-block;
  box-shadow: 0 0 0 0 rgba(127,209,218,0.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(127,209,218,.6)} 70%{box-shadow:0 0 0 7px rgba(127,209,218,0)} 100%{box-shadow:0 0 0 0 rgba(127,209,218,0)} }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; padding: .68rem 1.3rem; border-radius: .6rem;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  white-space: nowrap; cursor: pointer;
}
.btn-primary { color: #fff; background: var(--brand-700); border: 1px solid var(--brand-700); }
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 10px 24px -10px rgba(13,95,110,0.6); }
.btn-ghost { color: var(--brand-700); background: #fff; border: 1px solid #cbd5e1; }
.btn-ghost:hover { border-color: var(--brand-600); background: #f8fafc; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

/* On dark CTA section, ghost adapts */
.bg-brand-700 .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.bg-brand-700 .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600);
  padding-bottom: .3rem; border-bottom: 2px solid #c9f4ec;
}
.eyebrow-on-dark { color: #c9f4ec; border-color: rgba(255,255,255,.25); }

.section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.section-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.section-title {
  font-family: Inter, system-ui, sans-serif; font-weight: 700; color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
  margin-top: 1rem;
}
.section-head .section-title { margin-top: 1rem; }
.section-sub { margin-top: 1.1rem; font-size: 1.1rem; color: #64748b; }

/* ---------- Stats ---------- */
.stat { text-align: center; padding: 1rem; }
.stat-num { font-family: Inter, system-ui, sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--brand-700); line-height: 1; }
.stat-label { margin-top: .5rem; font-size: .9rem; color: #64748b; }

/* ---------- Solution cards ---------- */
.card {
  background: #fff; border: 1px solid #e9eef3; border-radius: 1rem; padding: 1.7rem;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover { box-shadow: 0 18px 40px -22px rgba(15,27,34,0.25); transform: translateY(-3px); border-color: #c9f4ec; }
.card-ico {
  width: 52px; height: 52px; border-radius: .8rem; display: grid; place-items: center;
  font-size: 1.5rem; background: #e9fbf7; border: 1px solid #c9f4ec; margin-bottom: 1.1rem;
}
.card h3 { font-family: Inter, system-ui, sans-serif; font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.card p { font-size: .94rem; color: #64748b; line-height: 1.6; }

/* ---------- Screenshot frames ---------- */
.shot {
  border: 1px solid #e2e8f0; border-radius: .9rem; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px -30px rgba(15,27,34,0.35);
  margin: 0 auto; max-width: 100%;
}
.shot-lg { max-width: 100%; }
.shot-bar {
  display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem;
  background: #f1f5f9; border-bottom: 1px solid #e2e8f0; overflow: hidden;
}
.shot-bar .wd { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.shot-bar .wd:nth-child(1){ background:#f0a8a8 } .shot-bar .wd:nth-child(2){ background:#f3d39a } .shot-bar .wd:nth-child(3){ background:#a8d8b0 }
.shot-url { margin-left: .6rem; font-size: .78rem; color: #64748b; font-weight: 500;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-area {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .3rem; padding: 1.5rem;
  color: #94a3b8;
  background:
    linear-gradient(135deg, #fbfdfe, #f3f7f9),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(15,126,147,0.025) 14px, rgba(15,126,147,0.025) 28px);
}
.shot-lg .shot-area { aspect-ratio: 16 / 9; }
.shot-sm .shot-area { aspect-ratio: 4 / 3; padding: 1rem; }
.shot-ico { width: 40px; height: 40px; color: #b6c2cf; margin-bottom: .4rem; }
.shot-title { font-family: Inter, system-ui, sans-serif; font-weight: 600; color: #64748b; }
.shot-hint { font-size: .85rem; color: #94a3b8; }
.shot-cap { margin-top: 1rem; text-align: center; font-size: .92rem; color: #64748b; }
/* Quando virar imagem: garante que <img> preencha bem a moldura */
.shot img { display: block; width: 100%; max-width: 100%; height: auto; }
/* Permite que as colunas de grid encolham abaixo do conteúdo (evita estouro por imagens) */
.grid > * { min-width: 0; }
.shot, .reveal { min-width: 0; }

/* ---------- IA section ---------- */
.ia-item { display: flex; gap: 1rem; align-items: flex-start; }
.ia-ico { flex: none; width: 46px; height: 46px; border-radius: .7rem; display: grid; place-items: center;
  font-size: 1.35rem; background: #fff; border: 1px solid #c9f4ec; box-shadow: 0 4px 14px -8px rgba(15,27,34,.2); }
.ia-item h4 { font-family: Inter, system-ui, sans-serif; font-weight: 600; color: var(--ink); font-size: 1.08rem; margin-bottom: .25rem; }
.ia-item p { font-size: .95rem; color: #64748b; line-height: 1.55; }

/* ---------- Reforma ---------- */
.reforma {
  background: linear-gradient(135deg, var(--brand-700), #0a6457);
  border-radius: 1.4rem; padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 30px 70px -35px rgba(13,95,110,0.6);
}
.tax-tag { font-size: .85rem; font-weight: 500; color: #fff; padding: .45rem .9rem; border-radius: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.shot-on-dark { box-shadow: 0 24px 60px -25px rgba(0,0,0,0.5); }

/* ---------- Integrations ---------- */
.int { background: #fff; border: 1px solid #e9eef3; border-radius: .9rem; padding: 1.4rem;
  transition: box-shadow .25s, transform .25s; }
.int:hover { box-shadow: 0 14px 32px -20px rgba(15,27,34,0.25); transform: translateY(-2px); }
.int h3 { font-family: Inter, system-ui, sans-serif; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.int p { font-size: .9rem; color: #64748b; line-height: 1.55; }

/* ---------- Segments ---------- */
.seg { background: #fff; border: 1px solid #e9eef3; border-radius: 1rem; padding: 1.8rem 1.5rem;
  transition: box-shadow .25s, transform .25s, border-color .25s; }
.seg:hover { box-shadow: 0 18px 40px -22px rgba(15,27,34,0.25); transform: translateY(-3px); border-color: #c9f4ec; }
.seg-ico { font-size: 2rem; margin-bottom: .8rem; }
.seg h3 { font-family: Inter, system-ui, sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.seg p { font-size: .92rem; color: #64748b; line-height: 1.55; }

/* ---------- Empresa / quote ---------- */
.why { display: flex; gap: .8rem; align-items: flex-start; color: #64748b; line-height: 1.5; }
.why-c { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--brand-600); font-size: .8rem; font-weight: 700; }
.quote { background: #f8fafc; border: 1px solid #e9eef3; border-radius: 1.3rem; padding: 2.5rem; }

/* ---------- CTA / form ---------- */
.cline { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.9); transition: color .2s; }
a.cline:hover { color: #fff; }
.lbl { display: block; font-size: .82rem; color: #475569; margin-bottom: .35rem; font-weight: 500; }
.inp { width: 100%; padding: .72rem .9rem; border-radius: .55rem; color: var(--ink); font-size: .95rem;
  background: #fff; border: 1px solid #cbd5e1; transition: border-color .2s, box-shadow .2s; }
.inp::placeholder { color: #94a3b8; }
.inp:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(15,126,147,0.12); }

/* ---------- Footer ---------- */
.bg-ink { background: var(--ink); }
.footer-h { font-family: Inter, system-ui, sans-serif; color: #fff; font-weight: 600; font-size: .95rem; margin-bottom: .9rem; }
.footer-list { display: flex; flex-direction: column; gap: .55rem; font-size: .88rem; }
.footer-list a { color: #94a3b8; transition: color .2s; }
.footer-list a:hover { color: #56dcc6; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #25d366; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live, .wa-float { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SISTEMA IMERSIVO — scroll estilo Apple ("navegue pelo sistema")
   ------------------------------------------------------------
   Base (sem JS / reduzir movimento) = galeria escura empilhada.
   A classe .is-live (adicionada via JS) liga o palco fixo (sticky)
   com crossfade + parallax dirigidos pelo progresso do scroll.
   ============================================================ */
.sys {
  position: relative;
  background: radial-gradient(120% 80% at 50% 0%, #0e2024 0%, #081215 55%, #060e10 100%);
  color: #e6f0f1;
  /* clip (e não hidden) recorta o glow decorativo SEM criar container de
     scroll — caso contrário o position: sticky do .sys-stage (descendente)
     não fixa. O próprio palco usa overflow:hidden no modo imersivo. */
  overflow: clip;
  isolation: isolate;
}
.sys::before, .sys::after { /* faixas de transição suave com as seções claras vizinhas */
  content: ''; position: absolute; left: 0; right: 0; height: 90px; z-index: 6; pointer-events: none;
}
.sys::before { top: 0; background: linear-gradient(#060e10, transparent); }
.sys::after { bottom: 0; background: linear-gradient(transparent, #060e10); }

/* fundo decorativo (grid + orbs de glow) */
.sys-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sys-grid {
  position: absolute; inset: -15%;
  background-image:
    linear-gradient(rgba(127,231,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,231,224,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 30%, transparent 78%);
  will-change: transform;
}
.sys-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.sys-orb-1 { width: 480px; height: 480px; top: -140px; right: -90px;
  background: radial-gradient(circle, rgba(0,229,255,.40), transparent 70%); }
.sys-orb-2 { width: 440px; height: 440px; bottom: -160px; left: -110px;
  background: radial-gradient(circle, rgba(0,191,165,.34), transparent 70%); }

/* cabeçalho */
.sys-head { position: relative; z-index: 4; text-align: center; }
.sys-title {
  font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; color: #fff; margin-top: 1rem;
}
.sys-title span { background: linear-gradient(90deg, #00e5ff, #7fe7e0 55%, #00bfa5);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.sys-hint { margin-top: .9rem; color: #93b2b4; font-size: 1rem; }

/* palco e telas */
.sys-stage { position: relative; z-index: 1; max-width: 80rem; margin: 0 auto; padding: 5.5rem 1.5rem; }
.sys-viewport { position: relative; z-index: 1; margin-top: 3.5rem;
  display: flex; flex-direction: column; gap: 5rem; }
.sys-item { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .sys-item { grid-template-columns: 1.15fr .85fr; } }

/* moldura tipo "app/navegador" (dark) */
.sys-frame {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  background: #0c191d; border: 1px solid rgba(127,231,224,.16);
  box-shadow: 0 50px 130px -50px rgba(0,229,255,.40), 0 30px 70px -30px rgba(0,0,0,.85);
  will-change: transform;
}
.sys-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .95rem;
  background: #0a1417; border-bottom: 1px solid rgba(127,231,224,.10); }
.sys-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #2b3b40; }
.sys-bar .d:nth-child(1){ background:#ff5f57 } .sys-bar .d:nth-child(2){ background:#febc2e } .sys-bar .d:nth-child(3){ background:#28c840 }
.sys-url { margin-left: .55rem; font-size: .74rem; letter-spacing: .04em; color: #7fe7e0; font-weight: 500;
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-frame img { display: block; width: 100%; height: auto; }

/* chips flutuantes sobre a tela */
.sys-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 600; color: #d3eeeb; padding: .42rem .72rem; border-radius: 999px;
  background: rgba(8,16,18,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(127,231,224,.30); box-shadow: 0 10px 28px -12px rgba(0,229,255,.55);
  animation: sysFloat 4.5s ease-in-out infinite; }
.sys-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #00e5ff; box-shadow: 0 0 9px #00e5ff; }
.sys-chip-a { top: 12%; right: -10px; }
.sys-chip-b { bottom: 14%; left: -12px; animation-delay: -2.25s; }
@keyframes sysFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* legenda (cartão de vidro) */
.sys-cap { will-change: transform; }
.sys-cap-k { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #00e5ff; }
.sys-cap h3 { font-family: Inter, system-ui, sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; color: #fff; margin: .5rem 0 .6rem; line-height: 1.15; }
.sys-cap p { font-size: 1rem; color: #a7bdbf; line-height: 1.6; }

/* trilho de progresso + cue (só no modo imersivo) */
.sys-rail, .sys-cue { display: none; }
.sys-rail { list-style: none; }
.sys-rail li span { display: block; width: 9px; height: 9px; border-radius: 50%;
  background: rgba(127,231,224,.28); transition: transform .3s, background .3s, box-shadow .3s; cursor: pointer; }
.sys-rail li.on span { background: #00e5ff; box-shadow: 0 0 12px #00e5ff; transform: scale(1.35); }
.sys-cue span { display: block; width: 24px; height: 38px; border: 2px solid rgba(127,231,224,.45); border-radius: 13px; position: relative; }
.sys-cue span::after { content: ''; position: absolute; top: 7px; left: 50%; width: 4px; height: 7px; border-radius: 2px;
  background: #00e5ff; transform: translateX(-50%); animation: sysCue 1.7s ease-in-out infinite; }
@keyframes sysCue { 0% { opacity: 0; transform: translate(-50%,0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%,13px) } }

/* ---------- MODO IMERSIVO (.is-live, ligado por JS) ---------- */
.sys.is-live .sys-track { position: relative; /* altura definida via JS (vh por cena) */ }
.sys.is-live .sys-stage { position: -webkit-sticky; position: sticky; top: 0; height: 100vh; height: 100svh;
  max-width: none; margin: 0; padding: 0; overflow: hidden; }
.sys.is-live .sys-head { position: absolute; top: 6vh; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 40rem; margin: 0; }
.sys.is-live .sys-viewport { position: absolute; inset: 0; margin: 0; display: block; }
.sys.is-live .sys-item { position: absolute; inset: 0; display: grid; place-items: center;
  grid-template-columns: none; gap: 0; opacity: 0; }
.sys.is-live .sys-item[data-scene="0"] { opacity: 1; }
.sys.is-live .sys-frame { width: min(90vw, 1000px); }
.sys.is-live .sys-cap {
  position: absolute; left: 6vw; bottom: 11vh; max-width: 360px; z-index: 5;
  background: rgba(8,17,19,.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(127,231,224,.18); border-radius: 16px; padding: 1.4rem 1.5rem;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9);
}
.sys.is-live .sys-rail { display: flex; flex-direction: column; gap: 14px; align-items: center;
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 6; margin: 0; padding: 0; }
.sys.is-live .sys-cue { display: block; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; }

/* mobile / telas baixas no modo imersivo */
@media (max-width: 640px) {
  .sys-chip { display: none; }
  .sys.is-live .sys-frame { width: 92vw; }
  .sys.is-live .sys-cap { left: 4vw; right: 4vw; max-width: none; bottom: 5vh; padding: 1.1rem 1.2rem; text-align: center; }
  .sys.is-live .sys-rail { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .sys-chip, .sys-cue span::after { animation: none !important; }
}

/* ============================================================
   EFEITOS PREMIUM — spotlight, tilt 3D, aurora, grão, reveal blur, progresso
   ------------------------------------------------------------
   Tudo em CSS/JS puro. Os que envolvem movimento são neutralizados
   em prefers-reduced-motion (bloco no fim). Spotlight/tilt só ligam
   em ponteiro fino com hover (controle no main.js).
   ============================================================ */

/* ---- (4) Barra de progresso de leitura ---- */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100;
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  background: linear-gradient(90deg, #00bfa5, #00e5ff);
  box-shadow: 0 0 10px rgba(0,229,255,.5);
}

/* ---- (1) Spotlight glow seguindo o mouse nos cards ---- */
.card, .int, .seg { position: relative; overflow: hidden; }
.card::before, .int::before, .seg::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(0,191,165,.14), transparent 62%);
}
.card:hover::before, .int:hover::before, .seg:hover::before { opacity: 1; }
.card > *, .int > *, .seg > * { position: relative; z-index: 1; }

/* ---- (2) Tilt 3D + reflexo nos screenshots ---- */
.shot { position: relative; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; transform-style: flat; }
.shot.tilt-active { transition: transform .08s linear; }
.shot::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; transition: opacity .25s; mix-blend-mode: overlay; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,.4), transparent 55%);
}
.shot.tilt-active::after { opacity: 1; }

/* ---- (3a) Aurora (hero) ---- */
.aurora-host { position: relative; isolation: isolate; }
.aurora-host > *:not(.aurora) { position: relative; z-index: 1; }
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora::before, .aurora::after { content: ''; position: absolute; border-radius: 50%; filter: blur(64px); }
.aurora::before {
  width: 55vw; height: 55vw; left: -12vw; top: -22vw;
  background: radial-gradient(circle, rgba(0,191,165,.22), transparent 65%);
  animation: auroraA 24s ease-in-out infinite alternate;
}
.aurora::after {
  width: 48vw; height: 48vw; right: -14vw; top: -8vw;
  background: radial-gradient(circle, rgba(0,229,255,.18), transparent 65%);
  animation: auroraB 30s ease-in-out infinite alternate;
}
@keyframes auroraA { from { transform: translate(0,0) scale(1) } to { transform: translate(8vw,6vw) scale(1.15) } }
@keyframes auroraB { from { transform: translate(0,0) scale(1) } to { transform: translate(-6vw,8vw) scale(1.1) } }

/* ---- (3b) Grão (textura global sutil) ---- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* ---- (4b) Reveal blur-in para títulos (classe adicionada só via JS) ---- */
.reveal-blur { opacity: 0; filter: blur(14px); transform: translateY(14px);
  transition: opacity .7s ease, filter .7s ease, transform .7s ease; }
.reveal-blur.in { opacity: 1; filter: blur(0); transform: none; }

@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none !important; }
  .reveal-blur { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
  #read-progress { display: none; }
  .shot { transition: none; }
}
