:root {
    --bg: #0f1115;
    --panel: rgba(23, 26, 33, 0.85);
    --text: #e6e8eb;
    --muted: #9aa0a8;
    --accent: #7aa2f7;
    --accent-2: #c792ea;
    --border: #262b35;
    --grad: linear-gradient(90deg, var(--accent), var(--accent-2), #f7768e);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 720px;
}

.title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--grad);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow 6s ease infinite;
    letter-spacing: 0.5px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 32px rgba(122, 162, 247, 0.18);
}

.card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.card h3 {
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
    color: var(--text);
}

p {
    color: var(--text);
}

.muted,
.hint {
    color: var(--muted);
    font-size: 0.9rem;
}

pre {
    background: #0b0d11;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    overflow-x: auto;
    margin-top: 0.5rem;
    position: relative;
}

code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    color: #c3e88d;
}

.hint {
    margin-top: 0.75rem;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: #3b5bdb;
    top: -120px;
    left: -120px;
    animation: drift 18s ease-in-out infinite alternate;
}

.blob-2 {
    width: 380px;
    height: 380px;
    background: #9c36b5;
    bottom: -140px;
    right: -100px;
    animation: drift 22s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #f76707;
    top: 40%;
    left: 70%;
    opacity: 0.25;
    animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(60px, 40px) scale(1.15);
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.fade-in {
    opacity: 0;
    animation: fade-up 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .title,
    .blob,
    .fade-in {
        animation: none;
    }
    .card:hover {
        transform: none;
    }
}
