@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --bg-walnut: #3E2723;
    --card-cream: #FFF8ED;
    --text-primary: #21130D;
    --text-sub: #384E31;
    --forest-green: #4A6741;
    --accent: #D99101;
    --success: #5B8C5A;
    --danger: #A63D40;
    --paper: #FDF5E6;
    --brown-text: #3E2723;
    --radius-organic: 16px;
    --border-walnut: #4E342E;
    --shadow-deep: 0 10px 40px rgba(44, 27, 16, 0.2);
    --shadow-soft: 0 4px 20px rgba(44, 27, 16, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-walnut);
}

/* --- APP BACKGROUND MIRROR --- */
.app-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background-color: var(--bg-walnut);
}

.wood-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/wood_texture.png');
    background-repeat: repeat;
    opacity: 0.35;
}

.crema-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 248, 236, 0.4);
}

.paper-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/paper_noise.png');
    background-repeat: repeat;
    opacity: 0.15;
    mix-blend-mode: multiply;
}

/* --- LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    color: var(--brown-text);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: rotate(-2deg) translateY(0px); }
    50% { transform: rotate(-2deg) translateY(-15px); }
    100% { transform: rotate(-2deg) translateY(0px); }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- COMPONENTS MIRROR --- */

/* Card Frame */
.card-frame {
    background-color: var(--card-cream);
    border: 2px solid var(--border-walnut);
    border-radius: var(--radius-organic);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: default;
}

.card-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(44, 27, 16, 0.15);
}

/* Polaroid (Scrapbook feel) */
.polaroid {
    background-color: #FFF8EC;
    padding: 16px;
    padding-bottom: 48px;
    border: 1px solid #EFE1D1;
    transform: rotate(-2deg);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.polaroid-img {
    width: 100%;
    aspect-ratio: 1;
    background-color: #F5F5F5;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

/* Old Plank Button */
.btn-plank {
    display: inline-flex;
    align-items: center;
    background-color: #4E342E;
    color: #FFF;
    padding: 18px 45px;
    border: 3px solid #2C1B10;
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    font-size: 14px;
}

.btn-plank:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background-color: #5D3F38;
}

.btn-plank:active {
    transform: translateY(0) scale(0.98);
}

/* Section Header Pleca */
.pleca {
    background-color: var(--text-sub);
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
    color: #FFF;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* --- SECTIONS --- */

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: left;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.hero-tagline {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--bg-walnut);
}

.hero-sub {
    font-size: 22px;
    color: var(--text-primary);
    opacity: 0.85;
    margin-bottom: 48px;
    max-width: 540px;
    font-weight: 400;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(74, 103, 65, 0.1);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    color: var(--forest-green);
}

.feature-title {
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.5;
}

/* Emotional Section */
.emotional-bg {
    background-color: var(--card-cream);
    border-top: 2px dashed rgba(62, 39, 35, 0.2);
    border-bottom: 2px dashed rgba(62, 39, 35, 0.2);
    position: relative;
    padding: 120px 0;
}

.emotional-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.emotional-text {
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    color: var(--forest-green);
    margin-bottom: 32px;
    line-height: 1.4;
}

/* Privacy Visual Trust Block */
.trust-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.badge {
    background-color: rgba(74, 103, 65, 0.08);
    border: 1.5px solid rgba(74, 103, 65, 0.15);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
    color: var(--forest-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- DECORATIVE ELEMENTS --- */
.paw-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.paw {
    position: absolute;
    width: 64px;
    height: 64px;
    color: #2C1B10; /* Deep Walnut for strong contrast */
    opacity: 0;
}

@keyframes pawFade {
    0% { opacity: 0; transform: scale(0.7) rotate(var(--rot)); }
    15% { opacity: 0.2; transform: scale(1) rotate(var(--rot)); }
    85% { opacity: 0.2; transform: scale(1) rotate(var(--rot)); }
    100% { opacity: 0; transform: scale(1.2) rotate(var(--rot)); }
}

.paw-animated {
    animation: pawFade 12s infinite;
}

.doodle {
    position: absolute;
    color: var(--border-walnut);
    opacity: 0.05;
    pointer-events: none;
    z-index: -2;
}

/* Specific Doodle Placements */
.doodle-hero { top: 15%; right: 5%; transform: rotate(15deg); }
.doodle-features { bottom: 10%; left: 5%; transform: rotate(-10deg); }
.doodle-why { top: 40%; left: 0%; transform: rotate(-5deg); }

/* --- PERFORMANCE OPTIMIZATION --- */
.wood-layer, .paper-noise, .app-bg {
    will-change: transform;
    backface-visibility: hidden;
}

.footer-logo {
    color: var(--card-cream);
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 16px;
}

/* Footer */
footer {
    background-color: var(--bg-walnut);
    padding: 80px 0;
    color: rgba(255,255,255,0.4);
    text-align: center;
    position: relative;
    z-index: 10;
}

/* --- HOW IT WORKS SECTION (PROGRESSION REFACTOR) --- */
.journey-container {
    position: relative;
    padding: 60px 0;
}

.journey-path {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--forest-green) 0, var(--forest-green) 12px, transparent 12px, transparent 24px);
    opacity: 0.15;
    z-index: 1;
}

.flow-grid-journey {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.journey-step {
    text-align: center;
    background: var(--card-cream);
    border: 2px solid var(--border-walnut);
    border-radius: var(--radius-organic);
    padding: 50px 30px;
    box-shadow: var(--shadow-deep);
    position: relative;
    z-index: 2;
    overflow: visible; /* Ensure numbers are not clipped */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.journey-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(44, 27, 16, 0.2);
    z-index: 5;
}

.journey-circle {
    width: 80px;
    height: 80px;
    background: rgba(74, 103, 65, 0.08); /* Forest Green tint */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    color: var(--forest-green);
    position: relative;
    z-index: 1;
}

.journey-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-walnut);
    color: #FFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 16px;
    border: 3px solid var(--card-cream);
    z-index: 10; /* Force it on top */
}

.journey-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--bg-walnut);
    margin-bottom: 12px;
}

.journey-desc {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE --- */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 1000px) {
    .container {
        padding: 0 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-tagline {
        font-size: 38px; /* Slightly smaller for mobile safety */
    }

    .hero-sub {
        font-size: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    .polaroid {
        margin-top: 40px;
        max-width: 85vw; /* Even more safe margin */
    }

    .features-grid {
        grid-template-columns: 1fr; /* Force single column on mobile */
        gap: 24px;
    }

    .flow-grid-journey {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .journey-path {
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        background: repeating-linear-gradient(180deg, var(--forest-green) 0, var(--forest-green) 12px, transparent 12px, transparent 24px);
    }
    
    .journey-step {
        padding: 40px 20px;
    }

    .doodle {
        display: none;
    }

    .trust-block {
        padding: 40px 20px !important;
    }
}
