:root {
  color-scheme: dark;
  --page: #080d1b;
  --surface: #111a2c;
  --surface-raised: #172238;
  --border: #26334b;
  --text: #f2f6fc;
  --muted: #a4b2c9;
  --subtle: #71819d;
  --teal: #24d6b0;
  --blue: #82a9ff;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(164, 178, 201, 0.13);
  background: rgba(8, 13, 27, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
  object-fit: cover;
}

.brand-name {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links .nav-cta {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(164, 178, 201, 0.13);
  background: #070b16;
}

.footer-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--subtle);
  font-size: 0.85rem;
}

.footer-brand {
  color: var(--muted);
  font-weight: 650;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--content), calc(100% - 32px));
  }

  .header-inner {
    min-height: 64px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.81rem;
  }

  .nav-links a:first-child {
    display: none;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .brand {
    gap: 8px;
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .nav-links {
    gap: 11px;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links .nav-cta {
    padding: 7px 9px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding-block: 20px;
  }

  .footer-links {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
