/* ============================================================
   Instituto MenteFort — folha de estilos
   Direção: editorial científico premium
   Paleta derivada do logo: ciano #22D3EE → violeta #7C3AED
   ============================================================ */

:root {
  --ink: #0b1026;
  --navy: #131a3a;
  --navy-soft: #1c2450;
  --cyan: #22d3ee;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --paper: #f7f8fc;
  --white: #ffffff;
  --text: #232946;
  --text-soft: #4c5270;
  --line: #e3e6f2;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet));
  --radius: 18px;
  --shadow-card: 0 10px 30px rgba(11, 16, 38, 0.08);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.22rem; margin-bottom: 0.4em; }

.grad-text {
  background: linear-gradient(100deg, var(--cyan), var(--violet), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--cyan); }

.lead {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 62ch;
  margin-bottom: 2.2rem;
}

.prose p { margin-bottom: 1.1em; max-width: 65ch; }
.prose p:last-child { margin-bottom: 0; }

.on-dark { color: #fff; }
.on-dark-soft { color: rgba(233, 236, 252, 0.82); }

/* Marcadores de conteúdo pendente (revisão do cliente) */
.pending {
  color: #b45309;
  background: #fef3c7;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.85em;
  font-style: normal;
  white-space: nowrap;
}
.section-dark .pending, .footer .pending { background: rgba(254, 243, 199, 0.16); color: #fcd34d; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 34, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 154, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.topbar.topbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Webchat HallVox: o fade do scroll atinge SÓ o balão (.hallvox-bubble).
   O painel (.hallvox-frame) tem estado próprio (abrir/fechar) e não pode ser tocado. */
.hallvox-bubble {
  opacity: calc(var(--mf-chat, 1)) !important;
}

body.chat-block .hallvox-bubble {
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .topbar { transition: none; }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { height: 54px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.menu a {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #e6e9f8;
  text-decoration: none;
  white-space: nowrap;              /* rótulo nunca quebra no meio da palavra */
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.menu a:hover { color: #fff; background: rgba(139, 154, 255, 0.14); }

.menu-cta {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.42);
}
.menu-cta:hover {
  background: linear-gradient(135deg, #4f8ef8, #2563eb) !important;
  color: #fff !important;
}

.lang { position: relative; margin-left: 8px; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(139, 154, 255, 0.22);
  border-radius: 999px;
  color: #e6e9f8;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  cursor: pointer;
  min-height: 38px;
  transition: border-color 0.2s, background-color 0.2s;
}
.lang-btn svg { color: #aab3d6; transition: transform 0.25s; }
.lang-btn:hover { border-color: rgba(139, 154, 255, 0.5); background-color: rgba(139, 154, 255, 0.08); }
.lang-btn:focus-visible { outline: 2px solid rgba(167, 139, 250, 0.7); outline-offset: 2px; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 158px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(14, 20, 48, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 154, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(4, 8, 24, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.lang-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.lang-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e6e9f8;
  cursor: pointer;
  transition: background 0.15s;
}
.lang-menu li:hover { background: rgba(139, 154, 255, 0.14); }
.lang-menu li[aria-selected="true"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  flex: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 1px solid rgba(139, 154, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #e6e9f8;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  /* topbar (72px) + hero = exatamente uma tela; conteúdo maior cresce sem cortar */
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center; /* centraliza o bloco verticalmente (sem vazio embaixo) */
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background: url("assets/neural-hero.png") right center / cover no-repeat;
  opacity: 0.95;
  animation: heroDrift 38s ease-in-out infinite alternate;
  will-change: transform;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, 1%); }
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  translate: var(--px, 0) var(--py, 0);
  transition: translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 16, 38, 0.94) 32%, rgba(11, 16, 38, 0.45) 70%, rgba(11, 16, 38, 0.15));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 44px 0;                 /* respiro simétrico; a centralização do .hero posiciona */
  max-width: 700px;
  margin-left: max(calc((100% - 1120px) / 2), 4%);
}

.hero h1 { color: #fff; margin: 10px 0 18px; }

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(233, 236, 252, 0.88);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 numa linha só — sem o "Atendimento" órfão */
  gap: 12px;
}

.chip {
  border: 1px solid rgba(139, 154, 255, 0.28);
  background: rgba(19, 26, 58, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 11px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chip dt {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.chip dd { font-size: 0.88rem; color: rgba(233, 236, 252, 0.9); }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 26px rgba(29, 78, 216, 0.38);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.5);
}
.btn-primary:hover::after { left: 160%; }

.btn-ghost {
  border: 1.5px solid rgba(233, 236, 252, 0.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(233, 236, 252, 0.12); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Seções ---------- */
.section { padding: clamp(64px, 10vh, 110px) 0; }
section[id], footer[id] { scroll-margin-top: 78px; } /* âncoras respeitam a topbar sticky */
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); position: relative; overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .container { position: relative; z-index: 1; }

/* ---------- Lançamento oficial ---------- */
.launch { max-width: 780px; }
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  margin-bottom: 22px;
}
.launch-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.7);
  animation: launchPulse 2s ease-in-out infinite;
}
@keyframes launchPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.68); }
}
.launch .lead { max-width: 60ch; }
.launch-note { max-width: 62ch; font-size: 0.98rem; line-height: 1.7; }
.launch-badge.confirmed::before { animation: none; }

/* Card de evento (data / horário / local) — pronto para receber os dados */
.event-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0 0;
  max-width: 640px;
}
.event-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.08), rgba(124, 58, 237, 0.08)), rgba(10, 14, 34, 0.55);
  border: 1px solid rgba(120, 160, 255, 0.22);
}
.event-ico {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
}
.event-ico svg {
  width: 18px;
  height: 18px;
  stroke: url(#iconGrad);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.4));
}
.event-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 236, 252, 0.62);
  margin: 0;
}
.event-val {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.event-val.pending {
  color: rgba(233, 236, 252, 0.58);
  font-weight: 500;
  font-style: italic;
}
.event-map {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
}
.event-map:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .event-card { grid-template-columns: 1fr; }
}

/* ---------- Compromisso ---------- */
.official-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.06), rgba(124, 58, 237, 0.06)), #fff;
  border: 1px solid var(--line);
}
.official-note svg { flex-shrink: 0; margin-top: 2px; }
.official-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft);
}
@media (prefers-reduced-motion: reduce) {
  .launch-badge::before { animation: none; }
}

/* ---------- Galeria de vídeos em arco ---------- */
.videos-sec { background: #fff; overflow: hidden; padding-bottom: 0; }
.videos-head { text-align: center; }
.videos-head .lead { margin-left: auto; margin-right: auto; }

.arc-stage {
  position: relative;
  height: 560px;
  margin-top: 8px;
  touch-action: pan-y;
  cursor: grab;
  /* só as pontas dissolvem no branco (miolo nítido, sensação de leque infinito) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.arc-stage.is-dragging { cursor: grabbing; }

.arc-track { list-style: none; margin: 0; padding: 0; }
.arc-card {
  position: absolute;
  left: 50%;
  top: 54px;
  width: 244px;
  margin-left: -122px;
  will-change: transform;
}
.arc-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.9);
}
.arc-card.is-center .arc-btn { transform: scale(1.08); }
.arc-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 18px; }

.arc-frame {
  display: block;
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #e8ebf5;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(11, 16, 38, 0.14);
  transition: box-shadow 0.35s ease;
}
.arc-card.is-center .arc-frame { box-shadow: 0 22px 50px rgba(11, 16, 38, 0.24); }
.arc-frame img,
.arc-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;       /* drag nativo da <img> mataria o arrasto do leque */
  -webkit-user-drag: none;
  user-select: none;
}
.arc-stage { user-select: none; -webkit-user-select: none; }
.arc-frame video { opacity: 0; transition: opacity 0.4s ease; }
.arc-frame video.is-live { opacity: 1; }

.arc-meta {
  display: block;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.arc-card.is-center .arc-meta { opacity: 1; transform: none; }
.arc-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--ink);
  max-width: 260px;
  margin: 0 auto;
}

/* palco branco curvo que mascara a base do leque (efeito do reference) */
.arc-floor {
  position: absolute;
  left: 50%;
  bottom: -580px;
  width: 3000px;
  height: 720px;
  margin-left: -1500px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 -26px 60px rgba(11, 16, 38, 0.1);
  pointer-events: none;
  z-index: 200;
}

/* botões em fluxo, abaixo do arco (nunca sobrepõem o título do card) */
.arc-nav {
  position: relative;
  z-index: 1;              /* acima do conteúdo da seção, ABAIXO da topbar sticky (z:100) */
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.arc-prev, .arc-next {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(11, 16, 38, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.arc-prev:hover, .arc-next:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 16, 38, 0.16); }
.arc-prev:focus-visible, .arc-next:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

@media (max-width: 820px) {
  .arc-stage { height: 470px; }
  .arc-card { width: 186px; margin-left: -93px; top: 44px; }
  .arc-floor { bottom: -570px; }
  .arc-nav { margin-top: 10px; }
  /* reserva 2 linhas p/ o título do card central, pra o gap com os botões ser constante */
  .arc-card.is-center .arc-meta { min-height: 2.9em; }
}

/* ---------- Lightbox de vídeo ---------- */
.vlb { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.vlb[hidden] { display: none; }
.vlb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 26, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.vlb-body {
  position: relative;
  z-index: 1;
  width: min(92vw, 400px);
  text-align: center;
  animation: vlbIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes vlbIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.vlb-video {
  width: 100%;
  max-height: min(74vh, 700px);
  border-radius: 16px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  outline: none;
}
.vlb-title { color: #fff; font-size: 1.1rem; margin: 14px 0 4px; }
.vlb-cap { color: rgba(233, 236, 252, 0.72); font-size: 0.92rem; margin: 0; }
.vlb-close {
  position: absolute;
  top: -52px;
  right: -6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.vlb-close:hover { background: rgba(255, 255, 255, 0.18); }
.vlb-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 480px) {
  .vlb-close { top: auto; bottom: -58px; right: 50%; margin-right: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  .vlb-body { animation: none; }
  .arc-btn, .arc-meta, .arc-frame video { transition: none; }
}

.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 440px, #000 calc(100% - 300px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 440px, #000 calc(100% - 300px), transparent 100%);
}

/* Capa de blend no topo da Teoria: dissolve a costura com o fim da jornada */
#teoria::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 8%, #101736 40%, var(--navy) 72%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* ---------- Fragmentos animados (seções escuras) ---------- */
.shards {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shards i {
  position: absolute;
  display: block;
  opacity: 0.1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(34, 211, 238, 0.35));
  animation: shardFloat 26s ease-in-out infinite alternate;
  will-change: transform;
}

.shards i:nth-child(1) {
  width: 190px; height: 190px;
  left: 6%; top: 14%;
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 0 82%);
  animation-duration: 30s;
}
.shards i:nth-child(2) {
  width: 120px; height: 120px;
  right: 10%; top: 8%;
  clip-path: polygon(0 0, 100% 22%, 64% 100%);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(59, 130, 246, 0.3));
  animation-duration: 24s;
  animation-delay: -8s;
}
.shards i:nth-child(3) {
  width: 260px; height: 260px;
  right: 4%; bottom: 10%;
  clip-path: polygon(28% 0, 100% 18%, 82% 92%, 0 70%);
  opacity: 0.07;
  animation-duration: 34s;
  animation-delay: -14s;
}
.shards i:nth-child(4) {
  width: 90px; height: 90px;
  left: 16%; bottom: 16%;
  clip-path: polygon(0 30%, 100% 0, 70% 100%);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.8), rgba(124, 58, 237, 0.3));
  animation-duration: 20s;
  animation-delay: -5s;
}
.shards i:nth-child(5) {
  width: 150px; height: 150px;
  left: 44%; top: 6%;
  clip-path: polygon(50% 0, 100% 60%, 40% 100%, 0 40%);
  opacity: 0.08;
  animation-duration: 28s;
  animation-delay: -18s;
}

@keyframes shardFloat {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(26px, -34px) rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .shards i { animation: none; }
}

@media (max-width: 820px) {
  .shards { display: none; }
}

/* ---------- Jornada (scroll cinematográfico) ---------- */
.journey {
  position: relative;
  height: 520vh;
  background: var(--ink);
}

/* Checkpoints magnéticos: 100% via JS (assistente direcional no script) */

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.journey-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journey-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 34, 0.9), transparent 18%),
    linear-gradient(0deg, rgba(10, 14, 34, 0.7), transparent 16%),
    radial-gradient(ellipse at center, rgba(11, 16, 38, 0.04) 35%, rgba(11, 16, 38, 0.62));
  box-shadow: inset 0 0 180px 60px rgba(11, 16, 38, 0.75);
}

.bridge-to-dark {
  height: 220px;
  background: linear-gradient(180deg,
    var(--white) 0%,
    #e8ecf6 14%,
    #b9c3dc 32%,
    #6a7aa5 52%,
    #2b3560 72%,
    #10173a 88%,
    var(--ink) 100%);
}

@media (max-width: 820px) {
  .bridge-to-dark { height: 150px; }
}

.journey-line {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 880px);
  text-align: center;
  pointer-events: none;
  opacity: 0;
}

.jl-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: #cdbcfc;
  text-shadow: 0 1px 2px rgba(11, 16, 38, 0.9);
  background: rgba(10, 14, 34, 0.38);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 999px;
  padding: 7px 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 26px;
  opacity: 0;
}

.jl-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.22;
  color: #fff;
  text-shadow:
    0 1px 3px rgba(11, 16, 38, 0.7),
    0 4px 34px rgba(11, 16, 38, 0.95);
  text-wrap: balance;
}
.jl-text em {
  font-style: normal;
  color: #a78bfa;
  text-shadow:
    0 1px 3px rgba(11, 16, 38, 0.85),
    0 4px 22px rgba(11, 16, 38, 0.9),
    0 0 34px rgba(109, 40, 217, 0.55);
}

.journey-line::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  background: radial-gradient(ellipse at center, rgba(7, 11, 28, 0.5), transparent 68%);
  z-index: -1;
}

.journey-fade {
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

.jl-text .w {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

/* ---------- Teoria ---------- */
.teoria-head { max-width: 720px; margin-bottom: 48px; }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  border-radius: var(--radius);
  padding: 30px 26px;
}

.card-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(139, 154, 255, 0.22);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card-dark:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 44px rgba(4, 8, 24, 0.5);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(233, 236, 252, 0.78); font-size: 0.96rem; }

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 18px;
  background:
    linear-gradient(150deg, rgba(34, 211, 238, 0.14), rgba(124, 58, 237, 0.14)),
    rgba(10, 14, 34, 0.72);
  border: 1px solid rgba(120, 160, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(34, 211, 238, 0.16);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card-dark:hover .card-icon {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 26px rgba(34, 211, 238, 0.3);
}
.card-icon svg {
  width: 25px;
  height: 25px;
  stroke: url(#iconGrad);            /* traço em gradiente ciano→violeta */
  stroke-width: 1.8;
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.55)) drop-shadow(0 0 9px rgba(124, 58, 237, 0.32));
}

.ip-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 154, 255, 0.2);
  font-size: 0.9rem;
  max-width: 75ch;
}

/* ---------- Responsável ---------- */
#responsavel {
  background:
    radial-gradient(560px 340px at 10% 15%, rgba(124, 58, 237, 0.07), transparent 70%),
    radial-gradient(600px 380px at 90% 85%, rgba(34, 211, 238, 0.08), transparent 70%),
    linear-gradient(180deg, #ffffff, #f1f3fb);
}

#servicos {
  background:
    radial-gradient(640px 400px at 88% 8%, rgba(124, 58, 237, 0.05), transparent 70%),
    radial-gradient(560px 380px at 6% 92%, rgba(34, 211, 238, 0.06), transparent 70%),
    var(--paper);
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.founder-figure {
  position: relative;
  justify-self: center;
  max-width: 380px;
}

.founder-figure {
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(11, 16, 38, 0.12);
}

.founder-figure img {
  border-radius: 16px;
}

.founder-role {
  font-weight: 600;
  color: var(--violet);
  margin-bottom: 18px;
}

/* ---------- Serviços ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.service {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 16, 38, 0.12);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.08em;
}

.service h3 { margin-top: 8px; }
.service p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Documentos ---------- */
.doclist { list-style: none; display: grid; gap: 14px; }

.doclist li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  font-weight: 500;
}

.doc-badge {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- Contato ---------- */
.contato .btn-primary { margin-top: 6px; }

.contact-card {
  font-style: normal;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 154, 255, 0.22);
  border-radius: var(--radius);
  padding: 34px 30px;
  color: rgba(233, 236, 252, 0.85);
}
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { margin-bottom: 14px; }
.contact-hours {
  padding-top: 12px;
  border-top: 1px solid rgba(139, 154, 255, 0.2);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(233, 236, 252, 0.66);
  padding: 76px 0 48px;
  font-size: 0.88rem;
}
.footer-inner {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}
.footer-logo { width: 200px; opacity: 1; margin-bottom: 10px; }

.foot-credit {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(139, 154, 255, 0.14);
  width: 100%;
  font-size: 0.8rem;
  color: rgba(233, 236, 252, 0.45);
}
.foot-credit a {
  color: rgba(233, 236, 252, 0.75);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.foot-credit a:hover { color: #7ee8fa; }

/* ---------- Animações (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: none; }

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero .reveal:nth-child(5) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service { transition: none; }
  .hero-bg { animation: none; }
  .hero-stars { display: none; }
  .grad-text { animation: none; }
  .scroll-hint { animation: none; }
  .hero-video, .ambient-video { display: none; }
  .journey { display: none; }
}

/* Indicador de scroll no hero */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 236, 252, 0.35);
  color: rgba(233, 236, 252, 0.8);
  animation: hintBounce 2.4s ease-in-out infinite;
  transition: background 0.2s;
}
.scroll-hint:hover { background: rgba(233, 236, 252, 0.12); }

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

.contact-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cards-3, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Menu horizontal não cabe abaixo de ~1024px → hambúrguer (evita rótulos quebrados) */
  .nav-toggle { display: flex; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(10, 14, 34, 0.97);
    border-bottom: 1px solid rgba(139, 154, 255, 0.16);
    padding: 12px 4%;
    box-shadow: 0 20px 40px rgba(11, 16, 38, 0.5);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px 16px; }
}

@media (max-width: 820px) {
  .grid-2, .founder { grid-template-columns: 1fr; }
  .founder-figure { max-width: 320px; }

  .hero-inner { margin-left: auto; width: 92%; padding: 40px 0; }
  .hero-bg { background-position: 78% center; }
  .hero-video { object-position: 72% center; }
  .journey { height: 420vh; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(11, 16, 38, 0.82), rgba(11, 16, 38, 0.6));
  }
  .hero-sub { margin-bottom: 22px; }
  .hero-actions { gap: 12px; margin-bottom: 26px; }
  .hero-chips { grid-template-columns: 1fr; } /* empilha no tablet/mobile */
}

@media (max-width: 560px) {
  .cards-3, .services { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .pending { white-space: normal; }
}

/* ---------- Responsivo fino (telas pequenas) ---------- */
@media (max-width: 480px) {
  .topbar-inner { min-height: 62px; gap: 10px; }
  .brand img { height: 44px; width: auto; }
  .lang select { min-height: 34px; padding: 6px 24px 6px 10px; font-size: 0.78rem; }
  .hero { min-height: calc(100dvh - 62px); } /* topbar menor no mobile */
  .hero-inner { padding: 28px 0; }
  .hero h1 { font-size: clamp(2.05rem, 8.5vw, 2.7rem); line-height: 1.1; margin: 6px 0 10px; }
  .hero-kicker { font-size: 0.74rem; letter-spacing: 0.12em; }
  .hero-sub { font-size: 0.95rem; line-height: 1.5; margin-bottom: 16px; }
  .hero-actions { gap: 10px; margin-bottom: 18px; }
  .hero-actions .btn { min-height: 46px; padding: 11px 22px; }
  .hero-chips { gap: 7px; }
  .chip { padding: 7px 13px; }
  .chip dt { font-size: 0.66rem; }
  .chip dd { font-size: 0.8rem; }
  .section { padding: 52px 0; }
  .service, .card { padding: 22px 18px; }
  .contact-card { padding: 24px 20px; }
  .founder-figure { max-width: 260px; padding: 8px; }
  .bridge-to-dark { height: 120px; }
  .footer-logo { width: 150px; }
  .doclist li { padding: 14px 14px; font-size: 0.92rem; gap: 12px; }
  .scroll-hint { display: none; }
}
