/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F8F6F0;
    overflow-x: hidden;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}



body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background: transparent;
    border: none;
    outline: none;
}

a {
    color: #333333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Placeholder with Gradient Circle */
.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gradient-circle {
    width: 26px;
    height: 26px;
    border-radius: 13px;
    background: linear-gradient(135deg, #A9E5BB 0%, #FFB385 50%, #CBB3FF 100%);
    box-shadow: 0 2px 8px rgba(169, 229, 187, 0.3);
}

.logo-image {
    height: 17px;
    width: auto;
    object-fit: contain;
}

/* Pill-shaped Sticky Header */
.sticky-header {
    position: fixed !important;
    top: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(248, 246, 240, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 60px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 70%;
}

.sticky-header:hover {
    background-color: rgba(248, 246, 240, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px 8px 30px;
    width: 100%;
    border-radius: 60px;
    position: relative;
}

.header-content::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(216px, 60%);
    background: linear-gradient(135deg, #A9E5BB 0%, #FFB385 50%, #CBB3FF 100%);
    border-radius: 60px;
    z-index: 0;
}

/* Download Button */
.download-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 216px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    color: #333333;
    z-index: 1;
    gap: 8px;
    transition: opacity 0.2s ease;
    border: none;
    padding: 0;
}

.download-btn:hover {
    opacity: 0.8;
    color: #333333;
}

.download-btn svg {
    width: 17px;
    height: 17px;
}

/* Hero Section */
.hero-section {
    background-color: #F8F6F0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 0; /* Remove bottom padding to allow overlap */
    z-index: 1; /* Lower z-index so hero phones go under next section */
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 800px;
    margin-top: 60px;
    color: #333333;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    color: #333333;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.store-button {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-button img {
    display: block;
    object-fit: contain;
}

.app-store img {
    height: 48px;
    width: auto;
}

.play-store img {
    height: 56px;
    width: auto;
}

.store-button:hover {
    transform: translateY(-5px);
    opacity: 1;
}

/* Hero Screenshots */
.hero-screenshots {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px; /* Reduced gap by 50% */
    background: transparent;
    margin-bottom: -150px; /* Increased overlap to cover more of the phones */
    position: relative;
    z-index: 10; /* High z-index for the phones themselves */
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-phone {
    position: relative;
    transition: transform 0.3s ease;
    background: transparent;
}

.hero-phone:hover {
    transform: translateY(-10px);
}

.hero-screenshot {
    width: 252px;
    height: auto;
    border-radius: 0;
    transition: box-shadow 0.3s ease;
    background: transparent;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: bottom;
}

.hero-phone:hover .hero-screenshot {
    transform: translateY(-2px);
}

/* Feature Sections */
.feature-section {
    padding: 120px 0 0 0; /* Reduced top padding for shorter sections */
    position: relative;
    margin-bottom: 0;
}

.feature-section .container {
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-content {
    display: flex;
    align-items: center; /* Center align vertically */
    justify-content: space-between; /* Space content properly */
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: 350px; /* Reduced height for shorter sections */
}

.feature-text {
    flex: 1;
    max-width: 500px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center text content vertically */
    text-align: left; /* Keep text left-aligned but container centered */
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Center align the image vertically */
    background: transparent;
    z-index: 10;
    margin: 0;
    padding: 0;
    line-height: 0;
    height: 100%;
    margin-bottom: -140px; /* Increased overlap to cover more of the feature screenshots */
    min-height: 500px; /* Match the min-height of feature-content */
}

.feature-screenshot {
    width: 288px;
    height: auto;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    z-index: 15; /* High z-index for screenshots */
    margin: 0;
    padding: 0;
    display: block;
    vertical-align: bottom;
}

.feature-screenshot:hover {
    /* No animation */
}

/* Section Color Themes */
.home-section {
    background: linear-gradient(135deg, #FFF0E6 0%, #FFF0E6 100%); /* Orange background */
    z-index: 2; /* Higher than hero */
    position: relative;
}

.home-section .highlight::before {
    display: none;
}

.journal-section {
    background: linear-gradient(135deg, #F0EBFF 0%, #F0EBFF 100%); /* Purple background */
    z-index: 3; /* Higher than home section */
    position: relative;
}

.journal-section .highlight::before {
    display: none;
}



/* Glow Effects */
.home-glow::before,
.journal-glow::before,
.more-glow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(300px, 70vw);
    height: min(300px, 70vw);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    filter: blur(80px);
    transition: opacity 0.3s ease, filter 0.3s ease;
    pointer-events: none;
}

.home-glow {
    position: relative;
}

.home-glow::before {
    background: radial-gradient(circle, rgba(169, 229, 187, 0.6) 0%, transparent 70%);
}

.home-glow:hover::before {
    opacity: 0.5;
    filter: blur(60px);
}

.journal-glow {
    position: relative;
}

.journal-glow::before {
    background: radial-gradient(circle, rgba(255, 179, 133, 0.6) 0%, transparent 70%);
}

.journal-glow:hover::before {
    opacity: 0.5;
    filter: blur(60px);
}



.more-glow {
    position: relative;
}

.more-glow::before {
    background: radial-gradient(circle, rgba(169, 229, 187, 0.4) 0%, rgba(255, 179, 133, 0.4) 50%, rgba(203, 179, 255, 0.4) 100%);
}

.more-glow:hover::before {
    opacity: 0.5;
    filter: blur(60px);
}

/* Join Momu Section - Blue Theme */
.join-momu-section {
    padding: 180px 0 120px 0; /* Reduced top padding for closer spacing */
    background: linear-gradient(135deg, #EBF7FD 0%, #EBF7FD 100%); /* Soft pastel sky blue - solid version of the original transparent */
    text-align: center;
    z-index: 5; /* Highest z-index to be on top */
    position: relative;
}

.join-momu-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.balance-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #333333;
    line-height: 1.3;
    text-align: center;
    max-width: 700px;
}

/* New Download Button */
.new-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #A9E5BB 0%, #FFB385 50%, #CBB3FF 100%);
    color: #333333;
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    min-width: 180px;
}

.new-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
    color: #333333;
}

.download-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.download-text {
    font-weight: 600;
}

/* Footer */
footer {
    background-color: #333333;
    color: #fff;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer p {
    margin-bottom: 1rem;
    color: #cccccc;
}

footer a {
    color: #fff;
    font-weight: 500;
}

footer a:hover {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cccccc;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

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

/* Responsive Design */
@media (min-width: 768px) {
    .hero-screenshots {
        gap: 60px;
    }
    
    .hero-screenshot {
        width: 270px;
    }
    
    .hero-image-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-image {
        width: 100%;
        max-width: 600px;
    }
    
    .feature-screenshot {
        width: 315px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.375rem;
    }
    
    .feature-text h2 {
        font-size: 2.75rem;
    }
    
    .balance-heading {
        font-size: 2.25rem;
        line-height: 1.25;
    }
    
    .join-momu-content {
        gap: 2.25rem;
    }
}

@media (min-width: 1200px) {
    .hero-screenshots {
        gap: 80px;
    }
    
    .hero-screenshot {
        width: 288px;
    }
    
    .hero-image-container {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-image {
        width: 100%;
        max-width: 800px;
    }
    
    .feature-screenshot {
        width: 342px;
    }
    
    .feature-content {
        gap: 100px;
    }
    
    .balance-heading {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .join-momu-content {
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 0 !important;
    }
    
    .container {
        width: 100%;
        padding: 15px;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .sticky-header {
        position: fixed !important;
        top: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) translateZ(0) !important;
        z-index: 999999 !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        background-color: rgba(248, 246, 240, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 50px;
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        width: 85%;
        max-width: 400px;
        height: 50px;
        will-change: transform;
        -webkit-transform: translateX(-50%) translateZ(0);
    }
    
    .sticky-header:hover {
        background-color: rgba(248, 246, 240, 0.98);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    }
    
    .header-content {
        padding: 8px 20px;
        border-radius: 50px;
        max-width: 400px;
        margin: 0 auto;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-content::after {
        width: 120px;
        border-radius: 20px;
        top: 8px;
        bottom: 8px;
        height: 34px;
    }
    
    .download-btn {
        position: relative;
        right: 0;
        top: 0;
        bottom: 0;
        width: 120px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        border-radius: 20px;
        font-weight: 600;
        padding: 0 12px;
        background: transparent;
        border: none;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-top: 80px;
    }
    
    .hero-section {
        padding-top: 90px; /* Optimized for mobile header height */
        padding-bottom: 0; /* Maintain overlap effect */
        min-height: 80vh;
    }
    
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        order: 1; /* Text comes first */
        margin-bottom: 40px;
    }
    
    .hero-screenshots {
        order: 2; /* Image comes second */
        gap: 20px;
        margin-top: 20px;
        margin-bottom: -110px; /* Increased overlap for mobile */
    }
    
    .hero-screenshot {
        width: 216px;
    }
    
    .hero-image-container {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
    }
    
    .feature-section {
        padding: 120px 0 0 0; /* Reduced top padding for shorter sections */
    }
    
    .feature-content {
        flex-direction: column;
        gap: 40px;
        text-align: left;
        align-items: center;
        justify-content: center; /* Center content vertically */
        min-height: auto; /* Remove fixed height on mobile */
    }
    
    .feature-content.reverse {
        flex-direction: column;
    }
    
    .feature-text {
        order: 1; /* Text comes first on mobile for all sections */
        max-width: 100%;
        text-align: left; /* Left align text on mobile */
        justify-content: center;
    }
    
    .feature-image {
        order: 2; /* Image comes second on mobile for all sections */
    }
    
    .feature-text h2 {
        font-size: 1.75rem; /* Readable size for mobile */
        line-height: 1.3;
    }
    
    .feature-text p {
        font-size: 1rem; /* Readable size for mobile */
        line-height: 1.5;
    }
    
    .feature-screenshot {
        width: 252px;
    }
    
    .feature-image {
        margin-bottom: -120px; /* Increased overlap for mobile feature screenshots */
    }
    
    .join-momu-section {
        padding: 100px 0 80px 0; /* Further reduced top padding for closer spacing */
    }
    
    .join-momu-content {
        max-width: 90%;
        gap: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 15px;
    }
    
    .balance-heading {
        font-size: 2rem;
        line-height: 1.2;
        max-width: 100%;
    }
    
    .new-download-btn {
        font-size: 1rem;
        padding: 14px 28px;
        border-radius: 25px;
        min-width: 160px;
        max-width: 250px;
        gap: 6px;
    }
    
    .download-icon {
        font-size: 1.1rem;
    }
    
    .download-text {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Mobile styles for new sections */
    .primary-cta {
        margin: 20px 0;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 14px 28px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step {
        padding: 30px 20px;
    }
    
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.9rem;
    }
    
    .testimonials {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
        max-width: 100%;
    }
    
    .testimonial {
        padding: 20px 15px;
        margin: 0 10px;
        border-radius: 12px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
        background: white;
    }
    
    .testimonial p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
        color: #333333;
        font-style: italic;
    }
    
    .testimonial .author {
        font-weight: 600;
        color: #666666;
        font-size: 0.85rem;
    }
    
    /* Mobile footer styling */
    footer {
        padding: 40px 0 30px 0;
        text-align: center;
    }
    
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
    
    footer p {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 8px 0;
    }
} 

.hero-screenshot,
.feature-screenshot {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    overflow: hidden;
}

.feature-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #333333;
}

.feature-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    line-height: 1.7;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

/* New sections styling */

/* Primary CTA Button */
.primary-cta {
    margin: 30px 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #A9E5BB 0%, #FFB385 50%, #CBB3FF 100%);
    color: #333333;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Feature subtitle for AI Journaling */
.feature-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #A9E5BB;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #E8F5EC 0%, #E8F5EC 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333333;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
}

.step p {
    color: #666666;
    line-height: 1.6;
}

/* Social Proof Section */
.social-proof-section {
    padding: 80px 0;
    background: #f8f6f0;
    position: relative;
    z-index: 5; /* Higher than community section */
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.testimonial p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333333;
    font-style: italic;
}

.testimonial .author {
    font-weight: 600;
    color: #666666;
    font-size: 0.9rem;
}



/* Desktop/tablet only: reverse layout for journal section */
@media (min-width: 768px) {
    .feature-content.reverse {
        flex-direction: row-reverse;
    }
}