* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    font-family: monospace;
    display: flex;
}

aside {
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    background: #111;
    border-right: 1px solid #222;
    padding: 30px 20px;
}

aside h1 {
    color: #4f8cff;
    margin-bottom: 30px;
}

aside ul {
    list-style: none;
}

aside li {
    margin-bottom: 15px;
}

aside a {
    color: #ccc;
    text-decoration: none;
    transition: 0.2s;
}

aside a:hover {
    color: #4f8cff;
}

main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 60px;
}

section {
    margin-bottom: 80px;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h2 {
    color: #4f8cff;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

p {
    line-height: 1.8;
    color: #cfcfcf;
    margin-bottom: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: #101010;
    border: 1px solid #444;
    padding: 25px;
}

.card h3 {
    color: #4f8cff;
}

pre {
    overflow: auto;
}

code {
    font-family: monospace;
}

.diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.box {
    padding: 20px 40px;
    border: 1px solid #4f8cff;
    background: #111;
    min-width: 240px;
    text-align: center;
}

.arrow {
    color: #4f8cff;
    font-size: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #222;
    padding: 14px;
    text-align: left;
}

th {
    background: #111;
    color: #4f8cff;
}

@media(max-width: 900px) {
    body {
        flex-direction: column;
    }

    aside {
        position: relative;
        width: 100%;
        height: auto;
    }

    main {
        margin-left: 0;
        width: 100%;
        padding: 30px;
    }
}