/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background: #0b1120;
    color: #f0f4ff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
    background: #0f172a;
    border-bottom: 1px solid #1e2a44;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo__link { display: flex; align-items: center; gap: 12px; }

.header__logo {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: #1a263d;
    padding: 4px;
    border: 2px solid #f97316;
}

.header__title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #f0f4ff;
}
.header__title span { color: #f97316; }

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nav > a {
    color: #cdd7f0;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav > a:hover { color: #f97316; }

/* ===== HERO ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
}
.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f0f6ff, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__title span {
    background: linear-gradient(135deg, #f97316, #facc15);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__description {
    font-size: 1.1rem;
    color: #b9c6e6;
    max-width: 520px;
    margin-bottom: 20px;
    line-height: 1.7;
}
.hero__rating {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.stars { color: #fbbf24; font-size: 1.4rem; letter-spacing: 2px; }
.rating-badge {
    background: #1d2940;
    padding: 4px 18px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #3b4a6b;
}
.rating-badge i { color: #fbbf24; margin-right: 4px; }

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #fff;
}
.btn-primary { background: linear-gradient(135deg, #f97316, #ea580c); }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #3b4a6b;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}
.btn-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}
.btn-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-details {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
}
.btn-details:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: #9aabd0;
}
.hero__stats i { margin-right: 6px; color: #f97316; }

.hero__image { display: flex; justify-content: center; }
.game-card {
    position: relative;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7);
    border: 1px solid #2a3a5a;
    transition: transform 0.3s;
}
.game-card:hover { transform: scale(1.01); }
.game-card__image { width: 100%; height: auto; display: block; }
.game-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    border-radius: 20px;
}
.game-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 24px 20px 16px;
    z-index: 2;
}
.game-card__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.badge {
    padding: 4px 14px;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}
.badge-green { background: #16a34a; }
.badge-blue { background: #2563eb; }

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #f0f4ff;
}
.section-sub {
    text-align: center;
    color: #9aabd0;
    font-size: 1rem;
    margin-bottom: 32px;
}

/* ===== FEATURES ===== */
.features { padding: 50px 0 40px; background: #0e1729; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #111b2e;
    border: 1px solid #1e2a44;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    transition: all 0.25s;
}
.feature-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.feature-card i {
    font-size: 2.4rem;
    color: #f97316;
    margin-bottom: 14px;
    display: inline-block;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: #f0f4ff; }
.feature-card p { color: #9aabd0; font-size: 0.9rem; }

/* ===== ABOUT ===== */
.about { padding: 50px 0; background: #0b1120; }
.about__container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
}
.about__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f0f4ff;
}
.about__text {
    color: #b9c6e6;
    margin-bottom: 14px;
    line-height: 1.8;
}
.about__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.about__details h4 {
    font-size: 0.8rem;
    color: #9aabd0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.about__details p { color: #f0f4ff; font-weight: 600; margin: 0; }
.about__sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #f97316;
}
.spec-box {
    background: #111b2e;
    border: 1px solid #1e2a44;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.spec-box h4 { font-size: 0.9rem; color: #f97316; margin-bottom: 10px; }
.spec-box ul { list-style: none; }
.spec-box ul li {
    color: #b9c6e6;
    font-size: 0.9rem;
    padding: 3px 0;
    padding-left: 20px;
    position: relative;
}
.spec-box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #f97316;
}

/* ===== DOWNLOAD ===== */
.download { padding: 50px 0; background: #0e1729; }
.download__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 20px;
}
.download__card {
    background: #111b2e;
    border: 1px solid #1e2a44;
    border-radius: 20px;
    padding: 36px 30px;
    text-align: center;
    transition: all 0.25s;
}
.download__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.download__card--direct { border-color: #ea580c80; }
.download__card--torrent { border-color: #3b82f680; }
.download__card i {
    font-size: 2.8rem;
    margin-bottom: 14px;
    display: inline-block;
}
.download__card--direct i { color: #f97316; }
.download__card--torrent i { color: #3b82f6; }
.download__card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.download__card p { color: #9aabd0; font-size: 0.9rem; margin-bottom: 18px; }
.download__card .btn { width: 100%; justify-content: center; }

.download__note {
    text-align: center;
    color: #9aabd0;
    font-size: 0.85rem;
    margin-top: 10px;
}
.download__guide {
    max-width: 700px;
    margin: 30px auto 0;
    background: #111b2e;
    border: 1px solid #1e2a44;
    border-radius: 16px;
    padding: 30px;
}
.download__guide h3 { font-size: 1.2rem; margin-bottom: 16px; color: #f97316; }
.download__guide ol { list-style: decimal; padding-left: 24px; color: #b9c6e6; }
.download__guide ol li { padding: 4px 0; line-height: 1.6; }

/* ===== VERSIONS ===== */
.versions { padding: 50px 0 40px; background: #0b1120; }
.versions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.version-card {
    background: #111b2e;
    border: 2px solid #1e2a44;
    border-radius: 20px;
    padding: 30px 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.version-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}
.version-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.vc-purple { border-color: #7c3aed40; }
.vc-purple::before { background: #7c3aed; }
.vc-purple:hover { border-color: #8b5cf6; }
.vc-red { border-color: #dc262640; }
.vc-red::before { background: #dc2626; }
.vc-red:hover { border-color: #ef4444; }
.vc-blue { border-color: #2563eb40; }
.vc-blue::before { background: #2563eb; }
.vc-blue:hover { border-color: #3b82f6; }
.vc-green { border-color: #16a34a40; }
.vc-green::before { background: #16a34a; }
.vc-green:hover { border-color: #22c55e; }
.version-card__content { display: flex; flex-direction: column; gap: 12px; }
.version-card__content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f4ff;
    margin-bottom: 4px;
}
.version-card__content p { color: #9aabd0; font-size: 0.9rem; line-height: 1.5; }
.version-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.version-card__buttons .btn-sm {
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

/* ===== WHY ===== */
.why { padding: 50px 0; background: #0e1729; }
.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-card {
    background: #111b2e;
    border: 1px solid #1e2a44;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.25s;
}
.why-card:hover { border-color: #f97316; transform: translateY(-4px); }
.why-card i {
    font-size: 2.2rem;
    color: #f97316;
    margin-bottom: 12px;
    display: inline-block;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-card p { color: #9aabd0; font-size: 0.9rem; }

/* ===== GALLERY ===== */
.gallery { padding: 50px 0; background: #0b1120; }

.carousel-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px;
}
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}
.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: transform 0.6s ease;
    padding: 10px 0;
}
.carousel-slide {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s ease;
    opacity: 0.7;
    transform: scale(0.85);
    filter: blur(0);
    cursor: pointer;
    border: 3px solid transparent;
}
.carousel-slide img {
    display: block;
    max-width: 200px;
    height: auto;
    transition: all 0.6s ease;
}
.carousel-slide.center {
    opacity: 1;
    transform: scale(1.1);
    filter: blur(0);
    border-color: #f97316;
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.3);
    z-index: 5;
}
.carousel-slide.center img { max-width: 280px; }
.carousel-slide:not(.center):hover {
    opacity: 0.9;
    transform: scale(0.9);
    border-color: rgba(249, 115, 22, 0.5);
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}
.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}
.carousel-dots .dot.active {
    background: #f97316;
    border-color: #f97316;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    border: 2px solid #2a3a5a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10;
}
.lightbox-close:hover { color: #f97316; transform: scale(1.1); }

/* ===== FAQ ===== */
.faq { padding: 50px 0; background: #0e1729; }
.faq__list { max-width: 750px; margin: 0 auto; }
.faq-item {
    background: #111b2e;
    border: 1px solid #1e2a44;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 18px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: #f0f4ff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover { background: rgba(255, 255, 255, 0.03); }
.faq-question i { transition: transform 0.3s; color: #f97316; }
.faq-question i.rotated { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding: 0 22px 18px;
    color: #b9c6e6;
    line-height: 1.7;
}
.faq-answer.active { display: block; }

/* ===== FOOTER ===== */
.footer {
    background: #0a0f1a;
    border-top: 1px solid #1e2a44;
    padding: 30px 0;
    text-align: center;
    color: #8899c0;
    font-size: 0.85rem;
}
.footer__content p { margin-bottom: 4px; }

/* ===== POPUP (Version Details) ===== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.popup-overlay.active { display: flex; }
.popup {
    background: #111b2e;
    border: 2px solid #2a3a5a;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.popup__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.popup__close:hover { background: #f97316; transform: rotate(90deg); }
.popup__title {
    font-size: 2rem;
    font-weight: 700;
    color: #f0f4ff;
    margin-bottom: 16px;
    padding-right: 40px;
}
.popup__description {
    color: #b9c6e6;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}
.popup__features-title,
.popup__gallery-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 12px;
}
.popup__features { list-style: none; margin-bottom: 24px; }
.popup__features li {
    color: #cdd7f0;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.popup__features li i { color: #22c55e; font-size: 0.9rem; }
.popup__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.popup__gallery-item {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #1e2a44;
    cursor: pointer;
    transition: all 0.25s;
    aspect-ratio: 16/9;
}
.popup__gallery-item:hover {
    border-color: #f97316;
    transform: scale(1.05);
}
.popup__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.popup__download {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.popup__download .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__description { margin: 0 auto 20px; }
    .hero__rating { justify-content: center; }
    .hero__buttons { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__image { order: -1; }
    .game-card { max-width: 380px; margin: 0 auto; }
    .about__container { grid-template-columns: 1fr; gap: 30px; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .versions__grid { grid-template-columns: 1fr; max-width: 500px; }
    .popup__gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header__container { flex-direction: column; align-items: center; }
    .nav { justify-content: center; gap: 12px; }
    .hero__title { font-size: 2.5rem; }
    .download__grid { grid-template-columns: 1fr; max-width: 400px; }
    .features__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .why__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .about__details { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 1.8rem; }
    .popup { padding: 24px; margin: 10px; }
    .popup__title { font-size: 1.5rem; }
    .carousel-slide img { max-width: 140px; }
    .carousel-slide.center img { max-width: 200px; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 2rem; }
    .about__details { grid-template-columns: 1fr; }
    .container { padding: 0 14px; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
    .header__title { font-size: 1.1rem; }
    .version-card__buttons { flex-direction: column; }
    .popup__gallery { grid-template-columns: 1fr 1fr; }
    .popup__download { flex-direction: column; }
    .carousel-wrapper { padding: 10px 10px; }
    .carousel-slide img { max-width: 100px; }
    .carousel-slide.center img { max-width: 150px; }
    .carousel-dots .dot { width: 10px; height: 10px; }
}