/* CSS Variables based on Figma */
:root {
    --primary-green: #06C169;
    --primary-orange: #FE9F45;
    --dark-text: #252B33;
    --light-text: #3C4541;
    --white: #FFFFFF;
    --dark-navy: #26293D;
    --orange-gradient-start: #FF8722;
    --orange-gradient-mobile: #FF8B1D;
    --green-light: #8BF6C4;
    --faq-border: rgba(0, 0, 0, 0.3);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark-text);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 119px;
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-icon {
    width: 280px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-cta {
    background: var(--primary-green);
    color: var(--white);
    padding: 7px 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.03em;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    background-color: #05a85a;
    box-shadow: 0px 6px 12px rgba(6, 193, 105, 0.4);
}

.nav-cta:active {
    background-color: #049a52;
    box-shadow: 0px 2px 6px rgba(6, 193, 105, 0.3);
}

.nav-cta-mobile {
    display: none;
}

.nav-cta-desktop {
    display: inline;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--orange-gradient-start) 62.99%, var(--white) 100%);
    padding-top: 90px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 15px 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2;
    text-align: center;
    color: var(--white);
    margin-bottom: 10px;
    padding-top: 15px;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 24px;
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
}

/* Phone mockup */
.hero-phone-area {
    width: 900px;
    height: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-phone-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kai-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 5px;
    text-align: center;
}

/* Mobile Feature Carousel - Hidden on desktop */
.mobile-feature-carousel {
    display: none;
}

/* Carousel slides - only show active */
.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* App Store Buttons */
.app-buttons {
    display: flex;
    gap: 50px;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 20px;
    margin-left: 35px;
    position: relative;
    z-index: 10;
}

.app-button {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    min-width: 166px;
    height: 50px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.app-button:hover {
    background-color: #05a85a;
    box-shadow: 0px 6px 12px rgba(6, 193, 105, 0.4);
}

.app-button:active {
    background-color: #049a52;
    box-shadow: 0px 2px 6px rgba(6, 193, 105, 0.3);
}

.store-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    object-fit: contain;
}

.google-play .store-icon {
    width: 38px;
    height: 38px;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.app-button-small {
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-align: left;
}

.app-button-large {
    font-size: 16px;
    font-weight: 600;
    line-height: 18px;
    text-align: left;
}

/* Feature Section */
.feature-section {
    padding: 0px 100px 40px;
    max-width: 1440px;
    margin: 0 auto;
    margin-top: -30px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    position: relative;
    left: -50px;
    top: -30px;
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.4;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-title-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-title-icon img {
    width: 100%;
    height: auto;
}

.feature-title-text {
    display: flex;
    flex-direction: column;
}

.feature-title-text span {
    display: block;
}

.feature-title span {
    color: var(--primary-orange);
}

.feature-title-text .green-text {
    color: var(--primary-green);
    white-space: nowrap;
}

.feature-description {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.6;
    color: var(--light-text);
    margin-left: 55px;
}

.feature-description.green {
    color: var(--primary-green);
    font-size: 30px;
    line-height: 50px;
}

.feature-phone {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-phone.with-circles::before,
.feature-phone.with-circles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(254, 159, 69, 0.15);
    z-index: 0;
}

.feature-phone.with-circles::before {
    width: 210px;
    height: 210px;
    top: 100px;
    right: -450px;
    left: auto;
    background: radial-gradient(circle, rgba(254, 159, 69, 0.1) 0%, rgba(254, 159, 69, 0) 70%);
}

.feature-phone.with-circles::after {
    width: 532px;
    height: 532px;
    top: calc(50% - 55px);
    left: calc(50% + 75px);
    transform: translate(-80%, -20%);
    background: radial-gradient(circle, rgba(254, 159, 69, 1) 0%, rgba(254, 159, 69, 0) 70%);
}

.feature-phone #lottie-animation-1,
.feature-phone #lottie-animation-2,
.feature-phone #lottie-animation-3 {
    position: relative;
    z-index: 1;
}

.feature-phone.with-circle-2::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    width: 532px;
    height: 532px;
    top: calc(50% - 105px);
    left: calc(50% - 100px);
    transform: translate(-20%, -20%);
    background: radial-gradient(circle, rgba(254, 159, 69, 1) 0%, rgba(254, 159, 69, 0) 70%);
}

.feature-phone.with-circle-3::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    width: 532px;
    height: 532px;
    top: calc(50% - 105px);
    left: calc(50% + 75px + 36px);
    transform: translate(-80%, -20%);
    background: radial-gradient(circle, rgba(254, 159, 69, 1) 0%, rgba(254, 159, 69, 0) 70%);
}

.feature-phone lottie-player,
.feature-phone #lottie-animation-1 {
    width: 420px !important;
    height: 630px !important;
}

.feature-phone #lottie-animation-1 svg {
    width: 100% !important;
    height: 100% !important;
}

.animation-placeholder {
    width: 300px;
    height: 450px;
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 24px;
}

/* Earn Extra Cash Section */
.earn-section {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
}

.earn-section .earn-title,
.earn-section .earn-subtitle {
    padding: 0 100px;
    position: relative;
    top: -70px;
}

.earn-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 49px;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.earn-title span {
    color: var(--dark-text);
}

.earn-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    color: var(--dark-text);
    margin-bottom: 40px;
}

/* Gradient Animation Section */
.earn-animation-section {
    background-image: linear-gradient(to bottom, transparent 0%, transparent 63%, white 70%), url('images/Desktop Earn Extra Cash Animation Background.png');
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    border-radius: 0;
    padding: 80px 60px 180px;
    max-width: 100%;
    margin: -85px 0 60px;
    position: relative;
    overflow: visible;
}

.earn-animation-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.earn-steps {
    position: relative;
    top: 0px;
}

.earn-animation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.earn-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.earn-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-text);
}

.earn-step-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earn-step-icon img {
    max-width: 100%;
    max-height: 100%;
}

.earn-step-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 8px;
}

.earn-step-desc {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    max-width: 180px;
}

.step-line {
    width: 100px;
    height: 2px;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.step-line img {
    width: 100%;
}

/* Inspire Section */
.inspire-section {
    background: linear-gradient(180deg, var(--orange-gradient-start) 55%, var(--white) 95%);
    padding: 60px 100px 50px;
    text-align: center;
    position: relative;
    margin-top: -250px;
    margin-bottom: 0px;
}

.inspire-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 450px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.inspire-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 49px;
    color: var(--white);
    text-transform: capitalize;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.inspire-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: var(--white);
    text-transform: capitalize;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.inspire-subtitle strong {
    text-decoration: underline;
}

.affiliate-btn {
    background: var(--white);
    color: var(--primary-green);
    padding: 12px 40px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.affiliate-btn:hover {
    background-color: #f0f0f0;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    color: #05a85a;
}

.affiliate-btn:active {
    background-color: #e5e5e5;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
}

.rewards-area {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 60px;
    margin-bottom: -500px;
    position: relative;
    z-index: 1;
}

.reward-car {
    max-width: none;
    max-height: none;
    transform: translateY(-480px) translateX(410px);
    pointer-events: none;
}

.reward-iphone {
    max-width: none;
    max-height: none;
    transform: scale(1.25) translateY(-220px) translateX(221px);
    pointer-events: none;
}

.reward-watch {
    max-width: none;
    max-height: none;
    transform: scale(0.25) translateY(-700px) translateX(-800px);
    pointer-events: none;
}

/* FAQ Section */
.faq-section {
    padding: 80px 100px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 40px;
    text-align: center;
}

.faq-title span {
    color: var(--primary-orange);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.faq-item {
    border: 1px solid var(--faq-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(6, 193, 105, 0.15);
}

.faq-question {
    padding: 18px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    position: relative;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #05a85a 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(6, 193, 105, 0.3);
}

.faq-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 193, 105, 0.4);
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-toggle::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.open .faq-toggle {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e8870a 100%);
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(254, 159, 69, 0.4);
}

.faq-item.open .faq-toggle:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(254, 159, 69, 0.5);
}

.faq-item.open .faq-toggle::after {
    transform: translate(-50%, -50%);
}

.faq-answer {
    padding: 0 20px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 160%;
    color: var(--light-text);
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 15px 20px 20px;
}

/* Footer */
.footer {
    padding: 40px 100px;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-orange);
}

.footer-copyright {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #666;
}

/* Mobile half phone - hidden on desktop */
.mobile-half-phone {
    display: none;
}

/* Large Laptop Screens (15" laptops ~1366-1440px) */
@media (max-width: 1440px) {
    .nav-logo-icon {
        width: 280px;
        height: 70px;
    }

    .hero-phone-area {
        width: 804px;
        height: 610px;
    }

    .hero-title {
        font-size: 50px;
        padding-top: 10px;
    }

    .hero-subtitle {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .app-buttons {
        margin-top: -25px;
        gap: 50px;
        margin-left: 35px;
    }
}

@media (max-width: 1400px) {
    .nav-logo-icon {
        width: 275px;
        height: 69px;
    }

    .hero-phone-area {
        width: 700px;
        height: 530px;
    }

    .hero-title {
        font-size: 48px;
        padding-top: 9px;
    }

    .hero-subtitle {
        font-size: 21px;
        margin-bottom: 11px;
    }

    .app-buttons {
        margin-top: -22px;
        gap: 50px;
        margin-left: 35px;
    }
}

@media (max-width: 1366px) {
    .nav-logo-icon {
        width: 270px;
        height: 68px;
    }

    .hero-phone-area {
        width: 600px;
        height: 450px;
    }

    .hero-title {
        font-size: 46px;
        padding-top: 8px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .app-buttons {
        margin-top: -20px;
        gap: 50px;
        margin-left: 35px;
    }
}

/* Medium Screen Styles (Laptops) */
@media (max-width: 1200px) {
    .nav-logo-icon {
        width: 260px;
        height: 65px;
    }

    .hero-phone-area {
        width: 520px;
        height: 400px;
    }

    .hero-title {
        font-size: 40px;
        padding-top: 6px;
    }

    .hero-subtitle {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .app-buttons {
        margin-top: -18px;
        gap: 50px;
        margin-left: 35px;
    }
}

@media (max-width: 1024px) {
    .nav-logo-icon {
        width: 250px;
        height: 62px;
    }

    .hero-phone-area {
        width: 460px;
        height: 350px;
    }

    .hero-title {
        font-size: 36px;
        padding-top: 5px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .app-buttons {
        margin-top: -15px;
        margin-left: 30px;
        gap: 50px;
    }

    .app-button {
        padding: 8px 16px;
        min-width: 150px;
        height: 48px;
    }

    .store-icon {
        width: 30px;
        height: 30px;
    }

    .google-play .store-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 900px) {
    .nav-logo-icon {
        width: 230px;
        height: 58px;
    }

    .hero-phone-area {
        width: 480px;
        height: 370px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .app-buttons {
        margin-top: -15px;
        margin-left: 25px;
        gap: 45px;
    }

    .app-button {
        padding: 8px 14px;
        min-width: 140px;
        height: 45px;
    }

    .store-icon {
        width: 28px;
        height: 28px;
    }

    .google-play .store-icon {
        width: 30px;
        height: 30px;
    }

    .app-button-small {
        font-size: 9px;
    }

    .app-button-large {
        font-size: 14px;
    }
}

/* 1920x1080 at 125% zoom (effective 1536x864) */
@media screen and (max-width: 1536px) and (max-height: 864px) {
    .nav-logo-icon {
        width: 260px;
        height: 65px;
    }

    .hero-phone-area {
        width: 832px;
        height: 627px;
    }

    .hero-title {
        font-size: 44px;
        padding-top: 5px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .app-buttons {
        margin-top: -18px;
        gap: 50px;
        margin-left: 35px;
    }
}

/* Height-based adjustments for screens with limited vertical space (like 15" 1080p laptops) */
@media screen and (max-height: 1000px) and (min-width: 1440px) {
    .nav {
        padding: 8px 119px;
    }

    .nav-logo-icon {
        width: 200px;
        height: 50px;
    }

    .hero {
        padding-top: 66px;
    }

    .hero-content {
        padding: 5px 100px 10px;
    }

    .hero-phone-area {
        width: 960px;
        height: 720px;
    }

    .hero-title {
        font-size: 48px;
        padding-top: 0;
        margin-bottom: 5px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .app-buttons {
        margin-top: -30px;
        gap: 50px;
        margin-left: 35px;
    }
}

@media (max-height: 1000px) {
    .hero-phone-area {
        width: 933px;
        height: 706px;
    }

    .hero-title {
        font-size: 48px;
        padding-top: 5px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .app-buttons {
        margin-top: -22px;
    }
}

@media (max-height: 950px) {
    .hero-phone-area {
        width: 893px;
        height: 672px;
    }

    .hero-title {
        font-size: 46px;
        padding-top: 5px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .app-buttons {
        margin-top: -20px;
    }
}

@media (max-height: 900px) {
    .hero-phone-area {
        width: 832px;
        height: 627px;
    }

    .hero-title {
        font-size: 44px;
        padding-top: 5px;
    }

    .hero-subtitle {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .app-buttons {
        margin-top: -18px;
    }
}

@media (max-height: 850px) {
    .hero-phone-area {
        width: 765px;
        height: 578px;
    }

    .hero-title {
        font-size: 40px;
        padding-top: 5px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .app-buttons {
        margin-top: -15px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav {
        padding: 10px 15px;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .nav-logo {
        font-size: 22px;
    }

    .nav-logo-icon {
        width: 140px;
        height: 50px;
    }

    .nav-cta {
        padding: 8px 20px;
        font-size: 14px;
        border-radius: 20px;
        position: absolute;
        right: 15px;
    }

    .nav-cta-mobile {
        display: inline;
    }

    .nav-cta-desktop {
        display: none;
    }

    .hero {
        background: linear-gradient(180deg, var(--orange-gradient-mobile) 0px, var(--orange-gradient-mobile) 560px, var(--white) 680px);
        min-height: 100vh;
        padding-top: 70px;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        width: 100%;
        margin-left: 0;
    }

    .hero-content {
        padding: 0 15px 0;
        display: flex;
        flex-direction: column;
        flex: 1;
        position: relative;
    }

    .hero-title {
        font-size: 30px;
        line-height: 38px;
        white-space: nowrap;
        margin-bottom: 5px;
        padding-top: 0;
        margin-top: 10px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 22px;
        white-space: nowrap;
        text-align: center;
        margin-bottom: 10px;
    }

    .hero-phone-area {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex: 1;
        height: auto;
        overflow: visible;
    }

    .hero-phone-image {
        width: 100%;
        max-width: none;
        height: auto;
        object-fit: contain;
        object-position: center top;
        transform: scale(1.87);
        transform-origin: center top;
        margin-bottom: 200px;
    }

    .app-buttons {
        flex-direction: row;
        gap: 15px;
        margin-left: 0;
        margin-top: 50px;
        padding: 20px 0 40px;
        position: relative;
        z-index: 10;
    }

    .app-button {
        padding: 10px 16px;
        min-width: 145px;
        gap: 10px;
        height: 48px;
    }

    .store-icon {
        width: 26px;
        height: 26px;
    }

    .google-play .store-icon {
        width: 28px;
        height: 28px;
    }

    .app-button-small {
        font-size: 9px;
        line-height: 11px;
    }

    .app-button-large {
        font-size: 14px;
        line-height: 16px;
    }

    /* Mobile Feature Carousel */
    .mobile-feature-carousel {
        display: block !important;
        width: 100%;
        margin-left: 0;
        padding: 15px 0 40px;
        background: var(--white);
        position: relative;
        z-index: 5;
    }

    .carousel-container {
        position: relative;
        width: 100%;
    }

    .carousel-slides {
        position: relative;
        width: 100%;
    }

    .carousel-slide.active {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    .carousel-animation {
        width: 100%;
        max-width: 400px;
        height: 380px;
        margin: 0 auto 0;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        overflow: hidden;
        position: relative;
    }

    .carousel-animation svg {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }

    #mobile-lottie-1 {
        transform: scale(1.45) translateX(-5%) translateY(0px);
        transform-origin: center center;
    }

    #mobile-lottie-2 {
        transform: scale(1.13) translateX(-5%) translateY(0px);
        transform-origin: center center;
    }

    #mobile-lottie-3 {
        transform: scale(1.2) translateX(0%) translateY(0px);
        transform-origin: center center;
    }

    #mobile-lottie-3 + .carousel-text .carousel-title {
        white-space: normal !important;
        max-width: 280px;
    }

    #mobile-lottie-3 + .carousel-text .carousel-description {
        max-width: none !important;
        width: auto !important;
        text-align: center !important;
        word-spacing: 0px;
        letter-spacing: -0.3px;
    }

    .carousel-animation img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .carousel-text {
        padding: 0;
        position: relative;
        z-index: 10;
        margin-top: 35px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    .carousel-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 18px;
        color: var(--dark-text);
        margin-bottom: 15px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .carousel-title .green-text {
        color: var(--primary-green);
    }

    .carousel-description {
        font-family: 'Poppins', sans-serif;
        font-size: 15px;
        color: var(--light-text);
        line-height: 1.6;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 25px;
        padding-bottom: 5px;
    }

    .carousel-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .carousel-dot.active {
        background: var(--primary-green);
        transform: scale(1.2);
    }

    /* Hide desktop feature section on mobile */
    .feature-section {
        display: none;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }

    .feature-content {
        position: static !important;
        left: 0 !important;
        text-align: center;
        padding: 0 10px;
    }

    .feature-title {
        font-size: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .feature-title-icon {
        margin: 0 auto;
    }

    .feature-title-icon img {
        width: 50px;
        height: 50px;
    }

    .feature-title-text {
        text-align: center;
    }

    .feature-description {
        font-size: 16px;
        text-align: center;
        margin-left: 0 !important;
    }

    .feature-description.green {
        font-size: 18px;
        line-height: 28px;
    }

    .feature-phone {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        overflow: hidden;
    }

    .feature-phone #lottie-animation-1,
    .feature-phone #lottie-animation-2,
    .feature-phone #lottie-animation-3 {
        transform: scale(1) translateX(0) translateY(0) !important;
    }

    .animation-placeholder {
        width: 250px;
        height: 350px;
        font-size: 18px;
    }

    .earn-section {
        padding: 10px 0 0;
        overflow: visible;
    }

    .earn-section .earn-title,
    .earn-section .earn-subtitle {
        padding: 0 20px;
        top: 0;
    }

    .earn-title {
        font-size: 24px;
        line-height: 32px;
    }

    .earn-subtitle {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 20px;
        white-space: normal;
    }

    .earn-animation-section {
        padding-top: 550px;
        padding-bottom: 40px;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        margin-top: -80px;
        border-radius: 0 !important;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 95%, rgba(255,255,255,1) 100%), url('images/Half Phone Mock Up Background.svg') no-repeat center top !important;
        background-size: 110% 650px, 110% 650px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        box-sizing: border-box;
    }

    .earn-animation-section::after {
        display: none !important;
    }

    .earn-animation-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .animation-4-wrapper {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 0 auto 30px !important;
    }

    .phone-mockup-container {
        display: none !important;
    }

    .animation-4-wrapper {
        display: none !important;
    }

    #lottie-animation-4 {
        display: none !important;
    }

    /* Mobile half phone mockup */
    .mobile-half-phone {
        display: block;
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 95%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 0%, black 95%, transparent 100%);
        clip-path: inset(0 0 20px 0);
    }

    .mobile-half-phone img {
        width: 420px;
        height: auto;
    }

    #mobile-lottie-4 {
        position: absolute;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 380px;
        height: 450px;
        z-index: 3;
        overflow: hidden;
        clip-path: inset(0 10px 0 10px);
    }

    .earn-steps {
        flex-direction: row;
        justify-content: space-around;
        gap: 25px;
        width: 100%;
        padding: 0 10px;
    }

    .step-line {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 40px;
        margin-bottom: 20px;
    }

    .step-line img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Hide desktop images on mobile and use background-image for mobile SVGs */
    .earn-step-icon img {
        display: none;
    }

    .earn-step:nth-child(1) .earn-step-icon {
        background: url('images/Sign up icon.svg') no-repeat center center;
        background-size: contain;
    }

    .earn-step:nth-child(3) .earn-step-icon {
        background: url('images/Share Icon.svg') no-repeat center center;
        background-size: contain;
    }

    .earn-step:nth-child(5) .earn-step-icon {
        background: url('images/Redeem Icon.svg') no-repeat center center;
        background-size: contain;
    }

    .step-line img {
        display: none;
    }

    .step-line:nth-child(2) {
        background: url('images/Line inbetween Sign up and share icon.svg') no-repeat center center;
        background-size: 100% auto;
        height: 4px;
    }

    .step-line:nth-child(4) {
        background: url('images/Line inbetween share and redeem icon.svg') no-repeat center center;
        background-size: 100% auto;
        height: 4px;
    }

    .earn-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        max-width: 100px;
    }

    .earn-step-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }

    .earn-step-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .earn-step-title {
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-orange);
        margin-bottom: 0;
    }

    .earn-step-desc {
        display: none;
    }

    .inspire-section {
        background: linear-gradient(180deg, var(--orange-gradient-start) 40%, var(--white) 75%);
        padding: 40px 20px 20px;
        margin-top: 0;
        overflow: visible;
    }

    .inspire-title {
        font-size: 24px;
        line-height: 32px;
    }

    .inspire-subtitle {
        font-size: 14px;
        line-height: 22px;
    }

    .affiliate-btn {
        font-size: 14px;
        padding: 10px 30px;
    }

    .rewards-area {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
        overflow: visible;
        padding: 0 10px;
    }

    .reward-car {
        position: absolute;
        left: 0px;
        top: 50%;
        max-width: 130px;
        max-height: 90px;
        transform: translateY(-100%) !important;
        z-index: 2;
    }

    .reward-watch {
        position: absolute;
        right: 0px;
        top: 50%;
        max-width: 130px;
        max-height: 100px;
        transform: translateY(-100%) !important;
        z-index: 2;
    }

    .reward-iphone {
        max-width: 580px;
        max-height: 435px;
        transform: translateY(-150px) !important;
        z-index: 1;
    }

    .faq-section {
        padding: 40px 15px;
        margin-top: -250px;
    }

    .faq-title {
        font-size: 20px;
        text-align: center;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 13px;
        padding: 15px;
    }

    .faq-toggle {
        width: 24px;
        height: 24px;
    }

    .faq-answer {
        font-size: 13px;
    }

    .footer {
        padding: 30px 20px;
    }
}

/* iPhone 12 Pro Max specific styles (428px width) */
@media (max-width: 430px) {
    .hero {
        background: linear-gradient(180deg, var(--orange-gradient-mobile) 0px, var(--orange-gradient-mobile) 560px, var(--white) 680px);
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 70px;
    }

    .hero-content {
        padding: 0 20px 0;
        min-height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);
    }

    .hero-title {
        font-size: 30px;
        line-height: 38px;
        white-space: nowrap;
        margin-bottom: 5px;
        padding-top: 0;
        margin-top: 10px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 10px;
        text-align: center;
    }

    .hero-phone-area {
        width: 100%;
        max-width: 100%;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .hero-phone-image {
        width: 95%;
        max-width: 380px;
        height: auto;
    }

    .app-buttons {
        margin-top: auto;
        padding: 15px 0 35px;
        gap: 12px;
    }

    .app-button {
        padding: 12px 18px;
        min-width: 155px;
        height: 52px;
    }

    .store-icon {
        width: 28px;
        height: 28px;
    }

    .google-play .store-icon {
        width: 30px;
        height: 30px;
    }

    .app-button-small {
        font-size: 10px;
        line-height: 12px;
    }

    .app-button-large {
        font-size: 15px;
        line-height: 18px;
    }
}

/* ==========================================
   Affiliate Modal Styles
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-content-inner {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--dark-text);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-green);
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.affiliate-signup-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(6, 193, 105, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.field-description {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
}

.ref-link-preview {
    margin-top: 12px;
    margin-bottom: 5px;
    padding: 12px 15px;
    background: #f0f8ff;
    border-left: 3px solid #00a86b;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    display: none;
}

.ref-link-preview strong {
    color: #00a86b;
    font-size: 0.9em;
}

.ref-link-preview code {
    display: block;
    margin-top: 6px;
    font-size: 0.85em;
    color: #333;
    word-break: break-all;
    background: transparent;
    padding: 0;
}

.terms-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 15px;
}

.terms-content {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: #444;
    white-space: pre-wrap;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    display: inline;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-green);
    text-decoration: underline;
}

.form-message {
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-green);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit-btn:hover {
    background: #05a85a;
    transform: translateY(-2px);
}

.form-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.payout-fields {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Terms & Conditions Modal */
.terms-modal-overlay {
    z-index: 10000;
}

.terms-modal-content {
    max-width: 700px;
    max-height: 85vh;
}

.terms-scroll-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.terms-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}

.terms-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.terms-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-text p {
    margin-bottom: 12px;
}

.terms-text ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.terms-text li {
    margin-bottom: 6px;
}

.terms-text a {
    color: var(--primary-green);
    text-decoration: underline;
}

.terms-close-btn {
    display: block;
    width: 100%;
    padding: 12px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-green);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.terms-close-btn:hover {
    background: #05a85a;
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-content-inner {
        padding: 25px 20px;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-right: 30px;
    }

    .modal-close {
        top: 12px;
        right: 15px;
        font-size: 28px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-section-title {
        font-size: 15px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .form-submit-btn {
        padding: 14px 25px;
        font-size: 15px;
    }

    /* Terms Modal Mobile */
    .terms-modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .terms-scroll-container {
        max-height: 55vh;
        padding: 15px;
    }

    .terms-text {
        font-size: 12px;
    }

    .terms-text h3 {
        font-size: 16px;
    }

    .terms-text h4 {
        font-size: 13px;
    }
}