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

/* === BASE STYLES === */:root {
    --primary: #FF3366;
    --secondary: #00D9FF;
    --accent: #FFD700;
    --dark: #0A0E27;
    --darker: #050811;
    --light: #F8F9FA;
    --gradient-primary: linear-gradient(135deg, #FF3366 0%, #FF6B9D 100%);
    --gradient-secondary: linear-gradient(135deg, #00D9FF 0%, #00A3CC 100%);
    --gradient-dark: linear-gradient(180deg, #0A0E27 0%, #1A1F3A 100%);
    --shadow-sm: 0 2px 8px rgba(255, 51, 102, 0.15);
    --shadow-md: 0 8px 24px rgba(255, 51, 102, 0.25);
    --shadow-lg: 0 16px 48px rgba(255, 51, 102, 0.35);
    --shadow-glow: 0 0 30px rgba(0, 217, 255, 0.4);
}

* {
    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', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    background: linear-gradient(135deg, #FF3366 0%, #FFD700 50%, #00D9FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    color: var(--light);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

h4 {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent);
}

p {
    margin-bottom: 1.25rem;
    color: rgba(248, 249, 250, 0.9);
}

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

a:hover {
    color: var(--accent);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: white;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.card {
    background: var(--gradient-dark);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 217, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

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

.highlight-box, .info-card, .highlight-list {
    background: rgba(255, 51, 102, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.checklist, .feature-list ul {
    list-style: none;
    padding-left: 0;
}

.checklist li, .feature-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.checklist li::before, .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.25rem;
}

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

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

thead {
    background: var(--gradient-primary);
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: white;
}

tbody tr {
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    transition: background 0.3s ease;
}

tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

tbody td {
    padding: 1rem;
    color: rgba(248, 249, 250, 0.9);
}

.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%;
}

.content-image figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.7;
    font-style: italic;
}

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

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

.logo img {
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
}

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

header nav a {
    color: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

header .cta-button {
    background: var(--gradient-secondary);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

header .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

footer {
    background: var(--darker);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding: 3rem 0 2rem;
    margin-top: 5rem;
}

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

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

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

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

.footer-section a {
    color: rgba(248, 249, 250, 0.8);
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

@media (max-width: 991px) {
    header nav ul {
        gap: 1.5rem;
    }
    
    header nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        order: 1;
    }
    
    .hamburger {
        display: flex;
        order: 2;
    }
    
    header nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }
    
    header nav[aria-hidden="false"] {
        max-height: 500px;
    }
    
    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    header nav li {
        border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    }
    
    header nav a {
        display: block;
        padding: 1rem 0;
    }
    
    header .cta-button {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    h2::after {
        width: 40px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .icon-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .table-of-contents nav ul {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        font-size: 1rem;
        padding: 14px 32px;
    }
    
    .accordion-header {
        padding: 1.25rem 1.5rem;
    }
    
    .accordion-header h3 {
        font-size: 1.125rem;
    }
    
    .accordion-body {
        padding: 0 1.5rem;
    }
    
    .accordion-body.active {
        padding: 0 1.5rem 1.25rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}