/* ==========================================================================
   Base Styles & CSS Custom Properties
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #0A0A0A;
    --color-text: #FFFFFF;
    --color-accent: #00E0FF;
    --color-accent-hover: #00B8D4;
    --color-secondary: #FF3D00;
    --color-secondary-hover: #DD2C00;
    --color-card: #1A1A1A;
    --color-card-hover: #252525;
    --color-border: #333333;
    --color-success: #00C853;
    --color-error: #FF3D00;
    --color-warning: #FFC107;
    --color-glass: rgba(255, 255, 255, 0.1);
    --color-glass-dark: rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', var(--font-primary);
    --font-size-base: 16px;
    --line-height-base: 1.5;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index layers */
    --z-modal: 1000;
    --z-nav: 100;
    --z-fab: 90;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Neon Effects */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --border: #334155;
    --error: #ef4444;
    --success: #22c55e;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);

    --primary-color: #00ff00;
    --text-color: #ffffff;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --glitch-color: #ff00ff;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Links & Buttons */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button {
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    background: none;
}

/* Utility Classes */
.hidden { display: none !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    /* padding: var(--spacing-xl) 0; */
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    padding: 1rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo .glitch-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    animation: pulseNeon 4s ease-in-out infinite alternate;
}

@keyframes pulseNeon {
    0%   { text-shadow: 0 0 6px #00e5ff; }
    100% { text-shadow: 0 0 20px #00e5ff; }
}

.logo img {
    filter: drop-shadow(0 0 6px #00e5ff);
    animation: logoPulse 6s ease-in-out infinite, logoHue 12s linear infinite;
}

@keyframes logoPulse {
    0% { filter: drop-shadow(0 0 4px #00e5ff); }
    50% { filter: drop-shadow(0 0 12px #00e5ff); }
    100% { filter: drop-shadow(0 0 4px #00e5ff); }
}

@keyframes logoHue {
    0% { filter: drop-shadow(0 0 4px #00e5ff) hue-rotate(0deg); }
    100% { filter: drop-shadow(0 0 4px #00e5ff) hue-rotate(360deg); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 1.5rem;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-note {
    font-size: 0.875rem;
    opacity: 0.7;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8), var(--color-bg));
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background: #0d1117;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--color-card-hover);
    transform: translateY(-5px);
}

.feature-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35);
}

.feature-card > :not(.feature-image) {
    position: relative;
    z-index: 1;
}

.feature-icon {
    display: none !important;
}

.features::before,
.features::after {
    display: none !important;
}

/* ---------- Features shading & blur ---------- */
.features::before {
    display: block !important; /* override previous hide */
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 0;
}
.features > * { position: relative; z-index: 1; }

/* ---------- Guides card title clamp ---------- */
.guide-content h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Showcase Section
   ========================================================================== */
.showcase {
    padding: var(--spacing-xl) 0;
}

.showcase__slider {
    padding: var(--spacing-lg) 0;
}

.swiper-slide {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Game Gallery Section
   ========================================================================== */
.games {
    padding: 6rem 1.5rem;
    background: var(--color-bg);
}

.games-swiper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.game-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    margin-bottom: 0.5rem;
}

.game-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* ==========================================================================
   Snapshots Section
   ========================================================================== */
.snapshots {
    padding: var(--spacing-xl) 0;
}

.snapshots__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.snapshot-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-glass);
}

.snapshot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.snapshot-card__content {
    padding: var(--spacing-md);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing {
    padding: 6rem 1.5rem;
    background: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--color-card), var(--color-accent));
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* ==========================================================================
   Community Banner
   ========================================================================== */
.community {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-xl) 0;
}

.community__content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.community__social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.community__link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.community__link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.community__icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--color-card);
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.footer-column a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    opacity: 0.7;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.auth-modal, .request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.auth-content, .request-content {
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.close-modal:hover {
    opacity: 1;
}

.auth-form, .request-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.auth-form input, .request-form input, .request-form textarea {
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
}

.request-form textarea {
    min-height: 100px;
    resize: vertical;
}

.request-access {
    margin-top: 1.5rem;
    text-align: center;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: var(--z-nav);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-glass) 25%,
        var(--color-glass-dark) 50%,
        var(--color-glass) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.feature-card, .game-card, .pricing-card {
    animation: slideUp 0.5s ease-out;
}

.btn-primary:hover {
    animation: pulse 1s infinite;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .header, .footer, .cta {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }
}

/* Game-themed Elements */
.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::after {
    opacity: 1;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Neon Effects */
.neon-text {
    text-shadow: 0 0 5px var(--primary),
                 0 0 10px var(--primary),
                 0 0 20px var(--primary);
}

.neon-border {
    box-shadow: 0 0 5px var(--primary),
                0 0 10px var(--primary),
                0 0 20px var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--background);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--background), var(--surface));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/hero-bg.avif') center/cover;
    opacity: 0.1;
    animation: pulse 4s infinite;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.invite-code-btn {
    animation: pulse 2s infinite;
}

/* Features Section */
.features > * {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats {
    /* padding: 4rem 0; */
    background: var(--background);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(0,0,0,0.4);
    border: 1px solid #00b7ff44;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0,183,255,0.2);
    transition: transform .2s;
}

.stat-card:hover { transform: translateY(-4px); }
.stat-card h3 { font-size: 2.5rem; color:#00ffdd; margin-bottom: .5rem; }
.stat-card p { color: var(--text-secondary); }

/* Guides Section */
.guides {
    /* padding: 6rem 0; */
    background: var(--surface);
}

.guides-swiper {
    padding: 2rem 0;
}

.guide-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary);
}

.guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-content {
    padding: 1.5rem;
}

.guide-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.rating {
    color: var(--accent);
    font-weight: 600;
}

.difficulty {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
}

.pricing-card li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0.5rem 0;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input,
.modal textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #00b7ff;
    padding: 0.75rem;
    border-radius: 4px;
    color: #fff;
    width: 100%;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: #00ffdd;
    box-shadow: 0 0 6px #00ffdd;
}

.modal button[type="submit"] {
    margin-top: 1rem;
}

.error-message {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success-message {
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                 0.025em 0.04em 0 #fffc00;
    animation: glitch 725ms infinite;
}

.glitch-text span {
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
                     0.025em 0.04em 0 #fffc00;
    }
    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
                     -0.05em -0.05em 0 #fffc00;
    }
    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
                     0 -0.04em 0 #fffc00;
    }
    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
                     -0.04em -0.025em 0 #fffc00;
    }
}

/* Large Buttons */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    min-width: 200px;
}

/* Modal Styles */
.modal-content {
    background: var(--surface);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Pricing Cards */
.pricing-image {
    margin-top: 2rem;
    height: 200px;
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
}

.pricing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Section */
.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.feature-icon {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-links {
    justify-content: center;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: var(--primary-dark);
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
    }
}

/* Button styles in modal */
.modal .btn-primary {
    width: 100%;
    margin-top: 10px;
}

.modal .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal[open] {
    display: flex;
}

/* Logo neon pulse */
.logo .glitch-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    animation: pulseNeon 4s ease-in-out infinite alternate;
}
@keyframes pulseNeon {
    0%   { text-shadow: 0 0 6px #00e5ff; }
    100% { text-shadow: 0 0 20px #00e5ff; }
}

/* Buttons */
.btn-primary, .btn-outline, .modal button[type="submit"] {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, #00b7ff 0%, #0078ff 100%);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}
.btn-outline {
    background: transparent;
    color: #00b7ff;
    border: 2px solid #00b7ff;
}
.btn-outline:hover {
    background: #00b7ff;
    color: #0a0a0a;
}

/* Modal note */
.modal-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Guides cards uniform */
.guides-swiper .swiper-slide {
    width: 260px;
    height: 360px;
}
.guides-swiper .game-card {
    width: 100%;
    height: 100%;
}

/* Position nav arrows outside */
.guides-swiper .swiper-button-next,
.guides-swiper .swiper-button-prev {
    color: #00b7ff;
    width: 44px;
    height: 44px;
}
.guides-swiper .swiper-button-prev { left: -60px; }
.guides-swiper .swiper-button-next { right: -60px; }

/* Pricing list checkmark */
.pricing-card ul li::before {
    content: "✔";
    color: #00ff99;
    margin-right: 0.5rem;
}

/* Bigger nav get access button */
.nav .btn-outline {
    padding: 0.6rem 1.5rem;
}

/* Remove unnecessary margin for nav buttons */
.nav-links button {
    margin-left: 1rem;
}

/* Testimonials */
.testimonials {
    background: var(--background);
}
.testimonials-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
@media (min-width: 640px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.35) 100%);
    padding: 2rem 2rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.testimonial-card::before {
    content: "\201C"; /* big opening quote */
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    line-height: 1;
    color: rgba(0, 183, 255, 0.08);
    pointer-events: none;
}
.testimonial-card .avatar {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
    align-self: flex-start;
    border-radius: 50%;
    margin-right: 0.75rem;
}
.testimonial-card p {
    font-style: italic;
}
.testimonial-card footer {
    display: flex;
    flex-direction: column;
}
.testimonial-card footer strong {
    margin-bottom: 0.15rem;
    color: var(--primary);
}
.testimonial-card footer span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Toast message */
.toast-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: rgba(0,0,0,0.85);
    color: #00ffdd;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    z-index: 2000;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =====================================================================
   Enhancements – June 2025
   ===================================================================== */

/* ---------- Features (Эксклюзивные возможности) ---------- */
.features {
    /* Replace abstract bumps with a gamer-themed parallax background */
    background: url('../assets/exclusive.webp') center/cover no-repeat fixed;
    background-position: 0 center; /* will be updated by JS for parallax */
}
/* Remove old decorative pseudo-elements */
.features::before,
.features::after {
    display: none !important;
}

/* ---------- Guides slider cards ---------- */
.guide-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px); /* 200px image height */
}
.guide-content p {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    margin-bottom: 1rem;
}
.guide-content button {
    margin-top: auto;
}

/* Ensure the whole guide-card is clickable area safe */
.guide-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ---------- Testimonials layout refinement ---------- */
.testimonial-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto auto;
}
.testimonial-card .avatar {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
    align-self: flex-start;
    border-radius: 50%;
    margin-right: 0.75rem;
}
.testimonial-card footer {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    align-items: flex-start;
    margin-top: 0;
}
.testimonial-card p {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
    margin-top: 1rem;
}

/* ---------- Swiper bullets visibility & alignment ---------- */
.guides-swiper .swiper-pagination {
    bottom: 0.5rem !important;
}

/* ---------- Scroll-reveal tweaks ---------- */
.reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ---------- Guides image overlay & title ---------- */
.guide-image {
    position: relative;
}
.guide-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.guide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.guide-title {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    z-index: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* remove gap between image and content */
.guide-card .guide-content { padding-top: 1rem; }

/* ---------- Guides slide sizing fix ---------- */
.guides-swiper .swiper-slide { height: auto !important; }
.guide-card { display: flex; flex-direction: column; height: 100%; }
.guide-card .guide-content { flex: 1 1 auto; display: flex; flex-direction: column; }
.guide-card .guide-content p { flex-grow: 1; margin-bottom: 1rem; }

/* ---------- Stats compact ---------- */
.stats-grid { gap: 1.5rem; }
.stat-card { padding: 1.5rem; }

/* ---------- Avatar neon glow ---------- */
.testimonial-card .avatar { box-shadow: 0 0 8px 2px rgba(0,183,255,0.6); }

/* ---------- Global section subtitle ---------- */
.section-subtitle {
    margin: 0.25rem 0 2rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ---------- Features blueprint bg ---------- */
.features {
    background: #0d1117;
    position: relative;
    overflow: hidden;
}
.features::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at center, transparent 98%, rgba(0,183,255,0.05) 99%),
        repeating-linear-gradient(0deg, rgba(0,183,255,0.04) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(0,183,255,0.04) 0 1px, transparent 1px 80px),
        linear-gradient(135deg, rgba(0,183,255,0.03), rgba(0,0,0,0) 60%);
    animation: blueprintMove 40s linear infinite;
}
@keyframes blueprintMove {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: 0 0, 0 80px, 80px 0; }
}

/* Retain dark shade overlay */
.features::before { background: rgba(0,0,0,0.6); }

/* ---------- Stats glow animation ---------- */
@keyframes cardPulse {
    0% { box-shadow: 0 0 6px rgba(0,183,255,0.25); }
    50% { box-shadow: 0 0 14px rgba(0,183,255,0.45); }
    100% { box-shadow: 0 0 6px rgba(0,183,255,0.25); }
}
.stat-card {
    animation: cardPulse 6s ease-in-out infinite;
}

/* ---------- Testimonials grid fix ---------- */
.testimonials-grid {
    gap: 2rem;
}
@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Reduce testimonial padding for compactness */
.testimonial-card { padding: 1.5rem; }
.testimonial-card p { margin-bottom: 0.75rem; }

/* ---------- Section inner uniform padding ---------- */
section > .container { padding-block: 2.5rem; }

/* ---------- Testimonials grid 3x3 ---------- */
.testimonials { background: var(--surface); }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ---------- Features additional moving gradient ---------- */
.features::after {
    background-image:
        radial-gradient(circle at center, transparent 98%, rgba(0,183,255,0.05) 99%),
        repeating-linear-gradient(0deg, rgba(0,183,255,0.04) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(0,183,255,0.04) 0 1px, transparent 1px 80px),
        linear-gradient(135deg, rgba(0,183,255,0.03), rgba(0,0,0,0) 60%);
}
.features::after { animation: blueprintMove 40s linear infinite; }

/* ---------- Language switcher ---------- */
.lang-switch { display:none !important; }
.flag-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    filter: grayscale(1);
    transition: filter .2s;
}
.flag-btn.active { filter: grayscale(0); }
