:root {
    --bg: #07070a;
    --text: #f4f4f6;
    --muted: #9a9aa3;
    --accent: #7c6cff;
    --surface: #121216;
    --border: #26262c;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Animated background */
.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.bg-glow {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,108,255,0.2) 0%, transparent 70%);
    top: -140px; left: 35%;
    animation: float1 12s ease-in-out infinite;
}
.bg-glow-2 {
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
    bottom: -100px; right: 10%;
    animation: float2 15s ease-in-out infinite;
}
.bg-glow-3 {
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    top: 40%; left: -80px;
    animation: float3 18s ease-in-out infinite;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.35;
}
.orb-1 {
    width: 8px; height: 8px;
    background: #a78bfa;
    top: 20%; left: 15%;
    animation: drift 20s linear infinite;
}
.orb-2 {
    width: 6px; height: 6px;
    background: #7c6cff;
    top: 60%; left: 80%;
    animation: drift 25s linear infinite reverse;
}
.orb-3 {
    width: 10px; height: 10px;
    background: #c4b5fd;
    top: 75%; left: 25%;
    animation: drift 22s linear infinite;
}
.orb-4 {
    width: 5px; height: 5px;
    background: #818cf8;
    top: 30%; left: 70%;
    animation: drift 18s linear infinite reverse;
}
.orb-5 {
    width: 7px; height: 7px;
    background: #a78bfa;
    top: 45%; left: 50%;
    animation: drift 28s linear infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.05); }
    66% { transform: translate(-20px, 50px) scale(0.95); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -30px) scale(1.08); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -40px); }
}
@keyframes drift {
    0% { transform: translate(0, 0); opacity: 0.2; }
    25% { opacity: 0.5; }
    50% { transform: translate(60px, -80px); opacity: 0.3; }
    75% { opacity: 0.55; }
    100% { transform: translate(0, 0); opacity: 0.2; }
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124,108,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,108,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.top {
    position: relative; z-index: 2;
    padding: 20px 28px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 650; font-size: 17px;
    text-decoration: none; color: inherit;
}
.logo-mark {
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #7c6cff, #a78bfa);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: #fff;
}

.wrap {
    position: relative; z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

.intro {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeUp 0.5s ease both;
}
.badge {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    color: #c4b5fd;
    background: rgba(124,108,255,0.12);
    border: 1px solid rgba(124,108,255,0.25);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.intro h1 {
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.intro p { color: var(--muted); font-size: 15px; }

.cat-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(18,18,22,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s;
    animation: fadeUp 0.45s ease both;
    animation-delay: calc(var(--i) * 0.05s);
}
.cat-card:hover {
    transform: translateX(8px) scale(1.01);
    border-color: rgba(124,108,255,0.45);
    background: rgba(22,22,28,0.95);
    box-shadow: 0 8px 28px rgba(124,108,255,0.12);
}
.cat-card:hover .cat-arrow {
    opacity: 1;
    transform: translateX(0);
}
.cat-card:hover .cat-icon {
    transform: scale(1.06);
}

.cat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.22s;
}
.icon-white { filter: brightness(0) invert(1); }
.fn-text { color: #fff; font-weight: 700; font-size: 16px; }

.cat-info { flex: 1; min-width: 0; }
.cat-info h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}
.cat-info span {
    font-size: 13px;
    color: var(--muted);
}

.cat-arrow {
    font-size: 18px;
    color: var(--accent);
    opacity: 0.35;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
    .wrap { padding: 16px 14px 48px; }
    .cat-card { padding: 12px 14px; gap: 12px; }
    .cat-icon { width: 46px; height: 46px; }
}
