:root {
    --bg: #06070d;
    --bg-elevated: #0c1020;
    --primary: #818cf8;
    --primary-strong: #6366f1;
    --secondary: #a78bfa;
    --accent: #f472b6;
    --success: #34d399;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.1);
    --glass: rgba(12, 16, 32, 0.62);
    --radius: 1.25rem;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 5.5rem;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, .font-display {
    font-family: "Syne", sans-serif;
}

::selection {
    background: var(--accent);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #05060b; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(99, 102, 241, 0.28), transparent 55%),
        radial-gradient(700px 480px at 92% 8%, rgba(244, 114, 182, 0.18), transparent 50%),
        radial-gradient(800px 500px at 70% 100%, rgba(52, 211, 153, 0.08), transparent 50%),
        var(--bg);
}

.page-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-nav {
    background: rgba(6, 7, 13, 0.72);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-nav.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 10%, var(--primary) 48%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary-strong), #7c3aed);
    color: #fff;
    border: 0;
    border-radius: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(22px);
        animation: rise 0.8s ease both;
    }
    .reveal-delay-1 { animation-delay: 0.08s; }
    .reveal-delay-2 { animation-delay: 0.16s; }
    .reveal-delay-3 { animation-delay: 0.24s; }
    .reveal-delay-4 { animation-delay: 0.32s; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.animate-float { animation: float 7s ease-in-out infinite; }

.dash-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
}

.bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--primary-strong));
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form-status[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .animate-float,
    .btn-primary,
    .btn-ghost {
        animation: none !important;
        opacity: 1;
        transform: none !important;
        transition: none !important;
    }
}
