/* === BASE STYLES === */:root {
            --primary-color: #514ad4;
            --secondary-color: #f1f8ff;
            --accent-color: #514ad4;
            --dark-bg: #0f151d;
            --card-bg: #2f353e;
            --text-primary: #FFFFFF;
            --text-secondary: #A8B2D1;
            --gradient-1: linear-gradient(135deg, #514ad4 0%, #7066e0 100%);
            --gradient-2: linear-gradient(135deg, #514ad4 0%, #3d37a8 100%);
            --gradient-3: linear-gradient(135deg, #514ad4 0%, #7066e0 50%, #514ad4 100%);
            --shadow-glow: 0 0 40px rgba(81, 74, 212, 0.3);
            --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

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

        html, body {
            overflow-x: hidden;
            max-width: 100vw;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            line-height: 1.6;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            background: var(--gradient-3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        h2 {
            font-size: clamp(2rem, 4vw, 3.5rem);
            color: var(--text-primary);
        }

        h3 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            color: var(--primary-color);
        }

        p {
            margin-bottom: 1rem;
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        a {
            text-decoration: none;
            transition: all 0.3s ease;
        }

        ul, ol {
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }

        li {
            margin-bottom: 0.75rem;
            color: var(--text-secondary);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .btn {
            padding: 16px 40px;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            display: inline-block;
            font-family: 'Space Grotesk', sans-serif;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: left 0.5s ease;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn-primary {
            background: var(--gradient-1);
            color: #f1f8ff;
            box-shadow: var(--shadow-glow);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 60px rgba(81, 74, 212, 0.5);
        }

        .btn-secondary {
            background: var(--gradient-2);
            color: #f1f8ff;
        }

        .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 40px rgba(81, 74, 212, 0.4);
        }

        .card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid rgba(81, 74, 212, 0.15);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-1);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-card);
            border-color: var(--primary-color);
        }

        .card:hover::before {
            transform: scaleX(1);
        }

        .content-image {
            max-width: 100%;
            margin: 1.5rem auto;
            text-align: center;
        }

        .content-image img {
            max-width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            border-radius: 12px;
            border: 1px solid rgba(81, 74, 212, 0.25);
        }

        .content-image.portrait img {
            max-height: 350px;
            max-width: 300px;
        }

        .content-image.wide img {
            max-height: 300px;
            max-width: 100%;
        }

        .content-image figcaption {
            margin-top: 0.5rem;
            font-size: 0.875rem;
            opacity: 0.8;
        }

        .table-responsive {
            overflow-x: auto;
            margin: 2rem 0;
            border-radius: 12px;
            border: 1px solid rgba(81, 74, 212, 0.15);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            background: var(--card-bg);
        }

        table thead {
            background: linear-gradient(135deg, rgba(81, 74, 212, 0.15) 0%, rgba(157, 0, 255, 0.1) 100%);
        }

        table th {
            padding: 1.5rem 1rem;
            text-align: left;
            font-weight: 600;
            color: var(--primary-color);
            border-bottom: 2px solid rgba(81, 74, 212, 0.35);
        }

        table td {
            padding: 1.25rem 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: var(--text-secondary);
        }

        table tbody tr {
            transition: background 0.3s ease;
        }

        table tbody tr:hover {
            background: rgba(81, 74, 212, 0.08);
        }

        .accordion-item {
            background: var(--card-bg);
            border: 1px solid rgba(81, 74, 212, 0.15);
            border-radius: 12px;
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .accordion-header {
            padding: 1.5rem 2rem;
            cursor: pointer;
            position: relative;
            font-size: 1.25rem;
            transition: all 0.3s ease;
            color: var(--text-primary);
        }

        .accordion-header::after {
            content: '+';
            position: absolute;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2rem;
            color: var(--primary-color);
            transition: transform 0.3s ease;
        }

        .accordion-item.active .accordion-header::after {
            transform: translateY(-50%) rotate(45deg);
        }

        .accordion-header:hover {
            background: rgba(81, 74, 212, 0.08);
        }

        .accordion-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.4s ease;
            padding: 0 2rem;
        }

        .accordion-item.active .accordion-body {
            max-height: 1000px;
            padding: 1.5rem 2rem 2rem;
        }

        /* === LAYOUT STYLES === */
        header {
            position: sticky;
            top: 0;
            background: rgba(27, 33, 41, 0.95);
            backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(81, 74, 212, 0.2);
            padding: 1rem 0;
        }

        header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo-link {
            text-decoration: none;
            display: block;
        }

        .logo-text {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 800;
            background: var(--gradient-3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -1px;
            position: relative;
            transition: all 0.4s ease;
            text-shadow: 0 0 30px rgba(81, 74, 212, 0.5);
        }

        .logo-text .logo-w {
            font-size: 2.5rem;
            font-weight: 900;
            display: inline-block;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 10px rgba(81, 74, 212, 0.7));
        }

        .logo-link:hover .logo-text {
            transform: translateY(-2px);
            filter: drop-shadow(0 4px 12px rgba(81, 74, 212, 0.4));
        }

        nav {
            display: flex;
            align-items: center;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
            margin: 0;
            padding: 0;
        }

        nav a {
            color: var(--text-secondary);
            font-weight: 500;
            transition: color 0.3s ease;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-1);
            transition: width 0.3s ease;
        }

        nav a:hover {
            color: var(--primary-color);
        }

        nav a:hover::after {
            width: 100%;
        }

        header .btn {
            margin-left: 2rem;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
        }

        .hamburger span {
            width: 30px;
            height: 3px;
            background: var(--primary-color);
            margin: 3px 0;
            transition: all 0.3s ease;
            border-radius: 3px;
        }

        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(8px, -8px);
        }

        footer {
            background: linear-gradient(180deg, var(--dark-bg) 0%, #0a0e14 100%);
            border-top: 1px solid rgba(81, 74, 212, 0.2);
            padding: 4rem 0 2rem;
            margin-top: 6rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-section h3, .footer-section h4 {
            color: var(--primary-color);
            margin-bottom: 1.5rem;
        }

        .footer-section ul {
            list-style: none;
            padding: 0;
        }

        .footer-section a {
            color: var(--text-secondary);
        }

        .footer-section a:hover {
            color: var(--primary-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-secondary);
        }

        @media (max-width: 991px) {
            header .container {
                flex-wrap: wrap;
            }

            nav {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: rgba(19, 24, 41, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                justify-content: center;
                transition: right 0.4s ease;
                border-left: 1px solid rgba(81, 74, 212, 0.25);
            }

            nav.active {
                right: 0;
            }

            nav ul {
                flex-direction: column;
                gap: 2rem;
            }

            nav a {
                font-size: 1.5rem;
            }

            .hamburger {
                display: flex;
            }

            header .btn {
                order: 3;
                width: 100%;
                text-align: center;
                margin: 1rem 0 0;
                max-width: 100%;
            }
        }

        @media (max-width: 767px) {
            header .btn {
                max-width: 100%;
                padding: 14px 20px;
                font-size: 1rem;
            }
        }

@media (max-width: 991px) {
            header .container {
                flex-wrap: wrap;
            }

            nav {
                position: fixed;
                top: 0;
                right: -100%;
                width: 300px;
                height: 100vh;
                background: rgba(19, 24, 41, 0.98);
                backdrop-filter: blur(20px);
                flex-direction: column;
                justify-content: center;
                transition: right 0.4s ease;
                border-left: 1px solid rgba(81, 74, 212, 0.25);
            }

            nav.active {
                right: 0;
            }

            nav ul {
                flex-direction: column;
                gap: 2rem;
            }

            nav a {
                font-size: 1.5rem;
            }

            .hamburger {
                display: flex;
            }

            header .btn {
                order: 3;
                width: 100%;
                text-align: center;
                margin: 1rem 0 0;
                max-width: 100%;
            }
        }

@media (max-width: 767px) {
            header .btn {
                max-width: 100%;
                padding: 14px 20px;
                font-size: 1rem;
            }

            .logo-text {
                font-size: 1.5rem;
            }

            .logo-text .logo-w {
                font-size: 1.9rem;
            }
        }

@media (max-width: 767px) {
            .hero-section {
                padding: 4rem 0 3rem;
            }

            h1 {
                font-size: 2rem;
            }

            h2 {
                font-size: 1.75rem;
            }

            .btn {
                padding: 14px 30px;
                font-size: 1rem;
            }

            .toc-nav ul {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .cta-section {
                padding: 4rem 0;
                margin: 2rem 15px;
            }

            table th, table td {
                padding: 1rem 0.75rem;
                font-size: 0.9rem;
            }
        }