/* ============================================================
   TOKENS -- inspirados no redesign feito no Figma
============================================================ */
:root {
  --bg: #0a0a0f;
  --bg-raised: #13131a;
  --bg-raised-2: #1a1a25;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --ink: #f0f0f5;
  --ink-muted: #a0a0b8;
  --ink-faint: #6b6b88;
  --brand: #6c63ff;
  --brand-bright: #8b7fff;
  --brand-soft: rgba(108, 99, 255, 0.12);
  --accent: #00d4aa;

  --font-display: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1200px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(108, 99, 255, 0.4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108, 99, 255, 0.7); }

.text-gradient {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   BOTÕES / LINKS
============================================================ */
.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.link-button:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--brand), #5a52e8);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-primary:active { transform: translateY(0); }

/* Botão de download "de verdade" -- pulsando, chamando atenção,
   igual ao do Figma (16px 40px de padding, 14px de raio, mesmo
   peso de fonte 700). */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand), #5a52e8);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 16px 40px;
  border-radius: 14px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
.btn-download:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-download:active { transform: translateY(0); }

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(108, 99, 255, 0); }
}

/* ============================================================
   CABEÇALHO -- fixo, 64px, vidro fosco (igual Figma)
============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.85);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Selo colorido com gradiente atrás do logo -- igual ao "M" do
   Figma (36x36, gradiente diagonal roxo->verde-água). */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { width: 22px; height: 22px; display: block; object-fit: contain; }

.brand-version {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--brand-bright);
  background: var(--brand-soft);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

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

.nav-link {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

/* ============================================================
   HERO -- tela cheia, carrossel de fundo, texto centralizado
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100%;
  animation: showcase-scroll 32s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track { animation: none; }
}

@keyframes showcase-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-carousel .showcase-card {
  width: 480px;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Cor sólida em GRADIENTE (não quase-preto) reservando o espaço --
   fica com vida mesmo sem foto real ainda, e troca fácil por <img>
   depois (ver README.md). Cada uma usa uma combinação diferente
   das duas cores de marca + tons próximos, pra não ficar tudo
   igual mas continuar dentro da paleta. */
.ph-1 { background: linear-gradient(160deg, #4a3fd6 0%, #2a2470 100%); }
.ph-2 { background: linear-gradient(160deg, #00b894 0%, #0a4a3d 100%); }
.ph-3 { background: linear-gradient(160deg, #6c63ff 0%, #00d4aa 100%); }
.ph-4 { background: linear-gradient(160deg, #7c3fd6 0%, #2a1a5e 100%); }
.ph-5 { background: linear-gradient(160deg, #00a3d4 0%, #0a2f4a 100%); }
.ph-6 { background: linear-gradient(160deg, #5a52e8 0%, #1a1a4a 100%); }
.ph-7 { background: linear-gradient(160deg, #00d4aa 0%, #0a3d4a 100%); }
.ph-8 { background: linear-gradient(160deg, #8b7fff 0%, #3d2a70 100%); }

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.75) 0%,
    rgba(10,10,15,0.55) 50%,
    rgba(10,10,15,0.85) 100%
  );
}

.hero-copy {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 28px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--brand-bright);
  letter-spacing: 0.06em;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.hero h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-lede {
  color: rgba(160, 160, 184, 0.9);
  font-size: 17px;
  line-height: 1.7;
  max-width: 46ch;
  margin: 0 auto 40px;
}

.download-meta {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.os-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.os-badge { font-size: 12px; font-family: var(--font-mono); }
.os-ok { color: var(--accent); }
.os-maybe { color: var(--ink-faint); }

.link-hero { margin-top: 32px; display: inline-block; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-indicator span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brand), transparent);
}

@media (max-width: 720px) {
  .hero h1 { font-size: 40px; }
}

/* ============================================================
   SEÇÃO -- CABEÇALHO PADRÃO (eyebrow mono + título + linha gradiente)
============================================================ */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-bright);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-underline {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  margin-top: 16px;
}

/* ============================================================
   FEATURES (lista, não cards)
============================================================ */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
}

.features h2 {
  font-size: 40px;
  margin-bottom: 0;
}

.feature-list { margin: 48px 0 0; }

.feature-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }

.feature-row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-row dd {
  margin: 0;
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.7;
}

/* ============================================================
   RODAPÉ
============================================================ */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}
.footer-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
}
.footer-mark img { width: 17px; height: 17px; object-fit: contain; }

.footer-copy { font-size: 13px; color: var(--ink-faint); }

/* ============================================================
   OVERLAYS / MODAIS (compartilhado)
============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}
.overlay[hidden] { display: none; }

.modal {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem;
  border-radius: 6px;
}
.modal-close:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

.modal-small {
  width: 100%;
  max-width: 460px;
  padding: 2.2rem 2rem 1.8rem;
}
.modal-small h3 {
  font-size: 1.3rem;
  font-weight: 700;
  padding-right: 1.5rem;
  margin-bottom: 0.5rem;
}
.modal-sub {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

.opcoes-pergunta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.opcao-pergunta {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opcao-pergunta:hover { border-color: var(--ink-faint); background: rgba(255,255,255,0.03); }
.opcao-pergunta[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Questionário obrigatório antes do download */
.modal-questionario {
  max-width: 540px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
.modal-questionario .modal-sub { margin-bottom: 1.3rem; line-height: 1.55; }
.modal-questionario .modal-sub b { color: var(--ink); }
.selo-gratuito {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-bright);
  background: var(--brand-soft);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}
.campo { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.campo label, .campo legend {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.campo select, .campo input[type="text"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.campo select option { background: var(--bg-raised); color: var(--ink); }
.campo select:focus, .campo input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.campo input[type="text"] + * { margin-top: 0; }
.campo select + input[type="text"] { margin-top: 0.55rem; }
.campo input[hidden], .campo[hidden] { display: none; }
.opcoes-linha {
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.opcoes-linha .opcao-pergunta { flex: 1 1 140px; }
.opcoes-linha .opcao-pergunta[data-universidade] { flex-basis: 100px; text-align: center; }
.campo legend { padding: 0; }
.campo .label-sub { margin-top: 0.9rem; }
#bloco-universidade-nome[hidden] { display: none; }
.opcao-pergunta small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.2rem;
}
.obrig { color: var(--brand-bright); }
.nota-obrig { font-size: 0.8rem; color: var(--ink-faint); }
.form-erro {
  color: #ff8a8a;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}
.form-erro[hidden] { display: none; }

#btn-confirmar-pergunta[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   DOCUMENTAÇÃO ("Como utilizar")
============================================================ */
.docs-shell {
  width: 100%;
  max-width: 1080px;
  height: min(760px, 88vh);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}

.docs-sidebar {
  border-right: 1px solid var(--line);
  background: rgba(19, 19, 26, 0.6);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.docs-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.3rem 0.9rem;
}
.docs-sidebar-head h2 { font-size: 1.1rem; font-weight: 700; }
.docs-sidebar-head .modal-close { position: static; }

.docs-search {
  margin: 0 1.1rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.docs-search::placeholder { color: var(--ink-faint); }
.docs-search:focus { border-color: var(--brand); }

.docs-tree {
  overflow-y: auto;
  padding: 0 0.7rem 1.3rem;
  flex: 1;
}

.docs-group { margin-bottom: 0.2rem; }

.docs-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
}
.docs-group-btn:hover { background: rgba(255,255,255,0.05); }

.docs-group-caret {
  display: inline-block;
  transition: transform 0.15s ease;
  color: var(--ink-faint);
  font-size: 0.75em;
}
.docs-group.open .docs-group-caret { transform: rotate(90deg); }

.docs-children {
  display: none;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  margin-left: 1rem;
}
.docs-group.open .docs-children { display: block; }

.docs-leaf {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-family: var(--font-body);
  transition: all 0.15s ease;
}
.docs-leaf:hover { color: var(--ink-muted); background: rgba(255,255,255,0.04); }
.docs-leaf.active {
  color: var(--ink);
  background: var(--brand-soft);
  border-left-color: var(--brand);
  font-weight: 600;
}

.docs-content {
  padding: 2.2rem 2.4rem;
  overflow-y: auto;
}

.docs-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  text-align: center;
}

.docs-topic-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.docs-video-slot {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.docs-video-slot iframe { width: 100%; height: 100%; border: none; display: block; }

.docs-video-pending {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  gap: 0.5rem;
  text-align: center;
  padding: 1rem;
}

.docs-body {
  color: var(--ink-muted);
  max-width: 68ch;
  line-height: 1.75;
}
.docs-body p { margin: 0 0 1rem; }
.docs-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.docs-body li { margin-bottom: 0.4rem; }
.docs-body strong { color: var(--ink); }
.docs-body em { color: var(--ink-faint); }

.docs-no-results {
  padding: 1rem 0.6rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 0.4rem; }

  .docs-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 92vh;
  }
  .docs-sidebar { border-right: none; border-bottom: 1px solid var(--line); max-height: 42vh; }
}

@media (max-width: 520px) {
  .site-nav { gap: 0.2rem; }
  .os-badges { flex-direction: column; gap: 8px; align-items: center; }
}

/* ============================================================
   PROPOSTA 2026-10 -- Análise Visual, painéis, vídeos
============================================================ */
.hero .showcase-card {
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.nav-cta {
  margin-left: 8px;
  padding: 7px 18px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, var(--brand), #5a52e8);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* ---------- seção padrão ---------- */
.secao {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px 40px;
  scroll-margin-top: 40px;
}
.secao h2 { font-size: 44px; font-weight: 700; }
.secao-cabeca { max-width: 760px; }
.secao-lede {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 62ch;
}
.selo-novo {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent);
  color: #062a22;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---------- moldura de janela para as telas ---------- */
.janela {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(108, 99, 255, 0.06);
}
.janela-barra {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.janela-barra i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.janela-barra span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.janela img { display: block; width: 100%; height: auto; cursor: zoom-in; }

/* ---------- Análise Visual: vitrine com abas ---------- */
.av { position: relative; }
.av::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 520px;
  background: radial-gradient(closest-side, rgba(108, 99, 255, 0.18), transparent),
              radial-gradient(closest-side at 80% 60%, rgba(0, 212, 170, 0.12), transparent);
  pointer-events: none;
  z-index: -1;
}

.vitrine {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.vitrine > * { min-width: 0; }
.vitrine-abas { display: flex; flex-direction: column; gap: 6px; position: relative; }
.vitrine-aba {
  display: flex;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.vitrine-aba:hover { background: rgba(255, 255, 255, 0.03); }
.vitrine-aba[aria-selected="true"] {
  background: var(--brand-soft);
  border-color: rgba(108, 99, 255, 0.35);
  color: var(--ink);
}
.aba-num { font-family: var(--font-mono); font-size: 12px; color: var(--brand-bright); padding-top: 3px; }
.aba-texto { display: flex; flex-direction: column; gap: 4px; }
.aba-texto strong { font-size: 16px; font-weight: 600; color: inherit; }
.aba-texto span { font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; }
.vitrine-progresso { height: 2px; margin: 10px 16px 0; background: var(--line); border-radius: 2px; overflow: hidden; }
.vitrine-progresso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.vitrine-progresso.rodando span { animation: progresso 7s linear forwards; }
@keyframes progresso { to { width: 100%; } }

.vitrine-imagens { position: relative; aspect-ratio: 16 / 9; background: #e9ecef; }
.vitrine-imagens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.vitrine-imagens img.ativa { opacity: 1; z-index: 1; }

.passos {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.passos li {
  padding: 28px 26px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-raised), rgba(19, 19, 26, 0.4));
  border: 1px solid var(--line);
}
.passo-num {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 700;
  margin-bottom: 18px;
}
.passos h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.passos p { color: var(--ink-muted); font-size: 15px; line-height: 1.7; }

.tipos-grafico {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tipos-grafico li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-muted);
  font-size: 14px;
}
.tipos-grafico svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Painéis: galeria ---------- */
.galeria {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.galeria-grande { grid-column: 1 / -1; }
.galeria .janela:not(.galeria-grande) img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; }

/* ---------- Privacidade ---------- */
.privacidade {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-top: 40px;
}
.privacidade > div:last-child {
  padding: 32px 36px;
  border-radius: 18px;
  border: 1px solid rgba(0, 212, 170, 0.22);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.07), rgba(108, 99, 255, 0.05));
  flex: 1;
}
.privacidade h2 { font-size: 26px; margin-bottom: 12px; }
.privacidade p { color: var(--ink-muted); line-height: 1.75; max-width: 70ch; }
.priv-icone {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 212, 170, 0.12);
  margin-top: 12px;
}
.priv-icone svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Aprenda: vídeos ---------- */
.videos-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 26px 24px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.55;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.video-card:hover { border-color: rgba(108, 99, 255, 0.5); transform: translateY(-3px); background: var(--bg-raised-2); }
.video-card strong { color: var(--ink); font-size: 18px; font-weight: 600; }
.video-play {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  margin-bottom: 14px;
}
.video-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.video-cap { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand-bright); letter-spacing: 0.04em; }
.video-dur {
  position: absolute;
  top: 24px; right: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.aprenda-acoes { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.aprenda-nota { color: var(--ink-faint); font-size: 14px; }

.docs-video-slot video { width: 100%; height: 100%; display: block; background: #000; }

/* ---------- Chamada final ---------- */
.cta-final {
  max-width: var(--max-width);
  margin: 100px auto 80px;
  padding: 72px 24px;
  text-align: center;
  border-radius: 24px;
  background: radial-gradient(ellipse at top, rgba(108, 99, 255, 0.22), transparent 70%),
              linear-gradient(180deg, var(--bg-raised), var(--bg));
  border: 1px solid var(--line);
}
.cta-final h2 { font-size: 40px; font-weight: 700; margin-bottom: 14px; }
.cta-final p { color: var(--ink-muted); max-width: 52ch; margin: 0 auto 36px; line-height: 1.7; }

/* ---------- Ampliar imagem ---------- */
.ampliar { padding: 3vh 3vw; cursor: zoom-out; }
.ampliar img { max-width: 100%; max-height: 94vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.ampliar .modal-close { position: fixed; top: 18px; right: 22px; font-size: 1.4rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .vitrine { grid-template-columns: 1fr; }
  .vitrine-abas { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .vitrine-aba { flex: 0 0 240px; }
  .vitrine-progresso { display: none; }
  .passos, .videos-grid { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .secao { padding-top: 80px; }
  .secao h2, .cta-final h2 { font-size: 32px; }
  .nav-hide-sm { display: none; }
  .privacidade { flex-direction: column; }
  .priv-icone { margin-top: 0; }
  .privacidade > div:last-child { padding: 24px; }
  .cta-final { margin: 60px 16px; padding: 52px 20px; }
}
@media (max-width: 520px) {
  .site-header-inner { padding: 0 16px; }
  .brand-version { display: none; }
  .nav-link { padding: 6px 8px; }
  .nav-cta { margin-left: 2px; padding: 7px 12px; }
}
.docs-video-slot .docs-imagem { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* Controles do vídeo da documentação */
.video-controles { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -0.6rem 0 1.5rem; }
.video-controles button { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--ink-muted); font-size: 13px; font-family: var(--font-mono); }
.video-controles button:hover { color: var(--ink); border-color: var(--ink-faint); }
.video-controles button[aria-pressed="true"] { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.video-vel-rotulo { margin: 0 4px 0 12px; font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }
