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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Containers */
.container {
    width: min(90%, 1200px);
    margin: 0 auto;
}

/* Header */
.site-header {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    box-shadow: 0 2px 10px rgba(0,0,0,0.7);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px #6b8efc;
}

.logo-img {
    height: 40px;
    width: 40px;
    filter: drop-shadow(0 0 3px #6b8efc);
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: rotate(15deg);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: #c3dafe;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #7fbbff;
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #7fbbff;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: url('../img/battle-scene.webp') center center/cover no-repeat;
    padding: 6rem 0 8rem;
    color: #e0eaffcc;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.7) 10%, rgba(18, 18, 18, 0.85) 90%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 12px #9bb6ff;
    font-family: 'Cinzel', serif;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #b0c4ffcc;
    text-shadow: 0 0 8px #5577ddcc;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.badge-link img {
    height: 56px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(127, 187, 255, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.badge-link img:hover,
.badge-link img:focus {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(127, 187, 255, 0.8);
}

/* Intro Content */
.intro-content {
    text-align: center;
    max-width: 900px;
    margin: 3rem auto 5rem;
    font-size: 1.18rem;
    color: #cfd8ff;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.intro-content p {
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 0 0 4px #22447755;
}

.featured-image {
    width: 100%;
    max-width: 960px;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
    cursor: default;
}

.featured-image:hover {
    transform: scale(1.02);
}

/* Section Padding */
.section-padding {
    padding: 4rem 0 5rem;
}

/* Descriptions Section */
.description-section h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: #7faaff;
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow: 0 0 10px #7faaffcc;
    font-family: 'Cinzel', serif;
}

.description-section p {
    font-size: 1.2rem;
    max-width: 840px;
    margin: 0 auto 3rem;
    color: #d1dbffcc;
    font-weight: 500;
    line-height: 1.75;
    text-align: center;
    letter-spacing: 0.02em;
}

/* Features Grid */
.features-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.feature-card {
    background: linear-gradient(135deg, #1a1f40, #223366);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 30, 70, 0.7);
    padding: 2.5rem 2rem;
    max-width: 360px;
    color: #a3baff;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover,
.feature-card:focus-within {
    box-shadow: 0 20px 40px rgba(95, 145, 255, 0.85);
    transform: translateY(-8px);
    border-color: #5f91ff;
}

.feature-card h3 {
    color: #9bb6ff;
    font-size: 1.7rem;
    margin-bottom: 1.3rem;
    text-shadow: 0 0 6px #7f9fffcc;
}

.feature-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feature-card ul li {
    background: rgba(127, 155, 255, 0.12);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    box-shadow: inset 0 0 10px rgba(95, 130, 255, 0.5);
    position: relative;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background-color 0.3s ease;
}

.feature-card ul li::before {
    content: "★";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7fbbff;
    font-size: 1.1rem;
    text-shadow: 0 0 4px #aacaffaa;
}

.feature-card ul li:hover {
    background: rgba(127, 187, 255, 0.35);
}

/* Heroes Showcase Image */
.description-section > .featured-image {
    box-shadow: 0 16px 48px rgba(40, 60, 120, 0.9);
    margin-top: 2rem;
    border-radius: 20px;
}

/* Screenshots Section */
.screenshots-section {
    background: linear-gradient(135deg, #0d162a, #1a244b);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 50, 0.8);
    padding-bottom: 6rem;
    text-align: center;
    color: #a7baffcc;
}

.screenshots-section h2 {
    font-size: 2.6rem;
    color: #91aaff;
    margin-bottom: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px #8faeffcc;
    font-family: 'Cinzel', serif;
}

.screenshots-section p {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #b5c2ffbb;
    text-shadow: 0 0 5px #6d7fff88;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 1.6rem;
    padding: 0 1rem;
}

.screenshot-item {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 40, 90, 0.8);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    filter: brightness(0.95);
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
}

.screenshot-item:hover,
.screenshot-item:focus {
    transform: scale(1.05);
    box-shadow: 0 15px 45px rgba(80, 120, 255, 0.9);
    filter: brightness(1);
}

/* How to Play Section */
.how-to-play-section {
    max-width: 900px;
    margin: 0 auto 6rem;
    color: #cfd8ffcc;
    padding-bottom: 4rem;
}

.how-to-play-section h2 {
    font-size: 2.9rem;
    font-weight: 900;
    color: #8faaff;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.11em;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 8px #7b99ffcc;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    list-style: none;
}

.steps-list li {
    background: linear-gradient(135deg, #222f4a, #1d2540);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(40, 60, 110, 0.7);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    color: #b6c8ffcc;
}

.steps-list li strong {
    color: #8faaff;
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 6px #9abaffcc;
}

.steps-list li:hover,
.steps-list li:focus-within {
    box-shadow: 0 14px 40px rgba(90, 130, 255, 0.9);
    transform: translateY(-6px);
}

/* CTA Bottom Section */
.cta-bottom {
    background: linear-gradient(135deg, #1f2a5b, #2f3e81);
    border-radius: 30px;
    padding: 4rem 2rem 5rem;
    color: #dde4ffcc;
    text-align: center;
    box-shadow: 0 22px 72px rgba(40, 70, 130, 0.95);
    max-width: 880px;
    margin: 0 auto 6rem;
}

.cta-bottom h2 {
    font-size: 2.9rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #a9beff;
    letter-spacing: 0.1em;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 14px #a5bfffdd;
}

.cta-bottom p {
    font-size: 1.25rem;
    margin-bottom: 2.7rem;
    font-weight: 600;
    color: #ced8ffcc;
    letter-spacing: 0.01em;
    text-shadow: 0 0 6px #7389d1bb;
}

.cta-bottom .download-badges {
    justify-content: center;
    margin-bottom: 1.6rem;
}

.small-text {
    font-size: 0.875rem;
    color: #8698bbcc;
    font-style: italic;
    letter-spacing: 0.03em;
}

/* Footer */
.site-footer {
    background: #0b1234;
    color: #8899bbcc;
    font-size: 0.9rem;
    border-top: 3px solid #455edb;
    padding-top: 3rem;
}

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

.footer-info h4,
.footer-links h4,
.footer-legal h4 {
    color: #7faaff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 7px #7faaffbb;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

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

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-legal a {
    color: #a1b4ffcc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-links a:focus,
.footer-legal a:focus {
    color: #7faaff;
    text-shadow: 0 0 8px #7faaffcc;
}

.footer-bottom {
    border-top: 1px solid #334477;
    padding: 1.5rem 0 2rem;
    color: #596a9f;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 992px) {
    .header-flex {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
    }

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

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .feature-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .cta-bottom {
        padding: 3rem 1.5rem 4rem;
    }

    .download-badges {
        flex-direction: column;
        gap: 1rem;
    }
}