:root {
    --bg0: #070513;
    --bg1: #120526;
    --fg: #eef1ff;
    --muted: rgba(238, 241, 255, .70);

    --pink: #ff2fd6;
    --cyan: #2fe8ff;
    --violet: #8d5bff;

    --panel: rgba(8, 10, 24, .58);
    --stroke: rgba(255, 255, 255, .10);
    --shadow: 0 24px 90px rgba(0, 0, 0, .50);
    --radius: 18px;
    --focus: 0 0 0 2px rgba(47, 232, 255, .20), 0 0 0 6px rgba(255, 47, 214, .12);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--fg);
    background:
        radial-gradient(1100px 700px at 50% -10%, rgba(255, 47, 214, .16), transparent 60%),
        radial-gradient(900px 600px at 70% 20%, rgba(47, 232, 255, .12), transparent 60%),
        radial-gradient(900px 650px at 30% 25%, rgba(141, 91, 255, .12), transparent 60%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans";
    overflow-x: hidden;
}

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

.shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

/* Background: Synthwave Sun & Grid */
.bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(180deg,
            rgba(255, 255, 255, .020) 0px,
            rgba(255, 255, 255, .020) 1px,
            rgba(0, 0, 0, 0) 4px,
            rgba(0, 0, 0, 0) 9px);
    opacity: .16;
    mix-blend-mode: overlay;
}

.sun {
    position: absolute;
    left: 50%;
    top: 16vh;
    width: min(56vmin, 520px);
    height: min(56vmin, 520px);
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 234, 160, .95), rgba(255, 120, 220, .95) 35%, rgba(255, 47, 214, .80) 55%, rgba(255, 47, 214, 0) 72%);
    filter: blur(.2px);
    opacity: .95;
}

.sun::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background:
        repeating-linear-gradient(to bottom,
            rgba(7, 5, 19, 0) 0px,
            rgba(7, 5, 19, 0) 14px,
            rgba(7, 5, 19, .55) 18px,
            rgba(7, 5, 19, .55) 20px);
    mix-blend-mode: multiply;
    opacity: .55;
}

.sun::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 47, 214, .25), rgba(47, 232, 255, .12), rgba(0, 0, 0, 0) 70%);
    filter: blur(18px);
    opacity: .9;
}

.skyline {
    position: absolute;
    left: 50%;
    bottom: 38vh;
    width: 140vw;
    height: 18vh;
    transform: translateX(-50%);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(7, 5, 19, .35) 40%, rgba(7, 5, 19, .85) 100%);
    clip-path: polygon(0% 100%,
            0% 70%, 4% 70%, 4% 58%, 8% 58%, 8% 66%,
            12% 66%, 12% 50%, 16% 50%, 16% 62%,
            20% 62%, 20% 44%, 24% 44%, 24% 64%,
            28% 64%, 28% 56%, 32% 56%, 32% 38%,
            36% 38%, 36% 60%, 40% 60%, 40% 46%,
            44% 46%, 44% 58%, 48% 58%, 48% 40%,
            52% 40%, 52% 62%, 56% 62%, 56% 52%,
            60% 52%, 60% 36%, 64% 36%, 64% 60%,
            68% 60%, 68% 48%, 72% 48%, 72% 62%,
            76% 62%, 76% 42%, 80% 42%, 80% 58%,
            84% 58%, 84% 46%, 88% 46%, 88% 64%,
            92% 64%, 92% 54%, 96% 54%, 96% 68%,
            100% 68%,
            100% 100%);
    opacity: .70;
    filter: drop-shadow(0 0 18px rgba(255, 47, 214, .10));
}

.skyline::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(47, 232, 255, 0) 0px, rgba(47, 232, 255, 0) 10px, rgba(47, 232, 255, .10) 10.5px, rgba(47, 232, 255, 0) 12px),
        repeating-linear-gradient(0deg, rgba(255, 234, 160, 0) 0px, rgba(255, 234, 160, 0) 9px, rgba(255, 234, 160, .08) 9.5px, rgba(255, 234, 160, 0) 12px);
    opacity: .22;
    mix-blend-mode: screen;
}

.grid3d {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12vh;
    height: 60vh;
    perspective: 520px;
    perspective-origin: 50% 0%;
    opacity: .95;
}

.grid3d__plane {
    position: absolute;
    left: 50%;
    top: -10vh;
    width: 160vw;
    height: 120vh;
    transform: translateX(-50%) rotateX(68deg);
    transform-origin: 50% 0%;
    background:
        repeating-linear-gradient(90deg,
            rgba(47, 232, 255, .00) 0px,
            rgba(47, 232, 255, .00) 42px,
            rgba(47, 232, 255, .22) 44px,
            rgba(47, 232, 255, .00) 46px),
        repeating-linear-gradient(0deg,
            rgba(255, 47, 214, .00) 0px,
            rgba(255, 47, 214, .00) 42px,
            rgba(255, 47, 214, .18) 44px,
            rgba(255, 47, 214, .00) 46px);
    filter: drop-shadow(0 0 14px rgba(47, 232, 255, .10));
    will-change: background-position;
    animation: gridScroll 2.2s linear infinite;
}

@keyframes gridScroll {
    from {
        background-position: 0 0, 0 0;
    }

    to {
        background-position: 0 0, 0 92px;
    }
}

.haze {
    position: absolute;
    inset: auto 0 0 0;
    height: 55vh;
    background:
        linear-gradient(180deg, rgba(18, 5, 38, 0) 0%, rgba(18, 5, 38, .55) 60%, rgba(18, 5, 38, .90) 100%);
}

/* Content */
.header {
    padding: 34px 0 14px;
}

.kicker {
    margin: 0;
    font-size: 12px;
    letter-spacing: 1.6px;
    color: rgba(238, 241, 255, .78);
}

.title {
    margin: 10px 0 8px;
    font-size: 34px;
    letter-spacing: .4px;
    text-shadow: 0 0 22px rgba(255, 47, 214, .16), 0 0 22px rgba(47, 232, 255, .10);
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.panel {
    margin-top: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.panel__head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0));
}

.panel__title {
    margin: 0;
    font-size: 16px;
    letter-spacing: .7px;
}

.panel__hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.panel code {
    color: rgba(47, 232, 255, .9);
}

.list {
    margin: 0;
    padding: 8px 16px 8px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.list>li {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.list>li:last-child {
    border-bottom: 0;
}

.link {
    display: block;
    padding: 12px 0px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(238, 241, 255, .90);
    transition: color .12s ease, text-shadow .12s ease;
}

.link:hover {
    color: rgba(47, 232, 255, .98);
    text-shadow: 0 0 14px rgba(47, 232, 255, .22), 0 0 18px rgba(255, 47, 214, .12);
}

.link:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.footer {
    margin: 14px 0 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(238, 241, 255, .74);
}

.footer__mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.dot {
    opacity: .55;
}

.footer__link {
    opacity: .9;
    border-bottom: 1px dashed rgba(255, 255, 255, .22);
}

.footer__link:hover {
    opacity: 1;
    border-bottom-color: rgba(47, 232, 255, .40);
}

@media (max-width: 640px) {
    .title {
        font-size: 28px;
    }

    .grid3d {
        height: 56vh;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .grid3d__plane {
        animation: none;
    }
}