:root {
    color-scheme: light dark;
    --color-surface: #1a1d24;
    --color-surface-elevated: rgba(20, 25, 34, 0.82);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-on-surface: #f7f4ee;
    --color-on-surface-soft: rgba(247, 244, 238, 0.78);
    --color-accent: #7fd1b9;
    --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: light) {
    :root {
        --color-surface: #f3efe7;
        --color-surface-elevated: rgba(255, 252, 247, 0.92);
        --color-border: rgba(18, 31, 43, 0.08);
        --color-on-surface: #17202c;
        --color-on-surface-soft: rgba(23, 32, 44, 0.72);
        --color-accent: #0f766e;
        --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.12);
    }
}

html,
body {
    margin: 0;
    min-height: 100%;
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

body {
    background-image:
        radial-gradient(circle at top left, rgba(127, 209, 185, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.14), transparent 28%);
}

.shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.shell-card {
    width: min(680px, 100%);
    padding: 32px;
    border-radius: 28px;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.lead,
.body-copy {
    margin: 16px 0 0;
    line-height: 1.7;
}

.lead {
    font-size: 1.08rem;
    color: var(--color-on-surface);
}

.body-copy {
    color: var(--color-on-surface-soft);
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.link-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--color-on-surface);
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
}

.link-row a:hover {
    border-color: var(--color-accent);
}

.loader-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

/* Source: https://cssloaders.github.io */
.loader {
    width: 48px;
    height: 40px;
    display: inline-block;
    position: relative;
    background: var(--color-on-surface);
    border-radius: 15% 15% 35% 35%;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 45px;
    top: 8px;
    border: 4px solid var(--color-on-surface);
    width: 16px;
    height: 20px;
    border-radius: 0 4px 4px 0;
}

.loader::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 10px;
    color: var(--color-on-surface);
    top: -15px;
    left: 11px;
    box-sizing: border-box;
    animation: animloader 1s ease infinite;
}

@keyframes animloader {
    0% {
        box-shadow: 2px 0px transparent, 12px 0px rgba(255, 255, 255, 0.35), 20px 0px transparent;
    }

    50% {
        box-shadow: 2px -5px rgba(255, 255, 255, 0.6), 12px -3px rgba(255, 255, 255, 0.6), 20px -2px rgba(255, 255, 255, 0.72);
    }

    100% {
        box-shadow: 2px -8px transparent, 12px -5px transparent, 20px -5px transparent;
    }
}

@media (max-width: 640px) {
    .shell-card {
        padding: 24px;
        border-radius: 24px;
    }
}
