:root {
  --bg: #070913;
  --bg-soft: #0d1020;
  --surface: rgba(18, 22, 42, 0.82);
  --surface-solid: #12162a;
  --surface-2: #171c34;
  --text: #f4f5fb;
  --muted: #aab0c5;
  --line: rgba(171, 181, 217, 0.16);
  --purple: #8d7bff;
  --purple-soft: rgba(141, 123, 255, 0.13);
  --blue: #48a8ff;
  --green: #35d5a2;
  --warning: #f7c86a;
  --danger: #ff7f96;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 11px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -5%, rgba(85, 69, 189, 0.24), transparent 28rem),
    radial-gradient(circle at 90% 6%, rgba(41, 131, 199, 0.13), transparent 24rem),
    var(--bg);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(72, 168, 255, 0.7);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 19, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(7, 9, 19, 0.92);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 145px;
  height: auto;
}

.brand-product {
  padding-left: 12px;
  border-left: 1px solid rgba(171, 181, 217, 0.28);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 590;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav-links .nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(141, 123, 255, 0.3);
  color: #ddd8ff;
  background: var(--purple-soft);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button span {
  margin-block: 4px;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -240px;
  width: 630px;
  height: 630px;
  border: 1px solid rgba(141, 123, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(141, 123, 255, 0.025),
    0 0 0 160px rgba(72, 168, 255, 0.018);
  content: "";
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #c6bfff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: var(--purple);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
}

.hero-title {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.hero-brand {
  display: inline;
}

.hero-title .hero-hub {
  color: #b5abff;
}

.hero-title .hero-module {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.52em;
  padding: 6px 10px;
  border: 1px solid rgba(141, 123, 255, 0.34);
  border-radius: 999px;
  color: #c6bfff;
  background: rgba(141, 123, 255, 0.09);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 710px;
  margin: 27px 0 0;
  color: #d5d8e5;
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-copy {
  max-width: 690px;
  margin: 16px 0 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  border-color: rgba(171, 181, 217, 0.34);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(141, 123, 255, 0.65);
  background: #7968e9;
  box-shadow: 0 12px 35px rgba(85, 69, 189, 0.26);
}

.button-primary:hover {
  border-color: #a99cff;
  background: #8675f2;
}

.button-small {
  min-height: 39px;
  padding-inline: 13px;
  font-size: 0.82rem;
}

.control-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(141, 123, 255, 0.2);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(24, 28, 52, 0.94), rgba(12, 15, 29, 0.96));
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
}

.panel-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8de6c8;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(53, 213, 162, 0.1);
  content: "";
}

.flow {
  display: grid;
  grid-template-columns: 1fr 33px 1fr 33px 1fr;
  align-items: center;
  gap: 8px;
}

.flow-node {
  min-width: 0;
  padding: 19px 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.flow-node strong {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(0.72rem, 1vw, 0.9rem);
}

.flow-node small {
  color: var(--muted);
  font-size: 0.68rem;
}

.flow-node.active {
  border-color: rgba(141, 123, 255, 0.5);
  background: var(--purple-soft);
}

.flow-arrow {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.flow-arrow::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  content: "";
  transform: rotate(45deg);
}

.metrics {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
}

.metric strong {
  color: #e3e5ef;
  font-size: 0.84rem;
}

.section {
  padding: 94px 0;
}

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

.section-soft {
  background: rgba(255, 255, 255, 0.016);
}

.section-header {
  display: grid;
  margin-bottom: 45px;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.section-header h2,
.legal-hero h1,
.docs-hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.section-header p {
  max-width: 680px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.problem-grid,
.feature-grid,
.audience-grid,
.security-grid,
.contact-grid {
  display: grid;
  gap: 15px;
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.audience-grid {
  grid-template-columns: repeat(2, 1fr);
}

.security-grid {
  grid-template-columns: repeat(3, 1fr);
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card::before {
  position: absolute;
  top: 0;
  left: 26px;
  width: 38px;
  height: 1px;
  background: var(--purple);
  content: "";
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.feature-card {
  padding: 23px;
}

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  border: 1px solid rgba(141, 123, 255, 0.3);
  border-radius: 10px;
  color: #b8b0ff;
  background: var(--purple-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  place-items: center;
}

.split {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.split h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.split p {
  color: var(--muted);
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090c18;
  box-shadow: var(--shadow);
}

.code-window-top {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34394f;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  color: #d5d9ee;
  font-size: 0.82rem;
  line-height: 1.7;
  tab-size: 2;
}

:not(pre) > code {
  padding: 0.16em 0.4em;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #d6d1ff;
  background: rgba(141, 123, 255, 0.09);
  font-size: 0.86em;
}

.code-method,
.method {
  color: var(--green);
}

.code-string {
  color: #9bc9ff;
}

.code-key {
  color: #c1b8ff;
}

.check-list {
  display: grid;
  margin: 28px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #d4d7e4;
  font-size: 0.9rem;
}

.check-list li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 13px;
  height: 7px;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  content: "";
  transform: rotate(-45deg);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 58px;
  border: 1px solid rgba(141, 123, 255, 0.25);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(141, 123, 255, 0.13), rgba(72, 168, 255, 0.04)),
    var(--surface);
}

.cta::after {
  position: absolute;
  top: -100px;
  right: -90px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(141, 123, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.cta h2 {
  position: relative;
  z-index: 1;
  max-width: 720px;
  font-size: clamp(2.2rem, 4.7vw, 4.2rem);
}

.cta p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 55px 0 25px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.6fr);
  gap: 40px;
}

.footer-about p {
  max-width: 380px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-column strong {
  display: block;
  margin-bottom: 13px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: max-content;
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-column a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #7f869f;
  font-size: 0.76rem;
}

/* Internal pages */
.page-main {
  min-height: 65vh;
}

.legal-hero,
.docs-hero {
  padding: 80px 0 58px;
  border-bottom: 1px solid var(--line);
}

.legal-hero p,
.docs-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.updated {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #c4c8d7;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem;
}

.legal-layout {
  display: grid;
  padding-block: 70px 100px;
  grid-template-columns: 235px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.toc {
  position: sticky;
  top: 105px;
  height: max-content;
  padding: 19px;
  border-left: 1px solid var(--line);
}

.toc strong {
  display: block;
  margin-bottom: 11px;
  color: #d7d9e5;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.toc a:hover {
  color: var(--text);
}

.prose {
  min-width: 0;
}

.prose section + section {
  margin-top: 52px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.prose h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
}

.prose h3 {
  margin: 30px 0 12px;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  color: #b7bdcf;
}

.prose a {
  color: #aaa0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.notice {
  margin: 24px 0;
  padding: 17px 19px;
  border: 1px solid rgba(72, 168, 255, 0.23);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  color: #c6d9ec;
  background: rgba(72, 168, 255, 0.07);
  font-size: 0.88rem;
}

.notice-warning {
  border-color: rgba(247, 200, 106, 0.2);
  border-left-color: var(--warning);
  color: #e8d4aa;
  background: rgba(247, 200, 106, 0.06);
}

/* Documentation */
.docs-shell {
  display: grid;
  width: min(calc(100% - 36px), 1440px);
  margin-inline: auto;
  grid-template-columns: 245px minmax(0, 820px) minmax(270px, 1fr);
  gap: 34px;
}

.docs-sidebar {
  position: sticky;
  top: 77px;
  overflow-y: auto;
  height: calc(100vh - 77px);
  padding: 34px 12px 60px 0;
  border-right: 1px solid var(--line);
}

.docs-sidebar strong {
  display: block;
  margin: 22px 0 8px;
  color: #7f88a4;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-sidebar strong:first-child {
  margin-top: 0;
}

.docs-sidebar a {
  display: block;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.docs-sidebar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.docs-content {
  min-width: 0;
  padding: 54px 0 110px;
}

.docs-content > section {
  padding-top: 24px;
}

.docs-content > section + section {
  margin-top: 48px;
  padding-top: 65px;
  border-top: 1px solid var(--line);
}

.docs-content h2 {
  margin-bottom: 18px;
  font-size: 2rem;
}

.docs-content h3 {
  margin: 34px 0 14px;
  font-size: 1.24rem;
}

.docs-content h4 {
  margin: 27px 0 10px;
  font-size: 1rem;
}

.docs-content p,
.docs-content li {
  color: #b8bed0;
}

.docs-content ul,
.docs-content ol {
  padding-left: 21px;
}

.docs-content li + li {
  margin-top: 6px;
}

.endpoint {
  display: flex;
  margin: 20px 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
}

.http-method {
  min-width: 54px;
  padding: 3px 7px;
  border-radius: 5px;
  color: #8de6c8;
  background: rgba(53, 213, 162, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.http-method.post {
  color: #9bc9ff;
  background: rgba(72, 168, 255, 0.1);
}

.http-method.put {
  color: #d1c9ff;
  background: rgba(141, 123, 255, 0.12);
}

.http-method.delete {
  color: #ffacbb;
  background: rgba(255, 127, 150, 0.1);
}

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.79rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #d8dbe8;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #aeb5c9;
}

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

.docs-content pre,
.console-output pre {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #080b16;
}

.api-console-wrap {
  position: sticky;
  top: 102px;
  height: max-content;
  max-height: calc(100vh - 125px);
  overflow-y: auto;
  margin-top: 54px;
  padding: 20px;
  border: 1px solid rgba(141, 123, 255, 0.22);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.api-console-wrap h2 {
  font-size: 1.18rem;
}

.api-console-wrap > p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  color: #c3c7d7;
  font-size: 0.68rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0a0d1a;
  outline: none;
}

.field input,
.field select {
  height: 39px;
  padding: 0 10px;
}

.field textarea {
  min-height: 135px;
  padding: 10px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(141, 123, 255, 0.65);
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.console-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.console-output {
  margin-top: 15px;
}

.console-output strong {
  display: block;
  color: #c3c7d7;
  font-size: 0.68rem;
}

.console-output pre {
  min-height: 70px;
  max-height: 240px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.66rem;
}

.copy-code {
  float: right;
  margin: 8px 8px 0 0;
}

.contact-card a {
  display: inline-block;
  margin-top: 16px;
  color: #b4abff;
  font-size: 0.9rem;
}

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

  .api-console-wrap {
    position: relative;
    top: auto;
    max-height: none;
    margin: 0 0 70px;
    grid-column: 2;
  }

  .docs-content {
    padding-bottom: 35px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .menu-button {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    display: none;
    max-height: calc(100vh - 76px);
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 9, 19, 0.98);
    overflow-y: auto;
  }

  .nav-links.open {
    display: block;
  }

  .nav-links a {
    display: block;
    padding: 13px;
  }

  .nav-links .nav-cta {
    margin: 10px 0 0;
    text-align: center;
  }

  .hero-grid,
  .split,
  .section-header {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 55px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 5.2rem);
  }

  .problem-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    gap: 22px;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .toc {
    position: relative;
    top: auto;
    columns: 2;
  }

  .docs-shell {
    display: block;
    width: min(calc(100% - 40px), 820px);
  }

  .docs-sidebar {
    position: relative;
    top: auto;
    height: auto;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    columns: 2;
  }

  .docs-sidebar strong,
  .docs-sidebar a {
    break-inside: avoid;
  }

  .api-console-wrap {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand-logo {
    width: 138px;
  }

  .hero {
    padding: 64px 0 70px;
  }

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

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .hero-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .hero-title .hero-module {
    margin-bottom: 0;
  }

  .control-panel {
    padding: 18px;
  }

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

  .flow-arrow {
    width: 1px;
    height: 22px;
    margin: auto;
    background: linear-gradient(var(--purple), var(--blue));
  }

  .flow-arrow::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .section {
    padding: 72px 0;
  }

  .feature-grid,
  .audience-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 38px 25px;
  }

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

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 8px;
  }

  .legal-hero,
  .docs-hero {
    padding: 60px 0 45px;
  }

  .legal-layout {
    padding-block: 45px 75px;
  }

  .toc,
  .docs-sidebar {
    columns: 1;
  }

  .docs-shell {
    width: min(calc(100% - 28px), 820px);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .endpoint {
    align-items: flex-start;
    flex-direction: column;
    word-break: break-all;
  }
}

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

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

@media print {
  @page {
    size: A4;
    margin: 16mm 15mm 18mm;
  }

  html {
    scroll-behavior: auto;
    scroll-padding-top: 0;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    transition: none !important;
  }

  body,
  body.menu-open {
    overflow: visible;
    color: #171923;
    background: #fff !important;
    font-size: 10pt;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .skip-link,
  .menu-button,
  .nav-links,
  .toc {
    display: none !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .site-header {
    position: static !important;
    border-bottom: 1px solid #d9dce5;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .nav {
    min-height: auto;
    padding: 0 0 7mm;
  }

  .site-header .brand-logo {
    width: 42mm;
    filter: brightness(0);
  }

  .brand-product {
    border-left-color: #c9ccd5;
    color: #4d5261;
  }

  .page-main {
    min-height: 0;
  }

  .legal-hero {
    padding: 8mm 0 7mm;
    border-bottom: 1px solid #d9dce5;
  }

  .legal-hero .eyebrow {
    margin-bottom: 4mm;
    color: #555b6d;
  }

  .legal-hero .eyebrow::before {
    display: none;
  }

  .legal-hero h1 {
    color: #171923;
    font-size: 24pt;
  }

  .legal-hero p {
    margin-top: 4mm;
    color: #454a59;
    font-size: 10.5pt;
  }

  .updated {
    margin-top: 5mm;
    border-color: #d9dce5;
    color: #454a59;
    background: transparent;
  }

  .legal-layout {
    display: block;
    padding: 8mm 0 0;
  }

  .prose section + section {
    margin-top: 7mm;
    padding-top: 7mm;
    border-top-color: #d9dce5;
  }

  .prose h2,
  .prose h3 {
    color: #171923;
    break-after: avoid-page;
    page-break-after: avoid;
  }

  .prose h2 {
    margin-bottom: 3mm;
    font-size: 15pt;
  }

  .prose p,
  .prose li {
    color: #303440;
    orphans: 3;
    widows: 3;
  }

  .prose a {
    color: #171923;
    text-decoration-color: #6f7482;
  }

  .notice,
  .prose #contact {
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .notice {
    border-color: #c9d4df;
    border-left-color: #697e95;
    color: #303b48;
    background: #f4f6f8;
  }

  .site-footer {
    position: static !important;
    clear: both;
    margin-top: 10mm;
    padding: 5mm 0 0;
    border-top: 1px solid #d9dce5;
    background: transparent !important;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }

  .footer-grid {
    display: none !important;
  }

  .footer-bottom {
    display: flex !important;
    margin: 0;
    padding: 0;
    border: 0;
    color: #5e6371;
    font-size: 8pt;
  }

  .footer-bottom span {
    display: inline;
    margin: 0;
  }
}
