:root {
  color-scheme: dark;
  --bg: #0b0714;
  --bg-soft: #120b22;
  --panel: #171026;
  --text: #f7f2ff;
  --muted: #c8bdd8;
  --subtle: #9587aa;
  --line: #33264c;
  --accent: #8b5cf6;
  --accent-strong: #d8b4fe;
  --blue: #8ab4ff;
  --shadow: 0 28px 80px rgba(31, 8, 61, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18), transparent 31%),
    radial-gradient(circle at 78% 4%, rgba(138, 180, 255, 0.13), transparent 28%),
    var(--bg);
  line-height: 1.5;
}

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

.site-header,
.hero,
.section,
.site-footer {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 7px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.site-nav .nav-action {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero {
  display: grid;
  justify-items: center;
  min-height: calc(100vh - 96px);
  padding: 72px 0 96px;
  text-align: center;
}

.hero-logo {
  width: 136px;
  height: 136px;
  margin-bottom: 30px;
  filter: drop-shadow(0 24px 44px rgba(76, 29, 149, 0.42));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 670px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  line-height: 38px;
}

.button-primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #12071f;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-button {
  height: 40px;
  padding-inline: 15px;
  line-height: 40px;
}

.section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 180px;
  padding: 26px;
  background: rgba(18, 11, 34, 0.94);
}

.feature-grid article:nth-child(2n) {
  background: rgba(23, 16, 38, 0.96);
}

.feature-grid p,
.section-text {
  margin-bottom: 0;
  color: var(--muted);
}

.section-compact {
  display: grid;
  justify-items: start;
  max-width: 760px;
  padding-top: 42px;
  padding-bottom: 96px;
}

.section-compact h2 {
  margin-bottom: 18px;
}

.section-text {
  margin-bottom: 28px;
  font-size: 18px;
}

.docs-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 104px;
}

.docs-button {
  white-space: nowrap;
}

.page {
  width: min(1040px, calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: 96px;
}

.page-hero {
  max-width: 760px;
  padding: 72px 0 52px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(46px, 7vw, 76px);
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.content-section {
  margin-top: 28px;
}

.content-section h2,
.content-grid h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.content-section p,
.content-grid p,
.content-grid li,
.details-list {
  color: var(--muted);
}

.content-section a,
.content-grid a,
.table-wrap a {
  color: var(--accent-strong);
}

.content-section a:hover,
.content-grid a:hover,
.table-wrap a:hover {
  color: var(--text);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.content-grid article {
  min-width: 0;
  padding: 26px;
  background: rgba(18, 11, 34, 0.94);
}

.content-grid article:nth-child(2n) {
  background: rgba(23, 16, 38, 0.96);
}

.content-grid ul {
  padding-left: 20px;
}

.patron-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.patron-list article {
  padding: 28px;
  background: rgba(18, 11, 34, 0.94);
}

.patron-list article:nth-child(2n) {
  background: rgba(23, 16, 38, 0.96);
}

.patron-list h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.patron-list p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.patron-list a {
  color: var(--accent-strong);
}

.patron-list a:hover {
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 11, 34, 0.94);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-strong);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

code {
  color: var(--accent-strong);
  font: 0.92em/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.details-list dt {
  color: var(--text);
  font-weight: 700;
}

.details-list dd {
  overflow-wrap: anywhere;
  margin: 0 0 8px;
}

.small-note {
  color: var(--subtle);
  font-size: 14px;
}

.license-text {
  overflow-x: auto;
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 11, 34, 0.94);
  color: var(--muted);
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.team-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.team-member {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: rgba(18, 11, 34, 0.94);
}

.team-member:nth-child(2n) {
  background: rgba(23, 16, 38, 0.96);
}

.member-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(216, 180, 254, 0.24);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--accent-strong);
  font-weight: 800;
}

.member-body h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.member-body p {
  margin-bottom: 12px;
  color: var(--muted);
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-links a {
  color: var(--accent-strong);
  font-weight: 700;
}

.member-links a:hover {
  color: var(--text);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 32px;
  align-items: start;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.site-footer p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .docs-section {
    grid-template-columns: 1fr;
  }

  .docs-button {
    justify-self: start;
  }

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

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

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .page,
  .site-footer {
    width: min(100% - 28px, 1040px);
  }

  .site-nav a {
    padding-inline: 10px;
  }

  .hero {
    padding-bottom: 70px;
  }

  .hero-logo {
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-text {
    font-size: 18px;
  }

  .button {
    width: auto;
  }

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

  .feature-grid article {
    min-height: auto;
  }

  .page-hero {
    padding-top: 52px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .team-member {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
