@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend+Deca:wght@100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Passion+One:wght@400;700;900&display=swap');

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

html, body {
    overflow-x: hidden;
}

/* (moved) Footer responsive: defined later to ensure it overrides base styles */

body {
    font-family: 'Lexend Deca', sans-serif;
    background-color: #341F54;
    color: #F9F5F8;
}

.mainContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.topMenuSection {
    /* background-color: #142C48; */
    width: 1350px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 35px;
}


.topMenu__left img {
    width: 86px;
}

.topMenu__right {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.topMenuCtaBtn {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #d3dfe0;
    border-radius: 20px;
    border: 1px solid #d3dfe0;
    padding: 12px 21px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topMenuCtaBtn:hover {
    background-color: #d3dfe0;
    color: #24586a;
}

.heroBlock {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(180deg, #18062B 0%, #341F54 100%);
    /* padding: 35px 0; */
}

.heroSection {
    /* background-color: aquamarine; */
    width: 1350px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.heroSection .eclipse-bg {
    position: absolute;
    z-index: -1;
    top: -80px;
    right: 15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #5B21B6 0%, #4C1D95 30%, rgba(76, 29, 149, 0.8) 40%, rgba(76, 29, 149, 0.6) 48%, rgba(76, 29, 149, 0.4) 55%, rgba(76, 29, 149, 0.25) 62%, rgba(76, 29, 149, 0.15) 68%, rgba(76, 29, 149, 0.08) 74%, rgba(76, 29, 149, 0.03) 80%, rgba(76, 29, 149, 0.01) 86%, transparent 92%);
}

.heroContent {
    padding-top: 65px;
    /* background-color: aqua; */
    width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.heroContent .title {
    font-family: 'Passion One', sans-serif;
    font-size: 92px;
    font-weight: 500;
    line-height: 80px;
    letter-spacing: 0em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
}

.heroContent .subtitle {
    /* background-color: #408BA5; */
    width: 550px;
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 32px;
    letter-spacing: 0em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-top: 20px;

}

.heroContent .inputBlock {
    /* background-color: aqua; */
    width: 570px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 55px;
    position: relative;
}

.heroContent .inputBlock textarea {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    line-height: 28px;
    letter-spacing: 0em;
    text-align: left;
    text-underline-position: from-font;
    width: 580px;
    border-radius: 35px;
    border: 1px solid #EFECEE;
    padding: 30px;
    resize: none;
    scrollbar-width: none;
    overflow: hidden;
    color: #202020;
    outline: none;
}

.heroContent .inputBlock textarea::placeholder {
    color: #969696;
}

.heroContent .inputBlock .textareaSentBtn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    border-radius: 20px;
    padding: 16px 19px;
    color: #fff;
    background-color: #6915B7;
    cursor: pointer;
    transition: all 0.3s ease;
    bottom: 15px;
    right: 8px;
}

.heroContent .inputBlock .textareaSentBtn img {
    width: 21px;
    height: 21px;
    margin-right: 8px;
}

.heroContent .inputBlock .textareaSentBtn:hover {
    background-color: #7602e1;  
}

/* Button loading state animations */
.textareaSentBtn.loading {
    opacity: 0.8;
    transform: scale(0.8);
    pointer-events: none;
}

.textareaSentBtn .spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.textareaSentBtn .spinner-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.heroContent .inputIdea {
    width: 530px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    margin-left: 20px;
}

.heroContent .inputIdea img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    margin-bottom: 2px;
}

.heroContent .inputIdea p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 200;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: left;
    text-underline-position: from-font;
}

/* QUOTE SECTION */

.quoteSection {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding: 55px 40px;
    margin: 100px 0;
    background-color: #18062B;
}

.quoteSection .quoteTitle {
    width: 750px;
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 100;
    line-height: 36px;
    /* letter-spacing: 0em; */
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #FCFCFC;
    font-style: italic;
}

.quoteSection .quoteAuthor {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    /* letter-spacing: 0em; */
    text-align: center;
    text-underline-position: from-font;
    color: #FCFCFC;
    font-style: italic;
}

/* CHAT DEMO SECTION */

.chatDemoSection {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.chatDemoSection .chatDemoTitle {
    width: 750px;
    font-family: 'Merriweather', sans-serif;
    font-size: 63px;
    font-weight: 800;
    line-height: 72px;
    /* letter-spacing: 0em; */
    text-align: center;
    color: #F0F0F0;
    margin-bottom: 20px;
}

.chatDemoSection .chatDemoSubtitle {
    width: 950px;
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 40px;  
    text-align: center;
    color: #F0F0F0;
    margin-bottom: 60px;
}

.chatDemoSection .chatDemoBlock {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.chatDemoSection .chatDemoBlock__left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

.chatDemoSection .chatDemoBlock__left .chat-ui {
    width: 520px;
}

.chatDemoSection .chatDemoBlock__left .eclipse-chat-bg {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: -10%;
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, #8B5FD6 0%, #6B46C1 20%, rgba(107, 70, 193, 0.8) 35%, rgba(107, 70, 193, 0.6) 50%, rgba(107, 70, 193, 0.4) 65%, rgba(107, 70, 193, 0.2) 75%, rgba(107, 70, 193, 0.05) 85%, transparent 95%);
}

.chatDemoSection .chatDemoBlock__right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.chatDemoSection .chatDemoBlock__right p {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
    letter-spacing: 0em;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #F0F0F0;
    padding: 0 60px;
}

/* CTA BOX SECTION */

.ctaBoxSection {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 70px 40px;
    margin: 130px 0 70px 0;
    border-radius: 35px;
    
    background-color: #18062B;
}

.ctaBoxSection .ctaBoxTitle {
    font-family: 'Merriweather', sans-serif;
    font-size: 63px;
    font-weight: 800;
    line-height: 72px;
    /* letter-spacing: 0em; */
    text-align: center;
    color: #F0F0F0;
    margin-bottom: 20px;
}

.ctaBoxSection .ctaBoxSubtitle {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 300;
    line-height: 36px;  
    text-align: center;
    color: #F0F0F0;
    margin-bottom: 60px;
}

.ctaBoxSection .ctaBoxBtn {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0em;
    text-align: center;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #F0F0F0;
    padding: 20px 40px;
    background-color: #6915B7;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.ctaBoxSection .ctaBoxBtn:hover {
    background-color: #7602e1;
}

/* FOOTER SECTION */

.footerSection {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    background-color: #19062C;
    margin-top: 50px;
}

.footerSection .footerLeft {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footerSection .footerLogo {
    width: 60px;
    height: auto;
    margin-bottom: 4px;
}

.footerSection .footerCopy {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #D6D6D6;
}

.footerSection .footerRight {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footerSection .footerLink {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #D6D6D6;
    text-decoration: none;
}

.footerSection .footerLink:hover {
    text-decoration: underline;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button content fade animations */
.textareaSentBtn .btn-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.textareaSentBtn .btn-content.fade-out {
    opacity: 0;
    transform: scale(0.9);
}

.textareaSentBtn .btn-content.fade-in {
    opacity: 1;
    transform: scale(1);
}

.heroImg {
    /* background-color: blueviolet; */
    margin-top: 20px;
}

.heroImg img {
    width: 590px;
}


/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop styles (default - already defined above) */
/* Large screens: 1200px and up */

/* Tablet styles */

@media screen and (max-width: 1399px) {

    .topMenuSection,
    .heroSection {
        width: 94%;
        padding-top: 30px;

    }

    .heroContent {
        /* background-color: #6915B7; */
        padding: 0 10px;
    }
    
    .heroContent .title {
        /* width: 80%; */
        padding-top: 20px;
        font-size: 82px;
        line-height: 75px;
    }
    
    .heroContent .subtitle {
        width: 90%;
        font-size: 24px;
        line-height: 32px;
    }
    
    .heroContent .inputBlock {
        width: 95%;
    }
    
    .heroContent .inputBlock textarea {
        width: 100%;
    }

    .heroContent .inputBlock .textareaSentBtn {
        right: 12px;
    }

    .heroImg {
        margin-top: 0;
    }
    
    .heroImg img {
        width: 580px;
        /* width: 100%; */
    }

    .heroContent .inputIdea {
        /* background-color: #6915B7; */
        width: 530px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-top: 20px;
        margin-left: 0;
    }

    .heroContent .inputIdea p {
        width: 75%;
    }


    .chatDemoSection .chatDemoBlock__right p {
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        font-weight: 300;
        line-height: 28px;
        letter-spacing: 0em;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #F0F0F0;
        padding: 0 0 0 60px;
    }


}


@media screen and (max-width: 1199px) {
    .topMenuSection,
    .heroSection {
        width: 94%;
        padding-top: 30px;

    }
    
    .heroContent {
        /* background-color: #6915B7; */
        padding: 0 10px;
    }
    
    .heroContent .title {
        /* width: 80%; */
        padding-top: 10px;
        font-size: 72px;
        line-height: 65px;
    }
    
    .heroContent .subtitle {
        width: 80%;
        font-size: 22px;
        line-height: 28px;
    }
    
    .heroContent .inputBlock {
        width: 90%;
    }
    
    .heroContent .inputBlock textarea {
        width: 100%;
    }

    .heroContent .inputBlock .textareaSentBtn {
        right: 12px;
    }
    
    .heroImg img {
        /* width: 450px; */
        width: 100%;
    }

    .heroContent .inputIdea {
        /* background-color: #6915B7; */
        width: 530px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-top: 20px;
        margin-left: 0;
    }

    .heroContent .inputIdea p {
        width: 75%;
    }


    .chatDemoSection .chatDemoBlock__right p {
        font-family: 'Inter', sans-serif;
        font-size: 20px;
        font-weight: 300;
        line-height: 28px;
        letter-spacing: 0em;
        text-align: left;
        text-underline-position: from-font;
        text-decoration-skip-ink: none;
        color: #F0F0F0;
        padding: 0 0 0 60px;
    }

}

/* Small tablet / Large mobile */
/* @media screen and (max-width: 768px) { */
    /* .topMenuSection,
    .heroSection {
        width: 95%;
        padding: 0 15px;
    } */
    
    /* .heroSection {
        flex-direction: column;
        align-items: center;
        text-align: center;
    } */
    
    /* .heroContent {
        width: 100%;
        align-items: center;
        padding-top: 40px;
    } */
    
    /* .heroContent .title {
        font-size: 56px;
        line-height: 50px;
        text-align: center;
    } */
    
    /* .heroContent .subtitle {
        font-size: 20px;
        line-height: 26px;
        text-align: center;
        margin-top: 15px;
    } */
    
    /* .heroContent .inputBlock {
        margin-top: 35px;
    } */
    
    /* .heroImg {
        margin-top: 40px;
    } */
    
    /* .heroImg img {
        width: 350px;
    } */
    
    /* .heroSection .eclipse-bg {
        width: 400px;
        top: -50px;
        right: 10%;
    } */
/* } */

/* Mobile styles 480px, 768px */
@media screen and (max-width: 1000px) {
    .heroBlock {
        padding-top: 15px;
    }

    .topMenuSection,
    .heroSection {
        /* width: 95%; */
        width: 95%;
        padding: 0 10px;
        font-size: 22px;
        line-height: 28px;
        /* background-color: #2fec4b; */
    }

    .heroSection {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .topMenuSection {
        /* padding-top: 1px; */
    }

    
    .topMenu__left img {
        width: 70px;
    }
    
    .topMenuCtaBtn {
        font-size: 12px;
        padding: 3px 16px;
    }
    
    .heroContent {
        width: 100%;
        align-items: center;
        padding-top: 25px;
        padding: 15px 0 0 0;
    }

    
    .heroContent .title {
        width: 100%;
        font-size: 56px;
        line-height: 50px;
        text-align: center;
        /* letter-spacing: 0.01em; */
    }
    
    .heroContent .subtitle {
        width: 100%;
        font-size: 18px;
        line-height: 26px;
        font-weight: 200;
        text-align: center;
        margin-top: 15px;
    }

    .heroContent .inputBlock {
        width: 100%;
        margin-top: 30px;
    }
    
    .heroContent .inputBlock textarea {
        width: 100%;
        font-size: 16px;
        padding: 14px 20px;
        border-radius: 25px;
    }
    
    .heroContent .inputBlock .textareaSentBtn {
        /* background-color: #24586a; */
        font-size: 13px;
        padding: 7px 14px;
        border-radius: 17px;
        bottom: 12px;
        right: 12px;
    }
    
    .heroContent .inputBlock .textareaSentBtn img {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .heroImg {
        margin-top: 20px;
    }
    
    .heroImg img {
        width: 85%;
    }
    
    .heroSection .eclipse-bg {
        width: 500px;
        height: 500px;
        top: 50px;
        right: 1%;
    }
    
    /* Center the idea hint row on small devices */
    .heroContent .inputIdea {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .heroContent .inputIdea p {
        width: 100%;
        text-align: left;
    }

    .quoteSection {
        padding: 40px 20px;
        margin: 60px 0;
    }
    
    .quoteSection .quoteTitle {
        width: 100%;
        font-size: 26px;
        line-height: 34px;
        font-weight: 100;
    }
    
    .quoteSection .quoteAuthor {
        width: 100%;
        font-size: 15px;
        line-height: 24px;
    }

    /* CHAT DEMO SECTION */

    .chatDemoSection {

    }
    
    .chatDemoSection .chatDemoTitle {
        width: 95%;
        font-size: 40px;
        line-height: 48px;

    }
    
    .chatDemoSection .chatDemoSubtitle {
        width: 90%;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 45px;
    }
    
    .chatDemoSection .chatDemoBlock {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }
    
    .chatDemoSection .chatDemoBlock__left {
        width: 100%;
    }
    
    .chatDemoSection .chatDemoBlock__left .chat-ui {
        width: 90%;
    }
    
    .chatDemoSection .chatDemoBlock__left .eclipse-chat-bg {
        width: 700px;
        height: 700px;
        top: -100px;
        right: -40%;
        z-index: -1;
        /* overflow: hidden; */
    }
    
    .chatDemoSection .chatDemoBlock__right {
        width: 100%;
        margin-top: 60px;
    }
    
    .chatDemoSection .chatDemoBlock__right p {
        width: 85%;
        font-size: 20px;
        line-height: 28px;
        padding: 0;
        font-weight: 200;
        /* background-color: red; */
    }

    /* CTA SECTION */
    .ctaBoxSection {
        width: 90%;
        padding: 40px 20px;
        margin-top: 70px;
    }
    
    .ctaBoxSection .ctaBoxTitle {
        width: 100%;
        font-size: 40px;
        line-height: 48px;
    }
    
    .ctaBoxSection .ctaBoxSubtitle {
        width: 90%;
        font-size: 18px;
        line-height: 28px;
        margin-bottom: 45px;
    }
    
    .ctaBoxSection .ctaBoxBtn {
        width: 100%;
        font-size: 20px;
        line-height: 28px;

    }
}

/* Footer responsive (placed at end to ensure override) */
@media screen and (max-width: 768px) {
    .footerSection {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 18px 16px; /* tighter padding on small screens */
    }
    .footerSection .footerLeft {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .footerSection .footerRight {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column; /* links on same horizontal */
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .footerSection .footerCopy,
    .footerSection .footerLink {
        font-size: 13px;
        line-height: 18px;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    background-color: #2A1A3E;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #4A3B5C;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px 10px 24px;
    border-bottom: 1px solid #4A3B5C;
    margin-bottom: 24px;
}

.popup-header h3 {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #F9F5F8;
    margin: 0;
}

.popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #B8A5CC;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background-color: #4A3B5C;
    color: #F9F5F8;
}

.popup-body {
    padding: 0 24px 24px 24px;
}

.popup-body p {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #D1C4E0;
    margin-bottom: 24px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #6B46C1 0%, #9333EA 100%);
    color: #FFFFFF;
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #5B21B6 0%, #7C2D12 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(107, 70, 193, 0.3);
}

.popup-btn-secondary {
    background-color: transparent;
    color: #B8A5CC;
    border: 1px solid #4A3B5C;
}

.popup-btn-secondary:hover {
    background-color: #4A3B5C;
    color: #F9F5F8;
    border-color: #6B5B7C;
}

@media screen and (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .popup-header {
        padding: 8px 20px 6px 20px;
    }
    
    .popup-body {
        padding: 0 20px 20px 20px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
}