/* ==================== Reset & Variables ==================== */
:root {
    --primary: #f7b731;
    --primary-dark: #e5a010;
    --primary-glow: rgba(247, 183, 49, 0.3);
    --secondary: #e84343;
    --bg-dark: #0a0a0f;
    --bg-card: #14141f;
    --bg-card-hover: #1e1e2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6c6c80;
    --border: #252535;
    --border-light: #2a2a3a;
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --gradient-gold: linear-gradient(135deg, #f7b731 0%, #e5a010 50%, #f7b731 100%);
    --gradient-red: linear-gradient(135deg, #e84343 0%, #c0392b 100%);
    --shadow-gold: 0 4px 24px rgba(247, 183, 49, 0.25);
    --shadow-red: 0 4px 24px rgba(232, 67, 67, 0.25);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* ==================== Header Navigation ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(247, 183, 49, 0.08);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-header {
    background: var(--gradient-gold);
    color: #1a1a2e;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-header:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.3) 0%,
        rgba(10, 10, 15, 0.7) 50%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(247, 183, 49, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 40%, rgba(232, 67, 67, 0.06) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 120px 0 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(247, 183, 49, 0.12);
    border: 1px solid rgba(247, 183, 49, 0.25);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.title-main {
    display: block;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-shadow: 0 0 60px rgba(247, 183, 49, 0.3);
}

.title-sub {
    display: block;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 8px;
}

.hero-desc {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tags span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==================== Countdown ==================== */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-num {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-sep {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: var(--primary);
    animation: blink 1s infinite;
    margin-bottom: 16px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #1a1a2e;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(247, 183, 49, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(247, 183, 49, 0.45);
}

.btn-outline {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ==================== QR Popup ==================== */
#heroDownloadBtn {
    position: relative;
}

.qr-popup {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
    pointer-events: none;
    width: 160px;
}

#heroDownloadBtn:hover .qr-popup,
#heroDownloadBtn:focus-within .qr-popup {
    opacity: 1;
    visibility: visible;
}

.qr-popup::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.qr-popup-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-popup-inner canvas,
.qr-popup-inner img {
    display: block;
    width: 120px;
    height: 120px;
}

.qr-popup-inner span {
    font-size: 12px;
    color: #666;
}

/* ==================== Download QR ==================== */
.download-qr {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border-radius: var(--radius);
}

.download-qr canvas,
.download-qr img {
    display: block;
    width: 140px;
    height: 140px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== Section Headers ==================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Intro Section ==================== */
.intro {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #11111b 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.intro-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(247, 183, 49, 0.15);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.intro-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: transform 0.6s ease;
}

.intro-image:hover img {
    transform: scale(1.05);
}

.intro-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 32px;
}

.intro-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-feature {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.intro-feature:hover {
    border-color: rgba(247, 183, 49, 0.3);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.if-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(247, 183, 49, 0.08);
    border-radius: var(--radius-sm);
}

.if-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--primary);
}

.if-text p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Features Section ==================== */
.features {
    background: #0d0d15;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(247, 183, 49, 0.2);
}

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

.fc-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Gameplay Section ==================== */
.gameplay {
    background: var(--bg-dark);
}

.gameplay-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gameplay-item {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    aspect-ratio: 720 / 1280;
}

.gameplay-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gameplay-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.gameplay-item:hover img {
    transform: scale(1.08);
}

/* ==================== Benefits Section ==================== */
.benefits {
    background: #0d0d15;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.benefit-card.highlight {
    border-color: rgba(247, 183, 49, 0.3);
    background: linear-gradient(135deg, rgba(247, 183, 49, 0.06) 0%, rgba(247, 183, 49, 0.02) 100%);
}

.benefit-card.highlight::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: rgba(247, 183, 49, 0.08);
    border-radius: 50%;
}

.bc-num {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 40px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.bc-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Gallery Section ==================== */
.gallery {
    background: var(--bg-dark);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.screenshot-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1043 / 610;
    box-shadow: var(--shadow-card);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.screenshot-overlay span {
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-item:hover img {
    transform: scale(1.08);
}

/* ==================== Download Section ==================== */
.download {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
}

.download-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(8px);
}

.download .container {
    position: relative;
    z-index: 1;
}

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

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(247, 183, 49, 0.12);
    border: 1px solid rgba(247, 183, 49, 0.25);
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 24px;
}

.hot-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.download-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 16px;
}

.download-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.download-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-download {
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-download:hover {
    border-color: var(--primary);
    background: rgba(247, 183, 49, 0.08);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.download-tip {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==================== Footer ==================== */
.footer {
    background: #080812;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 400px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-friends {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
}

.footer-friends h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.friends-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.friends-list a {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 14px;
    border-radius: 4px;
    transition: var(--transition);
}

.friends-list a:hover {
    color: var(--primary);
    background: rgba(247, 183, 49, 0.06);
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: #1a1a2e;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(247, 183, 49, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(247, 183, 49, 0.5);
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 1200px) {
    .gameplay-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 70px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gameplay-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 100px 0 40px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(14, 14, 22, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 30px 40px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 8px;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 16px;
    }

    .btn-header {
        display: none;
    }

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

    .gameplay-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .download-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-download {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 50px 0;
    }

    .gameplay-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ==================== Lightbox (JS will handle this) ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
