:root {
    --bg: #030407;
    --panel: rgba(8, 10, 16, 0.78);
    --line: rgba(255,255,255,0.12);
    --text: #f7f3ec;
    --muted: #b8b2aa;
    --accent: #f4c987;
    --accent2: #7aa7ff;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --max: 1080px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.shell {
    width: min(var(--max), calc(100% - 24px));
    margin: 18px auto 34px;
}

.glass {
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.78), rgba(8, 10, 16, 0.56));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.topbar {
    position: sticky;
    top: 14px;
    z-index: 10;
    padding: 14px 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-mark {
    width: 300px;
    height: 60px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.top-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1 1 260px;
}

.top-links a {
    color: var(--muted);
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 12px;
}

.top-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.page {
    padding: 30px;
    border-radius: var(--radius-xl);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
}

h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: .95;
    letter-spacing: -0.05em;
}

.lead,
p,
li {
    color: var(--muted);
    line-height: 1.7;
}

.stack {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
}

.card h2 {
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.card ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.label {
    display: block;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 4px;
}

.note {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(244, 201, 135, 0.08);
    border: 1px solid rgba(244, 201, 135, 0.18);
}

footer {
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 820px) {
    .topbar,
    footer { border-radius: 22px; }
    .grid { grid-template-columns: 1fr; }
    .page { padding: 22px; }
    .brand-mark { width: min(100%, 280px); height: 56px; }
    .topbar {
        align-items: stretch;
        justify-content: center;
        gap: 12px;
        padding: 14px;
    }
    .brand { width: 100%; justify-content: center; }
    .top-links { width: 100%; justify-content: center; }
}

@media (max-width: 1024px) {
    .topbar {
        justify-content: center;
    }

    .topbar.is-compact {
        gap: 10px;
        padding: 10px 14px;
        align-items: center;
    }

    .topbar.is-compact .brand {
        width: auto;
        justify-content: center;
    }

    .topbar.is-compact .brand-mark {
        width: 150px;
        height: 30px;
    }

    .topbar.is-compact .top-links {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }

    .topbar.is-compact .top-links a {
        font-size: 13px;
        padding: 8px 9px;
    }
}
