/* ========== ONBOARDING STYLES ========== */
.onboarding-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.signup-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    z-index: 1;
    position: relative;
    min-height: 100vh;
}

.signup-title {
    font-family: var(--title-font);
    font-size: 40px;
    font-weight: var(--font-weight-medium);
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: #000000;
    margin-bottom: 24px;
    text-align: center;
    margin-top: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.signup-subtitle {
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
    color: #000000;
    margin-bottom: 36px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Larger screens get bigger title */
@media (min-width: 1200px) {
    .signup-form-section {
        padding: 60px;
    }

    .chat-preview-section {
        padding: 80px 40px;
    }
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    margin-top: 32px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 24px;
    min-height: 72px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e7edf3;
    border-radius: 200px;
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
}

.google-login-btn:hover {
    border-color: #075cfb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* Microsoft button matches Google button style */
.microsoft-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 24px;
    min-height: 72px;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e7edf3;
    border-radius: 200px;
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    white-space: normal;
    text-align: center;
    word-wrap: break-word;
}

.microsoft-login-btn:hover {
    border-color: #075cfb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.microsoft-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.legal-disclaimer {
    font-family: var(--primary-font);
    font-size: 12px;
    line-height: 1;
    color: #809dbc;
    margin: 0;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.legal-link {
    color: #809dbc;
    text-decoration: none;
    cursor: pointer;
}

.legal-link:hover {
    text-decoration: underline;
}

.chat-preview-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    z-index: 1;
    min-height: 100vh;
}

.chat-preview-content {
    position: relative;
    width: 100%;
    max-width: 666px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-lottie-gradient {
    position: absolute;
    width: 1682px;
    height: 1261px;
    left: -510px;
    top: -220px;
    z-index: 0;
    pointer-events: none;
}

.glass-container {
    backdrop-filter: blur(2px);
    background: linear-gradient(45deg, rgba(240, 244, 248, 0.8) 30%, rgba(255, 255, 255, 0.6) 100%);
    border-radius: 24px;
    box-shadow: 0px 78px 78px 0px rgba(66, 77, 169, 0.09);
    padding: 46px 25px;
    width: 100%;
    max-width: 666px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 29px;
    position: relative;
    z-index: 1;
    overflow: visible;
    opacity: 0.8;
}

.glass-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.3) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.3) 75%,
            rgba(255, 255, 255, 0.8) 100%);
    border-radius: 24px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.main-heading {
    text-align: center;
    margin-bottom: 36px;
    width: 100%;
    max-width: 591px;
}

.main-heading h1 {
    font-family: var(--title-font);
    font-size: 32px;
    font-weight: var(--font-weight-medium);
    line-height: 120%;
    letter-spacing: 0px;
    color: #000000;
    margin: 0;
}

.main-subtitle {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    max-width: 700px;
    margin: 32px auto 24px auto;
}

.main-subtitle p {
    font-family: var(--primary-font);
    font-size: 22px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.4;
    color: #000000;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.chat-bubbles-grid {
    width: 100%;
    max-width: 700px;
    margin: 32px auto 0 auto;
    margin-left: -60px;
}

.bubble-row {
    display: flex;
    flex-direction: row;
    gap: 28px;
    width: 100%;
    position: relative;
}

.top-bubbles {
    align-items: flex-start;
    margin-bottom: 0;
}

.bottom-bubbles {
    align-items: flex-end;
}

.bubble-1 {
    margin-top: 0;
    margin-left: 0;
}

.bubble-2 {
    margin-top: 20px;
}

.bubble-3 {
    margin-left: 12px;
    margin-top: 36px;
    margin-bottom: 40px;
}

.bubble-4 {
    margin-top: 56px;
}

.chat-bubble-preview {
    position: relative;
    border-radius: 24px;
    box-shadow: 0px 136px 54px 0px rgba(0, 0, 0, 0.01),
        0px 76px 46px 0px rgba(0, 0, 0, 0.05),
        0px 34px 34px 0px rgba(0, 0, 0, 0.09),
        0px 8px 19px 0px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 180px;
    min-height: 48px;
    max-width: 320px;
    width: auto;
    height: auto;
}

.chat-bubble-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 24px;
    backdrop-filter: blur(14px);
    background: linear-gradient(102.8deg, rgba(255, 255, 255, 0.7) 3%, rgba(212, 221, 245, 0.5) 100%);
    border: 1.5px solid #fff;
    box-shadow: 0px 136px 54px 0px rgba(0, 0, 0, 0.01),
        0px 76px 46px 0px rgba(0, 0, 0, 0.05),
        0px 34px 34px 0px rgba(0, 0, 0, 0.09),
        0px 8px 19px 0px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.bubble-avatar,
.bubble-text {
    position: relative;
    z-index: 1;
    opacity: 1;
    background: none;
}

.bubble-text {
    font-family: var(--primary-font);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    line-height: 1.4;
    color: #000000;
    flex: 1;
    margin: 0;
    word-break: break-word;
    white-space: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ai-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -36px;
    z-index: 2;
    margin-top: 0;
}

.ai-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.ai-icon video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bubble-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 1;
    background: #fff;
}

.bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    background: #fff;
}

/* ========== RESPONSIVE - TABLET AND MOBILE ========== */
@media (max-width: 991.98px) {
    .signup-form-section {
        padding: 60px 40px;
        min-height: auto;
    }

    .chat-preview-section {
        padding: 40px 20px;
        min-height: 600px;
    }

    .glass-container {
        padding: 40px 24px;
        min-height: 500px;
    }

    .main-heading h1 {
        font-size: 28px;
    }

    .main-subtitle p {
        font-size: 20px;
    }

    .chat-bubbles-grid {
        max-width: 100%;
        margin-left: 0;
    }

    .bubble-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .bubble-1,
    .bubble-2,
    .bubble-3,
    .bubble-4 {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .chat-bubble-preview {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bubble-text {
        font-size: 14px;
        word-break: break-word;
        white-space: normal;
    }

    .main-subtitle {
        max-width: 100%;
    }

    .signup-title {
        font-size: 28px;
        line-height: 1.2;
    }
}

@media (max-width: 767.98px) {
    #main-nav {
        position: relative;
        padding: 20px 24px;
        background: #ffffff;
        z-index: 100;
    }

    .signup-form-section {
        padding: 40px 24px;
        min-height: auto;
    }

    .chat-preview-section {
        padding: 20px;
        min-height: 500px;
    }

    .glass-container {
        padding: 24px;
        padding-bottom: 60px;
        min-height: 500px;
        max-width: 356px;
        margin: 0 auto;
    }

    .background-lottie-gradient {
        width: 1200px;
        height: 900px;
        left: -400px;
        top: -100px;
        transform: none;
    }

    .main-heading {
        max-width: 313px;
        margin-bottom: 24px;
    }

    .main-heading h1 {
        font-size: 24px;
    }

    .main-subtitle {
        max-width: 299px;
        margin-bottom: 40px;
    }

    .main-subtitle p {
        font-size: 18px;
    }

    .chat-bubbles-grid {
        gap: 15px;
        position: relative;
        height: auto;
    }

    .bubble-row {
        position: relative;
        width: 100%;
        height: auto;
    }

    .top-bubbles {
        height: auto;
        gap: 0;
        justify-content: flex-start;
    }

    .top-bubbles .bubble-1 {
        position: absolute;
        left: -14px;
        top: 0;
        width: auto;
        height: 50px;
    }

    .top-bubbles .bubble-2 {
        position: absolute;
        right: -25px;
        top: 61px;
        width: auto;
        height: 63px;
        margin-top: 0;
    }

    .bottom-bubbles {
        height: auto;
        gap: 0;
        justify-content: flex-start;
        margin-top: 120px;
    }

    .bottom-bubbles .bubble-3 {
        position: absolute;
        left: -12px;
        top: 0;
        width: auto;
        height: 62px;
    }

    .bottom-bubbles .bubble-4 {
        position: absolute;
        right: -32px;
        top: 73px;
        width: 185px;
        height: 45px;
        margin-top: 0;
        display: none;
        /* Hide bubble-4 on mobile */
    }

    .chat-bubble-preview {
        min-width: 120px;
        max-width: 100%;
        padding: 10px;
        border-radius: 16px;
    }

    .bubble-text {
        font-size: 12px;
    }

    .onboarding-container {
        padding-bottom: 32px;
    }
}

/* ========== INTRO CHAT PAGE STYLES ========== */
.intro-chat-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.intro-chat-card {
    padding: 0;
    margin: 0;
    width: 800px;
    max-width: none;
    position: relative;
    z-index: 2;
    text-align: left;
    min-height: 200px;
    box-sizing: border-box;
}

.intro-chat-header {
    margin-bottom: 40px;
    width: 100%;
}

.intro-chat-title {
    width: 100%;
    position: relative;
    font-size: 48px;
    line-height: 120%;
    font-weight: 500;
    font-family: 'arizona_flare_medium';
    color: #000;
    text-align: left;
    display: flex;
    align-items: center;
    margin: 0 0 24px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-chat-subtitle {
    font-family: 'Gilroy';
    font-size: 20px;
    font-weight: 500;
    line-height: 140%;
    color: #000;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-features-section {
    margin-bottom: 40px;
    text-align: left;
    width: 100%;
}

.intro-features-title {
    font-family: 'Gilroy';
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    color: #000;
    margin: 0 0 20px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-features-list li {
    font-family: 'Gilroy';
    font-size: 16px;
    font-weight: 500;
    line-height: 180%;
    color: #000;
    margin: 0;
    padding-left: 21px;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
    font-weight: bold;
    font-size: 18px;
}

.intro-demo-section {
    margin-bottom: 40px;
    width: 100%;
}

.intro-demo-text {
    font-family: 'Gilroy';
    font-size: 20px;
    font-weight: 500;
    line-height: 140%;
    color: #000;
    margin: 0 0 40px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.intro-chat-input-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

#intro-ask-anything-box {
    width: 100%;
    padding: 24px;
}

/* Chat input styling to match /chat page */
.gradient-border {
    position: relative;
    background: rgba(238, 238, 238, 0.4);
    backdrop-filter: blur(14.4px);
    border: none;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0px 10px 24.1px -2px rgba(62, 71, 139, 0.25);
    transition: all 0.2s ease;
}

.intro-chat-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.ai-avatar-small {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-avatar-fallback::before {
    content: "AI";
    color: white;
    font-size: 10px;
    font-weight: var(--font-weight-semibold);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.example-chat-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    color: #000000;
    background: transparent;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.example-chat-input::placeholder {
    color: #809dbc;
    font-weight: var(--font-weight-medium);
}

.example-chat-icon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.example-chat-icons-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.example-chat-send {
    background: #809dbc;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}


.example-chat-send img {
    width: 20px;
    height: 20px;
}





.intro-background-lottie {
    position: fixed;
    width: 2800px;
    height: 2800px;
    left: 50%;
    bottom: -1900px;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
    .intro-chat-page-container {
        padding: 16px;
    }

    .intro-chat-card {
        padding: 32px 24px;
    }

    .intro-chat-title {
        font-size: 36px;
    }

    .intro-chat-subtitle {
        font-size: 18px;
    }

    .intro-features-title {
        font-size: 14px;
    }

    .intro-features-list li {
        font-size: 14px;
    }

    .intro-demo-text {
        font-size: 18px;
    }

    .intro-chat-input {
        padding: 10px 14px;
    }

    .intro-chat-input-field {
        font-size: 14px;
    }
}