.header-buttons-group {
  display: flex;
  gap: 8px;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 6px;
  border-radius: 999px;
  white-space: nowrap;
  background-color: rgba(10, 10, 10, 0.75);
  border: 1px solid var(--header-bg-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .header-buttons-group {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--header-button-border, var(--header-bg-border));
}

.right-icons:hover .header-buttons-group {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.header-action-button {
  position: relative;
  color: var(--text-color);
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-action-button:hover {
  color: var(--text-color);
  transform: translateY(-1px) scale(1.05);
}

.header-action-button + .header-action-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.light-theme .header-action-button + .header-action-button::before {
  background: rgba(0, 0, 0, 0.12);
}

#headerSoftwareBtn {
  border-radius: 999px 0 0 999px;
}

#headerDocsBtn {
  border-radius: 0 999px 999px 0;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.pip3d-docs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.96),
    rgba(10, 10, 10, 0.9)
  );
  border-bottom: 1px solid var(--header-bg-border);
}

.light-theme .pip3d-docs-header {
  background: rgba(255, 255, 255, 0.9);
}

.docs-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.docs-logo {
  font-family: "Krona One", system-ui;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--heading-color);
  text-decoration: none;
}

.docs-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.docs-header-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--nav-item-color);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--header-bg-border);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease,
    border-color 0.2s ease;
}

.docs-header-link:hover {
  border-color: var(--accent-color);
  color: var(--heading-color);
  transform: translateY(-1px);
  background: var(--header-bg);
}

.docs-main {
  flex: 1;
  padding: 96px 20px 72px;
}

.docs-inner {
  max-width: 900px;
  margin: 0 auto;
}

.docs-hero {
  text-align: left;
  margin-bottom: 40px;
}

.docs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nav-item-color);
  border: 1px solid var(--header-bg-border);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 14px;
}

.docs-title {
  font-size: 2.3rem;
  font-weight: 640;
  color: var(--heading-color);
  margin: 0 0 10px;
}

.docs-subtitle {
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--content-color);
  margin-bottom: 24px;
}

.docs-section {
  margin-bottom: 40px;
}

.docs-section h2 {
  font-size: 1.3rem;
  font-weight: 560;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.docs-section h3 {
  font-size: 1.06rem;
  font-weight: 560;
  color: var(--heading-color);
  margin: 22px 0 10px;
}

.docs-section h4 {
  font-size: 0.98rem;
  font-weight: 560;
  color: var(--heading-color);
  margin: 18px 0 8px;
}

.docs-section p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--content-color);
  margin-bottom: 12px;
}

.docs-section strong {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--header-bg-border);
  color: var(--heading-color);
  font-weight: 560;
  line-height: 1.35;
}

.light-theme .docs-section strong {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.docs-section ul,
.docs-section ol {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.docs-section li {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--content-color);
  margin-bottom: 6px;
}

.docs-section blockquote {
  margin: 0 0 12px;
  padding: 0;
  border-left: none;
  background: transparent;
  color: var(--content-color);
}

.docs-section blockquote p {
  margin: 0 0 12px;
}

.docs-section hr {
  display: none;
}

.docs-footer {
  border-top: 1px solid var(--header-bg-border);
  padding: 24px 20px 32px;
  font-size: 0.8rem;
  color: var(--nav-item-color);
}

.docs-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 768px) {
  .docs-main {
    padding: 80px 16px 56px;
  }

  .docs-title {
    font-size: 2rem;
  }

  .docs-header-inner {
    padding-inline: 16px;
  }

  .docs-header-actions {
    justify-content: flex-end;
  }
}
