x:root {
    --ink: #0b1220;
    --muted: #5b6785;
    --surface: #fff;
    --border: rgba(15, 23, 42, 0.08);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(14, 165, 233, .18), transparent 60%),
        radial-gradient(900px 420px at 85% -10%, rgba(244, 63, 94, .18), transparent 60%),
        #d9eeff;
}

h1 {
    font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(90deg, #0b1220, #0e4cc5 55%, #12d6a7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p.lead {
    font-size: 1.06rem;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ===== CARD (enhanced effects only) ===== */
.card {
    background: var(--surface);
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgb(0, 0, 0);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

/* subtle animated edge glow (shows more on hover) */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    padding: 1px;
    background: conic-gradient(from 180deg, #22c55e, #0ea5e9, #a855f7, #f59e0b, #ef4444, #22c55e);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .5;
    transition: opacity .25s ease;
    animation: cardSpin 14s linear infinite;
}

/* soft spotlight that breathes on hover */
.card::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0%;
    width: 180%;
    height: 140%;
    transform: translate(-50%, -40%) rotate(0deg);
    background: radial-gradient(40% 28% at 50% 30%, rgba(14, 165, 233, .12), transparent 60%);
    opacity: .0;
    transition: opacity .25s ease, transform .35s ease;
    pointer-events: none;
}

@keyframes cardSpin {
    to {
        transform: rotate(360deg);
    }
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 46px rgba(2, 6, 23, .16);
    border-color: rgba(14, 165, 233, .22);
    filter: saturate(1.02);
}

.card:hover::before {
    opacity: .34;
}

.card:hover::after {
    opacity: .18;
    transform: translate(-50%, -42%) rotate(2deg);
}

/* keyboard focus within = same as hover */
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 46px rgba(2, 6, 23, .16);
    border-color: rgba(14, 165, 233, .28);
}

.card:focus-within::before {
    opacity: .38;
}

.card:focus-within::after {
    opacity: .2;
}

/* respect reduced motion for these effects */
@media (prefers-reduced-motion: reduce) {
    .card::before {
        animation: none !important;
    }
}

/* ======================================= */

/* Shared button base */
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 14px;
    font-size: .95rem;
    font-weight: 900;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: .6px;
    border: 0;
    color: #fff;
    transition: transform .16s ease, box-shadow .16s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}

a.btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 70%);
    transform: translateX(-120%);
    transition: transform .6s ease;
}

a.btn:hover::before {
    transform: translateX(120%);
}

a.btn:hover {
    transform: translateY(-2px);
}

/* NOOB — Mint/Green */
.level-noob {
    background: linear-gradient(180deg, #5ef3b0, #22c55e);
    color: #052e1a;
    box-shadow: 0 8px 24px rgba(34, 197, 94, .4);
}

.level-noob:hover {
    background: linear-gradient(180deg, #6fffc0, #16a34a);
    box-shadow: 0 12px 32px rgba(34, 197, 94, .6);
}

/* NERD — Purple/Violet */
.level-nerd {
    background: linear-gradient(180deg, #c7a6ff, #7c3aed);
    color: #1e0632;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .4);
}

.level-nerd:hover {
    background: linear-gradient(180deg, #d5b6ff, #6d28d9);
    box-shadow: 0 12px 32px rgba(124, 58, 237, .6);
}

/* SWEAT — Hot Pink/Red */
.level-sweat {
    background: linear-gradient(180deg, #ff92a6, #e11d48);
    color: #2a060b;
    box-shadow: 0 8px 24px rgba(225, 29, 72, .4);
}

.level-sweat:hover {
    background: linear-gradient(180deg, #ffa0b5, #be123c);
    box-shadow: 0 12px 32px rgba(225, 29, 72, .6);
}

/* GOAT — Gold/Amber */
.level-goat {
    background: linear-gradient(180deg, #ffe697, #f59e0b);
    color: #2b2003;
    box-shadow: 0 8px 24px rgba(245, 158, 11, .4);
    position: relative;
}

.level-goat:hover {
    background: linear-gradient(180deg, #ffefad, #d97706);
    box-shadow: 0 12px 32px rgba(245, 158, 11, .6);
}

/* Full Test — Electric Blue */
.btn-nectest {
    background: linear-gradient(180deg, #7dd3fc, #0ea5e9);
    color: #05121a;
    box-shadow: 0 8px 24px rgba(14, 165, 233, .4);
}

.btn-nectest:hover {
    background: linear-gradient(180deg, #a5e5ff, #0284c7);
    box-shadow: 0 12px 32px rgba(14, 165, 233, .6);
}

@media (max-width:576px) {
    h1 {
        font-size: 2rem;
    }

    a.btn {
        font-size: .9rem;
        padding: 10px 12px;
    }
}