:root {
    --brand: #C1272D;
    --brand-glow: rgba(193, 39, 45, 0.18);
    --bg: #fafafa;
    --bg-grad: #f0f0f2;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(0, 0, 0, 0.06);
    --text: #18181b;
    --text-muted: #6b6b73;
    --text-subtle: #9a9aa3;
    --divider: rgba(0, 0, 0, 0.08);
    --grid-line: rgba(0, 0, 0, 0.035);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0c;
        --bg-grad: #131316;
        --surface: rgba(255, 255, 255, 0.03);
        --surface-border: rgba(255, 255, 255, 0.06);
        --text: #f4f4f5;
        --text-muted: #a1a1aa;
        --text-subtle: #6b6b73;
        --divider: rgba(255, 255, 255, 0.08);
        --grid-line: rgba(255, 255, 255, 0.04);
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    min-height: 100%;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, var(--brand-glow), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-grad) 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 640px;
    width: 100%;
    text-align: center;
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo img {
    height: 4rem;
    width: auto;
    max-width: 90vw;
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 0 var(--brand);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--dot-glow, var(--brand-glow)); }
    50% { box-shadow: 0 0 0 6px transparent; }
}

.badge-dot.online   { background: #22c55e; --dot-glow: rgba(34, 197, 94, 0.3); }
.badge-dot.offline  { background: #ef4444; --dot-glow: rgba(239, 68, 68, 0.3); }
.badge-dot.degraded { background: #f59e0b; --dot-glow: rgba(245, 158, 11, 0.3); }
.badge-dot.maintenance { background: #3b82f6; --dot-glow: rgba(59, 130, 246, 0.3); }

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text);
}

h1 .accent {
    color: var(--brand);
}

.lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 1rem;
}

.services {
    max-width: 520px;
    margin: 0 auto 1rem;
    display: flex;
    justify-content: center;
}

.infrastructure {
    display: block;
    width: 100%;
    height: auto;
    color: var(--text-muted);
    overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
    .infrastructure { opacity: 0.85; }
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--brand);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 10px;
    border: 1px solid var(--brand);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px -8px var(--brand-glow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

.cta:hover {
    background: #a52126;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 12px 28px -8px var(--brand-glow);
}

.cta:active {
    transform: translateY(0);
}

.cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cta:hover .cta-arrow {
    transform: translateX(2px);
}

footer {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--divider);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
}

@media (prefers-color-scheme: dark) {
    footer {
        background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
    }
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-subtle);
}

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

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

.footer-brand {
    font-weight: 500;
    color: var(--text);
}

.footer-brand:hover {
    color: var(--brand) !important;
}

.footer-links a:has(.status-dot) {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.status-dot {
    display: block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--text-subtle);
    transition: background-color 0.4s;
}
.status-dot.online  { background: #22c55e; }
.status-dot.offline { background: #c1272d; }
.status-dot.degraded { background: #f59e0b; }
.status-dot.maintenance { background: #3b82f6; }

@media (max-width: 480px) {
    main { padding: 3rem 1.25rem 1.5rem; }
    .logo { margin-bottom: 2rem; }
    .logo img { height: 48px; }
    .lead { margin-bottom: 2rem; }
}
