body {
    overflow-x: hidden;
}

/* Main Layout */
.page-wrapper {
    margin: 0 auto;
    background: var(--color-bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* overflow-x: hidden; Removed to fix sticky nav */
}

/* Header */
.site-header {
    height: 4.5rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #fff;
    overflow: hidden;
    /* Prevent overflow */
    /* Ensure bg is white */
}



.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    width: 3rem;
    height: 3rem;
}

.brand-slogan {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.slogan-img-1 {
    width: 4.6rem;
}

.slogan-img-2 {
    width: 4.57rem;
}

/* Navigation */
/* Navigation */
.marketing-nav {
    background: var(--color-bg-light);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    position: relative;
    /* Center on mobile */
}

.nav-item {
    flex: 1;
    max-width: 120px;
    /* Prevent too wide on desktop */
    height: 2.4375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    padding-bottom: 0.55rem;
}

.nav-item.active {
    justify-content: flex-end;
    padding-bottom: 0.55rem;
}

.nav-text {
    font-family: var(--font-family-base);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-text-main);
    text-align: center;
}

.nav-item.active .nav-text {
    font-weight: 500;
    color: var(--color-brand-text);
    margin-bottom: 0;
}

.active-indicator {
    height: 0.1875rem;
    background: var(--color-brand-primary);
    border-radius: 0.25rem 0.25rem 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.nav-border {
    height: 1px;
    background: var(--color-border);
}

/* Hero Section */
.hero-banner {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 15%, rgba(255, 255, 255, 0) 35%), url('../images/gift-bg.png') top center / cover no-repeat;
    /* height auto to allow content to push */
    height: 630px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    padding: 1.25rem 0 0 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    /* Desktop constraint */
}

.hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-main {
    width: 19rem;
    margin-bottom: 0.5rem;
}

.hero-title-sub {
    width: 19rem;
}

.hero-mascot {
    position: relative;
    width: 22.18rem;
    height: 25rem;
    margin-top: -1.25rem;
}

.mascot-figure {
    position: relative;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 22.18rem;
    height: 25rem;
}

.mascot-body {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
}

.mascot-face {
    position: absolute;
    left: 7.25rem;
    top: 9.1rem;
    width: 6.2rem;
}

.mascot-shadow-line {
    position: absolute;
    bottom: -8px;
    left: 65px;
}

.float-icon {
    position: absolute;
}

.coin-1 {
    width: 50px;
    left: 15rem;
    bottom: 18.7rem;
    top: 30px;
    opacity: 1;
}

.coin-2 {
    width: 100px;
    bottom: 16rem;
    top: 60px;
    position: absolute;
    right: 11px;
    opacity: 1;
}

.discount {
    width: 100px;
    left: 0;
    top: 80px;
    opacity: 1;
}

.hero-bottom {
    width: 436px;
    max-width: 27.25rem;
    /* Original height from design analysis or intrinsic ratio */
    min-height: 22rem;
    background: url('../images/gif-talk-bg1.png') top center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align content slightly lower like design */
    padding-bottom: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    bottom: 80px;
    /* OVERLAP FIX: Move up to overlap mascot */
    margin-top: -8rem;
    z-index: 2;
    /* Ensure it's above mascot */
}

.gift-showcase {
    width: 593px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    top: 22px;
}

.gift-title {
    width: 215px;
}

.gift-subtitle {
    font-size: 40px;
}

.gift-subtitle {
    font-family: var(--font-family-base);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--color-text-placeholder);
    text-align: center;
}

.ticket-group {
    display: flex;
    gap: 0.2rem;
    /* Reduced gap */
    width: 100%;
    justify-content: center;
    /* Center visuals */
    padding: 0 1rem;
    /* Add padding to container to prevent edge touching */
}

.ticket {
    /* flex: 1; Remove forced expansion */
    width: 92px;
    /* Allocate roughly 1/3 width each */
    height: auto;
    max-height: none;
    /* box-shadow: var(--shadow-card); Removed as per user previous edit */
    object-fit: cover;
    /* allow image to be larger within bounds */
}

.cta-button {
    width: 20rem;
    cursor: pointer;
}

/* Feature Section */
.feature-intro {
    padding: 3.125rem 1rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.section-title {
    color: var(--color-brand-text);
    font-family: var(--font-family-base);
    font-size: 2.25rem;
    font-weight: 500;
    margin: 0;
}

.decorative-arrow {
    position: absolute;
    width: 6.8rem;
    z-index: 2;
}

.arrow-1 {
    top: 13.75rem;
    left: 50%;
    transform: translate(-50%, -100%);
}

.feature-block {
    margin-bottom: 0;
    position: relative;
    height: 510px;
    width: 100%;
}

.feature-content {
    height: 100%;
    width: 100%;
    padding: 3.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

/* Background Images for Features */
/* Ensure background covers full width section */
.feature-block.feature-search {
    background: url('../images/feature-1-container0.png') top center / cover no-repeat;
    box-shadow: var(--shadow-inset);
}

.feature-block.feature-deals {
    background: url('../images/feature-2-container0.png') top center / cover no-repeat;
    box-shadow: inset 0 -4px 4px rgba(162, 174, 1, 0.5);
}

.feature-block.feature-share {
    background: url('../images/feature-3-container0.png') top center / cover no-repeat;
    box-shadow: inset 0 -4px 4px rgba(204, 158, 121, 0.5);
}

/* Remove bg from container inside since it's now on block */
.bg-cover-1,
.bg-cover-2,
.bg-cover-3 {
    background: none;
    box-shadow: none;
}

.feature-details {
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Default left align */
}

.feature-heading {
    color: var(--color-text-title);
    font-family: var(--font-family-base);
    font-size: 2.25rem;
    font-weight: 500;
    opacity: 0.8;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-family-base);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-brand-text);
    white-space: nowrap;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    background: rgba(210, 105, 19, 0.6);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.phone-mockup {
    position: relative;
    width: 20.6rem;
    height: 40rem;
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
}

.phone-img {
    width: 170px;
    height: 327px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    object-position: top;
}

.phone-img-shadow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    object-position: top;
}

.arrow-2 {
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-3 {
    bottom: -3.5rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Reminders Section */
.reminders-section {
    overflow: hidden;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reminder-card {
    padding: 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reminder-body {
    padding: 1rem;
    position: relative;
    height: 18rem;
    overflow: hidden;
    /* Readability constraint */
    transition: height 0.5s ease;
}

.reminder-body.expanded {
    /* Height is handled by JS for dynamic sizing */
}

.reminder-text ol {
    padding-left: 1.2rem;
    list-style-type: decimal;
}

.reminder-text li {
    font-family: var(--font-family-base);
    font-size: 1rem;
    color: var(--color-text-main);
    text-align: justify;
    font-weight: 500;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through if needed, though btn is outside */
}

.reminder-body.expanded .fade-overlay {
    opacity: 0;
}

.expand-btn {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 1rem;
}

.expand-btn img {
    transition: transform 0.3s ease;
}

.expand-btn.expanded img {
    transform: scaleY(-1);
}

.see-more {
    color: #999996;
    font-weight: 600;
    font-size: 1rem;
}

/* Footer */
.site-footer {
    overflow: hidden;
    background: var(--color-brand-text);
    padding: 4rem 1rem;
    color: var(--color-bg-white);
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.footer-info {
    border-bottom: 1px solid #7a961e;
    padding-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-icon {
    width: 4rem;
}

.footer-brand {
    width: 8.3rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
}

.footer-links a {
    font-family: var(--font-family-base);
    font-weight: 600;
}

.app-download {
    text-align: center;
}

.download-text {
    font-family: var(--font-family-base);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
}

.store-btn {
    height: 2.6rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =========================================
   Desktop Responsive Styles (> 1024px)
   ========================================= */
@media (min-width: 1024px) {

    /* Hero Section */
    .hero-content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        /* Let internal spacing map to design, or use small gap if needed. Design looks tight. */
        padding-bottom: 4rem;
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 150px;
        padding-left: 80px;
    }

    .hero-top {
        width: auto;
        align-items: center;
        display: flex;
        justify-content: space-between;
        height: 360px;
        /* In desktop, mascot is next to text, or under text? 
       From design: Text + Mascot is one group (Left), Gift is (Right).
       So hero-title-group + hero-mascot should be in .hero-top
    */
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .hero-title-main {
        width: 390px;
    }

    .hero-title-sub {
        width: 390px;
    }

    .hero-mascot {
        margin-left: 0;
        margin-top: -1rem;
    }

    .mascot-figure {
        height: 270px;
        overflow: hidden;
    }

    /* Reset overlap for desktop side-by-side layout? */
    /* Reset overlap for desktop side-by-side layout */
    .hero-bottom {
        background: url('../images/gif-talk-bg2.png') center center / contain no-repeat;
        width: 740px;
        height: 380px;
        max-width: none;
        margin-top: 0;
        position: absolute;
        right: 40px;
        /* position: static; default */
    }

    .gift-showcase {
        width: 593px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        top: 15px;
        padding-left: 60px;
    }

    .gift-title {
        width: 300px;
    }

    .ticket {
        width: 170px;
    }

    /* Actually, let's refine Hero based on typical design:
     Maybe Title Left, Mascot Center, Gift Right?
     Or Title + Mascot Left, Gift Right? 
     Let's keep it simple: Flex Row.
  */

    /* Features */
    /* Features */
    .feature-heading {
        font-size: 100px;
    }

    .feature-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        max-width: 1200px;
        /* Ensure content doesn't stretch too wide */
    }

    .feature-details {
        margin-bottom: 0;
        text-align: left;
    }

    .feature-list li {
        line-height: 1.8;
    }

    .phone-mockup {
        width: 45%;
        display: flex;
        justify-content: center;
        height: 480px;
        position: relative;
        bottom: -15px;
    }

    .phone-img {
        width: 330px;
        height: auto;
    }

    /* Target specific feature for reverse layout (Deals) */
    .feature-deals .feature-content {
        flex-direction: row-reverse;
    }

    /* Reminders Section Desktop */
    .reminders-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
    }

    /* Footer */
    .footer-info {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo {
        flex-direction: row;
        align-items: center;
    }

    .footer-links {
        flex-direction: row;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}

/* Fixed Download Button */
.qqq-container-s,
.qqq-container-s * {
    box-sizing: border-box;
}

.qqq-container-s {
    padding: 1rem;
    width: fit-content;
    height: auto;
    position: fixed;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 9999;
    bottom: -100vh;
    /* Originally 33%, now hidden initially for JS delay */
}

.download-icon {
    flex-shrink: 0;
    width: 7.125rem;
    height: 7.5625rem;
    position: relative;
    /* Use right property for hiding animation as requested */
    right: 0%;
    transition: right 0.3s ease-out;
}

.download-icon.is-hidden {
    /* Hide by moving 70% to the right (off-screen) */
    right: -70%;
}

.qqq {
    height: auto;
    position: absolute;
    left: -0.1525rem;
    top: -0.039375rem;
    overflow: visible;
}

.icon-close {
    border-radius: 6.1875rem;
    padding: 0.0625rem;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    right: 0rem;
    top: 0rem;
    aspect-ratio: 1;
}

.ellipse-54 {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 83.33%;
    height: 83.33%;
    position: absolute;
    right: 8.33%;
    left: 8.33%;
    bottom: 8.33%;
    top: 8.33%;
}

.x-close {
    width: 66.67%;
    height: 66.67%;
    position: absolute;
    right: 16.67%;
    left: 16.67%;
    bottom: 16.67%;
    top: 16.67%;
    overflow: visible;
}

.icon-back-to-top {
    flex-shrink: 0;
    width: 3.125rem;
    height: 3.125rem;
    position: relative;
    overflow: visible;
    cursor: pointer;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

.icon-back-to-top.visible {
    opacity: 1;
}

/* Control ms */
.animate__delay-200ms {
    animation-delay: 200ms;
}

.animate__delay-350ms {
    animation-delay: 350ms;
}

.animate__delay-500ms {
    animation-delay: 500ms;
}