/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF9500;
    --secondary-color: #FFB340;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-light: #ffffff;
    --text-gray: #a0a8b8;
    --accent: #FFC947;
    --hover-overlay: rgba(255, 149, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 48px rgba(255, 149, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    padding: 30px 20px 20px;
    text-align: center;
    background: rgba(35, 35, 35, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 201, 71, 0.2);
}

.main-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 8px;
    filter: drop-shadow(0 4px 20px rgba(255, 201, 71, 0.4));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    padding: 30px 20px 20px;
    flex: 1;
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

/* Product Card */
.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 149, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 149, 0, 0.5);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.product-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    filter: drop-shadow(0 2px 12px rgba(255, 149, 0, 0.3));
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: center;
}

.product-description {
    font-size: 1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.6;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 149, 0, 0.5);
    background: linear-gradient(135deg, #FFa520, #FFc660);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-color: rgba(255, 149, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 149, 0, 0.15);
    border-color: rgba(255, 149, 0, 0.5);
    transform: translateY(-2px);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Store Badges */
.btn-store {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.store-badge {
    height: 54px;
    width: auto;
    display: block;
}

/* Featured Product Card (Pixelborn) */
.product-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 40px 48px;
    background:
        radial-gradient(ellipse at top left, rgba(255, 149, 0, 0.18), transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(255, 201, 71, 0.10), transparent 55%),
        var(--card-bg);
    border-color: rgba(255, 149, 0, 0.45);
    box-shadow: var(--shadow), 0 0 60px rgba(255, 149, 0, 0.08);
}

.product-card--featured::before {
    transform: scaleX(1);
}

.product-card--featured:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 149, 0, 0.7);
}

.featured-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 12px;
    margin-bottom: 18px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark-bg);
    background: linear-gradient(135deg, var(--accent), var(--primary-color));
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.featured-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dark-bg);
    opacity: 0.75;
}

.product-card--featured .product-header {
    align-items: flex-start;
    margin-bottom: 16px;
}

.product-logo--featured {
    max-width: 460px;
    filter: drop-shadow(0 4px 20px rgba(255, 201, 71, 0.4));
}

.featured-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-light);
    margin-bottom: 10px;
}

.featured-blurb {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 520px;
}

.featured-blurb strong {
    color: var(--text-light);
    font-weight: 600;
}

.featured-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-actions-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.featured-actions .download-buttons {
    width: 100%;
    max-width: 360px;
}

.featured-actions .btn-store {
    margin-top: 4px;
}

.featured-actions .store-badge {
    height: 60px;
}

/* Play in Browser (featured) */
.btn-play {
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #06291a;
    background: linear-gradient(135deg, #4ff09a, #22c55e);
    box-shadow: 0 4px 18px rgba(46, 204, 113, 0.35);
}

.btn-play:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #63f7a8, #2bd36a);
    box-shadow: 0 6px 28px rgba(46, 204, 113, 0.55);
}

.btn-play .icon {
    width: 22px;
    height: 22px;
}

.featured-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    color: var(--text-gray);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.featured-divider::before,
.featured-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Supported Games */
.supported-games {
    max-width: 920px;
    margin: 5px auto 10px;
    padding: 24px 28px;
    text-align: center;
    background: rgba(42, 42, 42, 0.7);
    border: 1px solid rgba(255, 149, 0, 0.15);
    border-radius: 16px;
}

.supported-games h2 {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 1.3rem;
}

.supported-games p {
    color: var(--text-gray);
    font-size: 0.96rem;
}

.supported-games strong {
    color: var(--text-light);
    font-weight: 600;
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

.game-list li {
    padding: 6px 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255, 149, 0, 0.25);
    border-radius: 999px;
    background: rgba(255, 149, 0, 0.06);
}

/* Discord Section */
.discord-section {
    text-align: center;
    padding: 20px 0;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 35px;
    background: #FF9500;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(255, 149, 0, 0.4);
}

.discord-link:hover {
    background: #E68600;
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(255, 149, 0, 0.6);
}

.discord-icon {
    width: 32px;
    height: 32px;
}

/* Footer */
.footer {
    padding: 20px 20px;
    text-align: center;
    background: rgba(35, 35, 35, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 201, 71, 0.2);
    margin-top: 0;
}

.footer p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .products {
        grid-template-columns: 1fr;
    }

    .product-card--featured {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 24px;
    }

    .featured-info {
        align-items: center;
        text-align: center;
    }

    .product-card--featured .product-header {
        align-items: center;
    }

    .product-logo--featured {
        max-width: 360px;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 40px 20px 30px;
    }

    .main-logo {
        max-width: 280px;
    }

    .tagline {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .products {
        gap: 30px;
    }

    .product-card {
        padding: 30px 20px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-play {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .supported-games {
        padding: 22px 20px;
    }

    .supported-games h2 {
        font-size: 1.2rem;
    }

    .discord-link {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .discord-icon {
        width: 28px;
        height: 28px;
    }

    .store-badge {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        max-width: 220px;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .product-logo {
        max-width: 240px;
    }

    .product-logo--featured {
        max-width: 280px;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .featured-actions .store-badge {
        height: 54px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .download-buttons {
        gap: 10px;
    }

    .supported-games {
        padding: 20px 16px;
    }

    .discord-link {
        padding: 14px 28px;
        font-size: 0.95rem;
        gap: 10px;
    }

    .discord-icon {
        width: 24px;
        height: 24px;
    }

    .store-badge {
        height: 44px;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}
