:root {
    --bg-color: #ffffff;
    --text-color: #101828;
    --heading-color: #101828;
    --primary-color: #7F56D9;
    /* Hex Purple: closest to #6941C6 / #7F56D9 used in modern SaaS */
    --secondary-color: #F9F5FF;
    /* Light Purple Bg */
    --accent-color: #F5C0C0;
    /* Rose Quartz */
    --border-color: #EAECF0;
    --card-bg: #ffffff;
    --button-bg: #101828;
    --button-text: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Grid --- */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, #F2F4F7 1px, transparent 1px),
        linear-gradient(to bottom, #F2F4F7 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* Remove old glow orbs, maybe keep one subtle gradient if needed */
.glow-orb {
    display: none;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    letter-spacing: -0.02em;
    /* Tight tracking like modern SaaS */
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--heading-color);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    position: relative;
    padding-bottom: 0.2rem;
    /* Buffer for descenders */
    line-height: 1.2;
    overflow: hidden;

    /* Reflective Shimmer Effect */
    background: linear-gradient(-45deg,
            #101828,
            #6E56CF,
            #fff,
            #6E56CF,
            #101828);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.logo span {
    /* Keep the purple accent visible within the gradient mask */
    background: transparent;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #475467;
    /* Gray-600 */
    letter-spacing: -0.01em;
}

nav a:hover,
nav a.active {
    color: var(--heading-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    /* Increased size for billion-dollar impact */
    line-height: 1.2;
    /* Increased to fix descender cropping */
    margin-bottom: 1rem;
    padding-bottom: 0.1em;
    /* Buffer for letters like 'g' */
    max-width: 1000px;
    font-weight: 800;
    letter-spacing: -0.04em;

    /* Noir Premium Shimmer Gradient */
    background: linear-gradient(110deg,
            #101828 20%,
            #1A1A1A 40%,
            #F9F8F5 50%,
            #1A1A1A 60%,
            #101828 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Animations */
    animation:
        shimmerHero 4s linear infinite,
        /* Sped up from 8s */
        floatHero 6s ease-in-out infinite,
        fadeInUp 0.8s ease-out;

    /* Subtle depth */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

@keyframes shimmerHero {
    0% {
        background-position: -50% center;
    }

    100% {
        background-position: 150% center;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    color: #475467;
    /* Gray-600 */
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--button-bg);
    color: var(--button-text);
    font-weight: 600;
    border-radius: 100px;
    /* Pill shape */
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.btn-primary:hover {
    background: #1D2939;
    /* Gray-800 */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -1px rgba(16, 24, 40, 0.06);
}

/* --- Games Section --- */
.section-title {
    font-size: 2.25rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    /* Removed underline decoration for cleaner look */
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 6rem;
    max-width: 1200px;
    /* Ensure it doesn't stretch too wide if we want constraints */
    margin: 0 auto;
}

.coming-soon-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 2px dashed #E4E7EC;
    /* Dashed border for placeholder */
    box-shadow: none;
    opacity: 0.7;
}

.coming-soon-card:hover {
    border-color: #D0D5DD;
    transform: translateY(-2px);
    box-shadow: none;
}

.coming-soon-card h3 {
    color: #98A2B3;
    /* Lighter text */
    font-size: 1.5rem;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    /* More rounded */
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.03), 0 12px 16px -4px rgba(16, 24, 40, 0.08);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
    border-color: #D0D5DD;
}

.game-card::before {
    /* Subtle top accent border on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Featured Image Style */
.game-featured-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: block;
    box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.05);
}

.game-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    /* Slightly larger title */
    font-weight: 700;
    text-align: center;
    color: var(--heading-color);
}

.store-links {
    display: flex;
    justify-content: space-between;
    /* Pushes items to left and right edges */
    gap: 1rem;
    flex-wrap: nowrap;
    /* Ensure they stay on one line if possible */
    align-items: center;
    margin-top: auto;
    /* Push to bottom if flex column parent */
}

.store-links a {
    flex: 1;
    /* Allow links to take available space */
    display: flex;
    justify-content: center;
    /* Center badge within its area */
    min-width: 0;
    /* Allow flex item to shrink below content size */
}

.store-badge {
    height: 44px;
    /* Fixed height to ensure both badges are identical */
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
    text-align: center;
    background: #F9FAFB;
    /* Gray-50 */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-card {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: none;
}

.contact-card h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.contact-email {
    font-size: 1.75rem;
    color: var(--primary-color);
    font-weight: 700;
    /* Increased weight for presence */
    margin-top: 1rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.contact-email:hover {
    color: #43394c;
    /* Shift to a deep elegant obsidian-purple */
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 10px 20px rgba(110, 86, 207, 0.15);
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    text-align: center;
    background: white;
    font-size: 0.875rem;
    color: #667085;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #475467;
    font-weight: 500;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 3rem;
        /* Increased from 2.5rem */
        line-height: 1.1;
    }

    .hero p {
        font-size: 0.9rem;
        /* Decreased from 1.25rem */
        padding: 0 1rem;
    }

    .store-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}