:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --ink: #111318;
  --muted: #5f646b;
  --hairline: rgba(17, 19, 24, 0.08);
  --header-height: 5.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  overflow: clip;
}

section[id],
article [id] {
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.glass {
  border: 1px solid rgba(17, 19, 24, 0.075);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 55px rgba(48, 68, 92, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
}

.eyebrow {
  color: #666b73;
  font: 700 0.6875rem/1 "Courier Prime", ui-monospace, monospace;
  letter-spacing: 0.16em;
}

.prose-copy {
  color: var(--muted);
  line-height: 1.85;
}

.site-nav-link {
  color: #555b63;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav-link:hover,
.site-nav-link[aria-current="page"] {
  color: #111318;
}

.site-nav-link[aria-current="page"] {
  background: rgba(17, 19, 24, 0.055);
}

.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.875rem;
  transition: transform 100ms ease-out, border-color 160ms ease, background-color 160ms ease;
}

.button-primary {
  background: #111318;
  color: white;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.button-primary:hover {
  background: #303238;
}

.button-secondary {
  border: 1px solid rgba(17, 19, 24, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: #4f555d;
}

.button-secondary:hover {
  border-color: rgba(17, 19, 24, 0.28);
  background: rgba(255, 255, 255, 0.7);
}

.button-primary:active,
.button-secondary:active,
.site-nav-link:active {
  transform: scale(0.975);
}

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.48);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 9.5rem 1.5rem 5rem;
  background: linear-gradient(135deg, #dcebf7 0%, #f5f4f0 52%, #e7e8f5 100%);
}

.page-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, var(--paper), transparent);
  content: "";
  pointer-events: none;
}

.page-title {
  max-width: 16ch;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 48rem);
  gap: clamp(2rem, 5vw, 5rem);
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  max-height: calc(100dvh - var(--header-height) - 3rem);
  align-self: start;
  overflow-y: auto;
}

.docs-nav a {
  display: block;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  color: #5c626a;
  font-size: 0.875rem;
  transition: background-color 160ms ease, color 160ms ease;
}

.docs-nav a:hover {
  background: rgba(17, 19, 24, 0.045);
  color: #111318;
}

.docs-article {
  min-width: 0;
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.08rem);
  line-height: 1.85;
}

.docs-article > * + * {
  margin-top: 1.25rem;
}

.docs-article section + section {
  margin-top: 5rem;
  padding-top: 1rem;
}

.docs-article h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.docs-article h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.35;
}

.docs-article p,
.docs-article li {
  color: #555b63;
}

.docs-article ul,
.docs-article ol {
  padding-left: 1.4rem;
}

.docs-article ul {
  list-style: disc;
}

.docs-article ol {
  list-style: decimal;
}

.docs-article li + li {
  margin-top: 0.55rem;
}

.docs-article a:not(.button-primary):not(.button-secondary) {
  color: #245a9a;
  text-decoration: underline;
  text-decoration-color: rgba(36, 90, 154, 0.35);
  text-underline-offset: 0.2em;
}

.step-list {
  counter-reset: guide-step;
  list-style: none !important;
  padding: 0 !important;
}

.step-card {
  counter-increment: guide-step;
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 0 3.75rem;
}

.step-card::before {
  position: absolute;
  top: 1.75rem;
  left: 0;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #30343a;
  content: counter(guide-step, decimal-leading-zero);
  font: 700 0.72rem/1 "Courier Prime", ui-monospace, monospace;
}

.callout {
  border: 1px solid rgba(138, 91, 23, 0.14);
  border-radius: 1rem;
  background: rgba(255, 247, 226, 0.72);
  padding: 1.2rem 1.3rem;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #5f4319;
}

.keyboard-key {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 19, 24, 0.11);
  border-bottom-width: 2px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.25rem 0.55rem;
  color: #33373d;
  font: 400 0.82rem/1 "Courier Prime", ui-monospace, monospace;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #30343a;
  font-weight: 500;
}

.comparison-table td {
  color: #5b6168;
}

.faq-list details {
  border-bottom: 1px solid var(--hairline);
}

.faq-list summary {
  display: flex;
  min-height: 4.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.6rem;
  padding: 0.8rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 400;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-plus {
  color: #737982;
  font-size: 1.45rem;
  transition: transform 180ms ease;
}

.faq-list details p,
.faq-list details ul {
  padding: 0 2.5rem 1.5rem 0.25rem;
  color: #5b6168;
  line-height: 1.8;
}

.mobile-page-nav {
  display: none;
}

@media (max-width: 63.99rem) {
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-sidebar {
    display: none;
  }

  .mobile-page-nav {
    display: block;
  }
}

@media (max-width: 47.99rem) {
  :root {
    --header-height: 5rem;
  }

  .page-hero {
    padding: 8rem 1.5rem 4rem;
  }

  .step-card {
    padding-left: 0;
  }

  .step-card::before {
    position: static;
    margin-bottom: 1rem;
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 8.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .language-trigger,
  .language-menu {
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.language-picker {
  position: relative;
  z-index: 2;
  display: inline-block;
}

.language-trigger {
  display: inline-flex;
  min-width: 9.75rem;
  min-height: 3rem;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgb(255 255 255 / 64%);
  border-radius: 999px;
  background: rgb(255 255 255 / 46%);
  box-shadow: inset 0 0 0 1px rgb(17 19 24 / 5%), 0 5px 18px rgb(48 68 92 / 7%);
  padding: 0 .85rem;
  color: rgb(17 19 24 / 74%);
  font: 500 .8rem/1 "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  transition: transform 100ms ease-out, background-color 160ms ease, box-shadow 160ms ease;
}

.language-trigger:hover,
.language-picker.is-open .language-trigger {
  background: rgb(255 255 255 / 68%);
  box-shadow: inset 0 0 0 1px rgb(17 19 24 / 8%), 0 7px 22px rgb(48 68 92 / 10%);
}

.language-trigger:active {
  transform: scale(.975);
}

.language-trigger:focus-visible {
  outline: 3px solid rgb(37 99 235 / 42%);
  outline-offset: 2px;
}

.language-picker-icon,
.language-picker-chevron {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: rgb(17 19 24 / 48%);
  pointer-events: none;
}

.language-picker-icon {
  margin-left: .05rem;
}

.language-picker-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.35;
}

.language-picker-chevron {
  margin-left: auto;
  transition: transform 160ms ease;
}

.language-picker-chevron svg {
  width: .62rem;
  height: .42rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.language-picker.is-open .language-picker-chevron {
  transform: rotate(180deg);
}

.language-current {
  white-space: nowrap;
}

.language-menu {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  width: 12rem;
  border: 1px solid rgb(17 19 24 / 9%);
  border-radius: 1.1rem;
  background: rgb(250 250 250 / 92%);
  box-shadow: 0 20px 60px rgb(33 43 57 / 18%), inset 0 1px 0 rgb(255 255 255 / 85%);
  padding: .4rem;
  transform-origin: top right;
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  backdrop-filter: blur(28px) saturate(165%);
  animation: language-menu-in 160ms cubic-bezier(.2, .8, .2, 1);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: flex;
  width: 100%;
  min-height: 2.8rem;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: .78rem;
  background: transparent;
  padding: .6rem .75rem;
  color: rgb(17 19 24 / 72%);
  font: 500 .86rem/1.2 "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 100ms ease, transform 100ms ease-out;
}

.language-option:hover,
.language-option:focus-visible {
  outline: 0;
  background: rgb(17 19 24 / 6%);
}

.language-option:active {
  transform: scale(.985);
}

.language-option svg {
  width: .9rem;
  height: .9rem;
  stroke: #3677dc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.language-option[aria-checked="false"] svg {
  visibility: hidden;
}

@keyframes language-menu-in {
  from {
    opacity: 0;
    transform: scale(.96) translateY(-.25rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.language-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .65rem;
}

.language-showcase span {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border: 1px solid rgb(17 19 24 / 8%);
  border-radius: 999px;
  background: rgb(255 255 255 / 52%);
  padding: .65rem 1rem;
  color: rgb(17 19 24 / 66%);
  font-size: .82rem;
  letter-spacing: .01em;
}

@media (max-width: 47.99rem) {
  .language-trigger {
    min-width: 0;
    width: 2.75rem;
    min-height: 2.75rem;
    justify-content: center;
    padding: 0;
  }

  .language-picker-icon {
    margin: 0;
  }

  .language-current,
  .language-picker-chevron {
    display: none;
  }

  .language-menu {
    width: 11.5rem;
  }
}

@media (prefers-contrast: more) {
  .glass,
  .language-trigger,
  .language-menu {
    border-color: rgba(17, 19, 24, 0.35);
    background: #fff;
  }

  .prose-copy,
  .docs-article p,
  .docs-article li {
    color: #33373d;
  }
}
