/* Base styles */
*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility classes */
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.z-10 { z-index: 10; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.gap-4 { gap: 1rem; }
.text-white { color: white; }
.font-bold { font-weight: 700; }
.font-light { font-weight: 300; }
.text-xl { font-size: 1.5rem; line-height: 1.75; }
.tracking-tighter { letter-spacing: -0.05em; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.overflow-hidden { overflow: hidden; }

/* Custom styles */
.gradient-container {
    --gradient-background-start: rgb(0, 148, 250);
    --gradient-background-end: rgb(0, 119, 200);
    --first-color: 0, 148, 250;
    --second-color: 0, 195, 255;
    --third-color: 0, 148, 250;
    --fourth-color: 0, 174, 255;
    --fifth-color: 0, 132, 255;
    --pointer-color: 255, 255, 255;
    --size: 150%;
    --blending-value: screen;
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: linear-gradient(40deg, var(--gradient-background-start), var(--gradient-background-end));
}

.gradient-text {
    background: linear-gradient(to right, #fff 20%, rgba(255,255,255,0.5) 40%, rgba(255,255,255,0.5) 60%, #fff 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}

.button {
    width: 11rem;
    height: 3rem;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 200ms;
    cursor: pointer;
}

.button-transparent {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.button-transparent:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.button-white {
    background-color: white;
    color: rgb(0, 148, 250);
    border: 1px solid transparent;
}

.button-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.gradients-container {
    height: 100%;
    width: 100%;
    filter: blur(40px);
}

.gradient {
    position: absolute;
    width: var(--size);
    height: var(--size);
    top: calc(50% - var(--size)/2);
    left: calc(50% - var(--size)/2);
    mix-blend-mode: var(--blending-value);
}

.gradient-1 {
    background: radial-gradient(circle at center, rgb(var(--first-color)) 0, rgb(var(--first-color)) 50%) no-repeat;
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.gradient-2 {
    background: radial-gradient(circle at center, rgba(var(--second-color), 0.8) 0, rgba(var(--second-color), 0) 50%) no-repeat;
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.gradient-3 {
    background: radial-gradient(circle at center, rgba(var(--third-color), 0.8) 0, rgba(var(--third-color), 0) 50%) no-repeat;
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}

.gradient-4 {
    background: radial-gradient(circle at center, rgba(var(--fourth-color), 0.8) 0, rgba(var(--fourth-color), 0) 50%) no-repeat;
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.gradient-5 {
    background: radial-gradient(circle at center, rgba(var(--fifth-color), 0.8) 0, rgba(var(--fifth-color), 0) 50%) no-repeat;
    transform-origin: calc(50% - 800px) calc(50% + 800px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* For better scrolling on iOS */
    overscroll-behavior: contain; /* Prevent scroll chaining */
}

.modal.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    padding-top: 3rem; /* Increase top padding to make room for the close button */
    width: 95%;
    max-width: 1024px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    z-index: 10;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* For better scrolling on iOS */
    margin: 1rem auto; /* Add margin to ensure it's not flush against the edges */
    text-align: center; /* Center all content by default */
}

/* Ensure consistent styling for all modal headers */
.modal-header {
    margin-bottom: 2rem;
    position: relative;
    text-align: center; /* Center the header content */
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding in width calculation */
    padding: 0; /* Reset padding */
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    padding: 0; /* Reset padding */
    word-wrap: break-word; /* Ensure long titles wrap properly */
    text-align: center; /* Center the title */
    max-width: 80%; /* Limit width to prevent overflow */
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure block display */
}

.modal-description {
    text-align: center; /* Center all descriptions */
    margin-left: auto;
    margin-right: auto;
    max-width: 80%; /* Limit width for better readability */
    color: #555;
    line-height: 1.5;
}

.features-section {
    background: rgba(0, 148, 250, 0.03);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center; /* Center the content */
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem; /* Center the list with auto margins */
    max-width: 80%; /* Limit width for better readability */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #333;
    text-align: left; /* Keep text left-aligned for readability */
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: rgb(0, 148, 250);
    font-weight: bold;
}

/* Animations */
@keyframes shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

@keyframes moveVertical {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(50%); }
    100% { transform: translateY(-50%); }
}

@keyframes moveHorizontal {
    0% { transform: translateX(-50%) translateY(-10%); }
    50% { transform: translateX(50%) translateY(10%); }
    100% { transform: translateX(-50%) translateY(-10%); }
}

@keyframes moveInCircle {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (min-width: 768px) {
    .md\:text-9xl {
        font-size: 12rem;
        line-height: 1;
    }

    .modal {
        padding: 2rem;
    }

    .modal-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

    .modal-header {
        grid-column: span 2;
        margin-bottom: 1.5rem;
    }

    .features-section {
        height: 100%;
        margin: 0;
    }

    .feature-divider {
        display: none;
    }

    .demo-section {
        margin: 0;
        height: 100%;
    }
}

@media (max-width: 767px) {
    .modal {
        padding: 0;
        align-items: center;
        justify-content: center;
        display: none;
    }
    
    .modal.open {
        display: flex;
    }

    .modal-content {
        padding: 1.5rem;
        padding-top: 2.5rem; /* Increase top padding for mobile */
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        max-height: 100%;
        height: auto;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 0; /* Reset padding */
        margin-top: 1rem; /* Add top margin for spacing */
    }
    
    .modal-title {
        font-size: 1.5rem;
        max-width: 85%; /* Slightly wider on mobile */
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Override border-radius for waitlist modal content */
    .waitlist-modal.modal-content {
        border-radius: 1.5rem;
    }
    
    /* Ensure the features section is properly displayed */
    .features-section {
        margin-bottom: 1.5rem;
        overflow: visible;
    }
    
    /* Ensure the demo section is properly displayed */
    .demo-section {
        margin: 0;
        overflow: visible;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        width: 36px;
        height: 36px;
    }
}

.text-7xl {
    font-size: 7rem;
    line-height: 1;
}

/* Demo section styles */
.demo-section {
    margin-top: 2rem;
    text-align: center; /* Center the content */
}

.demo-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    text-align: center; /* Center the title */
}

.demo-description {
    margin-bottom: 1rem;
    color: #555;
    text-align: center; /* Center the description */
}

.demo-examples {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem; /* Center the list with auto margins */
    max-width: 80%; /* Limit width for better readability */
    text-align: left; /* Keep list items left-aligned for readability */
    display: inline-block; /* Allow centering while maintaining left alignment of items */
}

.demo-examples li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #333;
    text-align: left; /* Keep text left-aligned for readability */
}

.demo-examples li:last-child {
    margin-bottom: 0;
}

.demo-examples li::before {
    content: "•";
    color: rgb(0, 148, 250);
    position: absolute;
    left: -1rem;
}

.demo-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Waitlist Modal Styles */
.waitlist-modal {
    width: auto;
    min-width: 320px;
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    /* Keep the alignment for the modal itself but not for the widget */
    align-items: center;
}

.waitlist-modal .modal-header {
    text-align: center;
    margin-bottom: 10px;
    width: 100%;
}

.waitlist-modal .modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    padding: 0; /* Reset padding */
    max-width: 80%; /* Limit width to prevent overflow */
    margin-left: auto;
    margin-right: auto;
}

.waitlist-modal .modal-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #666;
    max-width: 80%; /* Consistent with other descriptions */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    text-align: center;
}

/* Override getwaitlist default styles */
#getWaitlistContainer {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    padding: 0 !important;
    margin-top: 20px !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    min-width: 280px !important;
    margin: 20px auto 0 !important;
}

#getWaitlistContainer form {
    width: 100% !important;
}

#getWaitlistContainer h2,
#getWaitlistContainer .gwl-description {
    display: none !important;
}

#getWaitlistContainer .gwl-primary-button {
    background-color: rgb(0, 148, 250) !important;
    border-radius: 9999px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    margin-top: 1rem !important;
    transition: all 200ms !important;
    height: auto !important;
    line-height: normal !important;
}

#getWaitlistContainer .gwl-primary-button:hover {
    background-color: rgb(0, 132, 225) !important;
}

#getWaitlistContainer .gwl-input-wrapper {
    width: 100% !important;
    margin: 0 !important;
}

#getWaitlistContainer input {
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    border: 2px solid #eee !important;
    transition: all 200ms !important;
    width: 100% !important;
    margin: 0.5rem 0 1rem !important;
    height: auto !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}

#getWaitlistContainer input:focus {
    border-color: rgb(0, 148, 250) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 148, 250, 0.1) !important;
}

#getWaitlistContainer label {
    font-weight: 500 !important;
    color: #333 !important;
    font-size: 0.9375rem !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}

#getWaitlistContainer .gwl-powered-by {
    margin-top: 1.5rem !important;
    opacity: 0.7;
    text-align: center !important;
    width: 100% !important;
}

/* Remove the additional styling for links and divs that might interfere with the widget */
/* #getWaitlistContainer a,
#getWaitlistContainer p,
#getWaitlistContainer div:not(.gwl-input-wrapper):not(form) {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
} */

@media (max-width: 767px) {
    .waitlist-modal {
        width: calc(100% - 2rem);
        max-width: 400px;
        max-height: 90vh; /* Limit height to prevent overflow */
        padding: 2rem;
        margin: 0 auto;
        border-radius: 1.5rem;
        position: relative; /* Added for proper positioning */
        top: 0; /* Reset any top positioning */
        transform: none; /* Reset any transform */
    }

    .waitlist-modal .modal-title {
        font-size: 1.75rem;
    }
    
    .waitlist-modal .modal-header {
        margin-bottom: 20px;
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    font-size: 1.25rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0; /* Reset any margin */
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.waitlist-modal #getWaitlistContainer {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 450px !important;
}

/* Header styles */
.site-header {
    position: relative;
    width: 100%;
    padding: 1.5rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.header-logo:hover {
    opacity: 0.9;
}

/* Apply different positioning on the landing page */
.gradient-container > .site-header {
    position: absolute;
    top: 0;
    left: 0;
} 