:root {
    color-scheme: dark;

    --bg: #101116;
    --surface: #191b23;
    --surface-hover: #222530;
    --border: rgba(255, 255, 255, 0.09);

    --text: #f5f5f7;
    --muted: #9698a7;

    --accent: #a99aff;
    --accent-hover: #c0b6ff;

    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 26px 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.brand-symbol,
.brand-dot {
    color: var(--accent);
}

.brand-symbol {
    font-size: 30px;
}

.header-caption,
.site-footer {
    color: var(--muted);
    font-size: 12px;
}

.site-main {
    flex: 1;
    width: 100%;
}

.site-footer {
    border-top: 1px solid var(--border);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    transition: background 0.2s, transform 0.2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #111019;
}

.button-primary:hover {
    background: var(--accent-hover);
}

.button-secondary {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--border);
}

.button-secondary:hover {
    background: #303340;
}

.input {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    color: var(--text);
}

.input:focus {
    border-color: var(--accent);
}

.input::placeholder {
    color: #777989;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .site-header,
    .site-footer {
        padding: 20px;
    }

    .header-caption {
        display: none;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}
