/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #d4d4d4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: #5b9bd5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Navigation === */
nav {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.nav-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: #888;
    font-size: 14px;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-decoration: none;
}

/* === Main Content === */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* === Home Page === */
.hero {
    text-align: center;
    padding: 24px 0 24px;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.hero h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero .tagline {
    color: #888;
    font-size: 16px;
    margin-bottom: 32px;
}

.store-badges {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.store-badge-link {
    display: inline-block;
    text-decoration: none;
}

.store-badge-link:hover {
    text-decoration: none;
}

.store-badge {
    height: 50px;
    display: block;
}

.store-badge-placeholder {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 6px 16px;
    color: #888;
    font-size: 14px;
    background: #141414;
    height: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 170px;
    line-height: 1.3;
}

.store-badge-placeholder span {
    font-size: 11px;
    color: #555;
}

/* Hero steps */
.hero-steps {
    text-align: center;
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.hero-steps-intro {
    color: #bbb;
    font-size: 17px;
    margin-bottom: 24px;
}

.hero-steps-list {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.hero-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #5b9bd5;
    color: #5b9bd5;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-step-text {
    color: #999;
    font-size: 14px;
    text-align: left;
}

/* Home warning */
.home-warning {
    background: #2a1f0e;
    border: 1px solid #5c3a1a;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 32px;
}

.home-warning p {
    color: #c9a86c;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.home-warning a {
    color: #5b9bd5;
}

/* Feature list */
.features {
    border-top: 1px solid #1a1a1a;
    padding-top: 24px;
    margin-top: 48px;
}

.features h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature {
    background: #141414;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    padding: 16px;
}

.feature h3 {
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* Info section */
.info-section {
    border-top: 1px solid #1a1a1a;
    padding-top: 24px;
    margin-top: 48px;
}

.info-section h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-section p {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

/* === Legal Pages (Privacy, EULA) === */
.legal-page h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.legal-page .effective-date {
    color: #666;
    font-size: 13px;
    margin-bottom: 32px;
}

.legal-page .intro {
    color: #999;
    font-size: 14px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.legal-page h2 {
    color: #ccc;
    font-size: 16px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 10px;
}

.legal-page p,
.legal-page ul {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 20px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page .warning {
    color: #c9873a;
    font-weight: 600;
}

.legal-page .caps {
    text-transform: none;
    font-size: 13px;
}

/* === Docs Pages (sidebar + content layout) === */
.docs-layout {
    max-width: 1060px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    display: flex;
    gap: 40px;
}

.docs-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 72px;
    align-self: flex-start;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    padding-bottom: 40px;
}

.docs-sidebar::-webkit-scrollbar {
    width: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-sidebar > ul > li {
    margin-bottom: 2px;
}

.docs-sidebar > ul > li > a {
    display: block;
    padding: 5px 12px;
    color: #777;
    font-size: 13px;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.docs-sidebar > ul > li > a:hover {
    color: #ccc;
    text-decoration: none;
}

.docs-sidebar > ul > li > a.active {
    color: #fff;
    border-left-color: #5b9bd5;
}

/* Sidebar nested items (subsections) */
.docs-sidebar .sidebar-sub {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-sidebar .sidebar-sub li a {
    display: block;
    padding: 3px 12px 3px 24px;
    color: #555;
    font-size: 12px;
    border-left: 2px solid transparent;
    transition: color 0.15s;
}

.docs-sidebar .sidebar-sub li a:hover {
    color: #aaa;
    text-decoration: none;
}

.docs-sidebar .sidebar-sub li a.active {
    color: #ccc;
    border-left-color: #5b9bd5;
}

/* Docs content area */
.docs-content {
    flex: 1;
    min-width: 0;
}

.docs-content h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.docs-content .docs-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
}

.docs-content h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.docs-content h2:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

.docs-content h3 {
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
}

.docs-content p {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.docs-content ul,
.docs-content ol {
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 20px;
    overflow: hidden;
}

.docs-content li {
    margin-bottom: 6px;
}

.docs-content code {
    background: #1a1a1a;
    color: #c9873a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.docs-content .info-box {
    background: #111d2e;
    border: 1px solid #1a3a5c;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.docs-content .info-box p {
    color: #8ab4d8;
    margin-bottom: 0;
}

.docs-content .warning-box {
    background: #2a1f0e;
    border: 1px solid #5c3a1a;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.docs-content .warning-box p {
    color: #c9a86c;
    margin-bottom: 0;
}

.docs-content .disclaimer-box {
    background: #2a0e0e;
    border: 1px solid #5c1a1a;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.docs-content .disclaimer-box p {
    color: #c96c6c;
    margin-bottom: 0;
}

.docs-content .error-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.docs-content .error-table th,
.docs-content .error-table td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 13px;
}

.docs-content .error-table th {
    color: #aaa;
    font-weight: 600;
    border-bottom-color: #2a2a2a;
}

.docs-content .error-table td {
    color: #888;
}

.docs-content .error-table td:first-child {
    color: #c9873a;
    font-weight: 600;
    white-space: nowrap;
}

.docs-content .screenshot {
    display: block;
    max-width: 100%;
    border: 1px solid #222;
    border-radius: 8px;
    margin: 16px 0;
}

.docs-content .screenshot-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.docs-content .screenshot-row img {
    flex: 1;
    min-width: 0;
    border: 1px solid #222;
    border-radius: 8px;
}

.docs-content .screenshot-float {
    float: left;
    width: 240px;
    margin: 4px 20px 12px 0;
    border: 1px solid #222;
    border-radius: 8px;
}

/* Mobile sidebar toggle */
.docs-sidebar-toggle {
    display: none;
    width: 100%;
    padding: 10px 16px;
    background: #141414;
    border: 1px solid #222;
    border-radius: 8px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
    text-align: left;
}

.docs-sidebar-toggle::after {
    content: " \25BC";
    font-size: 10px;
}

/* === Footer === */
footer {
    border-top: 1px solid #1a1a1a;
    padding: 24px 20px;
    text-align: center;
    color: #444;
    font-size: 12px;
}

footer a {
    color: #555;
}

footer .footer-links {
    margin-bottom: 8px;
}

footer .footer-links a {
    margin: 0 10px;
}

footer .footer-trademark {
    margin-top: 8px;
    color: #444;
}

/* === Responsive === */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .docs-layout {
        flex-direction: column;
        gap: 0;
        padding: 24px 20px 60px;
        overflow: visible;
    }

    .docs-sidebar {
        position: sticky;
        top: 57px;
        width: 100%;
        max-height: none;
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 0;
        z-index: 50;
    }

    .docs-sidebar > ul {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        background: #141414;
        border: 1px solid #222;
        border-top: none;
        border-radius: 0 0 8px 8px;
        padding: 8px 0;
        margin-bottom: 0;
        max-height: 400px;
        overflow-y: auto;
        z-index: 100;
    }

    .docs-sidebar.open > ul {
        display: block;
    }

    .docs-sidebar .sidebar-sub {
        display: block;
        position: static;
    }

    .docs-sidebar-toggle {
        display: block;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .docs-content h2 {
        margin-top: 36px;
    }

    .docs-content .screenshot-float {
        float: none;
        width: 60%;
        display: block;
        margin: 12px auto;
    }

    .container {
        padding: 32px 20px 60px;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .hero-icon {
        width: 88px;
        height: 88px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero .tagline {
        margin-bottom: 24px;
    }

    .features {
        padding-top: 32px;
        margin-top: 32px;
    }

    .info-section {
        padding-top: 32px;
        margin-top: 32px;
    }

    .hero-steps-list {
        flex-direction: column;
        align-items: flex-start;
        display: inline-flex;
        gap: 16px;
    }

    .hero-steps-intro {
        font-size: 16px;
    }

    .legal-page h1 {
        font-size: 20px;
    }

    .legal-page h2 {
        margin-top: 28px;
    }

    footer .footer-links a {
        margin: 0 14px;
        padding: 4px 0;
        display: inline-block;
    }
}

/* Phone (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px 48px;
    }

    nav {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 15px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        padding: 28px 0 24px;
    }

    .hero-icon {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero .tagline {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature {
        padding: 14px;
    }

    .features {
        padding-top: 24px;
        margin-top: 24px;
    }

    .features h2 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .info-section {
        padding-top: 24px;
        margin-top: 24px;
    }

    .info-section h2 {
        font-size: 17px;
    }

    .legal-page h1 {
        font-size: 19px;
    }

    .legal-page .intro {
        margin-bottom: 24px;
    }

    .legal-page h2 {
        font-size: 15px;
        margin-top: 24px;
    }

    .legal-page p,
    .legal-page ul {
        font-size: 13.5px;
    }

    footer {
        padding: 20px 16px;
    }

    footer .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 24px;
        margin-bottom: 10px;
        padding: 0 12px;
    }

    footer .footer-links a {
        margin: 0;
        padding: 6px 0;
        display: inline-block;
    }
}
