:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --bg-dark: #0f0f1a;
    --bg-darker: #0a0a12;
    --card-bg: #252544;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Основной фон для контентных секций */
.content-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.85;
    pointer-events: none;
}

.content-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Отключаем основной фон для hero секции */
.hero ~ .content-background {
    display: none;
}

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

/* Header (без фонового изображения) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav ul li a:hover {
    background-color: rgba(108, 92, 231, 0.2);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Hero Section (с собственным фоном) */
.hero {
    position: relative;
    padding: 100px 0 50px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-dark);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: luminosity;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-media {
    flex: 1;
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
    max-width: 600px;
    margin-left: auto;
}

.video-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Контентные секции с затемнением */
.features,
.games,
.why-us,
.download,
.support {
    position: relative;
    padding: 80px 0;
    z-index: 1;
}

.features::before,
.games::before,
.why-us::before,
.download::before,
.support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 26, 0.85);
    z-index: -1;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    background-color: #5a4bd1;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(108, 92, 231, 0.6);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-download {
    background-color: var(--success-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-download:hover {
    background-color: #00a884;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 184, 148, 0.6);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(253, 121, 168, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--secondary-color);
}

/* Games Section */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.game-card .game-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.game-card:hover img {
    transform: scale(1.1);
}
.game-card h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.game-card .btn {
    margin-top: auto;
    width: 100%;
    max-width: 200px;
}
.game-card img[src*="placeholder-game.png"],
.game-card img[onerror] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}


.game-card h3 {
    padding: 20px;
    font-size: 1.3rem;
}

.game-card .btn {
    margin-bottom: 20px;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-us-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 350px;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.why-us-card:nth-child(2) {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-media {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gif-container {
    position: relative;
    height: 100%;
}

.gif-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.why-us-card:hover .gif-background {
    opacity: 0.9;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: linear-gradient(to bottom, rgba(15, 15, 26, 0.7), rgba(42, 42, 68, 0.9));
    text-align: center;
}

.why-us-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.why-us-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.stats-overview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    background: rgba(108, 92, 231, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 80px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Download Section */
.download-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step span {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step.active span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

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

.step-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.trial-code-box {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin: 0 auto 30px;
    max-width: 600px;
}

.code-display {
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    letter-spacing: 3px;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 8px;
    border: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.blur-code {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.blur-code:hover {
    filter: none;
}

.code-valid {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.installation-steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.install-step {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.install-step:hover {
    transform: translateX(10px);
}

.install-step h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.install-step h4 i {
    color: var(--primary-color);
}

/* Support Section */
.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.support-option {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.support-option:hover {
    transform: translateY(-10px);
}

.support-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.support-option h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.support-option p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 60px 0 20px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #252544;
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.floating {
    animation: float 3s ease-in-out infinite;
}

.why-us-card {
    animation: cardEntrance 0.6s ease-out forwards;
}

.why-us-card:nth-child(2) {
    animation-delay: 0.2s;
}

.why-us-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive Styles */
@media (max-width: 1024px) {
     .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .video-container {
        margin: 0 auto;
        transform: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .download-steps {
        flex-wrap: wrap;
    }
    
    .why-us-card {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .nav ul li {
        margin: 0 5px;
    }
    
    .feature-card, .game-card, .why-us-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .code-display {
        font-size: 1.4rem;
        padding: 15px;
    }
    
    .why-us-card {
        height: 250px;
    }
    
    .stat-item {
        padding: 8px 10px;
        min-width: 70px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
}
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.25rem;
    }
    
    .game-card .game-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-card {
        padding: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .game-card .game-image {
        width: 60px;
        height: 60px;
    }
}