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

:root {
    --primary-green: #2e7d32;
    --light-green: #558b2f;
    --dark-green: #1b5e20;
    --accent-green: #689f38;
    --bg-dark: #1a1a2e;
    --bg-medium: #0f3460;
    --text-light: #e0e0e0;
    --white: #ffffff;
    --gray: #666;
    --light-gray: #f5f5f5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-padding-top: 70px; /* Offset for sticky navbar */
}

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

/* Improve text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background: var(--primary-green);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25em;
    font-weight: 600;
}

.logo {
    font-size: 1.3em;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 0.95em;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 50%, #16213e 100%);
    color: white;
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
                      radial-gradient(2px 2px at 60px 70px, #ffffff, transparent),
                      radial-gradient(1px 1px at 50px 50px, #ffffff, transparent);
    background-size: 200px 200px;
    opacity: 0.2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tagline {
    font-size: 1.3em;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.subtitle {
    font-size: 1em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

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

.btn-secondary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Features Section */
.features {
    padding: 60px 20px 50px;
    background: white;
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: var(--accent-green);
}

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

.feature-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.5;
    font-size: 0.95em;
}

/* Highlighted feature card (for new features) */
.feature-card.highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border: 2px solid var(--accent-green);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

.feature-card.highlight:hover {
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.25);
}

/* NEW badge */
.new-badge {
    display: inline-block;
    background: #ff5722;
    color: white;
    font-size: 0.65em;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

/* About Section */
.about {
    padding: 60px 20px 50px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.about h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.about > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1em;
    color: var(--gray);
    line-height: 1.6;
}

.moon-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.phase-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 3px solid var(--primary-green);
}

.phase-icon {
    font-size: 2.5em;
    margin-bottom: 0.75rem;
}

.phase-card h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1em;
}

.phase-card p {
    color: var(--gray);
    font-size: 0.9em;
    line-height: 1.4;
}

/* Download Section */
.download {
    padding: 60px 20px 50px;
    background: white;
    text-align: center;
}

.download h2 {
    font-size: 2em;
    margin-bottom: 0.75rem;
    color: var(--primary-green);
}

.download > .container > p {
    font-size: 1em;
    color: var(--gray);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-green);
    transition: all 0.3s;
    min-width: 180px;
}

.download-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-icon {
    font-size: 2em;
}

.btn-label {
    font-size: 0.8em;
    opacity: 0.8;
}

.btn-store {
    font-size: 1.05em;
    font-weight: 600;
}

.download-note {
    margin-top: 2rem;
    color: var(--gray);
    font-size: 1em;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 2.5rem 20px 1rem;
}

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

.footer-section {
    font-size: 0.95em;
}

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

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.tagline-footer {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-brand {
        font-size: 1.1em;
    }

    .logo {
        font-size: 1.2em;
    }
    
    .nav-links {
        gap: 0.75rem;
        font-size: 0.85em;
    }
    
    .hero {
        padding: 40px 16px 35px;
    }

    .hero h1 {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 1.15em;
    }
    
    .subtitle {
        font-size: 0.95em;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.95em;
    }
    
    .features,
    .about,
    .download {
        padding: 40px 16px;
    }

    .features h2,
    .about h2,
    .download h2 {
        font-size: 1.75em;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .moon-phases {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .download-btn {
        min-width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Extra small devices (portrait phones, less than 375px) */
@media (max-width: 375px) {
    .nav-brand {
        font-size: 1em;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8em;
    }

    .hero h1 {
        font-size: 1.75em;
    }

    .tagline {
        font-size: 1.05em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    .btn {
        padding: 9px 20px;
        font-size: 0.9em;
    }

    .features h2,
    .about h2,
    .download h2 {
        font-size: 1.5em;
    }

    .feature-icon,
    .phase-icon {
        font-size: 2em;
    }

    .feature-card h3,
    .phase-card h4 {
        font-size: 1em;
    }

    .feature-card p,
    .phase-card p {
        font-size: 0.9em;
    }
}
