:root {
    --primary-color: #00d2ff;
    --primary-hover: #0099cc;
    --secondary-color: #0f172a;
    --bg-color: #020617;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 210, 255, 0.3);
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-base);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

ul {
    list-style: none;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-color);
}

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

strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section__title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
    text-decoration: none;
    font-family: var(--font-base);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn--primary:hover, .btn--primary:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn--ghost:hover, .btn--ghost:active {
    transform: translateY(-3px);
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
}

.cta-banner {
    text-align: center;
    margin-top: 40px;
}

/* HEADER & NAVIGATION */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

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

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

.header__menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header__menu a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

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

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    transition: 0.3s ease;
}

.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 11px; }
.header__burger span:nth-child(3) { top: 22px; }

.header__burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

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

.header__burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* HERO SECTION */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--secondary-color);
    padding-bottom: 60px;
}

.hero__image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.hero__bg {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
    object-position: center top;
}

.hero__content {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    max-width: 90%;
}

.hero__bonus {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero__actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* GRIDS & MEDIA CARDS */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.content-grid.reverse {
    direction: rtl;
}
.content-grid.reverse > * {
    direction: ltr;
}

.content-text.full-width {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mediaCard {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: #000;
    transition: transform 0.3s ease;
}

.mediaCard:hover {
    transform: scale(1.02);
}

.mediaCard img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* LISTS */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.feature-list > a {
    transition: transform 0.2s, border-color 0.2s;
}

.feature-list > a:hover {
    transform: translateY(-5px);
}

.feature-list > a:hover > div {
    border-color: var(--primary-color);
}

/* TABLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

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

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.data-table th {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.data-table tbody tr {
    transition: background 0.3s;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* FOOTER */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0;
    text-align: center;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer__logo img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.footer__logo:hover img {
    filter: none;
    opacity: 1;
}

.footer__text {
    font-size: 0.8rem;
    color: #888;
    max-width: 800px;
    line-height: 1.8;
}

.footer__nav ul {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer__nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* POPUPS & FLOATING ELEMENTS */
/* Catfish */
.catfish {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 15px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

.catfish.show {
    bottom: 0;
}

.catfish__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.catfish__text {
    margin: 0;
    font-weight: 800;
    color: var(--primary-color);
    font-size: clamp(1rem, 3vw, 1.2rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catfish__btn {
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.catfish__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 10px;
}

/* Exit Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.exit-popup__content {
    position: relative;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exit-popup.show .exit-popup__content {
    transform: scale(1);
}

.exit-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.exit-popup__close:hover {
    background: var(--primary-color);
    color: #000;
}

.exit-popup__title {
    color: var(--primary-color);
    font-size: 2rem;
}

.exit-popup__text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
}

.exit-popup__btn {
    width: 100%;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .header__menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
        max-width: calc(100vw - 200px);
    }
    
    .header__menu::-webkit-scrollbar {
        height: 4px;
    }
    
    .header__menu::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .header__burger {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        padding: 40px 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .header__nav.active {
        left: 0;
    }

    .header__menu {
        flex-direction: column;
        max-width: 100%;
        gap: 30px;
    }
    
    .header__menu a {
        font-size: 1.5rem;
    }

    .content-grid, .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        direction: ltr;
    }

    .content-grid.reverse > * {
        direction: ltr;
    }

    .mediaCard img {
        max-height: 300px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .catfish__inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .catfish__close {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }
    
    .hero__content {
        padding: 30px 15px;
        width: 95%;
    }

    .data-table th, .data-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}