/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-dark: #1a3a1a;
    --green-mid: #2d5a2d;
    --green-light: #4caf50;
    --green-glow: #81c784;
    --gold: #ffd54f;
    --gold-dark: #f9a825;
    --bg-dark: #0d1f0d;
    --bg-card: #1a2e1a;
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #6d9b6d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--green-glow);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 31, 13, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.logo:hover {
    color: var(--green-glow);
}

.logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

/* === Hero === */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 80%, rgba(76, 175, 80, 0.08) 0%, transparent 60%);
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--green-glow), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 48px;
    font-weight: 600;
}

.hero-desc {
    margin-top: 24px;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.btn-download {
    display: inline-block;
    margin-top: 36px;
}

.appstore-badge {
    height: 48px;
    transition: transform 0.2s;
}

.appstore-badge:hover {
    transform: scale(1.05);
}

/* === Features === */
.features {
    padding: 80px 0;
}

.features h2,
.how-it-works h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(76, 175, 80, 0.12);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(76, 175, 80, 0.3);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green-glow);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === How It Works === */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent, rgba(76, 175, 80, 0.03), transparent);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green-glow);
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Footer === */
footer {
    padding: 32px 0;
    border-top: 1px solid rgba(76, 175, 80, 0.12);
}

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

.footer-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Page Layout (for privacy/terms) === */
.page-content {
    padding: 100px 0 60px;
    min-height: calc(100vh - 92px);
}

.page-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--green-glow);
}

.page-content .last-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-content p,
.page-content ul {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.page-content ul {
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-links {
        gap: 16px;
    }
}
