/* === SANITIZED FIXES === */
html, body { overflow-x: hidden; max-width: 100vw; }

/* === BASE STYLES === */:root {
            --primary: #FF2D55;
            --secondary: #0A0E27;
            --accent: #00D9FF;
            --gradient-1: linear-gradient(135deg, #FF2D55 0%, #FF6B88 100%);
            --gradient-2: linear-gradient(135deg, #00D9FF 0%, #0099FF 100%);
            --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);
            --text-primary: #FFFFFF;
            --text-secondary: #B8C5D6;
            --bg-card: rgba(255, 255, 255, 0.05);
            --bg-card-hover: rgba(255, 255, 255, 0.08);
            --shadow-sm: 0 4px 20px rgba(0, 217, 255, 0.15);
            --shadow-md: 0 8px 40px rgba(255, 45, 85, 0.25);
            --shadow-lg: 0 12px 60px rgba(255, 45, 85, 0.35);
        }

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

        html {
            scroll-behavior: smooth;
            overflow-x: hidden;
            max-width: 100vw;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--secondary);
            color: var(--text-primary);
            line-height: 1.7;
            overflow-x: hidden;
            max-width: 100vw;
        }

        .container {
            max-width: 1200px;
            padding: 0 20px;
        }

        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1.5rem;
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 4.5rem);
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            -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, 2.25rem);
            color: var(--text-primary);
            margin-top: 2.5rem;
        }

        h4 {
            font-size: clamp(1.25rem, 2.5vw, 1.75rem);
            color: var(--accent);
            margin-top: 2rem;
        }

        p, li {
            color: var(--text-secondary);
            font-size: 1.0625rem;
            margin-bottom: 1.25rem;
        }

        a {
            color: var(--accent);
            text-decoration: none;
            transition: all 0.3s ease;
        }

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

        .btn {
            padding: 16px 40px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.0625rem;
            border: none;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: inline-block;
            min-width: 44px;
            min-height: 44px;
        }

        .btn-primary {
            background: var(--gradient-1);
            color: var(--text-primary);
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

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

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

        .card {
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            padding: 2rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-sm);
        }

        .card:hover {
            background: var(--bg-card-hover);
            transform: translateY(-8px);
            box-shadow: var(--shadow-md);
            border-color: rgba(0, 217, 255, 0.3);
        }

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

        .content-image img {
            max-width: 100%;
            height: auto;
            max-height: 400px;
            object-fit: contain;
            border-radius: 16px;
            box-shadow: var(--shadow-md);
        }

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

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

        .table-responsive {
            overflow-x: auto;
            margin: 2rem 0;
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
        }

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

        th, td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-secondary);
        }

        th {
            color: var(--text-primary);
            font-weight: 600;
            background: rgba(255, 45, 85, 0.1);
        }

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

        li {
            margin-bottom: 0.75rem;
        }

        /* === LAYOUT STYLES === */
        header {
            position: sticky;
            top: 0;
            z-index: 1000;
            background: rgba(10, 14, 39, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1rem 0;
        }

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

        .logo img {
            max-height: 50px;
            height: 50px;
            width: auto;
        }

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

        nav.table-of-contents {
            display: block;
        }

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

        .main-nav a {
            color: var(--text-secondary);
            font-weight: 500;
            transition: color 0.3s;
            white-space: nowrap;
        }

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

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 6px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 8px;
            min-width: 44px;
            min-height: 44px;
        }

        .hamburger span {
            width: 28px;
            height: 3px;
            background: var(--primary);
            border-radius: 3px;
            transition: all 0.3s;
        }

        footer {
            background: var(--gradient-dark);
            padding: 4rem 0 2rem;
            margin-top: 6rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

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

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

        .footer-nav li {
            margin-bottom: 0.75rem;
        }

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

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

            .logo {
            }

            .hamburger {
                display: flex;
            }

            .main-nav {
                width: 100%;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.4s ease;
            }

            .main-nav.active {
                max-height: 400px;
            }

            .main-nav ul {
                flex-direction: column;
                gap: 0;
                width: 100%;
                padding: 1rem 0;
            }

            .main-nav li {
                width: 100%;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }

            .main-nav a {
                display: block;
                padding: 1rem;
            }

            header .btn-primary {
                width: 100%;
                margin-top: 1rem;
                max-width: 100%;
            }

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

        @media (min-width: 768px) and (max-width: 1023px) {
            .main-nav ul {
                gap: 1rem;
            }

            header .btn-primary {
                padding: 12px 24px;
                font-size: 0.9375rem;
            }
        }


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

            .hero-section::before,
            .hero-section::after {
                width: 300px;
                height: 300px;
            }

            section {
                padding: 3rem 0;
            }

            .table-of-contents {
                padding: 2rem 1.5rem;
            }

            .cards-grid-2,
            .cards-grid-3 {
                grid-template-columns: 1fr;
            }

            .feature-block {
                padding-left: 3rem;
            }

            .feature-block::before {
                font-size: 2rem;
            }

            .numbered-list article {
                padding-left: 4rem;
            }

            .numbered-list article::before {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
            }

            .accordion-header {
                padding: 1.25rem 1.5rem;
                padding-right: 3rem;
            }

            .accordion-header::after {
                right: 1.5rem;
            }

            .accordion-item.active .accordion-body {
                padding: 0 1.5rem 0.3rem 1.5rem !important;
            }

            .cta-section {
                padding: 4rem 0;
            }
        }