:root {
  color-scheme: dark;
  --line: rgba(255, 255, 255, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #f8f8fa;
  font-family: Manrope, Arial, sans-serif;
}

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

.shell {
  display: grid;
  grid-template-columns: 270px 220px minmax(0, 1fr);
  height: 100vh;
}

.sidebar,
.project-sidebar {
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #0b0c0f;
}

.sidebar {
  padding: 22px 17px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 5px 9px 31px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  filter: grayscale(1);
  object-fit: cover;
}

.brand span {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.app-list {
  display: grid;
  gap: 9px;
}

.app,
.project-link {
  display: block;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
}

.app {
  min-height: 52px;
  padding: 15px;
  font-size: 0.9rem;
}

.app:hover,
.app.active,
.project-link:hover,
.project-link.active {
  border-color: var(--line);
  background: #191b20;
}

.app.active,
.project-link.active {
  box-shadow: inset 3px 0 0 #fff;
}

.app-divider {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

.project-sidebar {
  padding: 28px 18px;
}

.project-sidebar h1 {
  margin: 0 4px 22px;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.project-link {
  min-height: 42px;
  margin-bottom: 8px;
  padding: 11px 12px;
  font-size: 0.72rem;
}

.main {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-content {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 88px clamp(24px, 6vw, 72px);
}

.docs-image {
  margin: 0 0 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #121317;
}

.docs-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.docs-image figcaption {
  padding: 13px 16px;
  color: #858b96;
  font-size: 0.72rem;
}

.docs-section {
  max-width: 720px;
  padding-bottom: 56px;
}

.docs-section + .docs-section {
  margin-top: 18px;
}

.docs-subtitle {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 800;
}

.docs-body {
  margin: 0;
  color: #aeb3bd;
  font-size: 0.95rem;
  line-height: 1.7;
}

.docs-overview {
  --accent: #fff;
}

.docs-overview-banner {
  height: clamp(185px, 24vw, 340px);
  overflow: hidden;
  background: #000;
}

.docs-overview-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

.docs-overview-content {
  width: min(970px, 100%);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 132px) clamp(24px, 8vw, 108px) 56px;
}

.docs-overview-redirect {
  display: flex;
  width: min(430px, 100%);
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 17%, #111216);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.docs-overview-redirect:hover {
  background: var(--accent);
  color: #111216;
}

.docs-overview-about {
  padding: clamp(80px, 11vw, 132px) 0 clamp(32px, 4vw, 52px);
}

.docs-overview-about h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  letter-spacing: -0.08em;
  line-height: 0.93;
}

.docs-overview-about p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #a2a7b1;
  font-size: clamp(0.93rem, 1.15vw, 1.05rem);
  line-height: 1.7;
}

.docs-overview-video,
.docs-overview-showcase {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #121317;
}

.docs-overview-video-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 800;
}

.docs-overview-video-header span:last-child {
  color: #a2a7b1;
  font-weight: 600;
}

.docs-overview-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #090a0c;
}

.docs-overview-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: clamp(76px, 9vw, 116px) 0;
}

.docs-overview-feature {
  min-height: 174px;
  padding: 26px 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 11%, #15171b), #121317);
}

.docs-overview--soundwave .docs-overview-feature {
  background: linear-gradient(145deg, #181a1f, #121317);
}

.docs-overview-feature strong {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.docs-overview-feature p {
  margin: 11px 0 0;
  color: #a2a7b1;
  font-size: 0.77rem;
  line-height: 1.65;
}

.docs-overview-showcase-title {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-overview-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.docs-overview-footer {
  padding-top: 28px;
  color: #747a85;
  font-size: 0.64rem;
}

.home-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.home-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 22px 17px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #0b0c0f;
}

.home-main {
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  background: #000;
}

.docs-home-banner {
  height: clamp(175px, 22vw, 310px);
  overflow: hidden;
}

.docs-home-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.docs-home {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 11vw, 150px) clamp(24px, 7vw, 92px);
}

.docs-home h1 {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  letter-spacing: -0.08em;
  line-height: 0.93;
  text-align: center;
}

.docs-home > p {
  max-width: 570px;
  margin: 12px auto 40px;
  color: #aeb3bd;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

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

.project-card {
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #121317;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: #191b20;
}

.project-card span {
  display: block;
  color: #8d939e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card strong {
  display: block;
  margin-top: 42px;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.docs-contact {
  display: grid;
  min-height: 60vh;
  place-items: start center;
  padding: 0 24px 88px;
  text-align: center;
}

.docs-contact-card {
  width: min(670px, 100%);
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #17191e;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.docs-contact h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  letter-spacing: -0.085em;
}

.docs-contact p {
  max-width: 440px;
  margin: 18px auto 0;
  color: #aeb3bd;
  font-size: 0.9rem;
  line-height: 1.7;
}

.docs-contact-form {
  display: grid;
  width: min(540px, 100%);
  gap: 12px;
  margin: 32px auto 0;
  text-align: left;
}

.docs-contact-form input,
.docs-contact-form textarea {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #0a0b0e;
  color: #f8f8fa;
  font: inherit;
  font-size: 0.8rem;
}

.docs-contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.docs-contact-form input:focus,
.docs-contact-form textarea:focus {
  border-color: #fff;
}

.docs-contact-form button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  color: #111216;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
}

.docs-contact-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.docs-contact-status {
  min-height: 20px;
  margin: 2px 0 0;
  color: #aeb3bd;
  font-size: 0.7rem;
  text-align: center;
}

.docs-contact-status[hidden] {
  display: none;
}

.docs-contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  html,
  body {
    overflow: auto;
  }

  .shell {
    display: block;
    height: auto;
  }

  .sidebar {
    height: auto;
    padding: 12px;
  }

  .project-sidebar {
    display: none;
  }

  .main {
    height: auto;
  }

  .docs-content {
    padding: 42px 21px;
  }

  .home-shell {
    display: block;
  }

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

  .home-sidebar .brand {
    padding: 2px 5px 14px;
  }

  .home-sidebar .app-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-sidebar .app {
    min-width: max-content;
    min-height: 44px;
    padding: 5px 13px;
    font-size: 0.72rem;
  }

  .home-sidebar .app-divider {
    width: 1px;
    height: 28px;
    flex: 0 0 1px;
    margin: auto 3px;
  }

  .docs-home {
    padding: 62px 21px;
  }

  .docs-home-banner {
    height: 190px;
  }

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

  .docs-contact {
    min-height: 62vh;
    padding: 72px 21px;
  }

  .docs-overview-banner {
    height: 190px;
  }

  .docs-overview-content {
    padding: 52px 21px 40px;
  }

  .docs-overview-about {
    padding: 76px 0 34px;
  }

  .docs-overview-features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 64px 0;
  }

  .docs-overview-feature {
    min-height: 0;
    padding: 22px;
  }
}
