:root {
    --bg: #0f0f12;
    --card: #17171c;
    --text: #f4f4f6;
    --muted: #b8b8c2;
    --line: rgba(255,255,255,.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,.06), transparent), var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(10px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 14px;
}

.nav {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

    .nav a {
        color: var(--muted);
        text-decoration: none;
    }

        .nav a:hover {
            color: var(--text);
        }

.hero {
    padding: 48px 0 10px;
}

.hero-copy h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin: 0 0 10px;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 60ch;
}

.micro {
    color: var(--muted);
    font-size: .9rem;
}

.section {
    padding: 22px 0 30px;
}

.sub {
    color: var(--muted);
    margin-top: -6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 850px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.tile {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #111;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    color: var(--text);
    text-decoration: none;
}

    .btn:hover {
        background: rgba(255,255,255,.16);
    }

.btn-ghost {
    background: transparent;
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

input, textarea {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.25);
    color: var(--text);
}

label {
    color: var(--muted);
    font-size: .92rem;
}

.inline {
    display: inline;
}

.linklike {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
}

    .linklike:hover {
        color: var(--text);
    }

.error {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid rgba(255,80,80,.25);
    background: rgba(255,80,80,.08);
    border-radius: 12px;
    color: #ffd1d1;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    color: var(--muted);
}

.error-wrap {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 40px 0;
}

.error-card {
    max-width: 520px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px 28px;
}

    .error-card h1 {
        font-size: clamp(28px, 4vw, 40px);
        margin-bottom: 6px;
    }

.error-code {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 16px;
}

.error-message {
    color: var(--muted);
    margin-bottom: 22px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-footnote {
    margin-top: 20px;
    font-size: .85rem;
    color: var(--muted);
    opacity: .8;
}

.toolbar-logout .linklike {
    background: linear-gradient( to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) );
    border-radius: 5px;
    padding: 5px 10px;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

    /* Hover state */
    .toolbar-logout .linklike:hover {
        border-color: rgba(0, 0, 0, 0.5);
        background: linear-gradient( to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3) );
    }

    /* Active / pressed */
    .toolbar-logout .linklike:active {
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    /* Keyboard accessibility */
    .toolbar-logout .linklike:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
    }

.site-bg {
    background: linear-gradient( rgba(0,0,0,0.3), rgba(0,0,0,0.3) ), url('/images/background.jpg') center no-repeat fixed;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: large;
    letter-spacing: .3px;
}

.brand-logo {
    height: 60px; /* perfect for toolbars */
    width: 60px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 500;
    font-size: large;
    letter-spacing: 0.03em;
}
