:root {
  color-scheme: dark;
  --bg: #040815;
  --bg-2: #071024;
  --panel: #0b1428;
  --panel-2: #101d38;
  --panel-3: #15264a;
  --line: rgba(162, 190, 255, .16);
  --line-strong: rgba(162, 190, 255, .34);
  --text: #f5f8ff;
  --soft: #dce8ff;
  --muted: #a7b7d3;
  --muted-2: #7f90ad;
  --blue: #2f7cff;
  --cyan: #31d6ff;
  --purple: #7a5cff;
  --green: #40d99b;
  --amber: #f8c45d;
  --red: #ff6f91;
  --max: 1220px;
  --reader: 860px;
  --radius: 8px;
  --shadow: 0 26px 90px rgba(0, 0, 0, .34);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgba(47, 124, 255, .22), transparent 34rem),
    radial-gradient(circle at 86% -12%, rgba(122, 92, 255, .20), transparent 32rem),
    linear-gradient(180deg, #050a18 0%, #030713 72%);
  color: var(--text);
  font: 15px/1.68 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
}

.skip:focus {
  left: 10px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 10px;
  border-radius: 6px;
}

.hidden {
  display: none !important;
}

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

.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  padding: 0 clamp(16px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(5, 8, 20, .91);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 950;
  letter-spacing: .08em;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 12px 36px rgba(47, 124, 255, .3);
}

.docs-header nav,
.docs-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.docs-header nav {
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}

.docs-header nav::-webkit-scrollbar {
  display: none;
}

.docs-header nav a {
  color: #bac8e3;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: color .16s var(--ease);
}

.docs-header nav a:hover,
.docs-header nav a.active {
  color: white;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 14px;
  background: rgba(255, 255, 255, .045);
  color: white;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 214, 255, .58);
  background: rgba(49, 214, 255, .085);
}

.button.primary {
  border-color: rgba(80, 140, 255, .72);
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 570px);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding: 66px 0;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .95;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #91edff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.docs-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 64px);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 84px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 5px;
  align-self: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 15, 34, .72);
}

.docs-nav strong {
  display: block;
  margin: 6px 0 8px;
  color: #e2ebff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.docs-nav a {
  display: block;
  padding: 8px 8px;
  border-radius: 6px;
  color: #aebddb;
  font-size: 12px;
  font-weight: 850;
  transition: color .16s var(--ease), background .16s var(--ease);
}

.docs-nav a:hover,
.docs-nav a.active {
  color: white;
  background: rgba(49, 214, 255, .075);
}

.search {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.search span {
  color: #8fa0c0;
  font-size: 12px;
  font-weight: 850;
}

.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #071022;
  color: white;
  padding: 0 10px;
  outline: none;
}

.search input:focus {
  border-color: rgba(49, 214, 255, .58);
  box-shadow: 0 0 0 3px rgba(49, 214, 255, .08);
}

.doc-main {
  min-width: 0;
  max-width: var(--reader);
}

.doc-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.doc-section:first-child {
  padding-top: 0;
}

.doc-section h1,
.doc-section h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.doc-section h3 {
  margin: 28px 0 9px;
  color: #f8fbff;
  font-size: 20px;
  line-height: 1.22;
}

.doc-section h4 {
  margin: 20px 0 8px;
  color: #e6efff;
  font-size: 14px;
}

.doc-section p {
  max-width: 780px;
  margin: 0 0 15px;
  color: var(--muted);
}

.doc-section ul,
.doc-section ol:not(.steps) {
  margin: 14px 0 0;
  padding-left: 22px;
}

.doc-section li {
  margin: 6px 0;
  color: #b8c8e2;
}

.doc-section code {
  color: #a2edff;
  overflow-wrap: anywhere;
}

.doc-section pre {
  position: relative;
  max-width: 100%;
  margin: 18px 0;
  padding: 48px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 32, 61, .9), rgba(5, 11, 24, .98));
  color: #ddecff;
  font-size: 12.5px;
  line-height: 1.65;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.copy-code {
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 30px;
  border: 1px solid rgba(49, 214, 255, .38);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(47, 124, 255, .22), rgba(122, 92, 255, .16));
  color: #e9f7ff;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
  transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}

.copy-code:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 214, 255, .7);
  background: linear-gradient(135deg, rgba(47, 124, 255, .34), rgba(122, 92, 255, .25));
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.doc-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(122, 92, 255, .1), transparent 14rem),
    linear-gradient(180deg, rgba(15, 29, 58, .92), rgba(8, 15, 34, .96));
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}

a.doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 214, 255, .45);
  background:
    radial-gradient(circle at 100% 0, rgba(49, 214, 255, .11), transparent 14rem),
    linear-gradient(180deg, rgba(17, 34, 67, .95), rgba(8, 15, 34, .98));
}

.doc-card h3 {
  margin-top: 12px;
}

.doc-card p {
  margin-bottom: 0;
  font-size: 13px;
}

.callout {
  margin: 18px 0;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(248, 196, 93, .08);
  color: #f8d999;
  padding: 14px 16px;
}

.callout.good {
  border-color: var(--green);
  background: rgba(64, 217, 155, .08);
  color: #c7f9df;
}

.callout.danger {
  border-color: var(--red);
  background: rgba(255, 111, 145, .08);
  color: #ffd0dc;
}

.steps {
  counter-reset: item;
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .026);
}

.steps li:before {
  counter-increment: item;
  content: counter(item);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.steps b {
  display: block;
  color: var(--text);
}

.steps span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.table {
  display: grid;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(8, 15, 34, .54);
}

.table-row {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) minmax(150px, .72fr);
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}

.table-row:nth-child(even) {
  background: rgba(255, 255, 255, .032);
}

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

.table-row b {
  color: #eef5ff;
  font-size: 13px;
}

.table-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.system-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 20%, rgba(49, 214, 255, .20), transparent 48%),
    linear-gradient(135deg, rgba(47, 124, 255, .18), rgba(122, 92, 255, .16));
  position: relative;
  display: inline-block;
  flex: none;
  color: #8ceaff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 28px rgba(0, 0, 0, .18);
}

.system-icon:before,
.system-icon:after {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
  border-radius: 2px;
}

/* Default document glyph so icons never render empty. */
.system-icon:before {
  width: 15px;
  height: 19px;
  left: 10px;
  top: 8px;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.system-icon:after {
  width: 9px;
  height: 2px;
  left: 14px;
  top: 14px;
  box-shadow: 0 5px currentColor, 0 10px currentColor;
}

.system-icon.setup:before {
  width: 4px;
  height: 22px;
  left: 16px;
  top: 7px;
  border: 0;
  background: currentColor;
  transform: rotate(42deg);
}

.system-icon.setup:after {
  width: 22px;
  height: 4px;
  left: 7px;
  top: 16px;
  box-shadow: none;
  transform: rotate(42deg);
}

.system-icon.api:before {
  width: 18px;
  height: 2px;
  left: 8px;
  top: 10px;
  border: 0;
  background: currentColor;
  box-shadow: 0 7px currentColor, 0 14px currentColor;
}

.system-icon.api:after {
  width: 4px;
  height: 4px;
  left: 24px;
  top: 9px;
  box-shadow: 0 7px currentColor, 0 14px currentColor;
}

.system-icon.voice:before {
  width: 17px;
  height: 17px;
  left: 8px;
  top: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.system-icon.voice:after {
  width: 10px;
  height: 2px;
  left: 13px;
  top: 17px;
  box-shadow: 0 5px currentColor;
}

.system-icon.secure:before {
  width: 18px;
  height: 22px;
  left: 9px;
  top: 6px;
  border: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 20%, 85% 82%, 50% 100%, 15% 82%, 0 20%);
}

.system-icon.secure:after {
  width: 8px;
  height: 4px;
  left: 14px;
  top: 15px;
  background: transparent;
  border-left: 2px solid #061024;
  border-bottom: 2px solid #061024;
  box-shadow: none;
  transform: rotate(-45deg);
}

.system-icon.docs:before {
  width: 15px;
  height: 19px;
  left: 10px;
  top: 8px;
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.system-icon.docs:after {
  width: 9px;
  height: 2px;
  left: 14px;
  top: 14px;
  box-shadow: 0 5px currentColor, 0 10px currentColor;
}

/* Fallback for any future icon tag so no empty squares appear. */
i[data-lucide] {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: none;
  color: currentColor;
  border: 1.6px solid currentColor;
  border-radius: 4px;
  opacity: .95;
}

i[data-lucide]:before,
i[data-lucide]:after {
  content: "";
  position: absolute;
  display: block;
  background: currentColor;
  border-radius: 2px;
}

i[data-lucide]:before {
  width: 7px;
  height: 2px;
  left: 4px;
  top: 5px;
  box-shadow: 0 4px currentColor;
}

i[data-lucide]:after {
  width: 3px;
  height: 3px;
  right: 2px;
  bottom: 2px;
}

.screen {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #081123;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-top {
  height: 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #0d1730;
}

.screen-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #425575;
}

.screen-top b {
  margin-left: 8px;
  color: #b8c6df;
  font-size: 12px;
}

.screen-body {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 360px;
}

.screen-body aside {
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.screen-body aside span {
  height: 18px;
  border-radius: 5px;
  background: #162646;
}

.screen-body section {
  padding: 18px;
}

.screen-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.screen-title b {
  width: 45%;
  height: 24px;
  border-radius: 7px;
  background: #213860;
}

.screen-title button {
  width: 120px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.metrics i {
  height: 70px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #142446, #0d1730);
}

.chart {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.chart b {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
}

.rows {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.rows p {
  height: 16px;
  margin: 0;
  border-radius: 5px;
  background: #142442;
}

.fake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.shot {
  min-height: 230px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #081123;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.shot:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #101c35 0 18%, transparent 18%),
    linear-gradient(90deg, #101c35 0 22%, transparent 22%),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(255, 255, 255, .055) 28px 29px);
}

.shot:after {
  content: "";
  position: absolute;
  left: 28%;
  right: 8%;
  bottom: 18%;
  height: 32%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  box-shadow:
    -90px -40px 0 -12px rgba(49, 214, 255, .3),
    -30px -80px 0 -18px rgba(122, 92, 255, .34),
    40px -58px 0 -16px rgba(64, 217, 155, .26);
}

.shot.setup:after {
  height: 8px;
  bottom: 62%;
  box-shadow:
    0 34px 0 rgba(49, 214, 255, .65),
    0 68px 0 rgba(122, 92, 255, .65),
    0 102px 0 rgba(64, 217, 155, .48);
}

.shot.api:after {
  height: 54%;
  bottom: 12%;
  clip-path: polygon(0 80%, 13% 63%, 28% 70%, 44% 38%, 62% 50%, 78% 22%, 100% 11%, 100% 100%, 0 100%);
}

.shot.voice:after {
  height: 48%;
  bottom: 14%;
  border-radius: 50%;
  box-shadow:
    -86px -28px 0 -18px rgba(49, 214, 255, .4),
    80px -70px 0 -22px rgba(122, 92, 255, .42);
}

.atlas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.mini-shot {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #111e39 0 18%, #071022 18%);
  position: relative;
  overflow: hidden;
}

.mini-shot:before {
  content: "";
  position: absolute;
  left: 8%;
  top: 28%;
  width: 18%;
  height: 58%;
  background: #16284b;
  border-radius: 6px;
}

.mini-shot:after {
  content: "";
  position: absolute;
  left: 32%;
  right: 8%;
  top: 30%;
  bottom: 14%;
  border-radius: 7px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .11) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, rgba(47, 124, 255, .45), rgba(122, 92, 255, .35));
}

.mini-shot:nth-child(3n):after {
  clip-path: polygon(0 80%, 20% 60%, 40% 68%, 65% 24%, 100% 35%, 100% 100%, 0 100%);
}

.mini-shot:nth-child(4n):after {
  height: 8px;
  bottom: auto;
  box-shadow: 0 22px 0 rgba(49, 214, 255, .6), 0 44px 0 rgba(122, 92, 255, .6);
}

.docs-footer {
  border-top: 1px solid var(--line);
  padding: 30px clamp(16px, 4vw, 36px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #030713;
}

.docs-footer div {
  display: grid;
  gap: 3px;
}

.docs-footer span {
  color: var(--muted);
  font-size: 12px;
}

.docs-footer a {
  color: #b8c7df;
  font-size: 12px;
  font-weight: 850;
}

.docs-footer a:hover {
  color: white;
}

@media (max-width: 1080px) {
  .hero,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 54px 0;
  }

  .doc-main {
    max-width: none;
  }

  .docs-nav {
    position: static;
  }
}

@media (max-width: 820px) {
  .docs-header nav a:not(.button) {
    display: none;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .fake-grid {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

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

  .docs-header {
    height: 64px;
    padding: 0 14px;
  }

  .brand span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .doc-section {
    padding: 42px 0;
  }

  .doc-section h1,
  .doc-section h2 {
    font-size: 32px;
  }

  .screen-body {
    grid-template-columns: 66px 1fr;
  }

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

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

  .docs-footer {
    display: grid;
  }
}
