:root {
    --primary-color: #2c5530;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --background: #ffffff;
    --card-background: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background);
}

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

/* Header and Navigation */
header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 4rem 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.apple-logo, .github-logo {
    width: 20px;
    height: 20px;
}

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

/* iPhone Mockup Styles */
.iphone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.iphone {
    width: 280px;
    height: 570px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        inset 0 0 3px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px #2a2a2a,
        0 0 30px 0 rgba(0, 0, 0, 0.5),
        0 20px 40px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    transform: rotateY(-2deg) rotateX(2deg);
}

.iphone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 36px;
    pointer-events: none;
}

.iphone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.iphone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.iphone-notch::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iphone-screen::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Premium Section */
.premium {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.premium h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.premium-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.premium-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.premium-content h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.premium-features {
    list-style: none;
    margin-bottom: 2rem;
}

.premium-features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.free-note {
    text-align: center;
    opacity: 0.9;
    font-style: italic;
}

/* Games Section */
.games {
    padding: 4rem 0;
    background: var(--card-background);
}

.games h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.games-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.game-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.game-category h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.game-category ul {
    list-style: none;
}

.game-category li {
    padding: 0.3rem 0;
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--background);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Step iPhone Mockups */
.step-iphone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.step-iphone-frame {
    width: 200px;
    height: 410px;
    background: #1a1a1a;
    border-radius: 28px;
    padding: 6px;
    box-shadow:
        inset 0 0 2px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px #2a2a2a,
        0 10px 25px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.step-iphone-frame .iphone-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #1a1a1a;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.step-iphone-frame .iphone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

.step-iphone-frame .iphone-notch::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
}

.step-iphone-frame .iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
}

.step-iphone-frame .iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.step-iphone-frame .iphone-screen::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

/* Testimonial */
.testimonial {
    padding: 4rem 0;
    background: var(--card-background);
}

blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-light);
    font-style: normal;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 0.3rem 0;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.copyright {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .iphone {
        width: 220px;
        height: 450px;
        margin-top: 2rem;
        transform: none;
    }

    .iphone-notch {
        width: 100px;
        height: 20px;
    }

    .iphone-screen::after {
        width: 80px;
        height: 2px;
        bottom: 6px;
    }

    .download-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .step-iphone-frame {
        width: 160px;
        height: 330px;
    }

    .step-iphone-frame .iphone-notch {
        width: 65px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}