:root {
    --primary: #9333ea;
    --primary-light: #a855f7;
    --primary-glow: rgba(147, 51, 234, 0.4);
    --secondary: #ec4899;
    --bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.6);
    --side-bg: #0b1120;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #38bdf8;
    --sidebar-width: 320px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: var(--side-bg);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2.5rem 1.5rem;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.sidebar .logo {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar .nav-group {
    margin-bottom: 2.5rem;
}

.sidebar .nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #4b5563;
    margin-bottom: 1.25rem;
    padding-left: 0.5rem;
    font-weight: 700;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.sidebar nav a i {
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: 0.3s;
}

.sidebar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar nav a:hover i {
    color: var(--primary-light);
}

.sidebar nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 15px var(--primary-glow);
}

.sidebar nav a.active i {
    color: #fff;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 0;
    min-height: 100vh;
}

.hero-header {
    width: 100%;
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: #020617;
}

/* Specific background gradients instead of images */
.root-hero {
    background: radial-gradient(circle at center, #1e1b4b 0%, #020617 70%);
}

.sub-hero {
    background: radial-gradient(circle at top right, #1e1b4b 0%, #020617 100%);
}

.hero-header h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff 50%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    max-width: 1000px;
}

.section {
    padding: 4rem 5rem;
    max-width: 1600px;
    margin: 0 auto;
    clear: both;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    letter-spacing: -1px;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.img-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.img-premium {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px var(--primary-glow);
    border: 1px solid var(--border);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    margin: 0 auto;
}

.img-premium:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 25px var(--primary-glow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 3rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -10px var(--primary-glow);
}

pre {
    background: #000000 !important;
    border: 1px solid var(--border) !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

footer {
    padding: 7rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    background: #000;
}

.audit-badge {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--primary-light);
    margin-bottom: 2rem;
    display: inline-block;
}

@media (max-width: 1280px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hero-header h1 {
        font-size: 3.5rem;
    }
}