.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(5, 8, 8, 0.72);
  backdrop-filter: blur(18px);
}

.site-header[data-scrolled="true"] {
  border-color: var(--line);
}

.nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(107, 245, 255, 0.2), transparent 55%),
    var(--panel-strong);
  box-shadow: 0 0 28px rgba(43, 217, 207, 0.12);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::before {
  inset: 7px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  top: 12px;
  left: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.brand em {
  color: var(--cyan);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #c8d5d6;
  font-size: 0.86rem;
}

.nav-links a {
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 9px 11px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.025);
  color: #dce8e9;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease);
}

.button:hover,
.button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(107, 245, 255, 0.06);
  transform: translateY(-1px);
}

.button--primary {
  border-color: rgba(107, 245, 255, 0.34);
  background: linear-gradient(135deg, #78f7ff, #31d8cf);
  color: #031011;
  box-shadow: 0 12px 40px rgba(43, 217, 207, 0.18);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: linear-gradient(135deg, #91f9ff, #4ee5dc);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(107, 245, 255, 0.035), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.kicker {
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: #b9c9cb;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 700;
}

.chip--good {
  border-color: rgba(112, 240, 190, 0.22);
  color: var(--good);
  background: rgba(112, 240, 190, 0.055);
}

.chip--cyan {
  border-color: rgba(107, 245, 255, 0.24);
  color: var(--cyan);
  background: rgba(107, 245, 255, 0.05);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 8px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 48px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 14px rgba(112, 240, 190, 0.55);
}

.code {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #061012;
  padding: 20px;
  color: #c8eff0;
  font: 0.78rem/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 8px;
    background: rgba(7, 13, 14, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .footer-row {
    align-items: start;
    flex-direction: column;
  }
}
