/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e40af;
    --secondary-color: #2563eb;
    --accent-color: #3b82f6;
    --success-color: #059669;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #475569;
    --text-medium: #334155;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 45px;
    width: auto;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #f1f5f9;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.cta-btn {
    display: inline-block;
    background: var(--success-color);
    color: var(--white);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.download-info {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #f1f5f9;
    font-weight: 500;
}

/* ===================================
   Game Showcase Section
   =================================== */
.game-showcase {
    padding: 60px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.section-title.white-text {
    color: var(--white);
}

.game-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.game-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.game-img-wrapper:hover {
    transform: scale(1.02);
}

.game-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 60px 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   Download CTA Section
   =================================== */
.download-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    text-align: center;
    color: var(--white);
}

.cta-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 35px;
    color: #f1f5f9;
    font-weight: 500;
}

.cta-btn-large {
    font-size: 1.2rem;
    padding: 22px 50px;
}

.cta-btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* ===================================
   How to Play Section
   =================================== */
.how-to-play {
    padding: 60px 0;
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    margin-top: 15px;
    color: var(--primary-color);
}

.step p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   Games List Section
   =================================== */
.games-list {
    padding: 60px 0;
    background: var(--light-bg);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.game-item {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.game-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* ===================================
   Final Download Section
   =================================== */
.final-download {
    padding: 80px 0;
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
    color: var(--white);
    text-align: center;
}

.final-download-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-download h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.final-download p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f1f5f9;
    font-weight: 500;
}

.secure-note {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #f1f5f9;
    font-weight: 500;
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: 60px 0;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section p {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e2e8f0;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo {
        height: 50px;
    }
}

/* ===================================
   Responsive Design - Desktop
   =================================== */
@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .game-images {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .logo {
        height: 55px;
    }
}

/* ===================================
   Performance Optimizations
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-btn,
    .download-cta {
        display: none;
    }
}