/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --primary: #5a67d8;
    --primary-glow: #7c3aed;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul, ol {
    list-style: none;
}

.text-primary {
    color: var(--primary);
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 1;
}

.blob-1 {
    top: -10%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(90, 103, 216, 0.4) 0%, rgba(10, 11, 16, 0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, rgba(10, 11, 16, 0) 70%);
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 2;
}

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo img {
    height: 48px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
main {
    padding-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.hero-section {
    text-align: center;
    padding: 60px 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 0 auto 60px auto;
    max-width: 100%;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    width: calc(20% - 25.6px); /* 5 items per row */
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-card.active-card {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(90, 103, 216, 0.3);
}

.unavailable-card {
    cursor: not-allowed;
}

.unavailable-card .card-bg {
    filter: blur(5px) brightness(0.6);
}

.unavailable-card:hover .card-bg {
    filter: blur(5px) brightness(0.8);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s;
}

.product-card:hover .card-bg {
    transform: scale(1.05);
}

/* Gradients for game cards since we lack exact images */
.cs2-bg { background: linear-gradient(135deg, #f59e0b, #dc2626); }
.fn-bg { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }
.cod-bg { background: linear-gradient(135deg, #1f2937, #4b5563); }
.val-bg { background: linear-gradient(135deg, #ef4444, #991b1b); }
.apex-bg { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.rivals-bg { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.ow-bg { background: linear-gradient(135deg, #f97316, #c2410c); }
.rust-bg { background: linear-gradient(135deg, #78350f, #451a03); }
.arc-bg { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.hw-bg { background: linear-gradient(135deg, #1e1b4b, #312e81); }

.card-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 11, 16, 1), transparent);
}

.hw-icon {
    font-size: 3rem;
    opacity: 0.7;
    z-index: 2;
}

.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-firmware {
    background: #2ecc71;
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-firmware:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.rounded-btn {
    border-radius: 30px;
    padding: 10px 30px;
    font-size: 0.9rem;
}

.guides-btn-container {
    margin-top: 20px;
}

/* ==========================================================================
   Supported AC Marquee
   ========================================================================== */
.ac-logos-container {
    padding: 80px 24px;
    margin-bottom: 80px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(90, 103, 216, 0.03) 50%, transparent);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    position: relative;
    overflow: hidden;
}

.ac-header {
    margin-bottom: 60px;
}

.ac-title {
    color: var(--text-main);
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 16px;
    font-weight: 700;
}

.ac-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.highlight-bypass {
    color: #ff3b3b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
    padding: 2px 10px;
    background: rgba(255, 59, 59, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.ac-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.ac-logo-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.ac-logo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top, rgba(0, 255, 170, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.ac-logo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 170, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 15px 30px rgba(0, 255, 170, 0.1);
}

.ac-logo-card:hover::before {
    opacity: 1;
}

.ac-logo-card img {
    height: 50px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
    z-index: 1;
}

.ac-logo-card:hover img {
    transform: scale(1.1);
}

.ac-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.ac-name {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-main);
    margin: 0;
}

.ac-status {
    color: #00ffaa;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 255, 170, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 255, 170, 0.2);
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-container video {
    width: 100%;
    display: block;
}

/* ==========================================================================
   Hardware Details
   ========================================================================== */
.hardware-details {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 0 24px;
    margin-bottom: 100px;
}

.hw-feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hw-feature-row.reverse {
    flex-direction: row-reverse;
}

.hw-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
}

.equipment-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    scale: 1.3;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    animation: float 6s ease-in-out infinite;
    transition: scale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s;
    z-index: 10;
}

.firmware-img {
    animation: float-alt 7s ease-in-out infinite;
    max-width: 380px;
    scale: 0.9;
}

.equipment-img:hover {
    scale: 1.45;
    filter: drop-shadow(0 30px 50px rgba(90, 103, 216, 0.5));
    cursor: pointer;
}

.firmware-img:hover {
    filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.6));
    scale: 1;
}

@keyframes float {
    0% { translate: 0 0px; }
    50% { translate: 0 -20px; }
    100% { translate: 0 0px; }
}

@keyframes float-alt {
    0% { translate: 0 0px; rotate: 0deg; }
    50% { translate: 0 -25px; rotate: 4deg; }
    100% { translate: 0 0px; rotate: 0deg; }
}

.placeholder-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(90, 103, 216, 0.1));
}

.huge-icon {
    font-size: 6rem;
    opacity: 0.8;
}

.hw-text {
    flex: 1;
}

.category-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.hw-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hw-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--primary);
    margin-top: 4px;
}

/* ==========================================================================
   Requirements Section
   ========================================================================== */
.requirements-section {
    padding: 0 24px;
    margin-bottom: 100px;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.req-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.req-icon {
    width: 60px;
    height: 60px;
    background: rgba(90, 103, 216, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #a5b4fc;
    margin: 0 auto 20px;
}

.req-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.req-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Buy Guide Section
   ========================================================================== */
.buy-guide-section {
    padding: 0 24px;
    margin-bottom: 100px;
}

.buy-guide-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.buy-guide-text {
    flex: 1;
}

.buy-guide-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.buy-steps {
    counter-reset: my-counter;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.buy-steps li {
    position: relative;
    padding-left: 40px;
    color: var(--text-muted);
    font-size: 1rem;
}

.buy-steps li span {
    color: var(--text-main);
    font-weight: 600;
}

.buy-steps li::before {
    counter-increment: my-counter;
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--primary);
}

.buy-steps a {
    color: var(--primary);
    text-decoration: underline;
}

.buy-guide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* ==========================================================================
   Demo Section
   ========================================================================== */
.demo-section {
    padding: 0 24px;
    margin-bottom: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background: rgba(10, 11, 16, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 60px 24px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 2;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 20px 0;
    max-width: 300px;
}

.payment-methods {
    display: flex;
    gap: 12px;
    font-size: 1.8rem;
    color: var(--text-muted);
}

.footer-links {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--text-main);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .product-card {
        width: calc(33.333% - 22px);
    }
    .req-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: rgba(10, 11, 16, 0.95);
        padding: 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        z-index: 1000;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .main-nav.show {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 34px;
        right: 24px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .lang-switch {
        margin-right: 0 !important;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    main {
        padding-top: 180px;
    }
    .product-card {
        width: calc(50% - 16px);
    }
    .hw-feature-row, .hw-feature-row.reverse, .buy-guide-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .ac-logos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-actions {
        flex-direction: column;
        align-items: center;
    }
    .header-actions .btn {
        width: 100%;
        max-width: 250px;
    }
    .lang-switch {
        margin-bottom: 5px;
    }
    main {
        padding-top: 260px;
    }
    .product-card {
        width: calc(50% - 16px);
    }
    .req-grid {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
    .ac-logos {
        grid-template-columns: 1fr;
    }
}
