:root {
    color-scheme: light;
    --bg: #f7f8fc;
    --bg-2: #edf1ff;
    --text: #111827;
    --muted: #5b6478;
    --line: rgba(17, 24, 39, 0.12);
    --primary: #2458ff;
    --primary-2: #6a7dff;
    --card: rgba(255, 255, 255, 0.72);
    --shadow: 0 28px 80px rgba(24, 38, 94, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(106, 125, 255, 0.22), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(36, 88, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, var(--bg-2) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.scene {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.panel {
    position: relative;
    z-index: 1;
    width: min(100%, 720px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 32px;
    background: var(--card);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    animation: panel-rise 700ms ease both;
}

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

h1 {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.lead {
    margin: 18px 0 0;
    max-width: 54ch;
    font-size: clamp(1.02rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: var(--muted);
}

.card {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
}

.card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
}

.label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.target {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(36, 88, 255, 0.22);
    background: rgba(36, 88, 255, 0.06);
    font-weight: 700;
    color: var(--primary);
    word-break: break-word;
}

.supporting-text {
    margin: 18px 0 0;
    line-height: 1.65;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 36px rgba(36, 88, 255, 0.28);
}

.button.ghost {
    color: var(--muted);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.64);
}

.footnote {
    margin: 18px 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.8;
    animation: drift 16s ease-in-out infinite;
}

.orb-one {
    width: 260px;
    height: 260px;
    top: -70px;
    left: -40px;
    background: rgba(106, 125, 255, 0.16);
}

.orb-two {
    width: 220px;
    height: 220px;
    top: 18%;
    right: -60px;
    background: rgba(36, 88, 255, 0.14);
    animation-delay: -4s;
}

.orb-three {
    width: 180px;
    height: 180px;
    bottom: -50px;
    left: 42%;
    background: rgba(95, 211, 255, 0.18);
    animation-delay: -8s;
}

.scene-404 .panel {
    width: min(100%, 680px);
}

@keyframes panel-rise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(18px, -14px, 0) scale(1.05);
    }
}

@media (max-width: 720px) {
    .scene {
        padding: 18px;
    }

    .panel {
        padding: 22px;
        border-radius: 26px;
    }

    .card {
        padding: 18px;
    }

    .card-row {
        align-items: flex-start;
    }

    .target {
        width: 100%;
        justify-content: center;
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .panel,
    .orb,
    .button {
        animation: none;
        transition: none;
    }
}