:root {
  color-scheme: dark;
  --bg: #121416;
  --panel: #191d20;
  --panel-2: #20262a;
  --text: #f0f3ee;
  --muted: #aab1a8;
  --line: #343b3f;
  --accent: #77ff9d;
  --accent-2: #43d77f;
  --accent-3: #5eb3c6;
  --accent-soft: rgba(119, 255, 157, .12);
  --danger: #df7b62;
  --code: #0a0f0d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 33, 19, .72), #121416 34rem),
    repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 104px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 104px);
  color: var(--text);
}

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

code,
pre {
  font-family: "IosevkaTerm NF", "Cascadia Mono", Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .72rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(119, 255, 157, .22);
  background: rgba(10, 17, 13, .92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 14rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  aspect-ratio: 1;
  border: 1px solid var(--accent);
  color: #07110a;
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--accent);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy span {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .76rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
}

.nav a {
  padding: .45rem .65rem;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: .9rem;
}

.nav a:hover,
.nav a.active {
  border-color: rgba(119, 255, 157, .35);
  color: var(--text);
  background: rgba(119, 255, 157, .08);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(28rem, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(3.25rem, 7vw, 5.75rem) clamp(1rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 15% 0%, rgba(119, 255, 157, .18), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}

.hero-copy {
  max-width: 45rem;
  padding-top: .4rem;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.1rem, 7vw, 6.5rem);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: .5rem;
  font-size: 1.05rem;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #07110a;
}

.hero-syntax {
  align-self: start;
  display: grid;
  align-content: start;
  min-height: 0;
  border: 1px solid rgba(119, 255, 157, .25);
  background: rgba(14, 16, 17, .9);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .26);
  padding: clamp(.9rem, 2vw, 1.15rem);
}

.hero-syntax h2 {
  margin-bottom: .8rem;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
}

.hero-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: .25rem;
  padding-top: clamp(1rem, 3vw, 1.6rem);
  border-top: 1px solid rgba(119, 255, 157, .2);
}

.hero-points article {
  padding-top: .9rem;
  border-top: 3px solid rgba(119, 255, 157, .75);
}

.hero-points h2 {
  margin-bottom: .5rem;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.hero-points p {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.55;
}

.band,
.split {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.band {
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, .7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid rgba(255,255,255,.07);
}

.split.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, .75fr);
}

.split.reverse .section-head {
  order: 2;
}

.section-head {
  max-width: 45rem;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.sticky-head {
  align-self: start;
  position: sticky;
  top: 6rem;
}

.command-grid,
.feature-list,
.interop-grid {
  display: grid;
  gap: 1rem;
}

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

.command,
.feature-list article,
.interop-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
}

.command {
  display: grid;
  align-content: space-between;
  min-height: 13rem;
}

.command p,
.feature-list p,
.interop-grid p {
  color: var(--muted);
  line-height: 1.55;
}

pre {
  margin: 0;
  overflow: auto;
  background: var(--code);
  border: 1px solid rgba(255,255,255,.08);
  padding: 1rem 1.1rem;
  color: #dfe8da;
  line-height: 1.62;
  font-size: .94rem;
  tab-size: 4;
  border-radius: 6px;
  scrollbar-color: rgba(119, 255, 157, .35) transparent;
}

.command pre {
  white-space: pre-wrap;
}

code {
  color: #e8f0df;
}

p code,
li code {
  padding: .08rem .25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

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

.feature-list article {
  min-height: 10.5rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.5rem 0 1rem;
}

.hero-syntax .tabs {
  margin-top: 0;
}

.tab,
#copyCode {
  min-height: 2.35rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  padding: 0 .85rem;
  font: inherit;
  cursor: pointer;
}

.tab.active,
.tab:hover,
#copyCode:hover {
  color: var(--text);
  border-color: var(--accent);
}

.tab.active {
  background: var(--accent-soft);
}

.code-panel {
  border: 1px solid rgba(119, 255, 157, .22);
  background: rgba(11, 15, 14, .96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: .45rem .65rem .45rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

#exampleTitle {
  font-weight: 800;
}

.code-panel pre {
  border: 0;
  max-height: 31rem;
  border-radius: 0;
}

.hero-syntax .code-panel pre {
  max-height: none;
  overflow: visible;
}

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

.flow {
  counter-reset: flow;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.flow li {
  min-height: 13rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.flow span {
  display: grid;
  place-items: center;
  width: 2rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  background: var(--accent-2);
  color: #07110a;
  font-weight: 900;
}

.flow p {
  color: var(--muted);
  line-height: 1.55;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(119, 255, 157, .18);
  background:
    radial-gradient(circle at 14% 0%, rgba(119, 255, 157, .16), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.docs-hero h1 {
  margin-bottom: 0;
}

.docs-hero .lede {
  margin: 0;
  max-width: 46rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 5vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.docs-nav {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  display: grid;
  gap: .35rem;
  padding: .75rem;
  border: 1px solid var(--line);
  background: rgba(15, 19, 18, .86);
}

.docs-nav a {
  padding: .48rem .6rem;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: .9rem;
}

.docs-nav a:hover,
.docs-nav a.active {
  color: var(--text);
  border-color: rgba(119, 255, 157, .3);
  background: var(--accent-soft);
}

.docs-content {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  min-width: 0;
}

.docs-section {
  scroll-margin-top: 5.5rem;
}

.docs-section-head {
  max-width: 48rem;
  margin-bottom: 1rem;
}

.docs-section-head h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-card {
  display: grid;
  gap: .7rem;
  align-content: start;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(25, 29, 32, .92);
  padding: .95rem;
}

.doc-card.wide {
  grid-column: span 1;
}

.doc-card h3 {
  margin: 0;
  color: var(--text);
}

.doc-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.doc-card pre {
  min-height: 0;
  max-height: 18rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0f1112;
}

.tok-keyword,
.tok-conditional,
.tok-repeat {
  color: #b69cff;
  font-weight: 700;
}

.tok-structure,
.tok-interop {
  color: #74b8ff;
}

.tok-type {
  color: #5ed7c6;
}

.tok-storage {
  color: #c49be8;
}

.tok-function,
.tok-builtin {
  color: var(--accent);
}

.tok-string,
.tok-char {
  color: #e5c07b;
}

.tok-comment {
  color: #77807a;
  font-style: italic;
}

.tok-number,
.tok-boolean {
  color: var(--danger);
}

.tok-preproc {
  color: #7bd88f;
}

.tok-operator,
.tok-delimiter {
  color: #cfd6cc;
}

.tok-ident {
  color: #e8f0df;
}

@media (max-width: 1050px) {
  .hero,
  .split,
  .split.reverse,
  .docs-hero,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .split.reverse .section-head {
    order: 0;
  }

  .sticky-head {
    position: static;
  }

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

  .docs-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-syntax {
    min-height: 0;
  }

  .command-grid,
  .feature-list,
  .hero-points,
  .flow,
  .docs-grid,
  .docs-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.75rem, 18vw, 4.25rem);
  }

  .footer {
    flex-direction: column;
  }
}
