:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --bg-dark: #0f172a;
    --bg-darker: #0a0f1f;
    --bg-light: #fafbfc;
    --bg-lighter: #1e293b;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --border: #e2e8f0;
    --border-dark: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(236, 72, 153, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #fafbfc 0%, #f1f5f9 50%, #f8fafc 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 14px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav { display: flex; gap: 6px; flex-wrap: wrap; }

.header-nav a {
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    position: relative;
}

.header-nav a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.header-nav a.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}

.header-nav a.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    pointer-events: none;
}

.nav-group { position: relative; }
.nav-group-toggle { cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-group-toggle:hover { color: var(--primary); background: rgba(99, 102, 241, 0.08); }
.nav-group-toggle svg:last-child { transition: transform 0.2s; }
.nav-group:hover .nav-group-toggle svg:last-child { transform: rotate(180deg); }

.nav-group-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 14px;
    padding: 10px;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    margin-top: 6px;
}

.nav-group:hover .nav-group-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-group-dropdown a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-group-dropdown a:hover,
.nav-group-dropdown a.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.container { max-width: 920px; margin: 0 auto; padding: 96px 32px; }

.page-title { text-align: center; margin-bottom: 32px; }
.page-title h1 { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.page-title p { color: var(--text-secondary); font-size: 0.95rem; }

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn svg { width: 16px; height: 16px; }
