/* Reset and base styles */
* {
    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: #1A3D2E;
    background-color: #ffffff;
}

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

/* Header and Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 61, 46, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2E7D32;
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    border-radius: 6px;
}

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

.nav-links a {
    text-decoration: none;
    color: #1A3D2E;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2E7D32;
}

/* Main content */
main {
    margin-top: 80px;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2E7D32 0%, #E8F5E8 100%);
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: #000;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1c1c1e 0%, #2c2c2e 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.calories-remaining {
    font-size: 3rem;
    font-weight: 300;
    color: #30d158;
}

.calories-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #1A3D2E;
    color: white;
}

.btn-primary:hover {
    background: #0F2A1F;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1A3D2E;
    border: 2px solid #1A3D2E;
}

.btn-secondary:hover {
    background: #1A3D2E;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Features section */
.features {
    padding: 5rem 0;
    background: #F0F8F0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1A3D2E;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(26, 61, 46, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(26, 61, 46, 0.15);
}

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

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1A3D2E;
}

.feature p {
    color: #2E7D32;
    line-height: 1.6;
}

/* Screenshots section */
.screenshots {
    padding: 5rem 0;
    background: #F0F8F0;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1A3D2E;
}

.screenshots-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #2E7D32;
    margin-bottom: 3rem;
}

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

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

.screenshot-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(26, 61, 46, 0.2);
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: translateY(-10px);
}

.screenshot-caption {
    margin-top: 1.5rem;
}

.screenshot-caption h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1A3D2E;
}

.screenshot-caption p {
    color: #2E7D32;
    line-height: 1.6;
}

/* Guide section */
.guide {
    padding: 5rem 0;
    background: white;
}

.guide h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1A3D2E;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: #F0F8F0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(26, 61, 46, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.step-number {
    background: #2E7D32;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1A3D2E;
}

.step-content p {
    color: #2E7D32;
    line-height: 1.6;
}

/* Download section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2E7D32 0%, #1A3D2E 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-note {
    margin-top: 1rem !important;
    font-size: 0.9rem !important;
    opacity: 0.7 !important;
}

/* Footer */
footer {
    padding: 2rem 0;
    background: #1A3D2E;
    color: white;
    text-align: center;
}

footer p {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 160px;
        height: 320px;
        padding: 15px;
    }
    
    .calories-remaining {
        font-size: 2rem;
    }
}
