:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --surface-alt: #f1f6f3;
  --text: #12231c;
  --text-muted: #4e6359;
  --line: #d8e5dd;
  --brand: #146b43;
  --brand-dark: #0b3d2c;
  --brand-light: #eaf4ee;
  --accent: #22c55e;
  --code-bg: #09130e;
  --code-border: #1b3828;
  --code-text: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

/* ==================== TOPBAR (NUNCA QUEBRA NO DESKTOP) ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
}

.menu-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.menu-links a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 2px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.menu-links a:hover {
  color: var(--brand);
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-topbar-pypi {
  background: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 7px 13px !important;
  border-radius: 7px !important;
  border: 1px solid var(--brand) !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 3px rgba(20, 107, 67, 0.25);
  transition: all 0.15s ease !important;
}

.btn-topbar-pypi:hover {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-topbar-gh {
  background: #edf5f0 !important;
  color: var(--brand-dark) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  padding: 6px 12px !important;
  border-radius: 7px !important;
  border: 1px solid #c8dbce !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.btn-topbar-gh:hover {
  background: #e0eee4 !important;
  color: var(--brand) !important;
}

/* ==================== BOTÕES GERAIS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 2px 6px rgba(20, 107, 67, 0.25);
}

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

.btn-ghost {
  background: #ffffff;
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
  border-color: #b8d2c2;
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 56px 0 44px;
  background:
    radial-gradient(900px 320px at 95% -20%, rgba(20, 107, 67, 0.12), transparent 60%),
    #f8fcf9;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c7dbce;
  background: #edf6f0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.badge-accent {
  background: #146b43;
  color: #ffffff;
  border-color: #146b43;
}

h1 {
  margin: 0 0 16px;
  color: var(--brand-dark);
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 17.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.install-card {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 10px;
  padding: 9px 14px;
  box-shadow: 0 4px 14px rgba(8, 26, 18, 0.2);
}

.install-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
}

.prompt-sym {
  color: #4ade80;
  font-weight: 700;
  user-select: none;
}

.install-card code {
  color: #f8fafc !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 14px;
  font-weight: 600;
}

.btn-copy {
  border: 1px solid #2d5540;
  background: #163325;
  color: #a8e5c2;
  cursor: pointer;
  font: 600 12px Inter, sans-serif;
  border-radius: 6px;
  padding: 4px 10px;
  transition: all 0.15s ease;
}

.btn-copy:hover {
  background: #1f4733;
  color: #ffffff;
}

.btn-copy.copied {
  background: #146b43;
  color: #ffffff;
  border-color: #146b43;
}

/* ==================== HERO PREVIEW (SEM SCROLLBAR HORIZONTAL) ==================== */
.hero-preview {
  border: 1px solid var(--code-border);
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 16px 40px rgba(11, 40, 27, 0.2);
  overflow: hidden;
}

.code-header {
  background: #102419;
  border-bottom: 1px solid var(--code-border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-filename {
  font-family: "IBM Plex Mono", Consolas, monospace;
  color: #f8fafc;
  font-weight: 500;
}

.code-lang {
  margin-left: auto;
  font-size: 11px;
  text-transform: uppercase;
  color: #4ade80;
  font-weight: 700;
}

.hero-preview pre {
  margin: 0;
  padding: 16px 18px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.hero-preview code {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  background: transparent !important;
  color: #f8fafc !important;
  padding: 0 !important;
}

.code-footer {
  background: #0d1e14;
  border-top: 1px solid var(--code-border);
  padding: 8px 14px;
  font-size: 12px;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* Tokens de Sintaxe com Alto Contraste */
.tok-kw { color: #38bdf8 !important; font-weight: 600; }
.tok-str { color: #fde047 !important; }
.tok-cmt { color: #94a3b8 !important; font-style: italic; }
.tok-fn { color: #a7f3d0 !important; }

/* ==================== STATS BAR ==================== */
.stats {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.stat {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-size: 26px;
  color: var(--brand-dark);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat span {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e2f0e7;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  border: 1px solid #bddac7;
}

h2 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.6;
}

/* Cards Three */
.cards {
  display: grid;
  gap: 16px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cards article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 107, 67, 0.08);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.cards h3 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 18px;
}

.cards p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Arch Grid (5 passos) */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.arch-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 18px 16px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.arch-grid h3 {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 16px;
}

.arch-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.info-banner {
  background: #ebf5ee;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14.5px;
  color: #17422c;
  line-height: 1.55;
}

/* ==================== DEMONSTRAÇÃO INTERATIVA ==================== */
.demo-window-frame {
  border: 1px solid #1c3d2c;
  border-radius: 14px;
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(8, 28, 19, 0.35);
}

.demo-window-header {
  background: #102419;
  border-bottom: 1px solid var(--code-border);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.demo-window-dots {
  display: flex;
  gap: 6px;
}

.demo-window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}

.demo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-live-rec {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.btn-demo-ctrl {
  background: #173827;
  border: 1px solid #285e42;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-demo-ctrl:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.demo-workspace {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  min-height: 380px;
}

/* Janela do ERP Legado */
.erp-window-body {
  background: #eef2ef;
  border-right: 1px solid var(--code-border);
  display: flex;
  flex-direction: column;
}

.erp-menubar {
  background: #dfe7e2;
  border-bottom: 1px solid #c2d4c8;
  padding: 6px 14px;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #274b3a;
  font-weight: 600;
}

.erp-form-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.erp-form-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 10px;
}

.erp-label {
  font-size: 13px;
  font-weight: 600;
  color: #234c38;
}

.erp-input-field {
  border: 1px solid #b6ccbd;
  border-radius: 4px;
  background: #ffffff;
  padding: 6px 10px;
  font-size: 13px;
  color: #1a3829;
}

.erp-input-field.mono {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.erp-input-field.bold {
  font-weight: 700;
}

.erp-status-box {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.status-waiting {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.erp-actions-bar {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.erp-btn-secondary {
  border: 1px solid #b4c8bb;
  background: #e2eae4;
  color: #375b49;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.erp-target-anchor {
  position: relative;
  display: inline-block;
}

.erp-btn-primary {
  border: 1px solid #165b38;
  background: #146b43;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(20, 107, 67, 0.3);
  transition: all 0.1s ease;
}

.erp-btn-primary.clicked {
  transform: translateY(2px);
  background: #0d4a2d;
  box-shadow: none;
}

.ocr-lock-box {
  position: absolute;
  inset: -4px -8px;
  border: 2px solid #22c55e;
  border-radius: 7px;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2), 0 0 16px rgba(34, 197, 94, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}

.ocr-lock-box.active {
  opacity: 1;
  transform: scale(1);
}

.ocr-lock-label {
  position: absolute;
  top: -24px;
  right: 0;
  background: #0f3d24;
  color: #4ade80;
  border: 1px solid #22c55e;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.virtual-mouse-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
  transform: translate(220px, 80px);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.virtual-mouse-cursor.gliding {
  opacity: 1;
  transform: translate(36px, 14px);
}

.virtual-mouse-cursor.clicking {
  opacity: 1;
  transform: translate(36px, 14px) scale(0.85);
}

.virtual-mouse-cursor.done {
  opacity: 0;
  transform: translate(220px, 80px);
}

.click-ripple {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  pointer-events: none;
}

.click-ripple.rippling {
  animation: rippleFx 0.45s ease-out forwards;
}

@keyframes rippleFx {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ==================== TERMINAL DE LOGS (CONTRASTE NÍTIDO) ==================== */
.demo-terminal-sidebar {
  background: var(--code-bg);
  display: flex;
  flex-direction: column;
}

.demo-terminal-header {
  background: #102419;
  border-bottom: 1px solid var(--code-border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.term-title {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.term-indicator {
  color: #4ade80;
  font-size: 11px;
  font-weight: 700;
}

.demo-terminal-logs {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12.5px;
  overflow-y: auto;
}

.log-line {
  color: #94a3b8; /* Cinza claro totalmente legível */
  transition: all 0.2s ease;
  padding: 4px 6px;
  border-radius: 4px;
}

.log-line code {
  color: inherit !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 12.5px;
}

.log-ts {
  color: #64748b;
  margin-right: 6px;
  user-select: none;
}

.log-line.active-log {
  color: #f8fafc;
  background: rgba(34, 197, 94, 0.12);
}

.log-line.log-cmd.active-log code {
  color: #38bdf8 !important;
}

.log-line.log-ocr.active-log {
  color: #fde047 !important;
}

.log-line.log-action.active-log {
  color: #a7f3d0 !important;
}

.log-line.log-success.active-log {
  color: #4ade80 !important;
  font-weight: 700;
}

/* ==================== FLUXOGRAMA NAPKIN AI ==================== */
.flow-svg-container {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
}

.flow-diagram-svg {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
}

.flow-diagram-svg #cp_0_g-0_147daexs46f40-stroke path {
  stroke: #146b43 !important;
  stroke-width: 2.5px !important;
  stroke-dasharray: 6 8 !important;
  animation: flowCycleAnim 1.8s linear infinite !important;
}

@keyframes flowCycleAnim {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -28;
  }
}

.flow-diagram-svg #cp_common_g-common_vbqa61s46fwp-stroke path {
  stroke: #146b43 !important;
  stroke-width: 2.5px !important;
}

.flow-explanation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-expl-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 16px;
}

.expl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.expl-dot.dot-1 { background: #de8431; }
.expl-dot.dot-2 { background: #e0cb15; }
.expl-dot.dot-3 { background: #3cc583; }
.expl-dot.dot-4 { background: #4e88e7; }

.flow-expl-card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: var(--brand-dark);
}

.flow-expl-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== ARQUITETURA & COLUNAS ==================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.two-col > div,
.recipe-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 22px;
}

.two-col h3,
.recipe-card h3 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 18px;
}

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 7px 0;
  border-bottom: 1px solid #edf4ef;
  font-size: 14.5px;
  color: var(--text-muted);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.plain-list strong {
  color: var(--text);
}

/* ==================== ÁRVORE DO MAPA MENTAL (NÍTIDO E BONITO) ==================== */
.tree-terminal {
  border: 1px solid var(--code-border);
  border-radius: 12px;
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-top: 14px;
}

.tree-header {
  background: #102419;
  border-bottom: 1px solid var(--code-border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tree-title {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  color: #f8fafc;
}

.tree-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}

.tree-pre {
  margin: 0 !important;
  padding: 18px 20px !important;
  background: transparent !important;
  border: none !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

.tree-root {
  color: #38bdf8;
  font-weight: 700;
  font-size: 14px;
}

.tree-branch {
  color: #4ade80;
  font-weight: 600;
}

.tree-head {
  color: #ffffff;
  font-weight: 700;
}

/* ==================== PASSO A PASSO ==================== */
.steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.steps li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.steps li.wide {
  grid-column: 1 / -1;
}

.step-text h3 {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 17px;
}

.step-text p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ==================== TABELAS ==================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.data-table th {
  background: #edf5f0;
  color: var(--brand-dark);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf4ef;
  color: var(--text);
  line-height: 1.5;
}

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

.compare-table th:last-child,
.compare-table td:last-child {
  background: #f4faf6;
}

/* ==================== FAQ ==================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-item[open] {
  border-color: #bcdac5;
  box-shadow: 0 4px 14px rgba(20, 107, 67, 0.06);
}

.faq-question {
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* ==================== CÓDIGO E PRE (ALTO CONTRASTE ABSOLUTO) ==================== */
pre {
  margin: 12px 0 0;
  border-radius: 9px;
  background: var(--code-bg) !important;
  border: 1px solid var(--code-border);
  color: var(--code-text) !important;
  overflow-x: auto;
  padding: 15px 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

pre code {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  background: transparent !important;
  color: #f8fafc !important;
  padding: 0 !important;
  border: none !important;
}

/* Código inline no meio de parágrafos normais */
code:not(pre code) {
  background: #eaf3ed;
  border: 1px solid #c8ded0;
  border-radius: 5px;
  padding: 2px 7px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #0b4a2b;
}

kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

/* ==================== FOOTER ==================== */
footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 32px 0 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-info p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #647d70;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--brand-dark);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .arch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .flow-explanation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .demo-workspace {
    grid-template-columns: 1fr;
  }
  .erp-window-body {
    border-right: 0;
    border-bottom: 1px solid #224a37;
  }
}

@media (max-width: 900px) {
  .menu-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .cards.three,
  .stats,
  .two-col,
  .steps {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .flow-explanation-grid {
    grid-template-columns: 1fr;
  }
  .erp-form-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
