:root {
  --background: #080b16;
  --background-soft: #101526;
  --panel: rgba(18, 24, 43, 0.82);
  --panel-solid: #141b30;
  --text: #f6f7fb;
  --muted: #a9b1c8;
  --subtle: #737d99;
  --purple: #a46cff;
  --blue: #5ac8ff;
  --orange: #ff9a55;
  --line: rgba(187, 203, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
}

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

.site-background {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 3%, rgba(118, 75, 202, 0.2), transparent 28rem),
    radial-gradient(circle at 10% 42%, rgba(25, 145, 199, 0.1), transparent 30rem),
    linear-gradient(135deg, #080b16 0%, #0c1020 52%, #0b0d18 100%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #9c55ff, #4a9aff);
  box-shadow: 0 9px 24px rgba(117, 74, 255, 0.35);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: -3px;
  color: var(--subtle);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-nav .nav-action {
  padding: 9px 16px;
  border: 1px solid rgba(164, 108, 255, 0.55);
  border-radius: 99px;
  color: #e8dcff;
  background: rgba(164, 108, 255, 0.1);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
}

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 74px;
  min-height: 640px;
  padding: 86px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ceb8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot,
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 16px var(--purple);
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-lede,
.page-hero > p {
  max-width: 625px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 21px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(110deg, #9d5fff, #647aff);
  box-shadow: 0 12px 25px rgba(126, 91, 255, 0.26);
}

.button-primary span {
  font-size: 1.1rem;
}

.button-quiet {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 0.76rem;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid rgba(164, 108, 255, 0.28);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(41, 37, 78, 0.78), rgba(13, 20, 39, 0.95));
  box-shadow: var(--shadow), 0 0 70px rgba(123, 76, 255, 0.12);
  transform: rotate(1.5deg);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: #e3d8ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
}

.panel-status {
  color: #73edc0;
}

.code-window {
  display: grid;
  gap: 12px;
  min-height: 270px;
  padding: 30px 27px;
  color: #e4e8f3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.4;
}

.code-comment {
  color: #7681a0;
}

.code-keyword {
  color: #ba8eff;
}

.code-window i {
  color: #72dbd5;
  font-style: normal;
}

.code-indent {
  padding-left: 28px;
}

.panel-output {
  padding: 16px 27px 20px;
  border-top: 1px solid var(--line);
  color: #a7f5d8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.84rem;
}

.panel-output span {
  margin-right: 7px;
  color: var(--orange);
}

.section-block {
  padding: 46px 0 108px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--muted);
}

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

.feature-card,
.doc-card,
.prose-card,
.quote-card,
.install-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.feature-card {
  min-height: 280px;
  padding: 26px;
}

.feature-card-purple {
  background: linear-gradient(145deg, rgba(76, 44, 130, 0.6), var(--panel));
}

.feature-card-blue {
  background: linear-gradient(145deg, rgba(32, 88, 133, 0.54), var(--panel));
}

.feature-card-orange {
  background: linear-gradient(145deg, rgba(130, 67, 34, 0.54), var(--panel));
}

.feature-number {
  display: block;
  margin-bottom: 37px;
  color: rgba(255, 255, 255, 0.45);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.feature-card p,
.doc-card p,
.prose-card p,
.quote-card p,
.install-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-card a,
.doc-link,
.text-link {
  display: inline-block;
  margin-top: 19px;
  color: #dfd1ff;
  font-size: 0.78rem;
  font-weight: 750;
}

.feature-card a span {
  margin-left: 8px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 25px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proof-strip strong {
  font-size: 0.92rem;
}

.proof-strip span {
  color: var(--subtle);
  font-size: 0.77rem;
}

.page-hero {
  padding: 95px 0 68px;
}

.page-hero h1 {
  max-width: 830px;
  margin-top: 20px;
  font-size: clamp(3rem, 7vw, 5.6rem);
}

.content-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding-bottom: 120px;
}

.prose-card,
.quote-card {
  padding: 32px;
}

.prose-card h2 {
  font-size: 2rem;
}

.quote-card {
  background: linear-gradient(145deg, rgba(94, 57, 161, 0.65), rgba(18, 24, 43, 0.88));
}

.quote-mark {
  color: var(--purple);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.7;
}

.quote-card p {
  margin: 24px 0 18px;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1.35;
}

.quote-card span {
  color: var(--subtle);
  font-size: 0.78rem;
}

.docs-grid {
  padding-bottom: 120px;
}

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

.example-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.example-card > p,
.example-card-heading {
  margin-right: 28px;
  margin-left: 28px;
}

.example-card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}

.example-card-heading .doc-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.example-card-heading h2 {
  margin: 7px 0 0;
  font-size: 1.55rem;
}

.example-card > p {
  min-height: 48px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.example-code {
  overflow-x: auto;
  margin: 25px 0 0;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #e4e8f3;
  background: rgba(5, 9, 20, 0.58);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre;
}

.example-output {
  padding: 13px 28px 16px;
  color: #a7f5d8;
  background: rgba(113, 237, 191, 0.035);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.example-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 120px;
  padding: 34px;
  border: 1px solid rgba(164, 108, 255, 0.3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(76, 44, 130, 0.48), rgba(18, 24, 43, 0.88));
}

.example-callout h2 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: 2rem;
}

.example-callout p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.doc-card {
  display: block;
  padding: 28px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.documentation-body {
  padding-bottom: 120px;
}

.documentation-index-grid {
  padding-bottom: 48px;
}

.documentation-intro {
  padding-bottom: 120px;
}

.reference-detail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.reference-detail h2 {
  margin-top: 34px;
  font-size: 1.75rem;
}

.reference-detail h2:first-child {
  margin-top: 0;
}

.reference-detail p,
.reference-detail li {
  color: var(--muted);
}

.reference-meta {
  margin-bottom: 22px;
  color: #ceb8ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reference-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-list li {
  padding: 12px 15px;
  border: 1px solid rgba(187, 203, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.reference-list li a {
  color: #e4d8ff;
}

.reference-list li a:hover,
.reference-list li a:focus-visible {
  color: #fff;
}

.reference-list li p {
  margin: 9px 0 0;
  font-size: 0.87rem;
}

.reference-list code,
.reference-detail code {
  color: #a9f2d5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.reference-version {
  color: var(--subtle);
  font-size: 0.76rem;
}

.signature {
  margin: 18px 0;
  padding: 15px 17px;
  overflow-x: auto;
  border-left: 3px solid var(--purple);
  color: #e4e8f3;
  background: rgba(5, 9, 20, 0.58);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.reference-detail .code {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 9, 20, 0.58);
}

.reference-detail .code .title {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.reference-detail .code pre {
  margin: 0;
  padding: 20px;
  color: #e4e8f3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.65;
}

.available {
  color: #a9f2d5 !important;
}

.doc-card:hover,
.doc-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(164, 108, 255, 0.55);
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 35px;
  border-radius: 14px;
  color: #cdb5ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  background: rgba(164, 108, 255, 0.15);
}

.install-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding-bottom: 120px;
}

.install-card {
  padding: 30px;
}

.install-card-muted {
  background: rgba(255, 255, 255, 0.035);
}

.install-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 35px;
  color: var(--subtle);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71edbf;
  box-shadow: 0 0 15px #71edbf;
}

.install-card code {
  display: block;
  margin-bottom: 25px;
  color: #a9f2d5;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 1.4rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 35px;
  align-items: end;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 55px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--text);
}

.site-footer p {
  max-width: 360px;
  margin: 17px 0 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-meta {
  white-space: nowrap;
}

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

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 32px, 1180px);
  }

  .menu-toggle {
    display: grid;
    gap: 4px;
    padding: 8px;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #11172a;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .site-nav .nav-action {
    text-align: center;
  }

  .hero,
  .section-heading,
  .content-layout,
  .install-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 45px;
    padding-top: 68px;
  }

  .hero-panel {
    max-width: 600px;
    transform: none;
  }

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

  .feature-card {
    min-height: auto;
  }

  .section-heading {
    gap: 12px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .example-callout {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 80px;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.6rem);
  }

  .hero {
    min-height: 0;
    padding: 58px 0 80px;
  }

  .code-window {
    padding: 25px 18px;
    font-size: 0.75rem;
  }

  .code-indent {
    padding-left: 14px;
  }

  .panel-output {
    padding-right: 18px;
    padding-left: 18px;
  }
}
