@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Work+Sans:wght@300;400;500;600&display=swap');

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

:root {
    --clay: #D4A574;
    --terracotta: #C85835;
    --deep-green: #1A4D2E;
    --sand: #F5E6D3;
    --charcoal: #2C2C2C;
    --cream: #FAF6F0;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 9999;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--deep-green);
}

.logo p {
    font-size: 0.75rem;
    color: var(--clay);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--terracotta);
}

.cta-nav {
    padding: 0.75rem 2rem;
    background: var(--deep-green);
    color: white !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.2);
}

.cta-nav:hover {
    background: var(--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 88, 53, 0.3);
}

.cta-nav::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(5deg); }
}

.hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.eyebrow {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--sand);
    color: var(--terracotta);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid var(--clay);
}

.hero h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero h2 .highlight {
    color: var(--terracotta);
    position: relative;
    display: inline-block;
}

.hero h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: -5px;
    right: -5px;
    height: 15px;
    background: var(--clay);
    opacity: 0.3;
    z-index: -1;
    transform: skew(-5deg);
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary {
    padding: 1.25rem 3rem;
    background: var(--deep-green);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(26, 77, 46, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(200, 88, 53, 0.3);
}

.btn-secondary {
    padding: 1.25rem 3rem;
    background: transparent;
    color: var(--deep-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--deep-green);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

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

.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--clay);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateX(5px);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Sections */
.about, .features, .how-it-works {
    padding: 8rem 2rem;
}

.about {
    background: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--clay), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 2.5rem;
    color: var(--deep-green);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.baobab-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--sand);
    border-radius: 15px;
    margin-top: 1rem;
    border: 2px solid var(--clay);
}

.baobab-badge .icon {
    width: 50px;
    height: 50px;
    background: var(--deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.baobab-badge .text h4 {
    font-size: 1.1rem;
    color: var(--deep-green);
    margin-bottom: 0.25rem;
}

.baobab-badge .text p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Features */
.features {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(26, 77, 46, 0.05) 0%, transparent 70%);
}

.features .container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--clay), var(--terracotta));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--clay), var(--terracotta));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 2rem;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(0deg);
}

.feature-card h3 {
    font-size: 1.75rem;
    color: var(--deep-green);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Pillars */
.pillars {
    padding: 8rem 2rem;
    background: var(--deep-green);
    color: white;
}

.pillars .container {
    max-width: 1400px;
    margin: 0 auto;
}

.pillars .section-header h2 {
    color: white;
}

.pillars .section-header p {
    color: rgba(255,255,255,0.8);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.pillar-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.pillar-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.pillar-number {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: var(--clay);
    margin-bottom: 1rem;
    line-height: 1;
}

.pillar-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.pillar-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
    margin-top: 4rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% - 80px);
    background: linear-gradient(180deg, var(--clay), var(--terracotta));
}

.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

.process-step:nth-child(even) .step-content {
    order: 2;
}

.process-step:nth-child(even) .step-visual {
    order: 1;
}

.step-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-number {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--clay), var(--terracotta));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(200, 88, 53, 0.3);
}

.step-content h3 {
    font-size: 2rem;
    color: var(--deep-green);
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.step-visual {
    background: var(--sand);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.step-icon {
    font-size: 8rem;
    color: var(--clay);
    opacity: 0.6;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--terracotta), var(--deep-green));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-section .container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.btn-white {
    padding: 1.5rem 3.5rem;
    background: white;
    color: var(--deep-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background: var(--charcoal);
    color: white;
}

footer .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--clay);
}

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

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--terracotta);
}

.modal-content h3 {
    font-size: 2rem;
    color: var(--deep-green);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Work Sans', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--clay);
}

.modal-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--deep-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.modal-submit:hover {
    background: var(--terracotta);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h2 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 1fr;
    }

    .process-step:nth-child(even) .step-content {
        order: 1;
    }

    .process-step:nth-child(even) .step-visual {
        order: 2;
    }

    footer .container {
        grid-template-columns: 1fr;
    }
}
