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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
    overflow-x: hidden;
}

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

/* Typography */
.section-headline {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 12px;
}

.section-subheadline {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.section-headline.dark {
    color: #000000;
}

.section-subheadline.dark {
    color: #333333;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: #00A2FF;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.3);
    min-height: 48px;
    touch-action: manipulation;
}

.cta-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 162, 255, 0.4);
}

.cta-button:active {
    transform: scale(0.98);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #00A2FF 0%, #4B0082 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 162, 255, 0.3), rgba(75, 0, 130, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

.hero-headline {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 24px;
    opacity: 0.95;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.hero-cta-section {
    margin-top: 24px;
}

.play-badge {
    display: block;
    width: 150px;
    height: auto;
    margin: 16px auto 12px;
}

.hero-tagline {
    font-size: 14px;
    font-style: italic;
    color: #FFFFFF;
    opacity: 0.9;
}

/* Benefits Section */
.benefits-section {
    background: #FFFFFF;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 162, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 162, 255, 0.1) 0%, transparent 50%);
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.benefit-card {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #00A2FF;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #00A2FF, #4B0082);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.benefit-title {
    font-size: 16px;
    font-weight: 600;
    color: #00A2FF;
    margin-bottom: 8px;
}

.benefit-description {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
}

/* Showcase Section */
.showcase-section {
    background: #F5F5F5;
    padding: 60px 0;
}

.showcase-carousel {
    margin: 40px 0;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.game-slide {
    min-width: 100%;
    text-align: center;
    opacity: 100;
    transition: opacity 0.5s ease;
}

.game-slide.active {
    opacity: 1;
}

.game-image {
    width: 100%;
    height: 250px;
    object-fit: fill;
    border-radius: 8px;
    margin-bottom: 16px;
}

.game-description {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
    padding: 0 20px;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.carousel-btn {
    background: #00A2FF;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #0088CC;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.button_steps {
    margin: 0 auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CCCCCC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00A2FF;
    transform: scale(1.2);
}

.secondary-cta {
    margin-top: 32px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Community Section */
.community-section {
    background: #FFFFFF;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(255, 0, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(0, 162, 255, 0.05) 0%, transparent 50%);
    padding: 60px 0;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
    align-items: center;
}

.stat-item {
    text-align: center;
    opacity: 100;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.stat-item.animate {
    opacity: 1;
    transform: scale(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #00A2FF, #FF0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #00A2FF;
    margin-bottom: 4px;
}

.stat-text {
    font-size: 14px;
    color: #333333;
    font-weight: 500;
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.testimonial-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #00A2FF;
    opacity: 100;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-quote {
    font-size: 14px;
    font-style: italic;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: #00A2FF;
}

/* How It Works Section */
.how-it-works-section {
    background: #E6F0FA;
    padding: 60px 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.step-item {
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #FF0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto 16px;
    background: linear-gradient(135deg, #00A2FF, #4B0082);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-icon-img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: #00A2FF;
    margin-bottom: 8px;
}

.step-description {
    font-size: 14px;
    color: #333333;
    max-width: 250px;
    margin: 0 auto;
    line-height: 1.5;
}

/* FAQs Section */
.faqs-section {
    background: #FFFFFF;
    padding: 60px 0;
}

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

.download_button_now {
    text-decoration: none;
}

.faqs-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.faqs-container {
    max-width: 600px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: #F8F9FA;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 48px;
}

.faq-question:hover {
    background: #00A2FF;
    color: #FFFFFF;
}

.faq-question.active {
    background: #00A2FF;
    color: #FFFFFF;
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    background: #FFFFFF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
    padding: 16px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

/* Footer Section */
.footer-section {
    background: #003087;
    color: #FFFFFF;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

.footer-section .container {
    position: relative;
    z-index: 2;
}

.footer-cta {
    text-align: center;
    margin-bottom: 40px;
}

.footer-headline {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.footer-subheadline {
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: #00A2FF;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00A2FF;
    transform: translateY(-2px);
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 1;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 1;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .section-headline {
        font-size: 32px;
    }
    
    .section-subheadline {
        font-size: 16px;
    }
    
    .hero-headline {
        font-size: 42px;
    }
    
    .hero-subheadline {
        font-size: 18px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stats-container {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .testimonials-container {
        flex-direction: row;
        gap: 30px;
    }
    
    .testimonial-card {
        flex: 1;
    }
    
    .steps-container {
        flex-direction: row;
        justify-content: space-around;
        align-items: flex-start;
    }
    
    .step-item {
        flex: 1;
        max-width: 250px;
    }
    
    .carousel-container {
        display: flex;
        overflow: visible;
    }
    
    .carousel-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        width: 100%;
    }
    
    .game-slide {
        min-width: auto;
        opacity: 1;
    }
    
    .carousel-controls {
        display: none;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .section-headline {
        font-size: 36px;
    }
    
    .section-subheadline {
        font-size: 18px;
    }
    
    .hero-headline {
        font-size: 48px;
    }
    
    .hero-subheadline {
        font-size: 20px;
    }
    
    .hero-image {
        max-height: 400px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-headline {
        font-size: 36px;
    }
    
    .footer-subheadline {
        font-size: 18px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button {
        border: 2px solid #FFFFFF;
    }
    
    .benefit-card {
        border: 1px solid #000000;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .cta-button:hover {
        transform: none;
        filter: none;
    }

    .benefit-card:hover {
        transform: none;
    }

    .carousel-btn:hover {
        transform: none;
        background: #00A2FF;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-section,
.carousel-track,
.benefit-card,
.testimonial-card,
.step-item,
.stat-item {
    will-change: transform;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

svg {
    max-width: 100%;
    height: auto;
}

/* Optimize for Core Web Vitals */
.hero-image,
.game-image {
    loading: lazy;
    decoding: async;
}

/* Critical rendering path optimization */
.hero-section {
    contain: layout style paint;
}

/* Prevent layout shift */
.benefit-icon,
.stat-icon,
.step-icon {
    aspect-ratio: 1;
}

.testimonial-avatar {
    aspect-ratio: 1;
}

/* Reduce paint complexity */
.cta-button,
.benefit-card,
.testimonial-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}
