@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary-green: #2D5016;
    --primary-green-light: #4A7C2A;
    --accent-green: #7FB069;
    --text-primary: #1C1C1E;
    --text-secondary: #64748B;
    --text-light: rgba(255, 255, 255, 0.9);
    --background: #FAFBFC;
    --surface: #FFFFFF;
    --surface-elevated: #F8FAFC;
    --border: #E2E8F0;
    --hero-gradient: linear-gradient(135deg, #0F1B08 0%, #1A2E0D 25%, #2D5016 75%, #3A6B1F 100%);
    --dark-section-bg: linear-gradient(135deg, #1A2E0D 0%, #234112 100%);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-headline: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .main-nav .container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 2000;
    border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
h1, h2, h3, h4 { font-family: var(--font-headline); color: var(--text-primary); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 64px; position: relative; }
a { color: var(--primary-green); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
p { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; }

.main-nav { position: fixed; top: 0; left: 0; right: 0; background: rgba(250, 251, 252, 0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 1002; border-bottom: 1px solid rgba(226, 232, 240, 0.5); transition: all 0.3s ease; }
.main-nav.scrolled { background: rgba(248, 250, 252, 0.95); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
.main-nav .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.main-nav .logo img { max-height: 50px; }
.desktop-nav { display: flex; align-items: center; gap: 8px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-weight: 500; font-size: 1rem; padding: 12px 16px; border-radius: 8px; transition: all 0.2s ease; }
.nav-links a:hover { color: var(--primary-green); background-color: rgba(45, 80, 22, 0.06); transform: translateY(-1px); }
.nav-links a.active { color: var(--primary-green); font-weight: 600; background-color: rgba(45, 80, 22, 0.1); }
.nav-cta-button { background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light)); color: white !important; font-weight: 600; padding: 12px 24px !important; border-radius: var(--border-radius-md); box-shadow: var(--shadow-md); transition: all 0.3s ease; white-space: nowrap; }
.nav-cta-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }

.hamburger { display: none; cursor: pointer; background: transparent; border: none; padding: 10px; z-index: 1002; position: relative; }
.hamburger-line { display: block; width: 25px; height: 3px; background-color: var(--text-primary); margin: 5px 0; transition: all 0.3s ease; }
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; z-index: 1000; transition: opacity 0.3s ease, visibility 0.3s ease; }
.overlay.active { opacity: 1; visibility: visible; }

.hero { padding-top: 140px; padding-bottom: 120px; position: relative; }
.hero::before { content: ''; position: absolute; top: -20%; right: -20%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(45, 80, 22, 0.04) 0%, transparent 70%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 60px; }
.hero-text .clarification { font-size: 0.95rem; color: var(--text-secondary); margin-top: 25px; }
.hero-text .clarification a { color: var(--primary-green); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--primary-green); transition: all 0.2s ease; }
.hero-text .clarification a:hover { background-color: #e9efe5; }
.hero-text .p-lead { margin-bottom: 25px; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background-color: var(--primary-green); color: #fff; padding: 16px 32px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 1.1rem; transition: transform 0.2s ease, box-shadow 0.3s ease; margin-bottom: 15px; }
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 25px rgba(45, 80, 22, 0.2); text-decoration: none; }
.hero-image { text-align: center; }
.hero-image img { max-width: 320px; width: 100%; border-radius: 24px; }

.feature-spotlight { background-color: var(--surface); }
.feature-spotlight .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.feature-spotlight .feature-text p { max-width: 450px; }
.feature-image { position: relative; display: flex; justify-content: center; align-items: center; min-height: 500px; }
.layered-image-container { position: relative; width: 100%; height: 100%; max-width: 400px; }
.layered-image-container img { position: absolute; top: 0; left: 0; width: 78%; border-radius: var(--border-radius-lg); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.layered-image-container .background-image { z-index: 1; top: 50%; left: 0; transform: translate(0, -50%) rotate(-8deg); }
.layered-image-container .foreground-image { z-index: 2; top: 50%; left: auto; right: 0; transform: translate(0, -50%) rotate(8deg) scale(1.05); }
.layered-image-container:hover .background-image { transform: translate(-5%, -50%) rotate(-10deg); }
.layered-image-container:hover .foreground-image { transform: translate(5%, -50%) rotate(10deg) scale(1.08); }

.how-it-works .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.how-it-works .step { text-align: center; padding: 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.how-it-works .step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(45, 80, 22, 0.2); }
.how-it-works .grid p { margin-left: auto; margin-right: auto; }
.how-it-works .step svg { width: 48px; height: 48px; color: var(--primary-green); margin-bottom: 20px; }
.how-it-works .step p { font-size: 1rem; }

.page-header {
    min-height: 50vh;
    background: var(--hero-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 160px;
    padding-bottom: 100px;
}
.page-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 80%, rgba(127, 176, 105, 0.1) 0%, transparent 40%), radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: white; margin-bottom: 24px; }
.page-header p { font-size: 1.25rem; color: var(--text-light); max-width: 700px; margin: 0 auto; }

.story-section { background: var(--surface); }
.story-section .container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.story-heading-container { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 300px; }
.story-heading-container h2 { font-size: clamp(3rem, 6vw, 5rem); text-align: left; margin-bottom: 0; position: relative; background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 50%, var(--accent-green) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.1; }
.story-heading-container::before { content: ''; position: absolute; left: -24px; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--primary-green), var(--accent-green)); border-radius: 3px; }
.story-heading-container::after { content: ''; position: absolute; left: 0; bottom: -40px; width: 120px; height: 2px; background: linear-gradient(90deg, var(--accent-green), transparent); }
.story-text-content { display: flex; flex-direction: column; gap: 24px; }

.values-section { background: var(--surface-elevated); }
.values-section .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.values-section .value { background: var(--surface); padding: 48px 32px; border-radius: var(--border-radius-lg); text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--border); transition: all 0.3s ease; position: relative; overflow: hidden; }
.values-section .value::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-green), var(--accent-green)); transform: scaleX(0); transition: transform 0.4s ease; }
.values-section .value:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.values-section .value:hover::before { transform: scaleX(1); }
.values-section .value svg { width: 56px; height: 56px; color: var(--primary-green); margin-bottom: 24px; transition: transform 0.3s ease; }
.values-section .value:hover svg { transform: scale(1.1); }
.values-section .value h3 { font-size: 1.375rem; margin-bottom: 16px; }
.values-section .value p { font-size: 1rem; line-height: 1.6; margin: 0; }

.faq-section { background-color: var(--surface); }
.faq-section h2::after { content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(90deg, var(--primary-green), var(--accent-green)); border-radius: 2px; }
.faq-accordion .faq-item { border-bottom: 1px solid var(--border); }
.faq-accordion .faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 32px 0; background: none; border: none; cursor: pointer; text-align: left; }
.faq-question h3 { font-size: 1.375rem; margin-bottom: 0; color: var(--text-primary); transition: color 0.2s ease; }
.faq-question:hover h3 { color: var(--primary-green); }
.faq-icon { width: 28px; height: 28px; color: var(--accent-green); flex-shrink: 0; margin-left: 24px; transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; }
.faq-answer p { padding-bottom: 32px; font-size: 1.1rem; }
.faq-answer ul { list-style: none; padding-bottom: 24px; column-count: 2; }
.faq-answer ul li { margin-bottom: 12px; font-size: 1.1rem; color: var(--text-secondary); }

.contact-support-section { background-color: var(--surface-elevated); text-align: center; }
.contact-support-section h2 { margin-bottom: 24px; }
.contact-support-section p { max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 40px; }
.contact-email-link { display: inline-block; background: var(--primary-green); color: white; font-family: var(--font-headline); font-weight: 600; font-size: 1.125rem; padding: 16px 32px; border-radius: var(--border-radius-md); text-decoration: none; box-shadow: var(--shadow-lg); transition: all 0.3s ease; }
.contact-email-link:hover { background: var(--primary-green-light); transform: translateY(-4px); box-shadow: var(--shadow-xl); text-decoration: none; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.waitlist-section { padding-top: 200px; padding-bottom: 200px; text-align: center; }
.waitlist-content h1 { margin-bottom: 24px; animation: fadeInUp 0.8s ease-out both; }
.waitlist-content p.subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto 48px auto; animation: fadeInUp 0.8s ease-out 0.2s both; }
.waitlist-form { background: var(--surface); padding: 48px; border-radius: var(--border-radius-lg); box-shadow: var(--shadow-xl); border: 1px solid var(--border); animation: fadeInUp 0.8s ease-out 0.4s both; }
.form-group { margin-bottom: 24px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.label-optional { color: var(--text-secondary); font-weight: 400; font-size: 0.9rem; }
.form-control { width: 100%; padding: 16px 20px; font-size: 1.1rem; border-radius: var(--border-radius-md); border: 1px solid var(--border); background-color: var(--background); transition: all 0.2s ease; -webkit-appearance: none; }
.form-control:focus { outline: none; border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.15); }
.waitlist-button { width: 100%; padding: 18px 24px; margin-top: 16px; font-family: var(--font-headline); font-size: 1.2rem; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--primary-green), var(--primary-green-light)); border: none; border-radius: var(--border-radius-md); cursor: pointer; box-shadow: var(--shadow-lg); transition: all 0.3s ease; }
.waitlist-button:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.form-disclaimer { font-size: 0.9rem; margin-top: 24px; padding: 0 16px; }
.form-disclaimer a { color: var(--primary-green); text-decoration: underline; }
#success-message { display: none; padding: 48px; background-color: var(--surface); border: 1px solid var(--border); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-xl); }
#success-message h2 { font-size: 1.75rem; color: var(--primary-green); margin-bottom: 16px; }

.legal-section { background-color: var(--surface); padding-top: 80px; }
.legal-content .policy-section:last-child { margin-bottom: 0; }
.legal-content h2 {
    font-size: 2rem;
    text-align: left;
    margin: 64px 0 24px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 1.3rem; margin: 32px 0 16px 0; }
.legal-content h4 { font-size: 1.1rem; font-weight: 500; margin: 24px 0 12px 0; color: var(--text-primary); }
.legal-content p, .legal-content li { font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px; color: var(--text-secondary); }
.legal-content ul { list-style-position: outside; margin-left: 20px; margin-bottom: 24px; }
.legal-content li { margin-bottom: 12px; padding-left: 8px; }
.legal-content .last-updated { font-size: 1rem; color: var(--text-secondary); }

.community-section { background: var(--dark-section-bg); color: #fff; text-align: center; position: relative; overflow: hidden; }
.community-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 60%); opacity: 0.5; }
.community-section .container { position: relative; }
.community-section h2, .community-section p { color: #fff; margin-left: auto; margin-right: auto; }
.community-section p { color: #b8d1a8; margin-bottom: 40px; max-width: 600px; }
.community-section .button-group { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn-primary-on-dark { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); color: var(--primary-green); padding: 18px 36px; border-radius: var(--border-radius-md); text-decoration: none; font-weight: 600; font-family: var(--font-headline); font-size: 1.125rem; box-shadow: var(--shadow-lg); transition: all 0.3s ease; }
.btn-primary-on-dark:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); text-decoration: none;}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: #fff;
    border: 2px solid var(--accent-green);
    padding: 16px 34px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-headline);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(127, 176, 105, 0.15);
    border-color: #fff;
    transform: translateY(-4px);
    text-decoration: none;
    color: #fff;
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

footer { background: var(--surface-elevated); padding: 80px 0 40px 0; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-grid .logo-column .logo img { max-height: 100px; margin-bottom: 12px; }
.footer-grid h4 { font-family: var(--font-headline); margin-bottom: 20px; font-size: 1.125rem; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul a { color: var(--text-secondary); text-decoration: none; transition: all 0.2s ease; }
.footer-grid ul a:hover { color: var(--primary-green); }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-secondary); }

@media (max-width: 820px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .mobile-cta { display: block; padding: 10px 16px !important; }
    .main-nav .container { justify-content: space-between; position: relative; z-index: 1002; }
    .main-nav .logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .slide-out-nav { display: flex; position: fixed; top: 0; left: 0; width: 80%; max-width: 320px; height: 100vh; background: var(--surface); flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0; padding: 100px 30px 30px 30px; padding-bottom: max(30px, env(safe-area-inset-bottom)); z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease-in-out; box-shadow: 5px 0 15px rgba(0,0,0,0.1); }
    .slide-out-nav.active { transform: translateX(0); }
    .slide-out-nav .menu-title { font-family: var(--font-headline); font-size: 1rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
    .slide-out-nav ul { list-style: none; width: 100%; }
    .slide-out-nav li { display: block; width: 100%; }
    .slide-out-nav li a { display: block; font-size: 1.5rem; font-weight: 600; padding: 15px 0; border-bottom: 1px solid var(--border); font-family: var(--font-headline); color: var(--text-primary); }
    .slide-out-nav li:first-of-type a { border-top: 1px solid var(--border); }
    .values-section .grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (min-width: 821px) {
    .mobile-cta { display: none; }
    .slide-out-nav { display: none; }
}

@media (max-width: 768px) {
    section, .page-header { padding: 80px 0; }
    .page-header { min-height: 0; padding: 120px 0 80px 0; }
    
    .hero { padding-top: 120px; }
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text { order: 2; }
    .hero-image { order: 1; }
    .hero-image img { max-width: 280px; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    
    .feature-spotlight .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .feature-image { order: 1; min-height: 480px; }
    .feature-text { order: 2; }
    .feature-text p { margin-left: auto; margin-right: auto; }
    .layered-image-container img { width: 70%; }
    
    .how-it-works .grid { grid-template-columns: 1fr; gap: 20px; }

    .story-section .container { gap: 40px; grid-template-columns: 1fr; text-align: center; }
    .story-heading-container { min-height: auto; display: block; }
    .story-heading-container::before { display: none; }
    .story-heading-container h2 { text-align: center; }
    .story-heading-container::after { left: 50%; transform: translateX(-50%); }

    .faq-answer ul { column-count: 1; }
    
    .waitlist-section { padding-top: 160px; padding-bottom: 80px; }
    .waitlist-form { padding: 32px; }

    .legal-section { padding-top: 60px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
}