:root {
  color-scheme: dark;
  --bg: #080d13;
  --panel: #101a26;
  --line: #253345;
  --muted: #92a5bb;
  --text: #e4edf6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.65 system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #b9d3ff;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #a9c8fa;
}
button,
select,
input {
  font: inherit;
  color: inherit;
  background: #172333;
  border: 1px solid #36475d;
  border-radius: 6px;
  padding: 9px 12px;
}
button {
  cursor: pointer;
}
button:hover {
  background: #25364c;
}
button[aria-pressed="true"] {
  background: #b7ccee;
  color: #101923;
}
button:disabled,
input:disabled {
  opacity: 0.4;
  cursor: default;
}
a[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}
nav a span {
  font-size: 10px;
  color: var(--muted);
}
.nav {
  padding: 25px 4vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand span {
  color: #b1c9f0;
  margin-left: 9px;
}
nav {
  display: flex;
  gap: 25px;
  font-size: 12px;
}
main {
  padding: 0 5vw;
  max-width: 1640px;
  margin: auto;
}
.intro {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 45px;
  align-items: end;
}
.eyebrow {
  font:
    10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #9bafca;
  margin: 0 0 20px;
}
h1 {
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 500;
  margin: 0 0 25px;
}
h1 em {
  font-style: normal;
  color: #91a7c6;
}
.lead {
  font-size: 17px;
  max-width: 490px;
  color: var(--muted);
}
.facts {
  display: grid;
  gap: 14px;
  color: #a4b7d1;
  font-size: 12px;
  padding-bottom: 12px;
}
.facts span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 28px;
}
.section-head p:last-child {
  color: var(--muted);
}
h2 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 0;
}
h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 30px;
}
.workspace {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.preview {
  min-width: 0;
}
.controls {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
label {
  font-size: 11px;
  color: var(--muted);
}
label select,
label input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: var(--text);
  min-width: 0;
}
.surface {
  position: relative;
  isolation: isolate;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 100%, #1e3048, transparent 70%);
}
.surface h2 {
  font:
    500 clamp(35px, 4vw, 64px)/1.1 Georgia,
    serif;
  text-align: center;
  overflow-wrap: anywhere;
}
.surface-hint {
  position: absolute;
  bottom: 15px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #7287a2;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px 0;
  align-items: center;
}
.actions button {
  font-size: 11px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}
.preview #status {
  font-size: 11px;
  color: #9eb4d1;
  padding: 0 24px 15px;
  min-height: 38px;
}
.code-panel {
  background: #0c141f;
  border-left: 1px solid var(--line);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.code-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.code-head small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.code-head button {
  font: 11px system-ui;
  white-space: nowrap;
}
pre {
  overflow: auto;
  padding: 24px;
  margin: 0;
  color: #c1d6f6;
  font:
    12px/1.85 ui-monospace,
    monospace;
  tab-size: 2;
}
.code-panel pre {
  flex: 1;
}
.code-note,
#copy-status {
  font-size: 11px;
  color: var(--muted);
  padding: 0 24px;
}
.code-note {
  margin-top: 0;
}
#copy-status {
  margin: 0 0 14px;
}
.getting-started {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  margin: 90px 0;
  padding: 65px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.getting-started p {
  color: var(--muted);
  max-width: 460px;
}
.notice {
  font-size: 12px;
}
.install {
  background: var(--panel);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.install pre {
  padding: 16px 0;
}
.install p {
  font-size: 12px;
  margin: 0;
}
.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.reference-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
dl {
  margin: 0;
}
dt {
  font:
    12px ui-monospace,
    monospace;
  color: #bfd3f0;
  margin: 24px 0 5px;
}
dd {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 30px 0 80px;
  color: var(--muted);
  font-size: 12px;
}
.notes strong {
  color: var(--text);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 5vw;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    padding: 65px 0;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .code-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .getting-started {
    gap: 30px;
  }
  .reference-grid {
    gap: 20px;
  }
  .section-head {
    display: block;
  }
}
@media (max-width: 560px) {
  nav {
    gap: 14px;
    font-size: 10px;
  }
  .nav {
    align-items: start;
  }
  .brand {
    font-size: 20px;
  }
  nav a:nth-child(2) {
    display: none;
  }
  .intro {
    padding: 55px 0 35px;
  }
  .lead {
    font-size: 15px;
  }
  .facts {
    font-size: 11px;
    gap: 12px;
  }
  .controls {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .surface {
    min-height: 240px;
    padding: 25px;
  }
  .surface h2 {
    font-size: 42px;
  }
  .getting-started,
  .reference-grid,
  .notes {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .getting-started {
    margin: 50px 0;
    padding: 40px 0;
  }
  .reference-grid article {
    padding: 24px;
  }
  .section-head p:last-child {
    font-size: 12px;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
  }
  footer span {
    width: 100%;
  }
  pre {
    font-size: 11px;
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media(max-width:700px){header{flex-wrap:wrap;gap:16px}header>nav{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}}
