:root {
    --primary-color: #005688;
    --text-color: #333333;
    --background-color: #FFFFFF;
    --secondary-background: #F5F7FA;
    --spacing-unit: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

html {
    scroll-behavior: smooth;
}

header {
    padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 2);
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 2rem;
    width: auto;
}

.logo span {
    display: inline-block;
}

main {
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: calc(var(--spacing-unit) * 4) 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--spacing-unit) * 4);
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-unit);
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-unit) * 2;
    color: #666;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
}

.cta-buttons a {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.cta-buttons a:hover {
    transform: translateY(-2px);
}

.app-store-button, .play-store-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
}

.app-store-button:hover, .play-store-button:hover {
    background-color: #004670;
    transform: translateY(-2px);
}

.features {
    padding: calc(var(--spacing-unit) * 4) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}

.feature {
    text-align: center;
    padding: var(--spacing-unit);
    background-color: var(--secondary-background);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

/* How to Play Section */
.how-to-play {
    padding: calc(var(--spacing-unit) * 4) 0;
    background-color: var(--background-color);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.how-to-play h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-unit);
    color: var(--primary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
}

.step {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
    background-color: var(--secondary-background);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 86, 136, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #007bb5);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    box-shadow: 0 4px 12px rgba(0, 86, 136, 0.3);
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
    font-size: 1.3rem;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: calc(var(--spacing-unit) * 4) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.pricing h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: var(--spacing-unit);
    color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: calc(var(--spacing-unit) * 3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-footer {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
    font-style: italic;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.price {
    margin-bottom: 0.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.period {
    font-size: 1rem;
    color: #666;
    margin-left: 0.2rem;
}

.yearly-price {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.coming-soon {
    font-size: 1.2rem;
    font-weight: 600;
    color: #999;
    padding: 1rem 0;
}

.features-list {
    color: #666;
    list-style: none;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.features-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2) 0;
    background-color: #2c3e50;
    color: white;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.section-footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 2) 0;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-unit);
    }
    
    .hero {
        padding: calc(var(--spacing-unit) * 3) 0;
        min-height: 90vh;
    }

    .hero .container {
        flex-direction: column-reverse;
        gap: calc(var(--spacing-unit) * 2);
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .logo img {
        height: 1.75rem;
    }

    .logo span {
        font-size: 1.25rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .app-store-button, .play-store-button {
        min-width: unset;
    }
    
    .how-to-play, .pricing {
        padding: calc(var(--spacing-unit) * 3) 0;
        min-height: auto;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .pricing h2, .how-to-play h2 {
        font-size: 1.8rem;
        text-align: center;
        padding: 0 var(--spacing-unit);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: calc(var(--spacing-unit) * 1.5);
        padding: 0 var(--spacing-unit);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card {
        margin: 0;
        max-width: none;
    }
    
    .pricing-card.popular {
        transform: none;
        margin: calc(var(--spacing-unit) * 0.5) 0;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .container {
        padding-left: calc(var(--spacing-unit) * 0.5);
        padding-right: calc(var(--spacing-unit) * 0.5);
    }
}
