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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-900);
  font-size: 16px;
  line-height: 1.625;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink-950);
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 16, 32, 0.96);
  box-shadow: 0 12px 30px rgba(5, 8, 20, 0.22);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #fff;
}

.brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  transform: rotate(8deg);
}

.brand__mark i {
  display: block;
  background: var(--brand-primary);
  border-radius: 3px;
}

.brand__mark i:nth-child(2),
.brand__mark i:nth-child(3) {
  background: #73dfb5;
}

.brand__mark i:nth-child(2) {
  transform: translateY(5px);
}

.brand__mark i:nth-child(3) {
  transform: translateY(-5px);
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 17px;
  font-weight: 700;
}

.brand__text small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.site-nav > a:not(.button) {
  position: relative;
  font-size: 14px;
  transition: color 160ms ease;
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: #73dfb5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav > a:not(.button):hover,
.site-nav > a:not(.button):focus-visible,
.site-nav > a:not(.button)[aria-current="page"] {
  color: #fff;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button):focus-visible::after,
.site-nav > a:not(.button)[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(115, 223, 181, 0.55);
  outline-offset: 3px;
}

.button--large {
  min-height: 48px;
  padding-inline: 22px;
}

.button--small {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 14px;
}

.button--primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 67, 230, 0.22);
}

.button--primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 14px 28px rgba(91, 67, 230, 0.3);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
}
