@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --background: #000;
  --surface: #080808;
  --surface-2: #111;
  --line: #1f1f1f;
  --line-bright: #2f2f2f;
  --text: #f3f3f3;
  --muted: #8d8d8d;
  --accent: #a89eff;
  --accent-2: #3a94ff;
  --accent-3: #38f5c7;
  --accent-4: #ff7ab6;
  --accent-5: #f5c542;
  --danger: #ff5f78;
  --sidebar-width: 292px;
  --page-glow:
    radial-gradient(circle at 16% -12%, rgba(168, 158, 255, 0.24), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(58, 148, 255, 0.16), transparent 36%),
    radial-gradient(circle at 92% 52%, rgba(56, 245, 199, 0.08), transparent 32%),
    radial-gradient(circle at 28% 78%, rgba(255, 122, 182, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.25), rgba(0, 0, 0, 0.88)),
    #000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-glow);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

body::selection {
  background: rgba(168, 158, 255, 0.4);
  color: var(--text);
}

a {
  color: inherit;
}

code,
pre,
table {
  font-family: "IBM Plex Mono", monospace;
}

.page-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.docs-sidebar {
  position: sticky;
  top: 0;
  isolation: isolate;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(145deg, rgba(168, 158, 255, 0.08), rgba(4, 4, 4, 0.4) 38%, rgba(0, 0, 0, 0.62)),
    rgba(4, 4, 4, 0.48);
  padding: 28px 22px;
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    18px 0 54px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(24px) saturate(1.45) contrast(1.08);
  backdrop-filter: blur(24px) saturate(1.45) contrast(1.08);
}

.docs-sidebar::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--page-glow);
  background-attachment: fixed;
  content: "";
  filter: blur(18px) saturate(1.35);
  transform: scale(1.04);
  opacity: 0.72;
}

.docs-sidebar::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 34%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.022) 0,
      rgba(255, 255, 255, 0.022) 1px,
      transparent 1px,
      transparent 9px
    );
  content: "";
  opacity: 0.58;
  mix-blend-mode: screen;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(168, 158, 255, 0.55);
  border-radius: 12px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(168, 158, 255, 0.28), rgba(58, 148, 255, 0.16), rgba(56, 245, 199, 0.08));
  overflow: hidden;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.docs-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.docs-nav a,
.ghost-link {
  border: 1px solid transparent;
  border-radius: 10px;
  color: #cfcfcf;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease;
}

.docs-nav a {
  padding: 9px 11px;
}

.docs-nav a:hover,
.ghost-link:hover {
  transform: translateY(-1px);
  border-color: rgba(168, 158, 255, 0.55);
  background:
    linear-gradient(120deg, rgba(168, 158, 255, 0.14), rgba(58, 148, 255, 0.07)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.sidebar-footer {
  display: grid;
  gap: 8px;
}

.ghost-link {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.02);
}

.docs-main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 62px clamp(22px, 5vw, 72px) 92px;
}

.hero {
  min-height: min(760px, calc(100vh - 62px));
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-heading span {
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-4));
  background-clip: text;
  color: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 18px 0 0;
  background: linear-gradient(104deg, #fff 0%, #efeaff 42%, #b6dcff 70%, #ffe2ef 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.93;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: #c7c7c7;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b0b;
  padding: 0 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.button.primary {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(168, 158, 255, 0.24), rgba(58, 148, 255, 0.12), rgba(56, 245, 199, 0.08));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.25fr);
  gap: 14px;
  max-width: 840px;
  margin-top: 52px;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 4, 4, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.album-card {
  overflow: hidden;
}

.cover-art {
  display: grid;
  min-height: 210px;
  place-items: end start;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 20%, rgba(168, 158, 255, 0.36), transparent 40%),
    radial-gradient(circle at 80% 15%, rgba(58, 148, 255, 0.28), transparent 42%),
    radial-gradient(circle at 68% 78%, rgba(255, 122, 182, 0.22), transparent 34%),
    radial-gradient(circle at 20% 88%, rgba(56, 245, 199, 0.16), transparent 28%),
    linear-gradient(150deg, #101010, #020202);
  padding: 16px;
}

.cover-art span {
  border: 1px solid rgba(168, 158, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  padding: 6px 10px;
}

.album-card > div:last-child {
  padding: 14px;
}

.album-card h2 {
  margin: 0;
  font-size: 20px;
}

.album-card p,
.player-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a89eff, #3a94ff, #38f5c7);
}

.track-list {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 16px;
}

.track-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0 12px;
}

.track-row span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.track-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row em {
  border: 1px solid rgba(168, 158, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(168, 158, 255, 0.1), rgba(255, 122, 182, 0.08));
  color: #d8d2ff;
  font-size: 12px;
  font-style: normal;
  padding: 4px 8px;
}

.player-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 16px;
}

.pulse {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(168, 158, 255, 0.55);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 20%, rgba(168, 158, 255, 0.45) 20% 26%, transparent 26% 34%, rgba(56, 245, 199, 0.48) 34% 42%, transparent 42% 50%, rgba(255, 122, 182, 0.4) 50% 56%, transparent 56%),
    #0b0b0b;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.doc-section > p {
  max-width: 760px;
  color: #c7c7c7;
  font-size: 17px;
  line-height: 1.65;
}

pre {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 4, 4, 0.92);
  padding: 18px;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.65;
}

code {
  color: #dedaff;
  font-size: 0.92em;
}

.callout {
  max-width: 820px;
  border: 1px solid rgba(168, 158, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(168, 158, 255, 0.1), rgba(58, 148, 255, 0.06), rgba(56, 245, 199, 0.045)),
    rgba(8, 8, 8, 0.72);
  color: #d7d3ff;
  line-height: 1.55;
  padding: 16px;
}

.feature-grid,
.qa-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.feature-grid article,
.qa-list article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 8, 8, 0.88);
  padding: 18px;
}

.feature-grid article:nth-child(1) {
  border-color: rgba(168, 158, 255, 0.28);
}

.feature-grid article:nth-child(2) {
  border-color: rgba(58, 148, 255, 0.26);
}

.feature-grid article:nth-child(3) {
  border-color: rgba(56, 245, 199, 0.22);
}

.feature-grid article:nth-child(4) {
  border-color: rgba(255, 122, 182, 0.24);
}

.feature-grid h3,
.qa-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-grid p,
.qa-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  display: grid;
  max-width: 860px;
  gap: 10px;
  margin: 22px 0;
  padding-left: 22px;
  color: #c7c7c7;
  line-height: 1.65;
}

table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(168, 158, 255, 0.04), rgba(58, 148, 255, 0.025), transparent 45%),
    rgba(4, 4, 4, 0.9);
  font-size: 13px;
}

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

th {
  color: var(--text);
  font-weight: 500;
}

td {
  color: #c7c7c7;
}

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

@media (max-width: 920px) {
  .page-shell {
    display: block;
  }

  .docs-sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

  .docs-main {
    padding-top: 42px;
  }

  .hero {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .docs-sidebar {
    padding: 22px 16px;
  }

  .docs-nav,
  .sidebar-footer,
  .hero-grid,
  .feature-grid,
  .qa-list {
    grid-template-columns: 1fr;
  }

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

  .track-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .track-row em {
    grid-column: 2;
    width: fit-content;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
