/* ========================================
   NextUI Static Pages Styles
   Landing Page & Docs Area
   ======================================== */

:root {
    --static-header-height: 64px;
    --static-footer-height: 56px;
    --static-sidebar-width: 260px;
    --static-toc-width: 200px;
    --static-max-width: 1400px;

    /* Spacing aliases for backward compatibility */
    --sx-spacingHorizontalS: var(--sx-spacing-sm);
    --sx-spacingHorizontalM: var(--sx-spacing-md);
    --sx-spacingHorizontalL: var(--sx-spacing-lg);
    --sx-spacingHorizontalXL: var(--sx-spacing-xl);
    --sx-spacingVerticalS: var(--sx-spacing-sm);
    --sx-spacingVerticalM: var(--sx-spacing-md);
    --sx-spacingVerticalL: var(--sx-spacing-lg);
    --sx-spacingVerticalXL: var(--sx-spacing-xl);
    --sx-spacingVerticalXXL: calc(var(--sx-spacing-xl) * 1.5);
    --sx-spacingVerticalXS: var(--sx-spacing-xs);

    /* Color aliases for static pages */
    --sx-colorBrandBackground: var(--sx-colorBrandBackground1);
    --sx-colorBrandBackgroundHover: var(--sx-colorBrandBackground2);
    --sx-colorNeutralForegroundOnBrand: var(--sx-colorOnBrand);
    --sx-colorNeutralBackground4: var(--sx-colorNeutralBackground3);

    /* Font aliases */
    --sx-fontWeightSemibold: 600;
    --sx-fontWeightBold: 700;
    --sx-fontSizeBase200: 0.75rem;
    --sx-fontSizeBase300: 0.875rem;
    --sx-fontSizeBase400: 1rem;
    --sx-fontSizeBase500: 1.25rem;
    --sx-fontFamilyMonospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ========== Global Background ========== */
body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(147, 51, 234, 0.03) 50%, rgba(236, 72, 153, 0.03) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,0,0,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(0,0,0,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,0,0,0.015)"/><circle cx="10" cy="60" r="0.5" fill="rgba(0,0,0,0.015)"/><circle cx="90" cy="40" r="0.5" fill="rgba(0,0,0,0.015)"/></pattern></defs><rect fill="url(%23grain)" width="100" height="100"/></svg>');
    background-attachment: fixed;
}

/* ========== Header (Fixed + Glass) ========== */
.static-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--static-header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.static-header__container {
    max-width: var(--static-max-width);
    margin: 0 auto;
    padding: 0 var(--sx-spacingHorizontalL);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.static-header__logo {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
    text-decoration: none;
    color: var(--sx-colorNeutralForeground1);
    font-weight: var(--sx-fontWeightSemibold);
    font-size: var(--sx-fontSizeBase400);
}

.static-header__logo img {
    height: 32px;
    width: auto;
}

.static-header__nav {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalL);
}

.static-header__link {
    color: var(--sx-colorNeutralForeground2);
    text-decoration: none;
    font-size: var(--sx-fontSizeBase300);
    padding: var(--sx-spacingVerticalS) var(--sx-spacingHorizontalM);
    border-radius: var(--sx-borderRadiusMedium);
    transition: background 0.15s, color 0.15s;
}

.static-header__link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--sx-colorNeutralForeground1);
}

.static-header__link.active {
    color: var(--sx-colorBrandForeground1);
    font-weight: var(--sx-fontWeightSemibold);
}

.static-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
}

.static-header__btn {
    background: transparent;
    border: none;
    padding: var(--sx-spacingVerticalS);
    border-radius: var(--sx-borderRadiusMedium);
    color: var(--sx-colorNeutralForeground2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.static-header__btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--sx-colorNeutralForeground1);
}

.static-header__login-btn {
    background: var(--sx-colorBrandBackground);
    color: var(--sx-colorNeutralForegroundOnBrand);
    padding: var(--sx-spacingVerticalS) var(--sx-spacingHorizontalM);
    border-radius: var(--sx-borderRadiusMedium);
    text-decoration: none;
    font-size: var(--sx-fontSizeBase300);
    font-weight: var(--sx-fontWeightSemibold);
    transition: background 0.15s;
}

.static-header__login-btn:hover {
    background: var(--sx-colorBrandBackgroundHover);
}

/* ========== Footer (Fixed + Glass) ========== */
.static-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--static-footer-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
}

.static-footer__container {
    max-width: var(--static-max-width);
    margin: 0 auto;
    padding: 0 var(--sx-spacingHorizontalL);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.static-footer__copyright {
    color: var(--sx-colorNeutralForeground3);
    font-size: var(--sx-fontSizeBase200);
}

.static-footer__links {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
}

.static-footer__links a {
    color: var(--sx-colorNeutralForeground2);
    text-decoration: none;
    font-size: var(--sx-fontSizeBase200);
    transition: color 0.15s;
}

.static-footer__links a:hover {
    color: var(--sx-colorBrandForeground1);
}

.static-footer__divider {
    color: var(--sx-colorNeutralStroke2);
}

/* ========== Main Content Area ========== */
main {
    padding-top: var(--static-header-height);
    padding-bottom: var(--static-footer-height);
}

/* ========== Landing Page ========== */
.landing-container {
    min-height: calc(100vh - var(--static-header-height) - var(--static-footer-height));
    display: flex;
    align-items: center;
    padding: 0;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: visible;
}

.landing-split {
    display: flex;
    width: 100%;
    min-height: calc(100vh - var(--static-header-height) - var(--static-footer-height));
    position: relative;
    overflow: hidden;
}

.landing-content {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sx-spacingVerticalXL) var(--sx-spacingHorizontalXL);
    padding-left: max(var(--sx-spacingHorizontalXL), calc((100vw - var(--static-max-width)) / 2 + var(--sx-spacingHorizontalXL)));
    position: relative;
    z-index: 2;
}

.landing-illustration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    overflow: visible;
}

.landing-illustration__svg {
    width: 75%;
    height: 120%;
    max-height: none;
    flex-shrink: 0;
}

.landing-hero {
    margin-bottom: var(--sx-spacingVerticalXL);
}

.landing-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--sx-fontWeightBold);
    color: var(--sx-colorNeutralForeground1);
    margin: 0 0 var(--sx-spacingVerticalM);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.landing-hero__subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: var(--sx-colorNeutralForeground2);
    margin: 0 0 var(--sx-spacingVerticalL);
    line-height: 1.7;
    max-width: 480px;
}

.landing-hero__actions {
    display: flex;
    gap: var(--sx-spacingHorizontalM);
    flex-wrap: wrap;
}

.landing-hero__btn {
    padding: var(--sx-spacingVerticalM) var(--sx-spacingHorizontalXL);
    border-radius: var(--sx-borderRadiusMedium);
    font-size: var(--sx-fontSizeBase300);
    font-weight: var(--sx-fontWeightSemibold);
    text-decoration: none;
    transition: all 0.2s ease;
}

.landing-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.landing-hero__btn--primary {
    background: var(--sx-colorBrandBackground);
    color: var(--sx-colorNeutralForegroundOnBrand);
}

.landing-hero__btn--primary:hover {
    background: var(--sx-colorBrandBackgroundHover);
}

.landing-hero__btn--secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--sx-colorNeutralForeground1);
    border: 1px solid var(--sx-colorNeutralStroke1);
}

.landing-hero__btn--secondary:hover {
    background: white;
}

/* Features - Compact tags */
.landing-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sx-spacingHorizontalS);
}

.landing-feature {
    display: inline-flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalXS);
    padding: var(--sx-spacingVerticalXS) var(--sx-spacingHorizontalM);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.landing-feature:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.landing-feature__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sx-colorBrandForeground1);
}

.landing-feature__icon svg {
    width: 16px;
    height: 16px;
}

.landing-feature__text {
    font-size: var(--sx-fontSizeBase300);
    color: var(--sx-colorNeutralForeground1);
    font-weight: 500;
}

/* Hide old elements */
.landing-feature__content,
.landing-feature__title,
.landing-feature__desc {
    display: none;
}

/* ========== Docs Page ========== */
html {
    scroll-padding-top: calc(var(--static-header-height) + 20px);
}

.docs-layout {
    display: flex;
    min-height: calc(100vh - var(--static-header-height) - var(--static-footer-height));
    padding-top: var(--static-header-height);
    padding-bottom: var(--static-footer-height);
}

/* Mobile bar - hidden on desktop */
.docs-mobile-bar {
    display: none;
    position: fixed;
    top: var(--static-header-height);
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--sx-spacingVerticalXS) var(--sx-spacingHorizontalM);
    gap: var(--sx-spacingHorizontalS);
}

.docs-mobile-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalXS);
    padding: var(--sx-spacingVerticalXS) var(--sx-spacingHorizontalM);
    border: 1px solid var(--sx-colorNeutralStroke1);
    border-radius: var(--sx-borderRadiusMedium);
    background: var(--sx-colorNeutralBackground1);
    color: var(--sx-colorNeutralForeground2);
    font-size: var(--sx-fontSizeBase200);
    cursor: pointer;
}

.docs-mobile-bar__btn:hover {
    background: var(--sx-colorNeutralBackground3);
}

/* Overlay for mobile drawers */
.docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.4);
}

.docs-overlay.open {
    display: block;
}

/* Sidebar */
.docs-sidebar {
    width: var(--static-sidebar-width);
    flex-shrink: 0;
    border-right: 1px solid var(--sx-colorNeutralStroke2);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(8px);
    padding: 0;
    position: sticky;
    top: var(--static-header-height);
    height: calc(100vh - var(--static-header-height) - var(--static-footer-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.docs-sidebar__header {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
    padding: var(--sx-spacingVerticalS) var(--sx-spacingHorizontalM);
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(250, 250, 250, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.docs-sidebar__search {
    flex: 1;
    position: relative;
}

.docs-sidebar__search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sx-colorNeutralForeground3);
    font-size: var(--sx-fontSizeBase200);
    pointer-events: none;
}

.docs-sidebar__search input {
    width: 100%;
    box-sizing: border-box;
    padding: var(--sx-spacingVerticalXS) var(--sx-spacingHorizontalM);
    padding-left: 30px;
    border: 1px solid var(--sx-colorNeutralStroke1);
    border-radius: var(--sx-borderRadiusMedium);
    background: var(--sx-colorNeutralBackground1);
    font-size: var(--sx-fontSizeBase300);
}

.docs-sidebar__close {
    display: none;
    background: none;
    border: none;
    color: var(--sx-colorNeutralForeground2);
    cursor: pointer;
    padding: var(--sx-spacingVerticalXS);
    font-size: 1.1rem;
}

.docs-sidebar__no-results {
    padding: var(--sx-spacingVerticalM) var(--sx-spacingHorizontalM);
    color: var(--sx-colorNeutralForeground3);
    font-size: var(--sx-fontSizeBase300);
    text-align: center;
}

.docs-sidebar__group {
    margin-bottom: 0;
    border: none;
}

.docs-sidebar__group-title {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
    padding: var(--sx-spacingVerticalS) var(--sx-spacingHorizontalM);
    font-size: var(--sx-fontSizeBase200);
    font-weight: var(--sx-fontWeightSemibold);
    color: var(--sx-colorNeutralForeground2);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.docs-sidebar__group-title::-webkit-details-marker {
    display: none;
}

.docs-sidebar__group-title::after {
    content: "\25B8";
    margin-left: auto;
    font-size: 0.85em;
    color: var(--sx-colorNeutralForeground3);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.docs-sidebar__group[open] > .docs-sidebar__group-title::after {
    transform: rotate(90deg);
}

.docs-sidebar__group-title:hover {
    background: var(--sx-colorNeutralBackground3);
}

.docs-sidebar__group-icon {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 0.85em;
    opacity: 0.7;
}

.docs-sidebar__group-content {
    /* Indented content within collapsible groups */
}

.docs-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
    padding: var(--sx-spacingVerticalXS) var(--sx-spacingHorizontalM);
    padding-left: var(--sx-spacingHorizontalXL);
    color: var(--sx-colorNeutralForeground2);
    text-decoration: none;
    font-size: var(--sx-fontSizeBase300);
    border-left: 2px solid transparent;
}

.docs-sidebar__link-icon {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: var(--sx-fontSizeBase200);
    opacity: 0.7;
}

.docs-sidebar__link:hover {
    color: var(--sx-colorNeutralForeground1);
    background: var(--sx-colorNeutralBackground3);
}

.docs-sidebar__link:hover .docs-sidebar__link-icon {
    opacity: 1;
}

.docs-sidebar__link.active {
    color: var(--sx-colorBrandForeground1);
    border-left-color: var(--sx-colorBrandBackground);
    background: var(--sx-colorNeutralBackground1);
}

.docs-sidebar__link.active .docs-sidebar__link-icon {
    opacity: 1;
}

/* Collapsible subgroups */
.docs-sidebar__subgroup {
    margin: 0;
    border: none;
}

.docs-sidebar__subgroup summary {
    display: flex;
    align-items: center;
    gap: var(--sx-spacingHorizontalS);
    padding: var(--sx-spacingVerticalXS) var(--sx-spacingHorizontalM);
    padding-left: var(--sx-spacingHorizontalXL);
    font-size: var(--sx-fontSizeBase200);
    font-weight: var(--sx-fontWeightSemibold);
    color: var(--sx-colorNeutralForeground3);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.docs-sidebar__subgroup summary::-webkit-details-marker {
    display: none;
}

.docs-sidebar__subgroup summary::before {
    content: "\25B8";
    font-size: 0.75em;
    transition: transform 0.15s ease;
    flex-shrink: 0;
    color: var(--sx-colorNeutralForeground3);
}

.docs-sidebar__subgroup[open] > summary::before {
    transform: rotate(90deg);
}

.docs-sidebar__subgroup summary:hover {
    color: var(--sx-colorNeutralForeground1);
    background: var(--sx-colorNeutralBackground3);
}

.docs-sidebar__subgroup .docs-sidebar__link {
    padding-left: calc(var(--sx-spacingHorizontalXL) + var(--sx-spacingHorizontalL));
}

/* Main content */
.docs-main {
    flex: 1;
    min-width: 0;
    padding: var(--sx-spacingVerticalXL) var(--sx-spacingHorizontalXL);
    overflow-x: hidden;
}

.docs-content {
    max-width: 800px;
}

.docs-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 var(--sx-spacingVerticalM);
}

.docs-table-wrapper table {
    margin-bottom: 0;
}

/* Table of contents */
.docs-toc {
    width: var(--static-toc-width);
    flex-shrink: 0;
    padding: var(--sx-spacingVerticalL) var(--sx-spacingHorizontalM);
    position: sticky;
    top: var(--static-header-height);
    height: calc(100vh - var(--static-header-height) - var(--static-footer-height));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.docs-toc__close {
    display: none;
    background: none;
    border: none;
    color: var(--sx-colorNeutralForeground2);
    cursor: pointer;
    padding: var(--sx-spacingVerticalXS);
    font-size: 1.1rem;
    float: right;
}

.docs-toc__title {
    font-size: var(--sx-fontSizeBase200);
    font-weight: var(--sx-fontWeightSemibold);
    color: var(--sx-colorNeutralForeground3);
    margin-bottom: var(--sx-spacingVerticalS);
    text-transform: uppercase;
}

.docs-toc__link {
    display: block;
    padding: var(--sx-spacingVerticalXS) 0;
    color: var(--sx-colorNeutralForeground3);
    text-decoration: none;
    font-size: var(--sx-fontSizeBase200);
    border-left: 2px solid transparent;
    padding-left: var(--sx-spacingHorizontalS);
}

.docs-toc__link:hover {
    color: var(--sx-colorNeutralForeground1);
}

.docs-toc__link.active {
    color: var(--sx-colorBrandForeground1);
    border-left-color: var(--sx-colorBrandBackground);
}

/* ========== Markdown Content ========== */
.markdown-body {
    line-height: 1.7;
    color: var(--sx-colorNeutralForeground1);
}

.markdown-body h1 {
    font-size: 2rem;
    font-weight: var(--sx-fontWeightBold);
    margin: 0 0 var(--sx-spacingVerticalL);
    padding-bottom: var(--sx-spacingVerticalS);
    border-bottom: 1px solid var(--sx-colorNeutralStroke2);
}

.markdown-body h2 {
    font-size: 1.5rem;
    font-weight: var(--sx-fontWeightSemibold);
    margin: var(--sx-spacingVerticalXL) 0 var(--sx-spacingVerticalM);
}

.markdown-body h3 {
    font-size: 1.25rem;
    font-weight: var(--sx-fontWeightSemibold);
    margin: var(--sx-spacingVerticalL) 0 var(--sx-spacingVerticalS);
}

.markdown-body p {
    margin: 0 0 var(--sx-spacingVerticalM);
}

.markdown-body code {
    background: var(--sx-colorNeutralBackground3);
    padding: 0.15em 0.4em;
    border-radius: var(--sx-borderRadiusSmall);
    font-size: 0.9em;
    font-family: var(--sx-fontFamilyMonospace);
}

.markdown-body pre {
    background: var(--sx-colorNeutralBackground3);
    padding: var(--sx-spacingVerticalM) var(--sx-spacingHorizontalM);
    border-radius: var(--sx-borderRadiusMedium);
    overflow-x: auto;
    margin: 0 0 var(--sx-spacingVerticalM);
}

.markdown-body pre code {
    background: none;
    padding: 0;
}

.markdown-body table {
    min-width: 100%;
    width: max-content;
    border-collapse: collapse;
    margin: 0 0 var(--sx-spacingVerticalM);
}

.markdown-body th,
.markdown-body td {
    padding: var(--sx-spacingVerticalS) var(--sx-spacingHorizontalM);
    border: 1px solid var(--sx-colorNeutralStroke2);
    text-align: left;
}

.markdown-body th {
    background: var(--sx-colorNeutralBackground2);
    font-weight: var(--sx-fontWeightSemibold);
}

.markdown-body a {
    color: var(--sx-colorBrandForeground1);
}

.markdown-body blockquote {
    border-left: 4px solid var(--sx-colorBrandBackground);
    padding-left: var(--sx-spacingHorizontalM);
    margin: 0 0 var(--sx-spacingVerticalM);
    color: var(--sx-colorNeutralForeground2);
}

/* ========== Component Preview ========== */
.component-preview {
    border: 1px solid var(--sx-colorNeutralStroke2);
    border-radius: var(--sx-borderRadiusMedium);
    margin: var(--sx-spacingVerticalM) 0;
    overflow: hidden;
}

.component-preview__demo {
    padding: var(--sx-spacingVerticalL) var(--sx-spacingHorizontalL);
    background: var(--sx-colorNeutralBackground1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.component-preview__code {
    border-top: 1px solid var(--sx-colorNeutralStroke2);
}

.component-preview__link {
    display: block;
    padding: var(--sx-spacingVerticalS) var(--sx-spacingHorizontalM);
    background: var(--sx-colorNeutralBackground2);
    border-top: 1px solid var(--sx-colorNeutralStroke2);
    color: var(--sx-colorBrandForeground1);
    text-decoration: none;
    font-size: var(--sx-fontSizeBase200);
    text-align: right;
}

.component-preview__link:hover {
    background: var(--sx-colorNeutralBackground3);
}

/* ========== Dark Theme ========== */
[data-theme="dark"] body {
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 50%, rgba(236, 72, 153, 0.05) 100%),
        #1a1a1a;
}

[data-theme="dark"] .static-header {
    background: rgba(26, 26, 26, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .static-footer {
    background: rgba(26, 26, 26, 0.8);
    border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .static-header__link:hover,
[data-theme="dark"] .static-header__btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .landing-feature {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .landing-feature:hover {
    background: rgba(50, 50, 50, 0.9);
}

[data-theme="dark"] .landing-hero__btn--secondary {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .landing-hero__btn--secondary:hover {
    background: rgba(50, 50, 50, 0.95);
}

/* dark theme illustration - no background needed, it's a transparent overlay */

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .landing-content {
        padding-left: var(--sx-spacingHorizontalXL);
    }
}

@media (max-width: 1024px) {
    /* TOC becomes a drawer on tablet */
    .docs-toc {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
        padding: var(--sx-spacingVerticalL) var(--sx-spacingHorizontalM);
        overflow-y: auto;
    }

    .docs-toc.open {
        display: block;
    }

    .docs-toc__close {
        display: block;
    }

    .docs-mobile-bar {
        display: flex;
    }

    html {
        scroll-padding-top: calc(var(--static-header-height) + 60px);
    }

    .docs-layout {
        padding-top: calc(var(--static-header-height) + 40px);
    }

    .docs-sidebar {
        top: calc(var(--static-header-height) + 40px);
        height: calc(100vh - var(--static-header-height) - var(--static-footer-height) - 40px);
    }

    .landing-content {
        flex: none;
        max-width: 60%;
        padding: var(--sx-spacingVerticalXL) var(--sx-spacingHorizontalL);
    }

    .landing-illustration__svg {
        width: 70%;
    }
}

@media (max-width: 768px) {
    /* Sidebar becomes a drawer on mobile */
    .docs-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 200;
        width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
        padding: 0;
    }

    .docs-sidebar.open {
        display: block;
    }

    .docs-sidebar__close {
        display: block;
    }

    .docs-main {
        padding: var(--sx-spacingVerticalM) var(--sx-spacingHorizontalM);
    }

    .static-header__nav {
        display: none;
    }

    .landing-content {
        max-width: 100%;
        padding: var(--sx-spacingVerticalL) var(--sx-spacingHorizontalM);
    }

    .landing-illustration {
        opacity: 0.15;
    }

    .landing-illustration__svg {
        width: 100%;
    }

    .landing-hero__title {
        font-size: 1.75rem;
    }
}
