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

:root {
    --primary-color: #4ade80;
    --primary-dark: #22c55e;
    --secondary-color: #f97316;
    --dark-bg: #0f172a;
    --darker-bg: #0a0e18;
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
    --card-bg: #1e293b;
    --card-hover: #334155;
    --max-width: 1200px;
    
    /* Font settings */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    --h1-size: 4rem;
    --h2-size: 2.4rem;
    --h3-size: 1.5rem;
    --body-size: 1.05rem;
    --small-text: 0.9rem;
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: 0.015em;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: color 0.3s ease;
    font-weight: 600;
}

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

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--h1-size);
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: var(--h3-size);
    color: var(--primary-color);
    font-weight: 700;
}

p {
    font-size: var(--body-size);
    margin-bottom: 1rem;
}

section {
    padding: 90px 0;
}

/* Navigation */
header {
    background-color: var(--darker-bg);
    background-image: radial-gradient(circle at 80% 40%, #3b82f680 0%, transparent 40%),
                      radial-gradient(circle at 20% 70%, #4ade8080 0%, transparent 40%);
    padding: 20px 0 120px;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: var(--heading-font);
}

.logo span {
    color: var(--primary-color);
    margin-right: 5px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0;
}

.tagline {
    font-size: 1.6rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.play-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: var(--darker-bg);
    font-weight: 700;
    font-size: 1.25rem;
    padding: 18px 48px;
    border-radius: 50px;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6);
    color: var(--darker-bg);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Game Section */
.game-section {
    background-color: var(--darker-bg);
    text-align: center;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--card-bg);
}

.game-container:before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* About Section */
.about-section {
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.15rem;
    color: var(--gray-text);
    line-height: 1.8;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--card-bg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.image-placeholder {
    background-color: var(--card-bg);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="40" r="20" fill="%234ade80"/><rect x="30" y="65" width="40" height="25" fill="%234ade80"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80px;
    border-radius: 12px;
    height: 300px;
    width: 100%;
    position: relative;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(249, 115, 22, 0.2));
    border-radius: 12px;
}

/* Features Section */
.features-section {
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 40px 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--card-hover);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.feature-card p {
    color: var(--gray-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* How to Play Section */
.how-to-play {
    text-align: center;
    background-color: var(--darker-bg);
    padding-bottom: 120px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.step {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 20px;
    color: var(--darker-bg);
    font-family: var(--heading-font);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* Audience Section */
.audience-section {
    text-align: center;
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg));
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.audience-card {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 35px 22px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.audience-card:hover {
    transform: translateY(-5px);
    background-color: var(--card-hover);
}

.audience-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.audience-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.audience-card p {
    color: var(--gray-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* FAQ Section */
.faq-section {
    background-color: var(--darker-bg);
    text-align: center;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 14px;
    padding: 30px 35px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.faq-item:hover {
    transform: translateX(5px);
    background-color: var(--card-hover);
}

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.faq-item p {
    color: var(--gray-text);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle at 70% 30%, rgba(74, 222, 128, 0.1) 0%, transparent 70%),
                      radial-gradient(circle at 30% 60%, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    padding: 100px 0;
}

.cta-content {
    max-width: 850px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 35px;
    line-height: 1.8;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-color), #fb923c);
    color: var(--light-text);
    font-weight: 700;
    font-size: 1.25rem;
    padding: 18px 48px;
    border-radius: 50px;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
    color: var(--light-text);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 70px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--heading-font);
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 35px;
}

.footer-links a {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.copyright {
    text-align: center;
    color: var(--gray-text);
    font-size: var(--small-text);
    padding-top: 25px;
    border-top: 1px solid #1e293b;
    letter-spacing: 0.05em;
}

/* Legal Pages (Privacy Policy & Terms of Service) */
.subpage-header {
    background-color: var(--darker-bg);
    padding: 25px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo a {
    color: var(--light-text);
    text-decoration: none;
}

.nav-links .active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links .active:after {
    width: 100%;
}

.legal-section {
    padding: 70px 0 120px;
    background-color: var(--dark-bg);
    min-height: 80vh;
}

.legal-section h1 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 40px;
}

.last-updated {
    color: var(--gray-text);
    font-style: italic;
    margin-bottom: 40px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.legal-content {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.75;
}

.legal-section-item {
    margin-bottom: 50px;
}

.legal-section-item:last-child {
    margin-bottom: 0;
}

.legal-section-item h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-section-item h2:after {
    display: none;
}

.legal-section-item h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.legal-section-item p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-section-item ul {
    margin: 20px 0 25px 25px;
}

.legal-section-item li {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .legal-section h1 {
        font-size: 2.4rem;
    }
    
    .legal-content {
        padding: 30px;
    }
    
    .legal-section-item h2 {
        font-size: 1.8rem;
    }
    
    .legal-section-item h3 {
        font-size: 1.4rem;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    :root {
        --h1-size: 3.2rem;
        --h2-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-placeholder {
        height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        --h1-size: 2.8rem;
        --h2-size: 2rem; 
        --h3-size: 1.4rem;
        --body-size: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    section {
        padding: 70px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    :root {
        --h1-size: 2.3rem;
        --h2-size: 1.8rem;
        --body-size: 0.95rem;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .play-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .feature-card, .audience-card {
        padding: 30px 20px;
    }
    
    .feature-icon, .audience-icon {
        font-size: 3rem;
    }
}

/* Iframe Lazy Loading */
.iframe-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    z-index: 2;
    transition: opacity 0.4s ease, visibility 0.4s;
    cursor: pointer;
}

.iframe-placeholder.hidden {
    opacity: 0;
    visibility: hidden;
}

.iframe-placeholder p {
    margin: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1.5s linear infinite;
    margin-bottom: 10px;
}

.load-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    color: var(--darker-bg);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 15px;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--body-font);
}

.load-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.6);
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent var(--primary-color);
    margin-left: 8px;
}

#video-placeholder:hover .play-button {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.3);
}

.lazy-iframe {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.lazy-iframe[src] {
    opacity: 1;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for lazy loading */
@media (max-width: 768px) {
    .iframe-placeholder p {
        font-size: 1rem;
    }
    
    .loader {
        width: 40px;
        height: 40px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button::after {
        border-width: 12px 0 12px 20px;
        margin-left: 6px;
    }
    
    .load-btn {
        font-size: 1rem;
        padding: 10px 25px;
    }
} 