:root {
    color-scheme: dark light;
    --bg: #070914;
    --surface: rgba(17, 21, 41, 0.72);
    --surface-strong: rgba(27, 32, 59, 0.92);
    --text: #f7f8ff;
    --muted: #a8aec9;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #7c8cff;
    --accent-rgb: 124, 140, 255;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 12%, rgba(var(--accent-rgb), 0.18), transparent 32rem),
        radial-gradient(circle at 88% 82%, rgba(94, 234, 212, 0.1), transparent 30rem),
        var(--bg);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    width: 22rem;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 42%;
    filter: blur(1px);
    animation: drift 18s ease-in-out infinite alternate;
}

body::before {
    top: -12rem;
    right: -7rem;
    transform: rotate(18deg);
}

body::after {
    bottom: -14rem;
    left: -8rem;
    transform: rotate(48deg);
    animation-delay: -7s;
}

.shell {
    width: min(100% - 2rem, 64rem);
    padding: clamp(1rem, 4vw, 3rem) 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem 0.5rem;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-mark {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 1.25rem rgba(var(--accent-rgb), 0.85);
}

.card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(14rem, 0.85fr) minmax(18rem, 1.15fr);
    min-height: 31rem;
    border: 1px solid var(--line);
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 45%), var(--surface);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(22px);
}

.visual,
.content {
    padding: clamp(2rem, 6vw, 4.5rem);
}

.visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    background: linear-gradient(155deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.025));
}

.visual::before {
    content: "";
    position: absolute;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid rgba(var(--accent-rgb), 0.32);
    border-radius: 50%;
    box-shadow:
        0 0 0 1.2rem rgba(var(--accent-rgb), 0.035),
        0 0 0 3rem rgba(var(--accent-rgb), 0.025);
}

.code {
    position: relative;
    margin: 0;
    font-size: clamp(5rem, 13vw, 9rem);
    font-weight: 850;
    line-height: 0.85;
    letter-spacing: -0.09em;
    text-indent: -0.09em;
    color: transparent;
    background: linear-gradient(145deg, #fff 12%, var(--accent) 90%);
    background-clip: text;
    -webkit-background-clip: text;
    filter: drop-shadow(0 0 1.7rem rgba(var(--accent-rgb), 0.26));
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.15rem;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.message {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
    border-color: transparent;
    color: #080a14;
    background: var(--accent);
    box-shadow: 0 0.75rem 2rem rgba(var(--accent-rgb), 0.24);
}

.button:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.65);
}

.button:focus-visible {
    outline: 3px solid rgba(var(--accent-rgb), 0.42);
    outline-offset: 3px;
}

.meta {
    margin: 2.2rem 0 0;
    color: color-mix(in srgb, var(--muted), transparent 28%);
    font-size: 0.76rem;
}

@keyframes drift {
    to {
        transform: translate3d(1.5rem, 2rem, 0) rotate(68deg);
    }
}

@media (max-width: 700px) {
    .card {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 1.5rem;
    }

    .visual {
        min-height: 13rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .visual,
    .content {
        padding: 2rem;
    }

    .code {
        font-size: clamp(5rem, 28vw, 7.5rem);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f3f5ff;
        --surface: rgba(255, 255, 255, 0.78);
        --surface-strong: #fff;
        --text: #111327;
        --muted: #626982;
        --line: rgba(24, 28, 54, 0.12);
    }

    body {
        background:
            radial-gradient(circle at 12% 12%, rgba(var(--accent-rgb), 0.18), transparent 32rem),
            radial-gradient(circle at 88% 82%, rgba(20, 184, 166, 0.09), transparent 30rem),
            var(--bg);
    }

    .card {
        box-shadow: 0 2rem 6rem rgba(52, 61, 115, 0.16);
    }

    .code {
        background-image: linear-gradient(145deg, #303655 8%, var(--accent) 90%);
    }

    .button {
        background: rgba(255, 255, 255, 0.74);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
