:root {
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-text-primary: #ffffff;
    --color-text-secondary: #94a3b8;
    --color-accent: #38bdf8;
    --color-accent-glow: rgba(56, 189, 248, 0.5);
    --color-success: #4ade80;
    --color-danger: #f87171;
    --color-border: rgba(255, 255, 255, 0.1);

    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition-fast: 0.1s ease;
    --transition-medium: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #1e293b 0%, #020617 100%);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-accent);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 600;
    transition: var(--transition-medium);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link-accent {
    color: var(--color-accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.nav-link-accent:hover {
    color: #38bdf8;
    /* Ensure it stays accent color or goes brighter */
    text-shadow: 0 0 15px var(--color-accent-glow);
    transform: translateY(-1px);
}

.nav-btn {
    background: var(--color-accent);
    color: #0f172a;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-medium);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--color-accent-glow);
}

/* Intro & Split Layout */
.intro-section {
    padding: 4rem 0 2rem;
}

.intro-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    /* Give image column (left) more width */
    gap: 3rem;
    align-items: center;
}

.intro-text {
    text-align: left;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    max-height: 850px;
    /* Significantly increased to allow fuller size */
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    border-radius: var(--radius-md);
    margin-bottom: 0;
    transform: scale(1.25);
    transform-origin: center center;
    /* Reset */
}

.intro-section h1 {
    font-family: 'Lobster', cursive;
    /* Fancy font */
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    background: none;
    -webkit-text-fill-color: initial;
}

.intro-section p {
    color: var(--color-text-secondary);
    font-size: 1.3rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .nav-content {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .intro-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .intro-text {
        text-align: center;
        order: 1;
    }

    .hero-main-image {
        /* Mobile Override */
        transform: none !important;
        max-height: 400px;
        order: 2;
        /* Ensure image is below text on mobile if desired, or keep default */
    }
}

.main-split-section {
    padding: 2rem 0 6rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* 60/40 ratio */
    gap: 4rem;
    align-items: center;
}

.split-details h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: white;
}

.tags-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Oswald', sans-serif;
    /* Optional matches original vibe */
}

.description-text {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .split-details {
        text-align: center;
    }

    .split-details h2 {
        text-align: center;
    }

    .tags-group {
        justify-content: center;
    }

    .cta-group {
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    /* Removed auto margins for left align */
}

.cta-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
}

.btn-primary-lg {
    background: var(--color-accent);
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.2rem;
    transition: var(--transition-medium);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--color-accent-glow);
}

.btn-secondary-lg {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
}

.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-visual {
    width: 100%;
    overflow: hidden;
    /* Contain the gallery scroll */
}

/* Reusing gallery styles within hero, just overriding some defaults if needed */
.hero-visual .gallery-scroll {
    padding: 1rem 0;
}

/* Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* Standard video-like aspect ratio */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 1rem;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: #0f172a;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Features Grid */
.features-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: var(--transition-medium);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-card h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--color-text-secondary);
}

/* Gallery */
.gallery-section {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery-item {
    flex: 0 0 80%;
    /* Show most of one image, peek at next */
    max-width: 600px;
    scroll-snap-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 45%;
        /* Show 2+ images on desktop */
    }
}

.cards-showcase {
    padding: var(--spacing-xl) 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.card-item {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition-medium);
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image-wrapper {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.card-item img {
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: var(--radius-md);
}

.card-item:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: var(--spacing-md);
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: #fff;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* How to Play */
.how-to-play {
    padding: var(--spacing-xl) 0;
    background: rgba(255, 255, 255, 0.02);
}

.steps-list {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-item {
    position: relative;
    padding-left: 4rem;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    background: var(--color-accent);
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.step-item h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.6);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    text-align: center;
    color: var(--color-text-secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 900px) {

    /* Higher breakpoint for grid switch */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 0;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .cta-group {
        flex-direction: column;
    }
}

/* hCaptcha */
.h-captcha {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}