/* === Variables === */
:root {
    --primary: #006e1c;
    --primary-light: #e8f5e9;
    --accent: #2e7d32;
    --bg: #ffffff;
    --surface: #f8faf8;
    --text: #1a1c1a;
    --text-secondary: #5f6368;
    --border: #e0e7e0;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --max-width: 1100px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d120d;
        --surface: #161b16;
        --text: #e8eae8;
        --text-secondary: #9aa79a;
        --border: #2a332a;
        --primary-light: #1a3d1f;
    }
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.narrow { max-width: 720px; }

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}
.logo-icon { font-size: 1.5rem; }

.main-nav {
    display: flex;
    gap: 8px;
}
.main-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0,110,28,0.25);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,110,28,0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-large { padding: 14px 32px; font-size: 1rem; }

/* === Hero === */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero > .container > p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
}
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}
.hero-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-stats strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.hero-stats span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* === Features === */
.features { padding: 60px 0; }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Screenshots / Tech === */
.screenshots {
    padding: 60px 0;
    text-align: center;
    background: var(--surface);
}
.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.tech-badge {
    padding: 6px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* === CTA === */
.cta-section {
    padding: 80px 0;
    text-align: center;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* === Page Header === */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
    background: var(--surface);
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.page-header p {
    color: var(--text-secondary);
}

/* === Content === */
.content-section { padding: 20px 0 60px; }
.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}
.content-section h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
    color: var(--text);
}
.content-section p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.content-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.content-section a:hover { text-decoration: underline; }
.principles {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}
.principles li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.principles li:last-child { border-bottom: none; }

/* === Steps === */
.steps { padding: 20px 0 60px; }
.step-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 720px;
    margin: 0 auto;
}
.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}
.step-content code {
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

/* === FAQ === */
.faq { padding: 40px 0 60px; }
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Footer === */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand p {
    color: var(--text-secondary);
    margin: 12px 0 20px;
    max-width: 280px;
}
.play-badge img {
    height: 56px;
    width: auto;
}
.footer-links h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Legal === */
.legal h3 {
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text);
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { transform: translateY(0); }
    .menu-toggle { display: flex; }
    
    .hero-stats { gap: 24px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-large { width: 100%; max-width: 280px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .step { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
}