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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gradient {
    background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header-padding {
    padding: 1.5rem 1rem;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-white {
    background-color: white;
    color: #2563eb;
}

.icon {
    width: 1rem;
    height: 1rem;
}

/* Hero Section */
.hero-section {
    padding: 4rem 1rem;
    text-align: center;
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
}

.hero-logo {
    width: 32px;
    height: 32px;
    margin: 0 auto 1.5rem;
    display: block;
    border-radius: 8px;
    padding: 6px;
}

.badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

h1, .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Explicit font-size for h1 in semantic sections */
section h1, article h1, aside h1, nav h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.title-brand {
    color: #2563eb;
}

.hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 32rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    width: 1.25rem;
    height: 1.25rem;
    color: #eab308;
}

.rating-text {
    color: #4b5563;
    font-size: 0.875rem;
}

.hero-image {
    max-width: 20rem;
    margin: 0 auto;
}

.phone-mockup {
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: block;
    max-width: 300px;
    aspect-ratio: 300/600;
}

/* Features Section */
.features-section {
    padding: 4rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 32rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.feature-content {
    padding-top: 1.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
}

.brain-icon {
    color: #2563eb;
}

.trophy-icon {
    color: #eab308;
}

.users-icon {
    color: #10b981;
}

.smartphone-icon {
    color: #8b5cf6;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
}

/* Screenshots Section */
.screenshots-section {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.screenshot-item {
    text-align: center;
}

.screenshot-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1rem;
    display: block;
    aspect-ratio: 250/500;
}

.screenshot-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.screenshot-description {
    color: #4b5563;
    font-size: 0.875rem;
}

/* How to Play Section */
.how-to-play-section {
    padding: 4rem 1rem;
}

.how-to-play-content {
    max-width: 64rem;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-number span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #4b5563;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    padding: 4rem 0;
}

.cta-content {
    text-align: center;
    padding: 0 1rem;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    color: #bfdbfe;
    max-width: 32rem;
    margin: 0 auto 2rem;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0 1.25rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon span {
    color: white;
    font-weight: bold;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: bold;
}

.footer-description {
    color: #9ca3af;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    color: #9ca3af;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

