:root {
  color-scheme: dark;
  --brand: #0330ef;
  --bg: #0b0b0b;
  --surface: #0f0f0f;
  --fg: #f4f5fb;
  --muted: #8e92a6;
  --line: rgb(255 255 255 / 0.1);
  --ring: rgb(255 255 255 / 0.16);
  --outline: rgb(255 255 255 / 0.34);
  --neutral: #34343a;
  --font-title: "Figtree", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sidebar: 92px;
  --topbar: 68px;
  --gutter: 5vw;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f2f7;
  --surface: #ffffff;
  --fg: #0b0b0b;
  --muted: #5f637a;
  --line: rgb(11 11 11 / 0.12);
  --ring: rgb(3 48 239 / 0.3);
  --outline: rgb(11 11 11 / 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 800;
}

h2,
.page-title {
  font-size: clamp(36px, 5.4vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 9;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

.wordmark {
  display: block;
  width: var(--size, 60px);
  height: auto;
}

:root[data-theme="light"] .wordmark {
  filter: invert(1);
}


.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 60px;
}

.section-head__num {
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s;
}

.btn .icon {
  transition: transform 0.4s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(5px);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover::before {
  transform: none;
}

.btn--fill {
  background: var(--brand);
  color: #fff;
}

.btn--fill::before {
  background: var(--fg);
}

.btn--fill:hover {
  color: var(--bg);
}

.btn--line {
  border: 1px solid var(--line);
}

.btn--line::before {
  background: var(--fg);
}

.btn--line:hover {
  color: var(--bg);
  border-color: var(--fg);
}

.btn--white {
  background: #fff;
  color: var(--brand);
}

.btn--white::before {
  background: #0b0b0b;
}

.btn--white:hover {
  color: #fff;
}

.btn--outline {
  border: 1px solid rgb(255 255 255 / 0.5);
  color: #fff;
}

.btn--outline::before {
  background: #fff;
}

.btn--outline:hover {
  color: var(--brand);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}

.pill:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.pill b {
  color: var(--brand);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--brand);
  transform: rotate(90deg);
}

.theme-toggle .icon--sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon--sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon--moon {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: var(--sidebar);
  padding-block: 26px;
  background: var(--bg);
  border-right: 1px solid var(--line);
}

.sidebar__logo {
  --size: 60px;
  display: block;
  transition: transform 0.5s var(--ease);
}

.sidebar__logo:hover {
  transform: scale(1.08) rotate(-4deg);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar__link {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.4s var(--ease), color 0.4s;
}

.sidebar__link:hover {
  color: var(--fg);
}

.sidebar__link.is-active {
  background: var(--brand);
  color: #fff;
}

.sidebar__link span {
  position: absolute;
  left: 50px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}

.sidebar__link:hover span {
  opacity: 1;
  transform: none;
}

.topbar {
  display: none;
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 96px 8vw 40px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}

.menu__close {
  position: absolute;
  top: 14px;
  right: 5vw;
}

.menu__nav {
  display: grid;
  gap: 6px;
}

.menu__link {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
  font-size: clamp(32px, 9vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.menu__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.footer {
  padding: 70px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer__brand {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.footer__brand .wordmark {
  --size: 76px;
}

.footer__brand p {
  max-width: 300px;
  line-height: 1.6;
}

.footer__brand .pill {
  color: var(--fg);
}

.footer__title {
  margin-bottom: 18px;
  color: var(--fg);
  font-size: 15px;
  letter-spacing: -0.01em;
}

.footer__list {
  display: grid;
  gap: 12px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, transform 0.4s var(--ease);
}

.footer__list a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}


@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sidebar__divider {
  align-self: center;
  width: 22px;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: var(--outline);
}

.page,
.footer {
  margin-left: var(--sidebar);
}

.docs-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 78vh;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}

.docs-hero::before {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -30vh;
  width: 60vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(3 48 239 / 0.45), transparent 68%);
  pointer-events: none;
}

.docs-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.docs-hero__kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand);
}

.docs-hero__title {
  max-width: 900px;
  font-size: clamp(48px, 8.4vw, 130px);
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.docs-hero__title em {
  color: var(--brand);
  font-style: normal;
}

.docs-hero__lead {
  max-width: 560px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.docs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.section {
  padding: 100px var(--gutter);
}

.section__intro {
  max-width: 560px;
  margin: -24px 0 56px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}

.doc-card:hover {
  border-color: var(--brand);
  transform: translateY(-6px);
}

.doc-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
}

.doc-card__icon .icon {
  width: 22px;
  height: 22px;
}

.doc-card__title {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.doc-card__text {
  flex: 1;
  color: var(--muted);
  line-height: 1.6;
}

.doc-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.doc-card__meta .icon {
  transition: transform 0.4s var(--ease);
}

.doc-card:hover .doc-card__meta .icon {
  transform: translateX(5px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
}

.fact {
  padding: 28px;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
}

.fact__value {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fact__label {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}

.open {
  display: grid;
  gap: 24px;
  max-width: 720px;
}

.open p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.open__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.policy {
  padding: 130px var(--gutter) 100px;
}

.policy__head {
  max-width: 900px;
  margin-bottom: 70px;
}

.policy__head .page-title {
  margin-bottom: 26px;
}

.policy__lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.policy__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.policy__layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 40px;
  display: grid;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc__title {
  margin-bottom: 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc__link {
  position: relative;
  padding-block: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s, transform 0.4s var(--ease);
}

.toc__link:hover {
  color: var(--fg);
}

.toc__link.is-active {
  color: var(--brand);
  transform: translateX(4px);
}

.toc__link.is-active::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--brand);
}

.article {
  display: grid;
  gap: 64px;
  min-width: 0;
}

.article__section {
  display: grid;
  gap: 18px;
}

.article__section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.article__section p,
.article__section li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.article__section strong {
  color: var(--fg);
}

.article__section a:not(.btn) {
  color: #7b93ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__section code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 0.88em;
}

.article__list {
  display: grid;
  gap: 12px;
}

.article__list li {
  position: relative;
  padding-left: 26px;
}

.article__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--brand);
}

.note {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.7;
}

.note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

.data-table th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td:first-child {
  color: var(--fg);
  font-weight: 600;
}

.data-table td:last-child {
  color: var(--fg);
  font-weight: 700;
}

.footer a:not(.pill):hover {
  color: var(--brand);
}

@media (max-width: 960px) {
  .sidebar {
    display: none;
  }

  .page,
  .footer {
    margin-left: 0;
  }

  .topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar);
    padding-inline: var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .topbar__logo {
    --size: 56px;
  }

  .topbar__actions {
    display: flex;
    gap: 8px;
  }

  .docs-hero {
    min-height: 0;
    padding-block: calc(var(--topbar) + 70px) 70px;
  }

  .docs-hero__lead {
    font-size: 17px;
  }

  .section {
    padding-block: 70px;
  }

  .policy {
    padding-top: calc(var(--topbar) + 50px);
  }

  .policy__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .footer__main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
  }

  .data-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  .data-table tr:last-child {
    border-bottom: 0;
  }

  .data-table td {
    padding: 10px 18px;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

:root[data-theme="light"] .article__section a:not(.btn) {
  color: var(--brand);
}
