:root {
  --bg: #050508;
  --ink: #f4f2f8;
  --muted: rgba(255, 255, 255, 0.58);
  --hairline: rgba(255, 255, 255, 0.09);
  --purple: #9b7bff;
  --purple-deep: #6e5eff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
}

::selection {
  background: rgba(110, 94, 255, 0.35);
  color: #fff;
}

a {
  color: #a99bff;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: #c9bfff;
    text-decoration: underline;
  }
}

.page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(70% 50% at 85% 20%, rgba(110, 94, 255, 0.12), transparent 60%),
    radial-gradient(50% 40% at 10% 0%, rgba(110, 94, 255, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.page::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 68px;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--hairline);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  transition: opacity 160ms var(--ease-out);
}

.nav-logo:active {
  opacity: 0.72;
}

.nav-logo img {
  height: 26px;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.nav-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.18);
  transition:
    transform 160ms var(--ease-out),
    color 180ms var(--ease-out),
    background-color 180ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav-back:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
  }
}

.nav-back:active {
  transform: scale(0.96);
}

main {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 4vw, 48px) clamp(72px, 10vw, 112px);
}

.doc-header {
  margin-bottom: 40px;
}

.doc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.updated {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.42);
}

.lede {
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.callout {
  margin: 32px 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(110, 94, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(155, 123, 255, 0.22),
    0 12px 40px rgba(0, 0, 0, 0.22);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  text-wrap: pretty;
}

.callout strong {
  color: var(--ink);
}

h2 {
  margin: 48px 0 14px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
}

p,
li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.62);
  text-wrap: pretty;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.3em;
}

li {
  margin-bottom: 8px;
}

li::marker {
  color: var(--purple-deep);
}

footer {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 48px) 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 var(--hairline);
}

footer span {
  font-variant-numeric: tabular-nums;
}

.foot-links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.foot-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .foot-links a:hover {
    color: var(--ink);
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
