/* ── Reset & base ───────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #111214;
    --surface:  #18191c;
    --border:   #2a2b2f;
    --text:     #dcddde;
    --muted:    #8e9297;
    --accent:   #43b581;
    --link:     #5dadec;
    --font:     'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono:     'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --max-w:    820px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ───────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(17, 18, 20, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    height: 62px;
}

.topbar a {
    color: var(--muted);
    transition: color 0.2s;
    height: 100%;
}
.topbar a:hover { color: var(--text); text-decoration: none; }

.topbar a img {
    object-fit: contain;
    height: 40px;
}

/* ── Hero ──────────────────────────────────────── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55vh;
    padding: 6rem 1.5rem 3rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-logo {
    /* width: 140px; */
    height: 140px;
    object-fit: contain;
    border-radius: 20px;
    flex-shrink: 0;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    margin-top: 0.4rem;
    font-size: 1.15rem;
    color: var(--muted);
}

/* ── Sections ──────────────────────────────────── */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section + .section {
    border-top: 1px solid var(--border);
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
}

p { margin-bottom: 0.8rem; }

/* ── Tables ────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    margin: 0.8rem 0 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: var(--surface);
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

/* ── Pre / code blocks ─────────────────────────── */
pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    overflow-x: auto;
    margin: 0.6rem 0 1rem;
}

pre code {
    background: none;
    padding: 0;
}

/* ── Lists ─────────────────────────────────────── */
ol, ul {
    padding-left: 1.4rem;
    margin-bottom: 0.8rem;
}

li { margin-bottom: 0.35rem; }

.server-list {
    columns: 2;
    list-style: none;
    padding-left: 0;
}

.server-list li::before {
    content: '•';
    color: var(--accent);
    margin-right: 0.5rem;
}

.note {
    color: var(--muted);
    font-size: 0.85em;
}

/* ── Steps ─────────────────────────────────────── */
.step {
    margin-bottom: 1.5rem;
}

.step h3 {
    color: var(--text);
    margin-top: 0;
}

/* ── Credits ───────────────────────────────────── */
.credits-list {
    list-style: none;
    padding-left: 0;
}

.credits-list li {
    padding: 0.3rem 0;
}

.license {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ── Footer ────────────────────────────────────── */
footer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    .hero-text h1 { font-size: 2.2rem; }
    .server-list { columns: 1; }
}
