@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --canvas: #08080a;
  --surface: #0c0c0e;
  --ink: #f7f8fc;
  --text: #b4b7c3;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --indigo: #6366f1;
  --line: #ffffff2e;
  --gradient: linear-gradient(100deg, #60a5fa 0%, #6366f1 100%);
  --page: 1480px;
  --gutter: clamp(20px, 3.65vw, 60px);
  --header-height: 87px;
  --type-reduction: 2px;
  --headline: Manrope, Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 calc(1rem - var(--type-reduction))/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

body:has(.mobile-nav[open]) { overflow: hidden; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 5px; }

h1, h2, h3, h4 { margin: 0; font: 800 1em/1.05 var(--headline); }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }

.wrap {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset: 8px auto auto 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #08080aeb;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 -1px 0 #9db8df66;
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.02vw, 16px);
  font: 800 calc(clamp(23px, 2.05vw, 33px) - var(--type-reduction))/1 var(--headline);
  white-space: nowrap;
  letter-spacing: -.042em;
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: clamp(28px, 2.9vw, 46px);
  height: auto;
  color: #3b82f6;
  flex: none;
}

.brand__suffix { color: #3b82f6; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.1vw, 50px);
  --nav-size: clamp(15px, 1.24vw, 20px);
  font-size: calc(var(--nav-size) - var(--type-reduction));
}

.site-nav > a { text-decoration: none; }
.site-nav > a:not(.button):is(:hover, [aria-current]) { color: var(--blue-light); }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.site-nav .button { min-height: 44px; font-size: calc(.9 * var(--nav-size) - var(--type-reduction)); font-weight: 500; }
.button--primary { background: var(--blue); }
.button--primary:hover { background: #1d4ed8; box-shadow: 0 0 20px #2563eb66; }
.button--outline { border-color: var(--blue-light); background: #08080a99; }
.button--outline:hover { background: #142140; border-color: #93c5fd; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 0 5px 10px;
  background: none;
  border: 0;
  color: var(--ink);
  font-weight: 650;
}

.menu-toggle__icon {
  width: 24px;
  height: 16px;
  border-block: 2px solid currentColor;
  position: relative;
}

.menu-toggle__icon::after {
  content: "";
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  background: currentColor;
}

.mobile-nav {
  inset: 0 0 0 auto;
  width: min(360px, 90vw);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  border-left: 1px solid #60a5fa50;
  background: var(--surface);
  color: var(--ink);
}

.mobile-nav[open] { animation: reveal-menu .28s ease-out; }
.mobile-nav::backdrop { background: #000b; backdrop-filter: blur(5px); }
@keyframes reveal-menu {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--blue-light);
  font: 650 calc(1rem - var(--type-reduction))/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .15em;
}

.mobile-nav__close {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  font-size: calc(1.65rem - var(--type-reduction));
}

.mobile-nav nav { display: grid; }
.mobile-nav nav > a:not(.button) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 750 calc(1.45rem - var(--type-reduction)) var(--headline);
  text-decoration: none;
}
.mobile-nav nav > a:is(:hover, [aria-current]):not(.button) { color: var(--blue-light); }
.mobile-nav .button { margin-top: 24px; }

.site-footer {
  --type-reduction: 4px;
  min-height: 112px;
  margin-top: clamp(34px, 3.25vw, 54px);
  padding-block: 24px;
  border-top: 1px solid #9db8df66;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.7vw, 44px);
  color: var(--text);
  font-size: calc(clamp(12px, 1.15vw, 18px) - var(--type-reduction));
  text-transform: uppercase;
  letter-spacing: .1em;
}

.site-footer__links a {
  padding-left: clamp(16px, 2.7vw, 44px);
  border-left: 1px solid var(--line);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--blue-light); }

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 460px) {
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .site-header__inner { gap: 12px; }
  .brand { font-size: calc(20px - var(--type-reduction)); }
  .menu-toggle { gap: 7px; padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-nav[open] { animation: none; }
  .button { transition: none; }
}
