/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #07476b;
  --secondary-color: #053a57;
  --accent-color: #0a5f88;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --page-bg: #ffffff;
  --bg-footer: #1a1a1a;
  --border-color: #e0e0e0;
  --gradient-start: #07476b;
  --gradient-end: #0a5f88;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
[data-theme="dark"] {
  --primary-color: #4db3e6;
  --secondary-color: #3a9fd4;
  --accent-color: #6bc9f7;
  --text-dark: #eceff1;
  --text-light: #b8bec4;
  --bg-light: #252528;
  --bg-white: #2f2f34;
  --page-bg: #1a1b1f;
  --bg-footer: #0a0a0a;
  --border-color: #3d4048;
  --gradient-start: #0d4a6e;
  --gradient-end: #082f47;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.55);
}

html {
  scroll-behavior: smooth;
  background-color: var(--page-bg);
}

html[data-theme='dark'] {
  color-scheme: dark;
}

html[data-theme='light'] {
  color-scheme: light;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: var(--page-bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav a.nav-active {
  color: var(--primary-color);
}

.nav a.nav-active::after {
  width: 100%;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--primary-color);
}

.nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: all 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 1rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
  transform: rotate(20deg);
}

.theme-toggle i {
  transition: transform 0.3s ease;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 150px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: var(--primary-color);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-api-link {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-api-link a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-api-link a:hover {
  color: white;
  border-bottom-color: white;
}

.hero-api-link .fa-arrow-right {
  font-size: 0.75rem;
  margin-left: 0.25rem;
  opacity: 0.85;
}

.btn-secondary {
  background: var(--primary-color);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Sections */
.section {
  padding: 80px 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Como Funciona */
.como-funciona {
  background: var(--bg-white);
}

.como-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.como-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  transition: all 0.3s ease;
}

.como-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.como-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.como-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.como-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.como-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Funcionalidades */
.funcionalidades {
  background: var(--bg-light);
}

.funcionalidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.solucao-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.solucao-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.solucao-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.solucao-icon i {
  display: block;
}

.solucao-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.solucao-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Download */
.download {
  background: var(--bg-light);
  text-align: center;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

/* Dynamic download container */
.download-dynamic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  min-height: 80px;
}

/* Loading state */
.download-loading {
  color: var(--text-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Fallback state */
.download-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
}

.download-fallback i {
  font-size: 2rem;
  color: var(--text-light);
  opacity: 0.5;
}

/* Version badge — clickable */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-white);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.version-badge:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.version-badge.open {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.version-badge .badge-caret {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.version-badge.open .badge-caret {
  transform: rotate(180deg);
}

/* Version dropdown */
.version-dropdown {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
}

.version-dropdown.open {
  display: block;
}

.version-dropdown-header {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.version-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
}

.version-dropdown-item:last-child {
  border-bottom: none;
}

.version-dropdown-item:hover {
  background: var(--bg-light);
}

.version-dropdown-item.selected {
  background: rgba(7, 71, 107, 0.06);
}

.version-dropdown-tag {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.version-dropdown-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.version-dropdown-check {
  color: var(--primary-color);
  font-size: 0.85rem;
}

/* Primary download button */
.btn-download-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(7, 71, 107, 0.3);
}

.btn-download-primary i {
  font-size: 1.4rem;
}

.btn-download-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 71, 107, 0.45);
}

.primary-size {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Secondary platform links */
.download-secondary-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.other-platforms-label {
  color: var(--text-light);
  font-size: 0.85rem;
}

.btn-download-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.btn-download-secondary:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: var(--bg-light);
}

.secondary-size {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Install guide */
.install-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.install-step {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 0.75rem;
  display: block;
}

.install-step p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* CLI / Server Deploy Section */
.cli-section {
  background: var(--bg-white);
}

.cli-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.cli-code-card {
  background: #0d1117;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cli-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #161b22;
  border-bottom: 1px solid #30363d;
}

.cli-code-title {
  color: #8b949e;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cli-code-title i {
  color: #2496ed;
}

.copy-btn {
  background: none;
  border: 1px solid #30363d;
  color: #8b949e;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #21262d;
  color: #c9d1d9;
  border-color: #6e7681;
}

.copy-btn.copied {
  color: #3fb950;
  border-color: #3fb950;
}

.cli-code {
  margin: 0;
  padding: 1.5rem;
  color: #c9d1d9;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.825rem;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
}

.cli-env-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
}

.cli-env-title {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cli-env-title i {
  color: var(--primary-color);
}

.cli-env-list {
  display: flex;
  flex-direction: column;
}

.cli-env-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cli-env-row:last-child {
  border-bottom: none;
}

.cli-env-row code {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--primary-color);
  font-family: 'Courier New', 'Consolas', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cli-env-row span {
  color: var(--text-light);
  font-size: 0.85rem;
}

.cli-env-row--optional code {
  opacity: 0.7;
}

.cli-env-row--optional em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-light);
  opacity: 0.8;
}

.cli-env-note {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 6px 6px 0;
  font-size: 0.825rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
}

.cli-env-note i {
  color: var(--primary-color);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Console Section */
.console-section {
  background: var(--bg-light);
}

.console-description {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 680px;
  margin: -2rem auto 2.5rem;
  line-height: 1.7;
}

.console-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.console-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.console-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.console-feature i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.btn-console {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(7, 71, 107, 0.3);
}

.btn-console:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 71, 107, 0.45);
}

/* Console preview mockup */
.console-preview {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.console-preview-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.console-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.console-preview-url {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: monospace;
}

.console-preview-content {
  padding: 0;
}

.preview-row.preview-header-row {
  height: 40px;
  background: var(--primary-color);
  opacity: 0.15;
}

.preview-body {
  display: flex;
  height: 160px;
}

.preview-sidebar {
  width: 70px;
  background: var(--bg-light);
  border-right: 1px solid var(--border-color);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-sidebar-item {
  height: 12px;
  border-radius: 4px;
  background: var(--border-color);
}

.preview-sidebar-item.active {
  background: var(--primary-color);
  opacity: 0.5;
}

.preview-main {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-card-sm {
  height: 28px;
  border-radius: 6px;
  background: var(--border-color);
  opacity: 0.6;
}

.preview-card-lg {
  flex: 1;
  border-radius: 6px;
  background: var(--border-color);
  opacity: 0.4;
}

/* Footer */
.footer {
  background: var(--bg-footer);
  color: white;
  text-align: center;
  padding: 2rem 20px;
}

.footer p {
  margin: 0.5rem 0;
  opacity: 0.8;
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* API v1 docs page (site) */
.docs-page {
  padding-top: 60px;
  background-color: var(--page-bg);
}

.docs-hero {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: white;
  padding: 3.5rem 20px 2.5rem;
  margin-bottom: 0;
}

.docs-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.docs-kicker i {
  margin-right: 0.35rem;
}

.docs-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.docs-title code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.15em 0.45em;
  border-radius: 6px;
}

.docs-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 720px;
}

.docs-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
  padding: 3rem 20px 4rem;
  max-width: 1200px;
  background-color: var(--page-bg);
}

.docs-toc {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.docs-toc-label {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-toc a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.docs-toc a:hover {
  color: var(--primary-color);
}

.docs-article {
  min-width: 0;
  background-color: var(--page-bg);
}

.docs-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 5.5rem;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.docs-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-dark);
}

.docs-section p {
  color: var(--text-light);
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.docs-list {
  color: var(--text-light);
  margin: 0.5rem 0 1rem 1.25rem;
  line-height: 1.7;
}

.docs-list-compact {
  margin-bottom: 0.5rem;
}

.docs-list li {
  margin-bottom: 0.35rem;
}

.docs-note {
  font-size: 0.9rem;
  font-style: italic;
}

.docs-dl {
  margin: 1rem 0;
}

.docs-dl dt {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1rem;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.9rem;
}

.docs-dl dt:first-child {
  margin-top: 0;
}

.docs-dl dd {
  color: var(--text-light);
  margin: 0.35rem 0 0 0;
  line-height: 1.65;
  padding-left: 0;
}

.docs-code {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0.75rem 0 1rem;
}

.docs-code code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  color: var(--text-dark);
}

.docs-endpoint {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.docs-endpoint-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.docs-endpoint-head code {
  font-size: 1rem;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  color: var(--text-dark);
}

.docs-endpoint-desc {
  margin-bottom: 0 !important;
}

.method {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  color: white;
}

.method-get {
  background: #2e7d32;
}

.method-post {
  background: #1565c0;
}

.method-put {
  background: #ef6c00;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.docs-table th,
.docs-table td {
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: var(--bg-light);
  color: var(--text-dark);
  font-weight: 600;
}

.docs-table td {
  color: var(--text-light);
}

.docs-table code {
  font-size: 0.82em;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
}

.docs-section-cta .docs-back {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.docs-section-cta .btn i {
  margin-right: 0.4rem;
}

/* Inline code inside documentation (not inside pre blocks) */
.docs-article p code,
.docs-article li code,
.docs-article td code,
.docs-article th code,
.docs-article dd code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, monospace;
  font-size: 0.88em;
  background: rgba(7, 71, 107, 0.1);
  color: var(--secondary-color);
  padding: 0.12em 0.45em;
  border-radius: 4px;
}

.docs-article pre.docs-code code {
  background: transparent;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

/* Dark theme: docs & global readability */
[data-theme="dark"] .docs-code {
  background: #12151a;
  border-color: #3d4450;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .docs-code code {
  color: #d6e8f5;
}

[data-theme="dark"] .docs-endpoint {
  background: var(--bg-white);
  border-color: var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .docs-table th {
  background: #32333a;
  color: var(--text-dark);
}

[data-theme="dark"] .docs-table td {
  color: var(--text-light);
}

[data-theme="dark"] .docs-toc a {
  color: #9aa3ad;
}

[data-theme="dark"] .docs-toc a:hover {
  color: var(--accent-color);
}

[data-theme="dark"] .docs-section h2 {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .docs-article p code,
[data-theme="dark"] .docs-article li code,
[data-theme="dark"] .docs-article td code,
[data-theme="dark"] .docs-article th code,
[data-theme="dark"] .docs-article dd code {
  background: rgba(107, 201, 247, 0.12);
  color: #9fdcff;
  border: 1px solid rgba(107, 201, 247, 0.22);
}

[data-theme="dark"] .docs-note {
  color: #9aa3ad;
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--border-color);
  color: var(--text-dark);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--bg-white);
  border-color: var(--primary-color);
}

[data-theme="dark"] .mobile-menu-toggle span {
  background: var(--text-dark);
}

[data-theme="dark"] .version-badge {
  background: var(--bg-white);
  border-color: var(--border-color);
}

[data-theme="dark"] .version-dropdown {
  background: var(--bg-white);
  border-color: var(--border-color);
}

[data-theme="dark"] .version-dropdown-item.selected {
  background: rgba(77, 179, 230, 0.12);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .nav.active {
    display: flex;
  }

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

  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-left: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .como-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .como-card {
    max-width: 100%;
  }

  .como-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .funcionalidades-grid {
    grid-template-columns: 1fr;
  }

  .install-guide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cli-content {
    grid-template-columns: 1fr;
  }

  .download-secondary-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .console-card {
    grid-template-columns: 1fr;
  }

  .console-card-right {
    display: none;
  }

  .docs-body {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .docs-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
  }

  .docs-toc-label {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 60px 15px;
  }

  .solucao-card,
  .como-card {
    padding: 1.5rem;
  }

  .btn-download-primary {
    font-size: 1rem;
    padding: 14px 24px;
  }
}
