:root {
    --background: #050505;
    --surface: #0d0d0d;
    --surface-hover: #151515;
    --text: #f5f5f5;
    --text-muted: #888;
    --text-subtle: #555;
    --border: #252525;
    --accent: #dc2626;
    --accent-hover: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgb(220 38 38 / 12%), transparent 32%),
        var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.site-header,
.site-footer {
    width: min(100% - 40px, 960px);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.site-brand {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(14px, 3vw, 28px);
}

.site-nav a {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
}

.site-header a:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.home-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(90%, 760px);
    padding: 76px 0;
    text-align: center;
}

.brand {
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.32rem;
    text-transform: uppercase;
}

.home-main h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.home-main h1 span {
    color: var(--accent);
}

.subtitle {
    max-width: 540px;
    margin: 28px auto 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.action {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.action:hover {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.primary {
    border-color: var(--accent);
    background: var(--accent);
}

.primary:hover {
    background: var(--accent-hover);
}

.status {
    margin-top: 24px;
    color: var(--text-subtle);
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    line-height: 1.7;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 10px rgb(220 38 38 / 65%);
}

.status-dot.offline {
    background: var(--text-subtle);
    box-shadow: none;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0 32px;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

@media (max-width: 520px) {
    .site-header {
        justify-content: center;
        gap: 18px;
        padding: 22px 0;
    }

    .site-nav {
        justify-content: center;
    }

    .home-main {
        padding: 56px 0;
    }

    .home-main h1 {
        font-size: clamp(2.9rem, 11vw, 3.4rem);
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .action {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .action,
    .site-nav a {
        transition: none;
    }
}
