.developer-layout {
  --developer-link: #a7b9f4;
  --developer-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  width: min(960px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-bottom: clamp(64px, 8vw, 104px);
}

.developer-hero {
  padding-top: clamp(66px, 8.5vw, 110px);
  text-align: center;
}

.developer-hero h1 {
  max-width: 840px;
  margin-inline: auto;
  font-size: clamp(2.125rem, 4.2vw, 3rem);
  font-weight: 550;
  line-height: 1.08;
  text-wrap: balance;
}

.developer-intro {
  max-width: 660px;
  margin: clamp(20px, 3vw, 32px) auto 0;
  color: #c1bfc6;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.developer-intro code,
.developer-setup code {
  padding: 0.08em 0.3em;
  border: 1px solid #ffffff12;
  border-radius: 5px;
  background: #ffffff09;
  color: var(--ink);
  font: 0.88em var(--developer-mono);
  white-space: nowrap;
}

.developer-intro a:hover code {
  background: #242238;
  color: var(--developer-link);
}

.developer-hero .primary {
  min-width: min(248px, 100%);
  min-height: 44px;
  margin-top: 36px;
  border-radius: 999px;
}

.developer-hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
}

.developer-hero-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.developer-hero-links a:hover {
  color: var(--ink);
}

.developer-screenshot {
  width: 100%;
  margin-top: clamp(56px, 8vw, 100px);
  border: 1px solid #ffffff19;
  border-radius: clamp(8px, 1.1vw, 14px);
  box-shadow: 0 20px 54px #0008;
}

.developer-section {
  margin-top: clamp(72px, 9vw, 112px);
  text-align: center;
}

.developer-section-heading h2 {
  font-size: clamp(1.625rem, 3.2vw, 2rem);
  font-weight: 550;
  text-wrap: balance;
}

.developer-kicker {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 4px 11px;
  border: 1px solid #bd99ff25;
  border-radius: 999px;
  background: #282039;
  color: #cfb3ff;
  font: 600 11px/1.4 var(--developer-mono);
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.developer-setup {
  max-width: 640px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  text-wrap: pretty;
}

.developer-setup p + p {
  margin-top: 6px;
}

.developer-setup strong {
  color: #dddbe3;
  font-weight: 550;
}

.developer-commands {
  max-width: 672px;
  margin: 36px auto 0;
}

.developer-command {
  padding: 12px 16px 15px;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  background: #222531;
  text-align: start;
}

.developer-command + .developer-command {
  margin-top: 12px;
}

.developer-command h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #c5c5d0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.developer-command h3 .icon {
  width: 15px;
  height: 15px;
}

.developer-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px;
  border: 1px solid #ffffff0d;
  border-radius: 7px;
  background: #141418;
  text-align: start;
}

.developer-terminal pre {
  min-width: 0;
  margin: 0;
  padding: 12px clamp(10px, 2vw, 20px);
  overflow: auto;
  color: #dad7e3;
  font: clamp(12px, 1.3vw, 14px) / 1.6 var(--developer-mono);
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.developer-terminal pre:focus-visible {
  outline-offset: -2px;
}

.developer-terminal code {
  font: inherit;
}

.developer-terminal .token-tool {
  color: #a2c7ff;
}

.developer-terminal .token-flag {
  color: #e4bd95;
}

.developer-terminal .token-url {
  color: #b4c795;
}

.developer-copy {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  align-self: center;
  margin: 5px 7px 5px 0;
  padding: 0;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  background: #25293a;
  color: #d9e0fb;
}

.developer-copy:hover {
  background: #353e59;
  color: #fff;
}

.developer-copy .icon {
  width: 14px;
  height: 14px;
}

.developer-inline-link,
.developer-resources a {
  color: var(--developer-link);
  font-size: 14px;
}

.developer-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 21px;
}

.developer-inline-link:hover,
.developer-resources a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.developer-resources-section {
  margin-top: clamp(54px, 7vw, 78px);
  padding-top: clamp(52px, 6.5vw, 78px);
  border-top: 1px solid var(--line);
}

.developer-resource-mark {
  margin: 0 auto 23px;
}

.developer-example-panel {
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid #ffffff26;
  border-radius: 16px;
  background: #101115;
  text-align: start;
}

.developer-example-header,
.developer-example-toolbar,
.developer-example-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-inline: clamp(14px, 2.7vw, 26px);
}

.developer-example-header {
  padding-block: 12px;
  border-bottom: 1px solid #ffffff12;
  background: #181920;
}

.developer-example-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  background: #0e0f14;
}

.developer-example-tabs button {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}

.developer-example-tabs button:hover {
  color: var(--ink);
}

.developer-example-tabs button[aria-selected="true"] {
  border-color: #ffffff19;
  background: #2b2e3e;
  color: #e3e8ff;
}

.developer-example-endpoint,
.developer-example-toolbar {
  color: var(--muted);
  font: 12px/1.5 var(--developer-mono);
}

.developer-example-endpoint {
  overflow-wrap: anywhere;
}

.developer-example-endpoint b {
  margin-inline-end: 5px;
  color: #b3c7f7;
  font-weight: 600;
}

.developer-example-panel:not([data-tabs-ready])
  .developer-example
  + .developer-example {
  border-top: 1px solid #ffffff12;
}

.developer-example-title {
  margin: 16px 26px 0;
  font-size: 16px;
}

[data-tabs-ready] .developer-example-title {
  display: none;
}

.developer-example-toolbar {
  min-height: 48px;
  padding-block: 6px;
}

.developer-example-toolbar .developer-copy {
  margin: 0;
  border-radius: 7px;
}

.developer-example pre {
  max-width: 100%;
  margin: 0;
  padding: 4px clamp(14px, 2.7vw, 26px) 22px;
  overflow: auto;
  color: #dad7e3;
  font: clamp(12px, 1.25vw, 14px) / 1.55 var(--developer-mono);
  tab-size: 2;
}

[data-tabs-ready] .developer-example pre {
  height: clamp(315px, 38vw, 420px);
}

.developer-example pre:focus-visible {
  outline-offset: -2px;
}

.developer-example pre code {
  font: inherit;
}

.developer-example .token-keyword {
  color: #c6a9f4;
}

.developer-example .token-string {
  color: #b8cd9e;
}

.developer-example-footer {
  padding-block: 12px;
  border-top: 1px solid #ffffff12;
  background: #15161b;
}

.developer-example-footer .developer-inline-link {
  margin-top: 0;
}

.developer-resources {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.developer-resources a {
  display: inline-block;
  padding-block: 4px;
}

.developer-copy-announcement:not(:empty) {
  position: fixed;
  z-index: 10;
  right: var(--gutter);
  bottom: 20px;
  max-width: min(320px, 100% - 2 * var(--gutter));
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .developer-hero-copy {
    animation: settle 300ms var(--ease-out) both;
  }

  .developer-screenshot {
    animation: open-window 380ms 45ms var(--ease-out) both;
  }

  .developer-section [data-reveal="description"] {
    --reveal-delay: 75ms;
  }

  .developer-section [data-reveal="media"] {
    --reveal-delay: 150ms;
  }

  .developer-section [data-reveal].is-revealed {
    animation-duration: 380ms, 490ms;
  }

  .developer-section:is(:target, :focus-within, :has(:target))
    [data-reveal].will-reveal {
    opacity: 1;
    animation-duration: 0s;
    animation-delay: 0s;
  }
}

@media (max-width: 620px) {
  .developer-hero .primary {
    margin-top: 28px;
  }

  .developer-command {
    padding: 11px;
  }
}
