:root {
  color-scheme: light;
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #dfe4ea;
  --line-strong: #c9d1dc;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --surface-soft: #f2f5f8;
  --night: #111827;
  --sky: #e7f4ff;
  --blue: #1479bc;
  --orange: #f48120;
  --orange-soft: #fff0e2;
  --green: #16875d;
  --green-soft: #e4f7ef;
  --grid-line: rgba(17, 24, 39, 0.035);
  --nav-border: rgba(201, 209, 220, 0.78);
  --nav-surface: rgba(255, 255, 255, 0.86);
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --hero-glow: radial-gradient(circle, rgba(231, 244, 255, 0.9), rgba(231, 244, 255, 0));
  --orange-ink: #5c2d09;
  --orange-strong-ink: #89440d;
  --orange-hover-ink: #6f3509;
  --orange-hover: #ffe2c5;
  --sky-border: #b8d9ed;
  --sky-ink: #38576d;
  --warning-border: #efc69f;
  --warning-ink: #693a15;
  --warning-surface: #fff8f2;
  --scroll-thumb: rgba(52, 64, 84, 0.58);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 12px 28px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 34px 90px rgba(16, 24, 40, 0.14);
  --sans: Inter, "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --ink-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: #29364a;
  --line-strong: #3c4a60;
  --paper: #0b1220;
  --surface: #111b2c;
  --surface-soft: #172337;
  --sky: #10283b;
  --blue: #56b4e9;
  --orange-soft: #3a2414;
  --green: #4cc995;
  --green-soft: #12372c;
  --grid-line: rgba(148, 163, 184, 0.055);
  --nav-border: rgba(71, 85, 105, 0.72);
  --nav-surface: rgba(15, 23, 42, 0.86);
  --surface-glass: rgba(17, 27, 44, 0.84);
  --surface-strong: rgba(17, 27, 44, 0.95);
  --hero-glow: radial-gradient(circle, rgba(20, 121, 188, 0.18), rgba(20, 121, 188, 0));
  --orange-ink: #fdba74;
  --orange-strong-ink: #fdba74;
  --orange-hover-ink: #fed7aa;
  --orange-hover: #4b2d17;
  --sky-border: #28506a;
  --sky-ink: #b9dcf0;
  --warning-border: #734a27;
  --warning-ink: #fed7aa;
  --warning-surface: #2d1e15;
  --scroll-thumb: rgba(203, 213, 225, 0.58);
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.36);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

body.is-page-transitioning {
  overflow: hidden;
}

.page-transition {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: white;
  background: var(--night);
  pointer-events: auto;
  animation: page-transition-failsafe 0s 2.5s forwards;
  will-change: transform;
}

.page-transition.is-managed {
  animation: none;
}

.page-transition::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, rgba(20, 121, 188, 0.14), transparent 28%),
    radial-gradient(circle at 56% 54%, rgba(244, 129, 32, 0.08), transparent 24%);
  content: "";
}

.page-transition__brand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 13px;
  line-height: 1;
  letter-spacing: -0.04em;
  will-change: transform, opacity;
}

.page-transition__brand strong {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 760;
}

.page-transition__mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 15px;
  color: var(--night);
  background: white;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.page-transition__mark svg {
  width: 28px;
  height: 28px;
}

@keyframes page-transition-failsafe {
  to {
    visibility: hidden;
    pointer-events: none;
  }
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--night);
  transform: translateY(-150%);
}

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

.scroll-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.scrollbar-indicator {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 3px;
  width: 6px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--scroll-thumb);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  will-change: transform, height, opacity;
}

html.scrollbar-visible .scrollbar-indicator {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-color: transparent transparent;
  }

  html::-webkit-scrollbar {
    width: 14px;
  }

  html::-webkit-scrollbar-track,
  html::-webkit-scrollbar-thumb {
    background: transparent;
  }
}

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

.narrow {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 14px;
  right: 0;
  left: 0;
  transition: transform 180ms ease;
}

.nav-shell {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  background: var(--nav-surface);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled .nav-shell {
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--night);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-demo-link {
  color: var(--orange-strong-ink);
  background: var(--orange-soft);
}

.nav-demo-link:hover {
  color: var(--orange-hover-ink);
  background: var(--orange-hover);
}

.theme-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  grid-area: 1 / 1;
}

.theme-toggle__sun,
.theme-toggle__text {
  display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.nav-star {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 10px 14px;
  border-radius: 11px;
  color: white;
  background: var(--night);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.nav-star:hover {
  background: #29364c;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.16);
}

.nav-star svg {
  width: 16px;
  height: 16px;
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .nav-star,
html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .rail-icon.active,
html[data-theme="dark"] .release-version,
html[data-theme="dark"] .step-number {
  color: #0f172a;
  background: #f8fafc;
}

html[data-theme="dark"] .nav-star:hover,
html[data-theme="dark"] .button-primary:hover {
  background: #e2e8f0;
}

html[data-theme="dark"] .feature-card.night {
  border-color: #334155;
  background: #0f172a;
}

html[data-theme="dark"] .mail-window::before {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-soft);
  cursor: pointer;
}

.menu-button svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 92px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -180px;
  left: 62%;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: var(--hero-glow);
  content: "";
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--orange-soft);
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.065em;
}

.hero h1 .title-line {
  display: block;
  color: var(--ink);
}

.hero h1 .title-accent {
  color: var(--blue);
}

.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: white;
  background: var(--night);
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.15);
}

.button-primary:hover {
  background: #29364c;
  box-shadow: 0 16px 32px rgba(16, 24, 40, 0.21);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #9faaba;
  background: var(--surface-soft);
}

.button-cloudflare {
  color: var(--orange-ink);
  background: var(--orange-soft);
}

.button-cloudflare:hover {
  background: var(--orange-hover);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.mail-window {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: rotate(0.7deg);
}

.hero-visual,
.architecture-map {
  transform-style: preserve-3d;
}

.mail-window::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  content: "";
  pointer-events: none;
}

.window-bar {
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.window-title,
.window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.window-actions span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mail-app {
  display: grid;
  min-height: 466px;
  grid-template-columns: 72px 205px 1fr;
}

.mail-rail {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.rail-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 13px;
  color: var(--muted);
}

.rail-icon.active {
  color: white;
  background: var(--night);
}

.rail-icon svg {
  width: 19px;
  height: 19px;
}

.mail-list {
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.list-heading {
  padding: 22px 18px 15px;
}

.list-heading small,
.message-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.list-heading strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.inbox-item {
  padding: 15px 17px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.inbox-item.muted-item {
  color: var(--muted);
  background: transparent;
}

.inbox-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
}

.inbox-item strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-view {
  padding: 30px 27px;
}

.message-view h2 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.message-meta {
  color: var(--muted);
  font-size: 11px;
}

.message-rule {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.message-line {
  height: 9px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: var(--line);
}

.message-line.short {
  width: 62%;
}

.code-card {
  display: flex;
  margin-top: 27px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--sky-border);
  border-radius: 14px;
  background: var(--sky);
}

.code-card span {
  color: var(--sky-ink);
  font-size: 10px;
}

.code-card strong {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.09em;
}

.status-float {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.status-float span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
  transform-origin: center;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: var(--surface-glass);
}

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

.proof-item {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.proof-item span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 84px 0;
}

.section-dark {
  color: white;
  background: var(--night);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-kicker {
  display: block;
  margin-bottom: 13px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: #83c8f3;
}

.section-heading h2,
.architecture-copy h2,
.cta-panel h2,
.deploy-section h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.section-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.feature-card.large {
  grid-column: span 7;
}

.feature-card.medium {
  grid-column: span 5;
}

.feature-card.third {
  min-height: 240px;
  grid-column: span 4;
}

.feature-card.sky {
  border-color: var(--sky-border);
  background: var(--sky);
}

.feature-card.night {
  border-color: var(--night);
  color: white;
  background: var(--night);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 9px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

.feature-card.night p {
  color: #c9d1dc;
}

.feature-number {
  position: absolute;
  top: 24px;
  right: 27px;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 12px;
}

.feature-card.night .feature-number {
  color: #667085;
}

.architecture-grid {
  display: grid;
  align-items: center;
  gap: 88px;
  grid-template-columns: 0.78fr 1.22fr;
}

.architecture-copy p {
  margin: 24px 0 0;
  color: #b9c2cf;
  font-size: 18px;
}

.architecture-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.architecture-tags span {
  padding: 7px 10px;
  border: 1px solid #344054;
  border-radius: 999px;
  color: #d0d5dd;
  font-family: var(--mono);
  font-size: 11px;
}

.architecture-map {
  display: grid;
  align-items: stretch;
  gap: 12px;
  grid-template-columns: 1fr 32px 1.15fr 32px 1fr;
}

.map-column {
  display: grid;
  gap: 12px;
}

.map-node {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid #344054;
  border-radius: 15px;
  background: #182235;
}

.map-node.primary {
  border-color: #4b7897;
  background: #173249;
}

.map-node.accent {
  border-color: #80502c;
  background: #342619;
}

.map-node svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  color: #83c8f3;
}

.map-node.accent svg {
  color: #ffad64;
}

.map-node strong,
.map-node span {
  display: block;
}

.map-node strong {
  font-size: 13px;
}

.map-node span {
  margin-top: 2px;
  color: #98a2b3;
  font-size: 10px;
}

.map-arrow {
  display: grid;
  place-items: center;
  color: #667085;
}

.map-arrow svg {
  width: 20px;
  height: 20px;
}

.release-panel {
  display: grid;
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  grid-template-columns: auto 1fr auto;
}

.release-version {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: var(--night);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}

.release-copy h3 {
  margin: 6px 0 8px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.release-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.release-link {
  align-self: center;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.release-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.boundary-panel {
  display: grid;
  gap: 40px;
  padding: 42px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  background: var(--warning-surface);
  grid-template-columns: 0.85fr 1.15fr;
}

.boundary-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.boundary-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-panel li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
}

.boundary-panel li svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 4px;
  color: var(--orange);
}

.cta-section {
  padding: 40px 0 112px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 58px;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--night);
}

.cta-panel::after {
  position: absolute;
  top: -110px;
  right: -90px;
  width: 340px;
  height: 340px;
  border: 74px solid rgba(131, 200, 243, 0.11);
  border-radius: 50%;
  content: "";
}

.cta-panel p {
  max-width: 600px;
  margin: 18px 0 0;
  color: #b9c2cf;
  font-size: 18px;
}

.cta-panel .button-secondary {
  border-color: #475467;
  color: white;
  background: transparent;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

.page-hero {
  padding: 180px 0 82px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-meta svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.deploy-section {
  padding: 0 0 100px;
}

.deploy-section + .deploy-section {
  padding-top: 12px;
}

.deploy-section h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 4vw, 48px);
}

.path-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.path-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.path-card.recommended {
  border-color: var(--sky-border);
  background: var(--sky);
}

.card-label {
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--sky-ink);
  background: var(--surface-glass);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-card h3 {
  margin: 24px 0 10px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.path-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.path-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  list-style: none;
}

.path-card li::before {
  margin-right: 9px;
  color: var(--green);
  content: "✓";
}

.path-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.requirements {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.requirement {
  min-height: 164px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.requirement svg {
  width: 24px;
  height: 24px;
  margin-bottom: 24px;
  color: var(--blue);
}

.requirement strong,
.requirement span {
  display: block;
}

.requirement span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  position: relative;
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  grid-template-columns: 56px 1fr;
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--night);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin: 2px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.config-table {
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.config-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr) auto;
}

.config-row + .config-row {
  border-top: 1px solid var(--line);
}

.config-row > * {
  padding: 12px 14px;
}

.config-key {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 13px;
}

.config-value {
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.copy-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--warning-border);
  border-radius: 14px;
  color: var(--warning-ink);
  background: var(--warning-surface);
}

.notice svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--orange);
}

.notice strong,
.notice span {
  display: block;
}

.notice span {
  margin-top: 3px;
  font-size: 14px;
}

.pages-note {
  display: grid;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--sky-border);
  border-radius: var(--radius-md);
  background: var(--sky);
  grid-template-columns: 1fr auto;
}

.pages-note h3 {
  margin: 0 0 7px;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.pages-note p {
  max-width: 700px;
  margin: 0;
  color: var(--sky-ink);
}

.pages-badge {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--sky-ink);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pages-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.api-hero {
  padding: 176px 0 74px;
  border-bottom: 1px solid var(--line);
}

.api-hero-grid {
  display: grid;
  align-items: end;
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
}

.api-hero h1 {
  margin: 0;
  font-size: clamp(66px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.api-hero p {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.api-hero code,
.docs-content code {
  font-family: var(--mono);
}

.api-base-card {
  display: grid;
  gap: 10px;
  padding: 26px;
  border-radius: 18px;
  color: white;
  background: var(--night);
  box-shadow: var(--shadow-sm);
  grid-template-columns: 1fr auto;
}

.api-base-card > span {
  grid-column: 1 / -1;
  color: #98a2b3;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.api-base-card code {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-base-card .copy-button {
  color: #83c8f3;
}

.api-instance-link {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #344054;
  color: #ffb977;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.api-instance-link:hover {
  color: #ffd3aa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-mobile-links {
  display: none;
}

.docs-layout {
  display: grid;
  align-items: start;
  gap: 70px;
  padding-top: 68px;
  padding-bottom: 112px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.docs-sidebar {
  position: sticky;
  top: 106px;
}

.docs-sidebar-inner {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
}

.docs-sidebar-title {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  gap: 3px;
}

.docs-sidebar nav a {
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a.active {
  color: var(--ink);
  background: var(--surface-soft);
}

.docs-sidebar nav a.active {
  box-shadow: inset 3px 0 var(--blue);
}

.docs-source-link {
  display: block;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.docs-source-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-content {
  width: min(100%, 870px);
}

.api-section {
  padding: 0 0 78px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.api-section + .api-section {
  padding-top: 78px;
}

.api-section h2,
.api-source-panel h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.api-section > p {
  margin: 20px 0 0;
  color: var(--ink-soft);
}

.api-lead {
  max-width: 760px;
  font-size: 18px;
}

.api-fact-grid {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  grid-template-columns: repeat(4, 1fr);
}

.api-fact {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.api-fact strong,
.api-fact span {
  display: block;
}

.api-fact strong {
  font-family: var(--mono);
  font-size: 16px;
}

.api-fact span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.api-callout {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 13px;
}

.api-callout.warning {
  border: 1px solid var(--warning-border);
  color: var(--warning-ink);
  background: var(--warning-surface);
}

.api-callout.info {
  border: 1px solid var(--sky-border);
  color: var(--sky-ink);
  background: var(--sky);
}

.api-callout svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.api-callout strong,
.api-callout span {
  display: block;
}

.api-callout span {
  margin-top: 3px;
  font-size: 13px;
}

.auth-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
}

.auth-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.auth-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--sky);
}

.auth-icon svg {
  width: 21px;
  height: 21px;
}

.auth-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.code-block {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid #344054;
  border-radius: 15px;
  color: #e4e7ec;
  background: #101828;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.12);
}

.code-head {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid #344054;
  color: #98a2b3;
  background: #182235;
  font-family: var(--mono);
  font-size: 10px;
}

.code-head button {
  border: 0;
  color: #83c8f3;
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.code-head button:hover {
  color: white;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  tab-size: 2;
}

.code-block code {
  font-family: inherit;
}

.code-key {
  color: #83c8f3;
}

.code-string {
  color: #a6e3c8;
}

.code-number {
  color: #ffb977;
}

.code-boolean {
  color: #d5b8ff;
}

.code-method {
  font-weight: 800;
}

.code-method.get {
  color: #83c8f3;
}

.endpoint-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.endpoint-heading code {
  overflow-x: auto;
  font-size: 13px;
  white-space: nowrap;
}

.method {
  display: inline-grid;
  min-width: 56px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.method.get {
  color: #075f94;
  background: #dcefff;
}

.method.post {
  color: #08613e;
  background: #dff7eb;
}

.method.put {
  color: #6b4a00;
  background: #fff1c7;
}

.method.patch {
  color: #5a3f93;
  background: #eee6ff;
}

.method.delete {
  color: #9f2f2f;
  background: #ffe4e4;
}

.token-flow {
  display: grid;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
}

.token-flow > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.token-flow span,
.token-flow strong,
.token-flow small {
  display: block;
}

.token-flow span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
}

.token-flow strong {
  margin-top: 5px;
  font-size: 13px;
}

.token-flow small {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-flow i {
  color: var(--line-strong);
  font-style: normal;
}

.api-rules {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  list-style: none;
}

.api-rules li {
  display: grid;
  gap: 18px;
  padding: 14px 17px;
  grid-template-columns: 92px 1fr;
}

.api-rules li + li {
  border-top: 1px solid var(--line);
}

.api-rules strong {
  font-size: 13px;
}

.api-rules span {
  color: var(--muted);
  font-size: 13px;
}

.api-subheading {
  margin: 42px 0 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.compact-endpoints {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
}

.compact-endpoints > div {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  grid-template-columns: auto minmax(0, 1fr);
}

.compact-endpoints code {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-endpoints small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
}

.admin-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
}

.admin-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-grid strong,
.admin-grid code,
.admin-grid span {
  display: block;
}

.admin-grid strong {
  font-size: 15px;
}

.admin-grid code {
  overflow: hidden;
  margin-top: 14px;
  color: var(--blue);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.status-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.status-list > div {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  grid-template-columns: 54px 120px 1fr;
}

.status-list > div + div {
  border-top: 1px solid var(--line);
}

.status-list > div > code {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.status-list strong {
  font-size: 13px;
}

.status-list span {
  color: var(--muted);
  font-size: 13px;
}

.endpoint-search {
  display: grid;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
  grid-template-columns: auto 1fr auto;
}

.endpoint-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20, 121, 188, 0.12);
}

.endpoint-search svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.endpoint-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.endpoint-search input::placeholder {
  color: #98a2b3;
}

.endpoint-search kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.endpoint-count {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.endpoint-row {
  display: grid;
  min-height: 62px;
  align-items: center;
  gap: 15px;
  padding: 13px 16px;
  grid-template-columns: 58px minmax(260px, 1fr) minmax(220px, 0.8fr);
}

.endpoint-row + .endpoint-row {
  border-top: 1px solid var(--line);
}

.endpoint-row code {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.endpoint-row[hidden],
.endpoint-empty[hidden] {
  display: none;
}

.endpoint-empty {
  margin-top: 18px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.api-source-panel {
  display: grid;
  align-items: end;
  gap: 34px;
  margin-top: 78px;
  padding: 38px;
  border-radius: 20px;
  color: white;
  background: var(--night);
  grid-template-columns: 1fr auto;
}

.api-source-panel p {
  max-width: 600px;
  margin: 14px 0 0;
  color: #b9c2cf;
}

.api-source-panel .button {
  white-space: nowrap;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

:focus-visible {
  outline: 3px solid rgba(20, 121, 188, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .hero-grid {
    gap: 58px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .mail-window {
    width: min(760px, 100%);
  }

  .status-float {
    right: 18px;
  }

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

  .proof-item:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .proof-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .feature-card.large,
  .feature-card.medium {
    grid-column: span 6;
  }

  .feature-card.third {
    grid-column: span 4;
  }

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

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

  .api-hero-grid {
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
  }

  .docs-layout {
    gap: 42px;
    grid-template-columns: 190px minmax(0, 1fr);
  }

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

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

  .token-flow i {
    display: none;
  }

  .endpoint-row {
    grid-template-columns: 58px minmax(200px, 1fr);
  }

  .endpoint-row p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 8px;
  }

  .nav-shell {
    position: relative;
    min-height: 58px;
    padding: 7px 8px 7px 14px;
    border-radius: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-link,
  .nav-star,
  .theme-toggle {
    justify-content: flex-start;
    margin: 0;
    padding: 12px 13px;
  }

  .theme-toggle {
    display: flex;
    width: 100%;
    height: auto;
    gap: 10px;
    border-color: transparent;
    background: transparent;
  }

  .theme-toggle:hover {
    background: var(--surface-soft);
  }

  .theme-toggle__text {
    display: inline;
    font-size: 14px;
    font-weight: 620;
  }

  .hero,
  .page-hero {
    padding-top: 134px;
  }

  .hero {
    padding-bottom: 68px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-copy,
  .page-hero p {
    font-size: 17px;
  }

  .mail-window {
    min-height: 460px;
    border-radius: 20px;
    transform: none;
  }

  .mail-app {
    min-height: 406px;
    grid-template-columns: 58px 145px 1fr;
  }

  .mail-rail {
    padding: 15px 7px;
  }

  .rail-icon {
    width: 42px;
    height: 42px;
  }

  .list-heading {
    padding-inline: 13px;
  }

  .inbox-item {
    padding-inline: 12px;
  }

  .message-view {
    padding: 25px 18px;
  }

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

  .proof-item,
  .proof-item:first-child,
  .proof-item:nth-child(3) {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .proof-item + .proof-item {
    border-top: 1px solid var(--line);
  }

  .section,
  .section-tight {
    padding: 78px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading p {
    margin-top: 18px;
  }

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

  .feature-card.large,
  .feature-card.medium,
  .feature-card.third {
    min-height: 0;
    grid-column: auto;
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .map-arrow {
    min-height: 26px;
    transform: rotate(90deg);
  }

  .release-panel,
  .boundary-panel,
  .pages-note {
    grid-template-columns: 1fr;
  }

  .release-link {
    align-self: auto;
  }

  .cta-panel {
    padding: 38px 28px;
    border-radius: 24px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .path-card {
    min-height: 0;
  }

  .api-hero {
    padding: 136px 0 56px;
  }

  .api-hero-grid {
    grid-template-columns: 1fr;
  }

  .api-hero h1 {
    font-size: clamp(60px, 20vw, 84px);
  }

  .api-base-card {
    padding: 20px;
  }

  .docs-mobile-links {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
    scrollbar-width: none;
  }

  .docs-mobile-links::-webkit-scrollbar {
    display: none;
  }

  .docs-mobile-links a {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .docs-layout {
    display: block;
    padding-top: 42px;
    padding-bottom: 78px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    width: 100%;
  }

  .api-section {
    padding-bottom: 62px;
  }

  .api-section + .api-section {
    padding-top: 62px;
  }

  .api-fact-grid,
  .auth-grid,
  .compact-endpoints,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .code-block pre {
    padding: 18px;
    font-size: 11px;
  }

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

  .api-rules li {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .status-list > div {
    gap: 5px 12px;
    grid-template-columns: 48px 1fr;
  }

  .status-list span {
    grid-column: 2;
  }

  .endpoint-row {
    gap: 8px 12px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .endpoint-row p {
    grid-column: 1 / -1;
  }

  .api-source-panel {
    align-items: start;
    padding: 30px 24px;
    grid-template-columns: 1fr;
  }

  .api-source-panel .button {
    justify-self: start;
  }

  .config-row {
    grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr) auto;
  }
}

@media (max-width: 520px) {
  .mail-app {
    grid-template-columns: 56px 1fr;
  }

  .mail-list {
    display: none;
  }

  .status-float {
    right: 12px;
    bottom: 18px;
  }

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

  .step {
    gap: 18px;
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .config-row {
    grid-template-columns: 1fr auto;
  }

  .config-key {
    grid-column: 1 / -1;
    padding-bottom: 5px;
  }

  .config-value,
  .copy-button {
    padding-top: 6px;
  }

  .api-fact-grid,
  .token-flow {
    grid-template-columns: 1fr;
  }

  .api-base-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

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

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

  .scroll-progress {
    display: none;
  }

  .page-transition {
    display: none;
  }
}
