* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a1a1a;
    color: #ddd;
    line-height: 1.5;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0f0f0f;
    border-bottom: 2px solid #b01717;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    z-index: 1000;
    height: 42px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-right: 1px solid #2a2a2a;
}

.header-left img {
    width: 20px;
    height: 20px;
}

.header-left h1 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.header-left span:last-child {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 4px;
}

.header-right {
    display: flex;
    align-items: stretch;
}

.nav-button {
    background-color: transparent;
    border: none;
    border-left: 1px solid #2a2a2a;
    color: #aaa;
    padding: 0 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-button:hover {
    background-color: #1a1a1a;
    color: #fff;
}


.nav-button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Layout */
#layout {
    display: flex;
    margin-top: 42px;
}

/* Sidebar */
aside {
    position: fixed;
    left: 0;
    width: 200px;
    height: calc(100vh - 42px);
    background-color: #0f0f0f;
    border-right: 1px solid #2a2a2a;
    padding: 16px 12px;
    overflow-y: auto;
}

aside h3 {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

aside ul {
    list-style: none;
}

aside li {
    margin-bottom: 0;
}

aside a {
    display: block;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    transition: color 0.15s ease;
}

aside a:hover {
    color: #fff;
}

/* Main Content */
main {
    margin-left: 200px;
    padding: 16px 24px;
    max-width: 1100px;
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.hero img {
    width: 40px;
    height: 40px;
}

.hero-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2px;
}

.hero-text p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Section Headers */
h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #fff;
}

h3 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #ccc;
}

hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, #b01717, transparent);
    margin-bottom: 16px;
}

section {
    margin-bottom: 32px;
}

p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.6;
}

/* Feature Display */
.feature-display {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
}

.feature-display img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 1px solid #2a2a2a;
}

.feature-display .feature-text {
    flex: 1;
}

.feature-display .feature-text p {
    font-size: 13px;
    line-height: 1.7;
    color: #ccc;
}

/* Theme Slider */
.slider {
    overflow: hidden;
    width: 100%;
    margin: 16px 0;
}

.slide-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 10px;
}

.slide-track img {
    width: 240px;
    height: auto;
    border: 1px solid #2a2a2a;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Code Block */
.code-block {
    background-color: #0a0a0a;
    border: 1px solid #2a2a2a;
    padding: 12px;
    margin: 10px 0;
    overflow-x: auto;
}

.code-block p {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    border-top: 1px solid #2a2a2a;
    padding: 16px;
    text-align: center;
    margin-left: 200px;
}

footer p {
    font-size: 12px;
    color: #555;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    aside {
        display: none;
    }

    main {
        margin-left: 0;
        padding: 12px;
    }

    footer {
        margin-left: 0;
    }

    .feature-display {
        flex-direction: column;
    }

    .feature-display img {
        max-width: 100%;
    }

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    h1 {
        font-size: 18px;
    }

    .header-left span:last-child {
        display: none;
    }
}