/* CTA Section */
.cta-section {
    position: relative;
    width: 100%;
    padding: 64px 20px;
    /* Base color + layered gradients + image background */
    background-color: #0d0014;
    /* background-image set per section below */
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 10% -10%, 110% 10%, center;
    background-size: auto, auto, cover;
    border-radius: 20px;
    background-clip: padding-box;
    overflow: hidden;
}

/* CTA: gradients only (no background image) */
.cta-section {
    background-image:
        radial-gradient(1200px 600px at 10% -10%, rgba(167, 139, 250, 0.15), transparent 60%),
        radial-gradient(900px 500px at 110% 10%, rgba(244, 114, 182, 0.12), transparent 60%),
        url("bcb4ee9d94cce22cfdf60b8d73e7dc963a4c1cfa.png");
    background-size: auto, auto, cover;
    background-position: 10% -10%, 110% 10%, center;
    height: auto;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}



.cta-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cta-heading {
    margin-bottom: 10px;
    line-height: 1.15;
}

.cta-heading .text-white {
    color: #ffffff;
}

.cta-heading .text-purple {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-subtitle {
    margin: 0 auto 22px;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.85);
    font-family: "ABeeZee", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.2px;
    text-align: center;
}

/* CTA primary action(s) */
.cta-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 500px;
    margin-top: 8px;
}

/* Legacy form row — kept so older markup / assets still lay out */
.cta-form {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    max-width: 500px;
    margin-top: 8px;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    min-height: 48px; /* match button height */
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.email-input:focus {
    border-color: rgba(167, 139, 250, 0.65);
    background-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

/* Send Button */
.send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    min-height: 48px; /* proper height */

    background: linear-gradient(135deg, #a78bfa, #f472b6);
    border: none;
    border-radius: 12px;

    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;

    cursor: pointer;
    white-space: nowrap;

    transition: transform 0.2s ease;
    box-shadow: none;
}

.send-button:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.cta-get-started-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    min-height: 48px;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    border: none;
    border-radius: 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease;
    box-shadow: none;
}

.cta-get-started-button:hover {
    transform: translateY(-1px);
}

.cta-get-started-button:active {
    transform: translateY(0);
}

.cta-get-started-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.35);
}

.send-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.send-button:focus-visible {
    outline: none;
    box-shadow: none;
}

/* Decorative subtle grid/orbs (non-interactive) */
.cta-section::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 220px;
    background: radial-gradient(closest-side, rgba(244, 114, 182, 0.16), transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}

.cta-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -20% -10%;
    height: 200px;
    background: radial-gradient(closest-side, rgba(167, 139, 250, 0.14), transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}

/* Responsive */
@media (max-width: 900px) {
    .cta-section {
        padding: 56px 16px;
    }
    .cta-form,
    .cta-actions {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .cta-section {
        padding: 44px 14px;
    }
    .cta-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
        box-shadow: 0 0 24px rgba(168, 85, 247, 0.32);
    }
    .icon-img {
        width: 100%;
        height: 100%;
    }
    .cta-form,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .send-button,
    .cta-get-started-button {
        width: 100%;
    }
}

/* Desktop precise sizing for CTA section (not CTARE) */
@media (min-width: 1024px) {
    /* Heading target height ~64px via font-size/line-height */
    .cta-section .cta-heading {
        font-size: 64px;
        line-height: 64px;
        max-width: 800px; /* approx 794.68 */
        margin: 0 auto;
        white-space: nowrap; /* keep heading in one row */
    }

    /* Subtitle target height ~28px */
    .cta-section .cta-subtitle {
        font-family: "ABeeZee", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
        font-weight: 300;
        font-style: normal;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.2px;
        text-align: center;
        vertical-align: middle;
        display: inline-block;
        max-width: 670px;
        margin: 0 auto;
        white-space: nowrap; /* keep subtitle in one row */
    }

    /* Widen the form row to accommodate wider input + smaller button */
    .cta-section .cta-form,
    .cta-section .cta-actions {
        max-width: 600px;
    }

    /* Email input: 354x48, pill radius */
    .cta-section .email-input {
        width: 420px;
        min-height: 48px;
        height: 48px;
        border-radius: 999px;
        padding: 0 20px;
    }

    /* Button: 193.2936x40, pill radius */
    .cta-section .send-button,
    .cta-section .cta-get-started-button {
        width: auto;
        min-width: 160px;
        min-height: 40px;
        height: 40px;
        border-radius: 999px;
        padding: 0 28px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .send-button,
    .cta-get-started-button {
        transition: none;
    }
    .email-input {
        transition: none;
    }
}

/* Signup modal (opened from CTA “Get Started”) */
/* Scrollable overlay: tall forms stay fully visible; centered when there is room */
.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: none;
    box-sizing: border-box;
    padding: max(16px, env(safe-area-inset-top, 16px))
        max(16px, env(safe-area-inset-right, 16px))
        max(20px, env(safe-area-inset-bottom, 20px))
        max(16px, env(safe-area-inset-left, 16px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.signup-modal.signup-modal--open {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.signup-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(5, 0, 12, 0.72);
    backdrop-filter: blur(6px);
}

.signup-modal-panel {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 440px;
    margin-top: auto;
    margin-bottom: auto;
    padding: 28px 24px 24px;
    border-radius: 16px;
    background: linear-gradient(160deg, #1a0a24 0%, #130818 55%, #0d0014 100%);
    border: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 48px rgba(167, 139, 250, 0.12);
    overflow: visible;
}

.signup-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.signup-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.signup-modal-title {
    margin: 0 40px 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    letter-spacing: -0.02em;
}

.signup-modal-text {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.signup-modal-field {
    margin-bottom: 16px;
}

.signup-modal-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.signup-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 16px;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.signup-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.signup-modal-input:focus {
    border-color: rgba(167, 139, 250, 0.65);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

.signup-modal-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.signup-modal-submit:hover {
    transform: translateY(-1px);
}

.signup-modal-submit:active {
    transform: translateY(0);
}

