
/* TODO reorganizar e separar o css em diferentes arquivos */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

/* CSS Variables  */
:root {
  /* Backgrounds */
  --bg-void:        #ffffff;
  --bg-deep:        #f8fafc;
  --bg-surface:     #f1f5f9;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f8fafc;

  /* Borders */
  --border-subtle:  #e2e8f0;
  --border-accent:  rgba(22, 163, 74, 0.4);

  /* Green*/
  --green-dim:      #dcfce7;
  --green-mid:      #16a34a;
  --green-bright:   #15803d;
  --green-glow:     #166534;

  /* Blue */
  --blue-dim:       #dbeafe;
  --blue-mid:       #1d4ed8;
  --blue-bright:    #2563eb;
  --blue-glow:      #1e40af;

  /* Outros */
  --teal:           #0891b2;
  --amber:          #b45309;
  --red-alert:      #dc2626;

  /* Texto */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-code:      #15803d;

  /* Tipografia */
  --font-sans:   'Inter', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Raios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Sombras */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 4px 20px rgba(22,163,74,0.12);

  /* Transição */
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Hero (permanece escuro) */
  --hero-bg:         #091520;
  --hero-text:       #e8f4f0;
  --hero-text-sec:   #9bbcb0;
  --hero-text-muted: #4d7a6e;
  --hero-green:      #2dd4a0;
}

/* Reset  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--green-dim); color: var(--green-bright); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Inline code (fora de .code-block) */
code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
  color: var(--green-bright);
}

/* Layout  */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* Topbar  */
.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.topbar__logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.topbar__logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #16a34a, #2563eb);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem;
  color: #fff; letter-spacing: -0.5px;
}
.topbar__logo-text { font-weight: 700; font-size: 1.05rem; color: var(--text-primary); letter-spacing: -0.4px; }
.topbar__logo-sub { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); margin-top: 1px; }
.topbar__meta { display: flex; align-items: center; gap: 1rem; }
.topbar__badge {
  font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(22,163,74,0.3); color: var(--green-mid); background: var(--green-dim);
}
.topbar__github {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text-secondary); font-size: 0.85rem;
  padding: 6px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.topbar__github:hover { color: var(--text-primary); border-color: #cbd5e1; background: var(--bg-surface); }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }
.menu-toggle:hover { background: var(--bg-surface); }

/* Sidebar */
.sidebar {
  position: sticky; top: 64px;
  height: calc(100vh - 64px); overflow-y: auto;
  background: var(--bg-deep);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.sidebar__section-label {
  display: block;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  padding: 0.6rem 1.5rem 0.35rem; margin-top: 0.75rem;
}
.sidebar__nav { list-style: none; }
.sidebar__nav-item a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 1.5rem;
  text-decoration: none; color: var(--text-secondary); font-size: 0.84rem; font-weight: 450;
  line-height: 1.4; border-left: 2px solid transparent; transition: var(--transition);
}
.sidebar__nav-item a:hover {
  color: var(--text-primary);
  background: rgba(15,23,42,0.04);
  border-left-color: #cbd5e1;
}
.sidebar__nav-item a.active {
  color: var(--green-mid);
  background: var(--green-dim);
  border-left-color: var(--green-mid);
  font-weight: 600;
}
.sidebar__step-num {
  font-family: var(--font-mono); font-size: 0.62rem;
  color: var(--text-muted); min-width: 20px; flex-shrink: 0;
  transition: var(--transition);
}
.sidebar__nav-item a.active .sidebar__step-num { color: var(--green-mid); }

/* Main */
.main-content { min-width: 0; padding: 0; }

/* Loading placeholder */
[data-include] { min-height: 40px; }

/* Hero (dark)  */
.hero {
  position: relative; min-height: 520px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 4rem 3.5rem 3.5rem; overflow: hidden;
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(32,160,120,0.15);
  color: var(--hero-text);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(32,160,120,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,160,120,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.4) 70%, transparent);
}
.hero__glow-1 {
  position: absolute; top: -100px; right: 100px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(32,160,120,0.13) 0%, transparent 70%); border-radius: 50%;
}
.hero__glow-2 {
  position: absolute; bottom: -80px; left: 200px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(33,150,243,0.1) 0%, transparent 70%); border-radius: 50%;
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--hero-green); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero__eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--hero-green); }
.hero__title {
  font-family: var(--font-sans); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.5rem; max-width: 700px;
  color: var(--hero-text);
}
.hero__title em { font-style: italic; color: var(--hero-green); font-weight: 700; }
.hero__desc {
  max-width: 600px; color: var(--hero-text-sec); font-size: 1.05rem;
  line-height: 1.75; margin-bottom: 2.5rem;
}
.hero__desc strong { color: var(--hero-text); font-weight: 600; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__stat {
  background: rgba(16,38,56,0.7); border: 1px solid rgba(32,160,120,0.2);
  border-radius: var(--radius-md); padding: 0.75rem 1.25rem;
}
.hero__stat-num {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700;
  color: var(--hero-green); display: block;
}
.hero__stat-label { font-size: 0.75rem; color: var(--hero-text-muted); font-family: var(--font-mono); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Botões  */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: var(--transition);
  font-family: var(--font-sans); border: none;
}
.btn--primary {
  background: linear-gradient(135deg, #16a34a, #2563eb);
  color: #fff; box-shadow: 0 4px 20px rgba(22,163,74,0.3);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(22,163,74,0.45); }
.btn--outline {
  background: rgba(255,255,255,0.08); color: var(--hero-text-sec);
  border: 1px solid rgba(232,244,240,0.2);
}
.btn--outline:hover { color: var(--hero-text); border-color: rgba(232,244,240,0.4); background: rgba(255,255,255,0.12); }

/* Seções (light)  */
.content-section {
  padding: 4rem 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  background: var(--bg-void);
}
.content-section:nth-child(even) { background: var(--bg-deep); }
.content-section:last-child { border-bottom: none; }

.section-header { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.75rem; }
.section-num {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  color: var(--green-mid); background: var(--green-dim);
  border: 1px solid rgba(22,163,74,0.25); border-radius: var(--radius-sm);
  padding: 4px 8px; margin-top: 4px; white-space: nowrap; flex-shrink: 0;
}
.section-title {
  font-family: var(--font-sans); font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700; line-height: 1.2; color: var(--text-primary);
  margin-bottom: 0.3rem; letter-spacing: -0.5px;
}
.section-subtitle {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.prose {
  color: var(--text-secondary); font-size: 0.95rem;
  line-height: 1.8; max-width: 760px; margin-bottom: 1.5rem;
}
.prose + .prose { margin-top: 1rem; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose em { color: var(--green-mid); font-style: normal; }

/* Section Figure (imagem da seção) */
.section-fig {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.section-fig img {
  width: 100%; height: auto;
  display: block;
}
.section-fig__placeholder {
  height: 260px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--bg-surface);
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--text-muted);
}
.section-fig__placeholder svg { opacity: 0.3; }
.section-fig__placeholder-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 600; color: var(--text-secondary);
}
.section-fig__placeholder-hint {
  font-size: 0.72rem; color: var(--text-muted);
  font-family: var(--font-mono);
}
.section-fig figcaption {
  padding: 0.6rem 1.25rem;
  font-size: 0.78rem; font-style: italic;
  color: var(--text-muted); background: var(--bg-deep);
}

/* Cards  */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--green-mid), var(--blue-bright));
  opacity: 0; transition: var(--transition);
}
.card:hover { border-color: rgba(22,163,74,0.3); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 40px; height: 40px; background: var(--green-dim);
  border-radius: var(--radius-md); display: grid; place-items: center;
  margin-bottom: 1rem; color: var(--green-mid);
}
.card__title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.6rem; }
.card__body { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.card__body p { margin-bottom: 0.5rem; }
.card__body code { font-size: 0.8em; }

/* Pipeline Steps  */
.pipeline-steps { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; position: relative; }
.pipeline-steps::before {
  content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--green-mid), var(--blue-bright), transparent);
  opacity: 0.2;
}
.pipeline-step { display: grid; grid-template-columns: 48px 1fr; gap: 1.25rem; padding: 1.25rem 0; cursor: pointer; }
.pipeline-step__num {
  width: 48px; height: 48px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--green-mid); flex-shrink: 0; position: relative; z-index: 1;
  transition: var(--transition); box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.pipeline-step:hover .pipeline-step__num,
.pipeline-step.expanded .pipeline-step__num {
  background: var(--green-dim); border-color: rgba(22,163,74,0.4);
}
.pipeline-step__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.7rem; }
.pipeline-step__title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.pipeline-step__tag {
  font-family: var(--font-mono); font-size: 0.65rem; padding: 2px 8px; border-radius: 100px;
  border: 1px solid var(--border-subtle); color: var(--text-muted); background: var(--bg-surface);
  white-space: nowrap;
}
.pipeline-step__toggle { color: var(--text-muted); flex-shrink: 0; transition: transform var(--transition); }
.pipeline-step.expanded .pipeline-step__toggle { transform: rotate(180deg); color: var(--green-mid); }
.pipeline-step__body { grid-column: 2; max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.pipeline-step__body.open { max-height: 1600px; }
.pipeline-step__content { padding: 1rem 0 0.5rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75; }
.pipeline-step__content p { margin-bottom: 0.75rem; }
.pipeline-step__content p:last-child { margin-bottom: 0; }

/* Code Blocks  */
.code-block {
  background: #1e293b; border: 1px solid #334155;
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem;
  margin: 1rem 0; overflow-x: auto; position: relative;
}
.code-block::before {
  content: attr(data-label);
  position: absolute; top: 0; right: 0;
  font-family: var(--font-mono); font-size: 0.6rem; color: #64748b;
  padding: 4px 10px; border-bottom-left-radius: var(--radius-sm);
  background: #0f172a; border-left: 1px solid #334155; border-bottom: 1px solid #334155;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.code-block code {
  font-family: var(--font-mono); font-size: 0.8rem; color: #e2e8f0;
  line-height: 1.7; white-space: pre;
  background: none; border: none; border-radius: 0; padding: 0;
}
.code-block code .kw  { color: #60c8ff; }
.code-block code .str { color: #fbbf24; }
.code-block code .cm  { color: #64748b; font-style: italic; }
.code-block code .num { color: #a78bfa; }

/* Tabelas */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead { background: var(--bg-surface); }
.data-table th {
  padding: 0.85rem 1.25rem; text-align: left;
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td { padding: 0.85rem 1.25rem; color: var(--text-secondary); border-bottom: 1px solid var(--bg-surface); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg-deep); color: var(--text-primary); }

/* Utilitários de cor (tabela + compare)  */
.cell--highlight { color: #15803d !important; font-weight: 600; }
.cell--danger    { color: #dc2626 !important; }
.cell--warn      { color: #b45309 !important; }
.cell--mono      { font-family: var(--font-mono); font-size: 0.8rem; }

/* Métricas  */
.metrics-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.metric-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  flex: 1; min-width: 160px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.metric-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.metric-card--green { --gradient: linear-gradient(90deg, #16a34a, #22c55e); }
.metric-card--blue  { --gradient: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.metric-card--teal  { --gradient: linear-gradient(90deg, #0891b2, #22d3ee); }
.metric-card__label { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.5rem; }
.metric-card__value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-bottom: 0.25rem; }
.metric-card__unit { font-size: 0.75rem; color: var(--text-muted); }
.metric-card__delta { font-family: var(--font-mono); font-size: 0.72rem; margin-top: 0.4rem; }
.metric-card__delta--down { color: var(--green-mid); }
.metric-card__delta--up   { color: var(--red-alert); }

/* Badges  */
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; }
.tech-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 5px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  border: 1px solid; transition: var(--transition);
}
.tech-badge:hover { transform: translateY(-1px); }
.badge--green  { color: #15803d; border-color: rgba(22,163,74,0.35);  background: #dcfce7; }
.badge--blue   { color: #1d4ed8; border-color: rgba(37,99,235,0.35);  background: #dbeafe; }
.badge--teal   { color: #0891b2; border-color: rgba(8,145,178,0.35);  background: #e0f2fe; }
.badge--amber  { color: #b45309; border-color: rgba(180,83,9,0.35);   background: #fef3c7; }
.badge--purple { color: #7c3aed; border-color: rgba(124,58,237,0.35); background: #ede9fe; }

/* Compare Grid  */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
.compare-panel { border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid; }
.compare-panel--before { background: #fef2f2; border-color: #fca5a5; }
.compare-panel--after  { background: #f0fdf4; border-color: #86efac; }
.compare-panel__label {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.compare-panel--before .compare-panel__label { color: #dc2626; }
.compare-panel--after  .compare-panel__label { color: #16a34a; }
.compare-panel__item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 0.85rem;
}
.compare-panel__item:last-child { border-bottom: none; }
.compare-panel__item-key { color: var(--text-muted); }
.compare-panel__item-val { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-primary); }

/* Progress  */
.progress-item { margin: 0.75rem 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 6px; }
.progress-label span:last-child { font-family: var(--font-mono); color: var(--green-mid); font-weight: 600; }
.progress-bar { height: 6px; background: var(--bg-surface); border-radius: 100px; overflow: hidden; border: 1px solid var(--border-subtle); }
.progress-bar__fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--green-mid), var(--blue-bright)); width: 0; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* Callouts  */
.callout {
  border-radius: var(--radius-md); padding: 1rem 1.25rem; margin: 1.25rem 0;
  display: flex; gap: 1rem; font-size: 0.875rem; line-height: 1.7; border: 1px solid;
}
.callout--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.callout--warn    { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.callout--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.callout__icon { flex-shrink: 0; margin-top: 2px; }
.callout__body { color: inherit; }
.callout__body strong { color: inherit; }
.callout__body a { color: inherit; text-decoration: underline; }
.callout__body code { background: rgba(0,0,0,0.06); border-color: transparent; color: inherit; }

/* Tabs */
.tabs { margin: 1.5rem 0; }
.tab-list { display: flex; gap: 0; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 0.75rem 1.25rem; font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: var(--transition); margin-bottom: -1px; font-family: var(--font-sans);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--green-mid); border-bottom-color: var(--green-mid); font-weight: 600; }
.tab-panel { display: none; padding: 1.5rem 0; }
.tab-panel.active { display: block; }

/* Flow Diagram  */
.flow-diagram { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 1.5rem 0; overflow-x: auto; padding-bottom: 0.5rem; }
.flow-node {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-secondary);
  white-space: nowrap; transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.flow-node:hover { border-color: rgba(22,163,74,0.3); color: var(--text-primary); }
.flow-node--highlight { background: var(--green-dim); border-color: rgba(22,163,74,0.4); color: var(--green-bright); font-weight: 600; }
.flow-arrow { color: #cbd5e1; padding: 0 0.5rem; font-size: 0.8rem; flex-shrink: 0; }

/* Footer  */
.footer {
  background: var(--bg-deep); border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 3.5rem; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer__author { font-size: 0.875rem; color: var(--text-secondary); }
.footer__author strong { color: var(--text-primary); }
.footer__links { display: flex; gap: 1.5rem; }
.footer__link { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer__link:hover { color: var(--green-mid); }

/* Animações  */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { opacity: 0; animation: fadeInUp 0.5s ease forwards; }
.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.10s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.20s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.30s; }

/* Overlay (mobile) */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 85; backdrop-filter: blur(2px); }
.sidebar-overlay.active { display: block; }

/* Responsive */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 64px; left: 0; width: 260px;
    height: calc(100vh - 64px); transform: translateX(-100%);
    transition: transform var(--transition); z-index: 90;
    box-shadow: 4px 0 30px rgba(0,0,0,0.12);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .hero { padding: 2.5rem 1.5rem 2rem; }
  .content-section { padding: 2.5rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .compare-grid { grid-template-columns: 1fr; }
  .topbar__badge { display: none; }
  .section-fig__placeholder { height: 200px; }
}
@media (max-width: 480px) {
  .metrics-row { flex-direction: column; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; }
}
