/* ── Topbar ── */
.topbar {
  position: fixed;
  isolation: isolate;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.topbar.fixed-topbar {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 8px;
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
  margin-right: 16px;
  transition: opacity 0.18s ease;
}

.topbar__logo:hover { opacity: 0.75; }

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  margin-left: auto;
  transition: background 0.15s ease;
}

.topbar__burger:hover { background: rgba(255, 255, 255, 0.08); }

.topbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75); /* era 0.6 — mais visível */
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 992px) {
  .topbar__nav     { display: none; }
  .topbar__actions { display: none; }
  .topbar__burger  { display: flex; }
}

/* ── Nav items ── */
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70); /* era 0.55 — muito apagado */
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-item--btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08); /* era 0.06 — mais contraste */
}

.nav-item.selected {
  color: #fff;
  background: rgba(255, 255, 255, 0.10); /* era 0.08 */
}

.dropdown-chevron {
  color: rgba(255, 255, 255, 0.45); /* era 0.3 — invisível */
  transition: transform 0.2s ease, color 0.15s ease;
  flex-shrink: 0;
}

.nav-dropdown-host:hover .dropdown-chevron,
.nav-dropdown-host.open .dropdown-chevron {
  transform: rotate(180deg);
  color: rgba(255, 255, 255, 0.85); /* era 0.7 */
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #e6e6e6;
  transform: translateY(-1px);
}

.btn-primary.w-100 {
  justify-content: center;
  width: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.70); /* era 0.55 */
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08); /* era 0.06 */
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22); /* era 0.15 — borda fraca */
  color: rgba(255, 255, 255, 0.90); /* era 0.75 */
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.45); /* era 0.35 */
  color: #fff;
  background: rgba(255, 255, 255, 0.06); /* era 0.04 */
}

.btn-outline.w-100 { width: 100%; }

/* ── Dropdown panel — dark ── */
.nav-dropdown-host { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 260px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.10); /* era 0.08 */
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
  padding: 6px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #000;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 2px 0 0 0;
}

.nav-dropdown--docs {
  width: 560px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 12px;
}

.nav-dropdown--docs.open {
  transform: translateX(-50%) translateY(0);
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08); /* era 0.06 */
  margin: 5px 6px;
}

.docs-links {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08); /* era 0.06 */
  margin: 4px 12px;
  flex-shrink: 0;
}

.docs-sdks {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 4px 6px;
}

/* ── Dropdown item ── */
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
  cursor: pointer;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.07);
}

.nav-dropdown-item:hover .ndi-title,
.nav-dropdown-item.active .ndi-title {
  color: #fff;
}

.ndi-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.80);
}

.ndi-icon--blue {
  background: rgba(50, 145, 255, 0.15);
  color: #3291ff;
}
.ndi-icon--green {
  background: rgba(0, 200, 81, 0.12);
  color: #00c851;
}
.ndi-icon--purple {
  background: rgba(121, 40, 202, 0.15);
  color: #b794f4;
}
.ndi-icon--amber {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
}

.ndi-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  transition: color 0.15s ease;
}

.ndi-desc {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  line-height: 1.4;
}

/* ── SDK grid ── */
.sdk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.sdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.sdk-item:hover { background: rgba(255, 255, 255, 0.08); /* era 0.06 */ }
.sdk-item:hover .sdk-name { color: #fff; }

.sdk-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.sdk-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75; /* era 0.6 — ícone fraco */
}

.sdk-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.2;
  transition: color 0.15s ease;
}

/* ── Status dot ── */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--green  { background: #00c851; box-shadow: 0 0 0 2px rgba(0, 200, 81, 0.2); }
.status-dot--yellow { background: #f5a623; box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2); }
.status-dot--red    { background: #e00;    box-shadow: 0 0 0 2px rgba(238, 0, 0, 0.2); }
.status-dot--gray   { background: #666; /* era #444 — invisível no fundo escuro */ }

/* ── Mobile nav ── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 90vw;
  background: #0d0d0d;
  border-left: 1px solid rgba(255, 255, 255, 0.09); /* era 0.07 */
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-nav__overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09); /* era 0.07 */
  flex-shrink: 0;
}

.mobile-nav__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08); /* era 0.06 */
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65); /* era 0.5 */
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-nav__close:hover {
  background: rgba(255, 255, 255, 0.12); /* era 0.1 */
  color: #fff;
}

.mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70); /* era 0.55 */
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08); /* era 0.06 */
}

.mobile-group {
  padding: 10px 0 4px;
}

.mobile-group__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.38); /* era 0.2 — quase invisível */
  padding: 0 8px;
  margin-bottom: 4px;
}

.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09); /* era 0.07 */
}