/* Header animation */
header {
    animation: fadeDown 1s ease-out;
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    position: relative;
    z-index: 10;
    animation: heroIn 1.2s ease-out 0.3s both;
}

.hero-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--orange);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.9;
    letter-spacing: 0.04em;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--gray-light);
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Store badge */
.store-badge {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.85rem 2rem;
    border: 1px solid var(--orange-dim);
    border-radius: 6px;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.store-badge:hover {
    background: var(--orange);
    color: var(--black);
}

/* Screenshot section */
.screenshot-section {
    position: relative;
    z-index: 10;
    padding: 2rem 2rem 4rem;
    text-align: center;
    animation: fadeUp 1s ease-out 0.8s both;
}

.screenshot-frame {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 106, 0, 0.15);
    box-shadow: 0 20px 80px rgba(255, 106, 0, 0.08), 0 0 0 1px rgba(255,255,255,0.03);
}

.screenshot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Features */
.features {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    animation: fadeUp 1s ease-out 1s both;
}

.features-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 3rem;
}

.features-heading span {
    color: var(--orange);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--black-lighter);
    border: 1px solid rgba(255, 106, 0, 0.08);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: rgba(255, 106, 0, 0.25);
}

.feature-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.7;
}

/* Screenshots gallery */
.gallery {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    animation: fadeUp 1s ease-out 1.2s both;
}

.gallery-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-heading span {
    color: var(--orange);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 106, 0, 0.1);
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: rgba(255, 106, 0, 0.3);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-item figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--gray-light);
    letter-spacing: 0.08em;
    background: var(--black-lighter);
}

.gallery-item a {
    display: block;
    cursor: pointer;
}

/* Lightbox */
.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: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
}

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

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gray-light);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    font-size: 3rem;
    color: var(--gray-light);
    cursor: pointer;
    padding: 1.5rem;
    line-height: 1;
    transition: color 0.2s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}

/* Downloads */
.downloads {
    position: relative;
    z-index: 10;
    max-width: 1250px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.downloads-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.downloads-heading span {
    color: var(--orange);
}

.downloads-version {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--gray-light);
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

.download-card {
    display: flex;
    flex-direction: column;
    background: var(--black-lighter);
    border: 1px solid rgba(255, 106, 0, 0.08);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.download-card:hover {
    border-color: rgba(255, 106, 0, 0.25);
}

.download-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.download-card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.download-filesize {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-bottom: 1.25rem;
}

.download-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border: 1px solid var(--orange-dim);
    border-radius: 6px;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.download-btn:hover {
    background: var(--orange);
    color: var(--black);
}

.download-btn.disabled {
    border-color: var(--gray-dark);
    color: var(--gray-light);
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}

.download-hash {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: var(--gray-light);
    word-break: break-all;
}

.download-hash span {
    font-weight: 500;
    margin-right: 0.4rem;
}

.download-hash code {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.5);
}

/* Footer animation */
footer {
    animation: fadeUp 1s ease-out 1.6s both;
}

/* Responsive */
@media (max-width: 640px) {
    .hero { padding: 3rem 1.5rem 2rem; }
    .features { padding: 2rem 1.5rem; }
    .gallery { padding: 2rem 1.5rem; }
    .screenshot-section { padding: 1.5rem 1.5rem 3rem; }
    .downloads { padding: 2rem 1.5rem; }

    .lightbox {
        flex-wrap: wrap;
        align-content: center;
    }

    .lightbox img {
        order: 0;
        flex-basis: 100%;
        max-height: 75vh;
        object-fit: contain;
    }

    .lightbox-prev,
    .lightbox-next {
        order: 1;
        padding: 0.75rem 2rem;
    }
}
