:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-alt: #273449;
    --border: #334155;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --up: #22c55e;
    --down: #ef4444;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.page {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-header {
    text-align: center;
}

.site-header h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
}

.site-header .accent {
    color: var(--accent);
}

.tagline {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
}

.check-form {
    display: flex;
    gap: 0.5rem;
}

.check-form input[type="text"] {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.check-form input[type="text"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.check-form button {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #0f172a;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.check-form button:hover {
    filter: brightness(1.1);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.result {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.result--error {
    border-color: var(--down);
    color: #fecaca;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.result--up .status-dot {
    background: var(--up);
    box-shadow: 0 0 8px var(--up);
}

.result--down .status-dot {
    background: var(--down);
    box-shadow: 0 0 8px var(--down);
}

.status-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.result--up .status-text {
    color: var(--up);
}

.result--down .status-text {
    color: var(--down);
}

.details {
    width: 100%;
    border-collapse: collapse;
}

.details th,
.details td {
    text-align: left;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.details th {
    color: var(--text-muted);
    font-weight: 500;
    width: 40%;
    vertical-align: top;
}

.details td {
    word-break: break-word;
}

.site-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
