/* === BASE STYLES === */:root {
    --primary: #00F5FF;
    --primary-dark: #00C4CC;
    --secondary: #FF006E;
    --secondary-dark: #CC0058;
    --accent: #FFD60A;
    --dark-bg: #0A0E27;
    --dark-surface: #141B3D;
    --dark-surface-light: #1E2749;
    --text-primary: #FFFFFF;
    --text-secondary: #A8B2D1;
    --text-muted: #6B7694;
    --success: #00FF94;
    --gradient-primary: linear-gradient(135deg, #00F5FF 0%, #0099FF 100%);
    --gradient-secondary: linear-gradient(135deg, #FF006E 0%, #CC0058 100%);
    --gradient-accent: linear-gradient(135deg, #FFD60A 0%, #FFA600 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0,245,255,0.1) 0%, rgba(255,0,110,0.1) 100%);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

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(2rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

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

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

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

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

.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary,
.cta-button {
    background: var(--gradient-primary);
    color: var(--dark-bg);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,245,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,245,255,0.4);
    color: var(--dark-bg);
}

.card {
    background: var(--dark-surface);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,245,255,0.05) 0%, rgba(255,0,110,0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,245,255,0.2);
    border-color: rgba(0,245,255,0.3);
}

.card:hover::before {
    opacity: 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: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.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;
    color: var(--text-muted);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--dark-surface);
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: var(--dark-surface-light);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 2px solid rgba(0,245,255,0.3);
}

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

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background 0.3s ease;
}

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

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

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

dl {
    margin: 1.5rem 0;
}

dt {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1.1rem;
}

dd {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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

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

.logo a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.logo a:hover {
    color: var(--accent);
}

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

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

.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(7px, -7px);
}

nav {
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    padding-left: 0;
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
}

.nav-menu li {
    margin: 0;
}

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

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

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

.nav-menu a:hover::after {
    width: 100%;
}

header .cta-button {
    padding: 12px 28px;
    font-size: 0.9rem;
    white-space: nowrap;
    max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}

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

.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);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

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

.footer-section a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.license-info {
    margin-top: 1rem;
}

.license-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

    .nav-menu a {
        font-size: 0.9rem;
    }
}

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

    .hamburger {
        display: flex;
    }

    .logo {
    }

    header nav {
        width: 100%;
    }

    header nav {
        width: 100%;
    }

    header .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 999;
        margin: 0;
    }

    header .nav-menu.active {
        transform: translateX(0);
    }

    header .cta-button {
        width: 100%;
        margin-top: 1rem;
        max-width: 100%;
    }

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

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

    .hero-section {
        padding: 5rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-section .cta-button {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
    }

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

    .cards-grid-3,
    .feature-blocks,
    .highlight-boxes {
        grid-template-columns: 1fr;
    }

    .accordion-header {
        padding: 1.25rem 1.5rem;
        font-size: 1.1rem;
    }

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

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

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

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

    .cta-section .cta-button {
        width: 100%;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }
}
}