.statusbar {
  border-bottom: 1px solid var(--border-soft);
  background: rgb(10 14 20 / 85%);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
}

html[data-theme='light'] .statusbar {
  background: rgb(255 255 255 / 85%);
}

.navbar-shell {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
}

.navbar-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
}

.logo-mark {
  width: 22px;
  height: 22px;
  color: var(--ok);
  flex-shrink: 0;
  display: block;
  transition: color 0.35s ease;
}

html[data-theme='light'] .logo-mark {
  color: var(--text);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.statusbar .brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
}

.statusbar .pulse-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-self: end;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  position: relative;
  flex-shrink: 0;
}

.dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  opacity: 0.5;
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@media (width <= 640px) {
  .statusbar .clock {
    display: none;
  }
}

.toggle-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  width: max-content;
}

.switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  background: transparent;
}

.switcher .opt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
  user-select: none;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--mono);
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.switcher .opt svg {
  width: 18px;
  height: 18px;
  display: block;
}

.switcher .opt:hover {
  background: var(--bg-raise);
  color: var(--text);
}

.switcher .opt:focus-visible,
.btn:focus-visible,
.icon-btn:focus-visible,
.carousel-btn:focus-visible,
.carousel-dots .dot:focus-visible {
  outline: 2px solid var(--ok);
  outline-offset: 3px;
}

@media (width <= 640px) {
  .opt-label {
    display: none;
  }
}

.nav-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 20px;
  padding: 0 14px;
  min-height: 34px;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--ok);
  color: var(--ok);
}

.back-to-hero {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 16px 30px -18px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.back-to-hero.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-hero:hover {
  border-color: var(--ok);
  background: var(--bg-raise);
  color: var(--ok);
}

@media (width <= 900px) {
  .back-to-hero {
    right: 16px;
    bottom: 16px;
    min-height: 38px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0;
  min-width: 0;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  position: static;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--panel-2);
  transform: translateY(-1px);
}

.nav-link.is-active,
.nav-link[aria-current='page'] {
  color: var(--ok);
  border-color: var(--ok-dim);
  background: rgb(61 220 151 / 8%);
}

.btn {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ok);
  color: var(--btn-ink);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ok);
  color: var(--ok);
}

/* terminal window */
.term {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px var(--shadow);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raise);
}

.term-bar span.dotc {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3242;
}

.term-bar .title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 8px;
}

.term-body {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  min-height: 250px;
}

.term-line {
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.term-prompt {
  color: var(--ok);
}

.term-out {
  color: var(--text-muted);
}

.term-out b {
  color: var(--text);
  font-weight: 600;
}

.caret {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--ok);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret,
  .dot::after {
    animation: none;
  }
}

.metric {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.metric .num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--ok);
  flex-shrink: 0;
}

.metric .label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  max-width: 240px;
}

.metric .id {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.panel:hover {
  border-color: var(--ok);
  transform: translateY(-3px);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.panel h3 {
  font-family: var(--mono);
  font-size: 15.5px;
  margin-bottom: 10px;
  color: var(--text);
}

.panel p {
  color: var(--text-muted);
  font-size: 14px;
}

.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  padding: 6px 11px;
  border-radius: 5px;
  background: var(--panel-2);
}

.tag.hl {
  color: var(--ok);
  border-color: var(--ok-dim);
}

.case {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.case-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-raise);
}

.case-head .co {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14.5px;
}

.case-head .period {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ok);
  border: 1px solid var(--ok-dim);
  background: rgb(61 220 151 / 8%);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  min-width: 100px;
}

.case-body {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 0.8fr; /* expande a coluna central */
  gap: 24px;
}

@media (width <= 800px) {
  .case-body {
    grid-template-columns: 1fr;
  }
}

.case-col .k {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.case-col .v {
  font-size: 14px;
  color: var(--text-muted);
}

.case-col .v b {
  color: var(--text);
  font-weight: 600;
}

.contact-term {
  background: var(--panel);
  border: 1px solid var(--ok-dim);
  border-radius: 10px;
  padding: 34px;
  text-align: center;
}

.contact-term .prompt {
  font-family: var(--mono);
  color: var(--ok);
  font-size: 13px;
  margin-bottom: 14px;
}

.contact-term h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 14px;
}

.contact-term .sub2 {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 26px;
  font-size: 15px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--panel-2);
  position: relative;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ok);
  color: var(--ok);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn .copied {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ok);
  background: var(--bg-raise);
  border: 1px solid var(--ok-dim);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.icon-btn .copied.show {
  opacity: 1;
}

.icon-btn--fallback {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (width <= 900px) {
  .navbar-shell {
    gap: 10px;
    align-items: flex-start;
  }

  .navbar-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: relative;
  }

  .brand-link {
    min-width: 0;
  }

  .brand {
    white-space: nowrap;
  }

  .pulse-wrap {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: calc(100% + 10px);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    background: rgb(10 14 20 / 96%);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: 0 20px 50px -28px var(--shadow);
    z-index: 60;
    transition:
      max-height 0.22s ease,
      opacity 0.18s ease,
      padding-top 0.18s ease;
  }

  html[data-theme='light'] .site-nav {
    background: rgb(255 255 255 / 98%);
  }

  .statusbar.nav-open .site-nav {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px;
  }

  .nav-link {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.brand-at {
  color: var(--ok);
}

.dot-no-anim {
  animation: none !important;
}

.dot-blue {
  background: var(--link) !important;
}

.dot-yellow {
  background: var(--warn) !important;
}

.dot-purple {
  background: #a97cf5 !important;
}

.dot-orange {
  background: #ff8a65 !important;
}

.skill-group-full {
  grid-column: 1 / -1 !important;
}

.lede-full {
  width: 100% !important;
}

.lede-no-margin {
  margin-top: 0 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (900px < width <= 1100px) {
  .navbar-top {
    gap: 8px;
  }

  .site-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 8px;
    font-size: 11.5px;
  }
}

.cta-banner {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-banner__content h3 {
  font-family: var(--mono);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}

.cta-banner__content p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 60ch;
}

@media (width <= 768px) {
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
