
/* ========================================
   THE JUMPING CUBE
   Valrok Games
======================================== */

.cube-hero {
    min-height: 82vh;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 107, 53, 0.14),
            transparent 38%
        ),
        var(--bg-secondary);
}

.cube-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;

    width: min(90%, var(--container));
    margin: 0 auto;
}

.cube-hero-content {
    max-width: 650px;
}

.cube-hero-content h1 {
    margin-bottom: 25px;

    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
}

.cube-hero .description {
    max-width: 580px;
    margin: 25px 0 30px;
}

.cube-hero-art {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 20px;

    background: var(--card);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.cube-hero-art img {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    object-fit: cover;
    object-position: center;
}

.jumping-cube {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(255, 107, 53, 0.10),
            transparent 35%
        ),
        var(--bg);
}

/* ========================================
   GAME INTRODUCTION
======================================== */

.cube-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.cube-content {
    max-width: 650px;
}

.cube-content h2 {
    margin-bottom: 25px;

    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
}

.jumping-cube .description {
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 30px;
}

.cube-details-logo {
    display: block;

    width: min(100%, 220px);
    aspect-ratio: 1;

    border: 1px solid var(--border);
    border-radius: 24px;

    object-fit: contain;
}

/* ========================================
   FEATURES
======================================== */

.cube-heading {
    max-width: 750px;
    margin: 0 auto 50px;
}

.cube-heading p,
.cube-gallery-section .section-heading p {
    max-width: 650px;
    margin: 0 auto;

    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.cube-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-bottom: 100px;
}

/* Feature card hover effect */

.cube-features .feature-card {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.cube-features .feature-card:hover {
    transform: translateY(-6px);

    border-color: rgba(255, 107, 53, 0.4);
}

/* Feature icons */

.cube-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin-bottom: 20px;

    border-radius: 12px;

    background: rgba(255, 107, 53, 0.12);
    color: var(--primary);

    font-size: 1.6rem;
}

.cube-features .feature-card h3 {
    margin-bottom: 12px;

    font-size: 1.2rem;
}

.cube-features .feature-card p {
    color: var(--text-muted);

    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========================================
   SCREENSHOT GALLERY
======================================== */

.cube-gallery-section {
    margin-bottom: 100px;
}

.cube-gallery-section .section-heading {
    margin-bottom: 45px;
}

.cube-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Uses your existing .showcase-grid,
   .shot and .large classes */

.cube-showcase .shot {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: var(--card);
}

.cube-showcase .shot.large {
    min-height: 520px;
}

.cube-showcase .shot img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

/* ========================================
   DOWNLOAD CALL TO ACTION
======================================== */

.cube-cta {
    padding: 65px 25px;

    border: 1px solid var(--border);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 107, 53, 0.12),
            transparent 65%
        ),
        var(--bg-secondary);

    text-align: center;
}

.cube-cta h2 {
    margin-bottom: 20px;
}

.cube-cta p {
    max-width: 650px;
    margin: 0 auto 15px;

    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.cube-cta .btn {
    margin-top: 20px;
}

.cube-cta .btn:hover {
    transform: translateY(-3px);
}

/* ========================================
   TABLET RESPONSIVENESS
======================================== */

@media (max-width: 1100px) {
    .cube-layout {
        gap: 40px;
    }

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

/* ========================================
   SMALLER TABLETS
======================================== */

@media (max-width: 992px) {
    .cube-hero {
        min-height: auto;
    }

    .cube-hero-layout {
        grid-template-columns: 1fr;
        gap: 35px;

        padding: 85px 0 60px;
    }

    .cube-hero-art {
        max-width: 750px;
    }

    .cube-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cube-content {
        max-width: 750px;
    }

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

        margin-bottom: 75px;
    }

    .cube-gallery-section {
        margin-bottom: 75px;
    }

    .cube-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cube-showcase .large {
        grid-column: span 2;
        grid-row: auto;
    }

    .cube-showcase .shot.large {
        min-height: 320px;
    }
}

/* ========================================
   MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 600px) {
    .cube-hero-layout {
        width: min(90%, var(--container));
        padding: 75px 0 45px;
    }

    .cube-hero-content h1 {
        font-size: 3rem;
    }

    .cube-hero .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .cube-content h2 {
        font-size: 3rem;
    }

    .jumping-cube .description {
        font-size: 1rem;
    }

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

    .cube-showcase {
        grid-template-columns: 1fr;
    }

    .cube-showcase .large {
        grid-column: auto;
    }

    .cube-showcase .shot.large {
        min-height: 260px;
    }

    .cube-cta {
        padding: 45px 20px;
    }
}

/* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    .cube-features .feature-card,
    .cube-cta .btn {
        transition: none;
    }

    .cube-features .feature-card:hover,
    .cube-cta .btn:hover {
        transform: none;
    }
}
