:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #1f2433;
    --muted: #5b6478;
    --border: #e5e8ef;
    --brand: #2f5bea;
    --brand-hover: #2447c2;
    --focus-ring: rgba(47, 91, 234, 0.35);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius-md: 8px;
    --radius-lg: 12px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.site-header {
    height: 64px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

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

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.hero-card {
    width: 100%;
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 48px 40px;
    text-align: center;
}

.hero-title {
    margin: 0 0 16px;
    font-size: 1.625rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text);
}

.hero-message {
    margin: 0 0 32px;
    color: var(--muted);
    font-size: 1rem;
}

.hero-message strong {
    color: var(--text);
    font-weight: 600;
}

.btn-primary {
    display: inline-block;
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.hero-fallback {
    margin: 28px 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.hero-url {
    display: inline-block;
    margin-left: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--text);
    word-break: break-all;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links a:focus-visible {
    outline: none;
    color: var(--text);
    box-shadow: 0 0 0 3px var(--focus-ring);
    border-radius: 4px;
}

.footer-attr {
    color: var(--muted);
}

/* Responsive */
@media (max-width: 600px) {
    .site-header {
        padding: 0 16px;
    }

    .hero {
        padding: 32px 16px;
    }

    .hero-card {
        padding: 32px 24px;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .btn-primary {
        display: block;
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}
