/* ==========================================================================
   TERRITÓRIO LIVRE — SITE EXPERIMENTAL (CONCEITO D1 HORIZONTE ABERTO)
   Design System Oficial: Predominância de Tons Claros & Identidade Preservada
   Acessibilidade: WCAG 2.2 AA (Contraste Máximo AAA para Texto Principal)
   Tipografia: Plus Jakarta Sans + JetBrains Mono
   Paleta: Derivada estritamente da logomarca oficial (Azul Marinho & Cerúleo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ==========================================================================
     PALETA DE TONS CLAROS (LIGHT-FIRST ESTRITO)
     ========================================================================== */
  --bg-page: #ffffff;
  --bg-surface: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-hover: #eef2f6;
  --bg-card: #ffffff;
  --bg-code: #f8fafc;
  --bg-banner: #eff6ff;

  /* Texto com Alto Contraste (WCAG AAA) */
  --text-primary: #0f172a;       /* Grafite profundo / Ardósia 900 (Contraste 15.8:1) */
  --text-secondary: #475569;     /* Cinza editorial médio (Contraste 5.9:1) */
  --text-muted: #64748b;         /* Cinza neutro para metadados (Contraste 4.6:1) */
  --text-caption: #94a3b8;       /* Cinza suave para legendas e notas */
  --text-inverse: #ffffff;

  /* Cores Extraídas da Logomarca Oficial */
  --brand-navy: #092856;         /* Azul Marinho Oficial ("TerritorioLivre") - Contraste 13.2:1 */
  --brand-navy-hover: #061a40;
  --brand-blue: #0084d0;         /* Azul Cerúleo Oficial (".net") - Contraste 4.8:1 */
  --brand-blue-hover: #006eb0;
  --brand-cyan: #00a8e8;         /* Ciano do Ponto Orbital */
  --brand-cyan-soft: #e0f2fe;    /* Fundo sutil para tags */

  /* Cores de Alerta e Status Neutras */
  --accent-emerald: #059669;
  --accent-emerald-soft: #ecfdf5;
  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;

  /* Linhas e Bordas Estruturais Neutras */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #092856;
  --border-brand: #0084d0;

  /* Tipografia */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Métricas de Layout */
  --container-max: 1200px;
  --reading-measure: 68ch;
  --header-height: 74px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transições Suaves */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--brand-blue);
}

/* Acessibilidade: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Acessibilidade: Ocultar visualmente preservando leitor de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Container Estrutural */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 36px);
  padding-right: clamp(20px, 4vw, 36px);
}

/* ==========================================================================
   BANNER DE AMBIENTE EXPERIMENTAL
   ========================================================================== */
.experimental-banner {
  background-color: var(--bg-banner);
  border-bottom: 1px solid #bfdbfe;
  padding: 10px 0;
  font-size: 0.84rem;
  color: var(--brand-navy);
}

.experimental-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.experimental-banner strong {
  color: var(--brand-navy);
  font-weight: 700;
}

.experimental-banner a {
  color: var(--brand-blue);
  text-decoration: underline;
  font-weight: 500;
}

.badge-experimental {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #dbeafe;
  color: var(--brand-navy);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   CABEÇALHO OFICIAL (PRESERVAÇÃO DA LOGOMARCA)
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-official {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Navegação Principal */
.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(14px, 2vw, 24px);
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-navy);
}

.nav-link.active {
  color: var(--brand-navy);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-blue);
  border-radius: 1px;
}

/* Ações no Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-navy);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-header-link:hover {
  background-color: #ffffff;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   BREADCRUMBS (TRILHA DE NAVEGAÇÃO)
   ========================================================================== */
.breadcrumbs {
  padding: 16px 0 12px 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--text-caption);
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
  padding: clamp(48px, 7vw, 76px) 0 clamp(40px, 6vw, 64px) 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.editorial-signature {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.editorial-signature::before {
  content: '— ';
  color: var(--brand-navy);
  font-weight: 700;
}

.hero-main-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 3.8vw, 3.0rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: var(--reading-measure);
  margin-bottom: 28px;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Botões */
.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-navy);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-navy);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  background-color: var(--brand-navy-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-secondary-action:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background-color: var(--bg-surface);
}

/* Diagrama Vetorial Espacial do Hero */
.hero-visual-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.vector-spatial-diagram {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   SEÇÕES DE CONTEÚDO EDITORIAL
   ========================================================================== */
.content-section {
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--border-light);
}

.content-section:nth-child(even) {
  background-color: var(--bg-surface);
}

.section-head {
  max-width: 800px;
  margin-bottom: clamp(32px, 4vw, 44px);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: var(--reading-measure);
}

/* ==========================================================================
   CATÁLOGO DE SOFTWARES EM LINHAS HORIZONTAIS ESTRUTURADAS (D1)
   ========================================================================== */
.softwares-horizontal-list,
.software-editorial-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.software-row-card,
.software-entry {
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  gap: 24px;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(9, 40, 86, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.software-row-card:hover,
.software-entry:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(9, 40, 86, 0.08);
  transform: translateY(-2px);
}

.software-row-logo,
.software-icon-frame {
  width: 100px;
  height: 100px;
  min-width: 100px;
  min-height: 100px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  box-sizing: border-box;
}

.software-row-logo img,
.software-icon-frame img,
.software-card-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.software-row-body,
.software-core-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.software-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.software-row-title,
.software-name-title {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 0;
  line-height: 1.25;
}

.software-row-title a,
.software-name-title a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.software-row-title a:hover,
.software-name-title a:hover {
  color: var(--brand-blue);
}

.software-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.badge-tag.primary {
  background-color: rgba(9, 40, 86, 0.08);
  color: var(--brand-navy);
}

.badge-tag.success {
  background-color: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.badge-tag.outline {
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background-color: var(--bg-surface);
}

.software-row-desc,
.software-summary {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.software-links-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.link-btn-text {
  color: var(--brand-navy);
}

.link-btn-text:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.software-tech-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.software-tech-meta span strong {
  color: var(--brand-navy);
}

.software-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
  min-width: 170px;
}

.btn-card-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background-color: var(--brand-navy);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
  box-shadow: 0 1px 3px rgba(9, 40, 86, 0.1);
}

.btn-card-primary:hover {
  background-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-card-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  background-color: #ffffff;
  color: var(--brand-navy);
  border: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-card-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.meta-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.spec-k {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-v {
  color: var(--text-primary);
  font-weight: 600;
}

.spec-v.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   CAIXAS OFICIAIS DE DOWNLOAD (LINUX & WINDOWS)
   ========================================================================== */
.download-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 28px 0;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: all var(--transition-fast);
}

.download-item:hover {
  border-color: var(--brand-blue);
  border-left-color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.download-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.download-info p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.download-info code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background-color: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  word-break: break-all;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-navy);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-navy);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-download:hover {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   STEPPER METODOLÓGICO DE DADOS (13 ETAPAS)
   ========================================================================== */
.stepper-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.step-card {
  display: flex;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color var(--transition-fast);
}

.step-card:hover {
  border-color: var(--brand-blue);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  background-color: var(--bg-subtle);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==========================================================================
   CARDS EDITORIAIS LIMPOS (PROJETOS, TUTORIAIS, ÁREAS)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 4px 18px rgba(9, 40, 86, 0.04);
}

.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.card-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 14px;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-link:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

/* Badges e Rótulos */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.badge-emerald {
  background-color: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: #a7f3d0;
}

.badge-cyan {
  background-color: var(--brand-cyan-soft);
  color: var(--brand-navy);
  border-color: #bae6fd;
}

.badge-amber {
  background-color: var(--accent-amber-soft);
  color: var(--accent-amber);
  border-color: #fde68a;
}

/* ==========================================================================
   CITAÇÃO ACADÊMICA & BIBTEX
   ========================================================================== */
.bibtex-wrapper {
  position: relative;
  background-color: var(--bg-code);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin: 16px 0 24px 0;
  overflow: hidden;
}

.bibtex-code {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-primary);
  padding: 16px 20px;
  overflow-x: auto;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* ==========================================================================
   LINHA DO TEMPO EDITORIAL (MEMÓRIA DESDE 2006)
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background-color: var(--border-light);
}

.timeline-item {
  position: relative;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brand-blue);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--border-light);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   RODAPÉ OFICIAL (INSTITUCIONAL & COERÊNCIA HISTÓRICA)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: clamp(48px, 6vw, 64px) 0 32px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: clamp(32px, 5vw, 48px);
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.footer-brand p {
  line-height: 1.65;
  color: var(--text-secondary);
}

.footer-tagline {
  font-style: italic;
  font-weight: 600;
  color: var(--brand-navy);
  margin: 8px 0 12px 0;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-navy);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .software-row-card,
  .software-entry {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }

  .software-row-logo,
  .software-icon-frame {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    padding: 8px;
  }

  .software-row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .software-row-actions a {
    flex: 1 1 auto;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .software-row-card,
  .software-entry {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .software-row-logo,
  .software-icon-frame {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
  }

  .software-row-actions {
    flex-direction: column;
    width: 100%;
  }

  .software-row-actions a {
    width: 100%;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .download-item .btn-download {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  .stepper-container {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   COMPOSIÇÃO TECNOLÓGICA ABSTRATA DO HERO (CANVAS 2D & PSEUDO-3D)
   ========================================================================== */
.hero-visual-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px -8px rgba(9, 40, 86, 0.08), 0 0 0 1px rgba(0, 132, 208, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-visual-dots {
  display: flex;
  gap: 5px;
}

.hero-visual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-medium);
}

.hero-visual-dot.primary {
  background-color: var(--brand-blue);
}

.hero-visual-dot.secondary {
  background-color: var(--brand-navy);
}

.hero-visual-dot.accent {
  background-color: var(--accent-emerald);
}

.hero-visual-title {
  margin-left: 4px;
  font-weight: 500;
  color: var(--brand-navy);
}

.hero-canvas-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-network-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-visual-caption {
  padding: 10px 16px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-visual-caption span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   JORNADA METODOLÓGICA INTERATIVA EM 13 ETAPAS (PÁGINA DADOS)
   ========================================================================== */
.methodology-journey {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 16px 40px -12px rgba(9, 40, 86, 0.08);
  margin: 32px 0;
}

.journey-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.journey-track-wrapper {
  position: relative;
  margin-bottom: 28px;
  padding: 8px 4px 16px;
}

.journey-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.journey-track::-webkit-scrollbar {
  height: 6px;
}

.journey-track::-webkit-scrollbar-thumb {
  background-color: var(--border-medium);
  border-radius: 4px;
}

.journey-station-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 76px;
  text-align: center;
}

.journey-station-btn:hover {
  background: var(--bg-hover);
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.journey-station-btn:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

.journey-station-btn.active {
  background: var(--brand-navy);
  border-color: var(--brand-blue);
  box-shadow: 0 6px 16px rgba(9, 40, 86, 0.15);
  transform: translateY(-2px);
}

.journey-station-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
}

.journey-station-btn.active .journey-station-num {
  color: #38bdf8;
}

.journey-station-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-station-btn.active .journey-station-name {
  color: #ffffff;
}

/* Painel de Relevo Pseudo-3D da Etapa */
.journey-stage-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 30px -8px rgba(9, 40, 86, 0.08), 0 0 0 1px rgba(0, 132, 208, 0.12);
  position: relative;
}

.journey-stage-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.journey-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.journey-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand-cyan-soft);
  color: var(--brand-navy);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 132, 208, 0.2);
}

.journey-stage-title {
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--brand-navy);
  margin: 10px 0 12px;
  line-height: 1.3;
}

.journey-stage-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

/* Abas Analíticas */
.journey-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.journey-tab-nav-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.journey-tab-nav-btn:hover {
  color: var(--brand-navy);
}

.journey-tab-nav-btn:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.journey-tab-nav-btn.active {
  color: var(--brand-blue);
  border-bottom: 2px solid var(--brand-blue);
}

.journey-tab-content-area {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  min-height: 120px;
  line-height: 1.65;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.journey-tab-content-area strong {
  color: var(--brand-navy);
}

.journey-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 12px;
}

.journey-step-counter {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.journey-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.journey-ctrl-btn.prev {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}

.journey-ctrl-btn.prev:hover:not(:disabled) {
  background-color: var(--bg-hover);
  color: var(--brand-navy);
}

.journey-ctrl-btn.next {
  background-color: var(--brand-navy);
  border: 1px solid var(--brand-navy);
  color: #ffffff;
}

.journey-ctrl-btn.next:hover:not(:disabled) {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.journey-ctrl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Fallback Estático da Jornada (visível se JS desabilitado) */
.journey-static-fallback {
  display: none;
  margin-top: 24px;
}

noscript .journey-static-fallback,
.no-js .journey-static-fallback {
  display: block;
}

noscript .journey-stage-panel,
noscript .journey-track-wrapper,
.no-js .journey-stage-panel,
.no-js .journey-track-wrapper {
  display: none;
}

.static-step-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.static-step-item h4 {
  color: var(--brand-navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

/* ==========================================================================
   RÉGUA DA LINHA DO TEMPO (PÁGINA MEMÓRIA)
   ========================================================================== */
.timeline-ruler {
  position: relative;
  padding-left: 36px;
  margin: 36px 0;
}

.timeline-ruler::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 12px;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
  border-radius: 2px;
}

.timeline-node-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-node-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 14px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--bg-page);
  border: 3px solid var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-cyan-soft);
}

.timeline-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9, 40, 86, 0.07);
}

.timeline-year-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

/* ==========================================================================
   CARDS DE POLÍTICA E ÉTICA (DADOS, SOBRE E LICENÇAS)
   ========================================================================== */
.policy-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 24px 0;
}

.policy-card h3 {
  color: var(--brand-navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.policy-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

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


/* ==========================================================================
   COMPONENTES COMPLEMENTARES (REVISÃO VISUAL 2026-11-10)
   Classes já usadas pelo gerador (build_site.py) que não tinham estilo.
   ========================================================================== */

/* --- Tipografia base do conteúdo (especificidade zero: qualquer classe sobrepõe) --- */
main {
  flex: 1 0 auto;
  padding-bottom: clamp(48px, 6vw, 80px);
}

:where(#main-content) :where(h1) {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

:where(#main-content) :where(h2) {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

:where(#main-content) :where(h3) {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

:where(#main-content) :where(h4) {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 6px;
}

:where(#main-content) :where(p + p) {
  margin-top: 12px;
}

:where(#main-content) :where(p a, li a, td a) {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

:where(#main-content) :where(code) {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background-color: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 3px;
}

/* --- Faixas de largura total (substituem as margens negativas inline) --- */
.band-full {
  border: 0;
  background: none;
  border-image: linear-gradient(180deg, #ffffff 0%, var(--bg-surface) calc(100% - 1px), var(--border-light) calc(100% - 1px)) fill 0 / / 0 100vmax;
}

.band-full.band-surface {
  border-image: linear-gradient(180deg, var(--border-light) 0 1px, var(--bg-surface) 1px calc(100% - 1px), var(--border-light) calc(100% - 1px)) fill 0 / / 0 100vmax;
}

/* --- Seções e cabeçalhos de seção --- */
.home-section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.home-section:last-child {
  padding-bottom: 0;
}

.section-header-clean {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.section-header-clean h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 10px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  margin-bottom: 10px;
}

/* --- Cabeçalho das páginas internas --- */
.page-title-block {
  max-width: 880px;
  padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 4vw, 40px);
}

.page-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: var(--reading-measure);
}

.software-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.scientific-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* --- Pilares (home) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-box {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(9, 40, 86, 0.06);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--brand-cyan-soft);
  color: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-box h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- Painel do hero: números em vez de rótulos internos --- */
.hero-visual-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-light);
  background-color: #ffffff;
}

.hero-visual-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
}

.hero-visual-stats li + li {
  border-left: 1px solid var(--border-light);
}

.hero-visual-stats strong {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand-navy);
}

.hero-visual-stats span {
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--text-muted);
}

/* --- Chamada do ciclo de dados (home) --- */
.data-methodology-preview {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-navy);
  background-image: url('../svg/topo-pattern.svg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
}

.data-preview-text {
  max-width: 760px;
}

.data-methodology-preview .section-tag {
  color: var(--brand-cyan);
}

.data-methodology-preview h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 12px;
}

.data-methodology-preview p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.data-steps-mini {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.data-steps-mini li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.data-steps-mini span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  background-color: var(--brand-cyan);
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 3px 8px;
}

.data-methodology-preview .btn-primary-action {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--brand-navy);
}

.data-methodology-preview .btn-primary-action:hover {
  background-color: var(--brand-cyan-soft);
  color: var(--brand-navy);
}

/* --- Páginas de software --- */
.lead-box p {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 78ch;
}

.styled-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px 32px;
  margin-bottom: 8px;
}

.styled-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: var(--brand-blue);
}

.table-responsive {
  overflow-x: auto;
  max-width: 920px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  text-align: left;
  background-color: var(--bg-surface);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table td:first-child {
  width: 38%;
  color: var(--text-primary);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:nth-child(even) {
  background-color: #fbfcfe;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-navy);
  border-radius: var(--radius-md);
  padding: 22px;
}

.download-card h4 {
  font-size: 1.05rem;
  color: var(--brand-navy);
  margin: 0;
}

.download-meta {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.download-hash {
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
  word-break: break-all;
}

.download-hash code {
  font-size: 0.95em;
  background: none;
  padding: 0;
}

.download-card .btn-primary-action {
  margin-top: auto;
  align-self: flex-start;
}

.download-card :where(p + p) {
  margin-top: 0;
}

.code-block {
  background-color: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  line-height: 1.6;
}

.code-block code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.copy-btn.btn-secondary-action {
  position: static;
  padding: 12px 20px;
  font-size: 0.94rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin: 16px 0 8px;
}

.step-badge {
  flex-shrink: 0;
  height: fit-content;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-navy);
  background-color: var(--brand-cyan-soft);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

/* O título da etapa já traz "Etapa 0X": o selo repetido é ocultado */
.steps-grid .step-badge {
  display: none;
}

.steps-grid .step-card {
  border-top: 3px solid var(--brand-blue);
}

.step-content h4 {
  font-size: 0.98rem;
}

.step-content p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --- Rodapé --- */
.footer-logo {
  margin-bottom: 12px;
}

.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* --- Ciclo de 13 etapas: nomes em até duas linhas em vez de cortados --- */
.journey-station-name {
  white-space: normal;
  text-overflow: clip;
  max-width: 96px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- Ajustes responsivos --- */
@media (max-width: 1080px) {
  .btn-header-link {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-visual-card {
    max-width: 560px;
  }

  /* Menu recolhido já no tablet: os 7 itens não cabem ao lado do logo */
  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

.nav-link {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero-canvas-container {
    height: 170px;
  }

  .hero-visual-stats li {
    padding: 12px 10px;
  }

  .hero-visual-stats strong {
    font-size: 1.2rem;
  }

  .styled-list,
  .steps-grid,
  .download-cards-grid {
    grid-template-columns: 1fr;
  }

  .data-table td:first-child {
    width: auto;
  }
}
