@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Universal non-selection for all elements */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* Allow text selection only for email input */
#email {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Ensure proper viewport handling */
html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #000; /* Solid black background */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px 0 10px 0;
    width: 100%;
    box-sizing: border-box;
    min-width: 100vw;
}

/* Aurora effect - behind the dots */
.aurora-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(40px);
    z-index: -2; /* Behind everything */
}

.aurora-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.shape1 {
    width: 400px;
    height: 400px;
    background-color: #2879FE;
    top: 10%;
    left: 20%;
    animation: move1 8s infinite alternate;
}

.shape2 {
    width: 300px;
    height: 300px;
    background-color: #03dac6;
    top: 50%;
    left: 60%;
    animation: move2 10s infinite alternate;
}

.shape3 {
    width: 250px;
    height: 250px;
    background-color: #2879FE;
    top: 30%;
    left: 80%;
    animation: move3 7s infinite alternate;
}

@keyframes move1 {
    from { transform: translate(-100vw, -50vh) rotate(0deg); }
    to { transform: translate(100vw, 50vh) rotate(360deg); }
}

@keyframes move2 {
    from { transform: translate(-80vw, 50vh) rotate(0deg); }
    to { transform: translate(80vw, -50vh) rotate(-360deg); }
}

@keyframes move3 {
    from { transform: translate(50vw, -60vh) rotate(0deg); }
    to { transform: translate(-50vw, 60vh) rotate(360deg); }
}

/* Dotted background - on top of aurora, behind content */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 1) 1px, transparent 3px); /* Perfect circular dots, 50% larger */
    background-size: 15px 15px;
    z-index: -1; /* On top of aurora, behind content */
    opacity: 0.1; /* Default low opacity for greyish white effect */
    transition: opacity 6s ease-out; /* Smooth transition for opacity */
}

body.dots-bright::after {
    opacity: 1; /* Fully bright when class is applied */
}

.container {
    text-align: center;
    background-color: rgba(18, 18, 18, 0.75);
    padding: 0 35px 0 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 420px;
    width: 90%;
    z-index: 1;
    margin: 20px auto;
    max-height: none;
    overflow-y: visible;
    box-sizing: border-box;
    position: relative;
}

h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin: 10;
    line-height: 1.1;
    background: linear-gradient(135deg, #2879FE, #03dac6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading-container {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

.beta-tag {
    background: linear-gradient(135deg, #2879FE, #03dac6);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-prop {
    margin-bottom: 15px;
}

.main-copy {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 400;
}

.social-proof {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(40, 121, 254, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(40, 121, 254, 0.2);
}

.counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.number {
    font-size: 1.8em;
    font-weight: 700;
    color: #2879FE;
    text-shadow: 0 0 20px rgba(40, 121, 254, 0.5);
    transition: all 0.3s ease;
}

.label {
    font-size: 0.75em;
    color: #a0a0a0;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.5px;
}

.benefits {
    margin-bottom: 20px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.9em;
    color: #e0e0e0;
}

.check {
    color: #03dac6;
    font-weight: bold;
    font-size: 1em;
    min-width: 18px;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

#email {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #333;
    background-color: #252525;
    color: #ffffff;
    font-size: 0.95em;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#email::placeholder {
    color: #888;
}

#email:focus {
    outline: none;
    border-color: #2879FE;
    box-shadow: 0 0 0 3px rgba(40, 121, 254, 0.1);
}

button {
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #2879FE, #03dac6);
    color: #ffffff;
    font-size: 0.95em;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 121, 254, 0.3);
}

button:active {
    transform: translateY(0);
}

.trust-elements {
    margin-bottom: 0;
}

.risk-reversal {
    font-size: 0.8em;
    color: #888;
    margin: 0;
    padding-bottom: 0;
}

#response-message {
    margin-top: 8px;
    font-size: 0.85em;
    height: 18px;
    font-weight: 500;
}

/* Ripple Effect */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 9999;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Exit Intent Popup */
.exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-intent-popup.show {
    opacity: 1;
}

.popup-content {
    background: rgba(18, 18, 18, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.exit-intent-popup.show .popup-content {
    transform: scale(1);
}

.popup-content h3 {
    color: #2879FE;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.popup-content p {
    color: #e0e0e0;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-content button {
    margin: 0 10px 10px 0;
    padding: 12px 24px;
    font-size: 0.9em;
    width: auto;
    min-width: 120px;
}

.popup-content button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.popup-content button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 15px 10px;
        min-height: 100vh;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .container {
        max-width: 95vw;
        width: 100%;
        padding: 25px 20px;
        margin: 10px auto;
        border-radius: 15px;
        overflow-x: hidden;
        box-sizing: border-box;
        position: relative;
    }
    
    .heading-container {
        margin-bottom: 15px;
        gap: 10px;
        flex-direction: column;
        gap: 8px;
    }
    
    h1 {
        font-size: 2.2em;
        margin-bottom: 8px;
        line-height: 1.1;
    }
    
    .beta-tag {
        padding: 6px 12px;
        font-size: 0.65em;
        border-radius: 20px;
    }
    
    .value-prop {
        margin-bottom: 20px;
    }
    
    .main-copy {
        font-size: 0.9em;
        margin-bottom: 15px;
        line-height: 1.4;
        padding: 0 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .social-proof {
        margin-bottom: 20px;
        padding: 15px 10px;
        border-radius: 12px;
    }
    
    .counter {
        gap: 5px;
    }
    
    .number {
        font-size: 2.2em;
        font-weight: 700;
    }
    
    .label {
        font-size: 0.8em;
        line-height: 1.2;
    }
    
    .benefits {
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .benefit-item {
        gap: 12px;
        margin-bottom: 8px;
        font-size: 0.85em;
        line-height: 1.3;
        align-items: flex-start;
        min-height: 24px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .check {
        font-size: 1em;
        min-width: 20px;
        margin-top: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #waitlist-form {
        margin-bottom: 15px;
        width: 100%;
    }
    
    #email {
        padding: 16px 14px;
        font-size: 1em;
        margin-bottom: 12px;
        border-radius: 12px;
        min-height: 20px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-sizing: border-box;
    }
    
    button {
        padding: 16px 14px;
        font-size: 1em;
        border-radius: 12px;
        min-height: 20px;
        font-weight: 600;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-sizing: border-box;
    }
    
    .trust-elements {
        margin-bottom: 10px;
    }
    
    .risk-reversal {
        font-size: 0.75em;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #response-message {
        margin-top: 10px;
        font-size: 0.85em;
        height: auto;
        min-height: 20px;
        line-height: 1.3;
    }
    
    .popup-content {
        padding: 30px 25px;
        margin: 20px;
        max-width: 90vw;
        box-sizing: border-box;
    }
    
    /* Optimize aurora effects for mobile */
    .aurora-container {
        filter: blur(20px);
    }
    
    .aurora-shape {
        opacity: 0.3;
        animation-duration: 12s;
    }
    
    .shape1 {
        width: 200px;
        height: 200px;
    }
    
    .shape2 {
        width: 150px;
        height: 150px;
    }
    
    .shape3 {
        width: 120px;
        height: 120px;
    }
    
    /* Reduce animation intensity for mobile */
    @keyframes move1 {
        from { transform: translate(-50vw, -25vh) rotate(0deg); }
        to { transform: translate(50vw, 25vh) rotate(180deg); }
    }
    
    @keyframes move2 {
        from { transform: translate(-40vw, 25vh) rotate(0deg); }
        to { transform: translate(40vw, -25vh) rotate(-180deg); }
    }
    
    @keyframes move3 {
        from { transform: translate(25vw, -30vh) rotate(0deg); }
        to { transform: translate(-25vw, 30vh) rotate(180deg); }
    }
}

/* Extra small devices (phones, 375px and down) */
@media (max-width: 375px) {
    body {
        padding: 10px 5px;
    }
    
    .container {
        max-width: 98vw;
        padding: 20px 15px;
        margin: 5px auto;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .main-copy {
        font-size: 0.85em;
        padding: 0;
    }
    
    .benefit-item {
        font-size: 0.8em;
        gap: 10px;
    }
    
    #email, button {
        padding: 14px 12px;
        font-size: 0.95em;
        box-sizing: border-box;
    }
    
    .number {
        font-size: 1.8em;
    }
}

/* Small devices (landscape phones, 576px and down) */
@media (max-width: 576px) and (orientation: landscape) {
    body {
        padding: 10px 15px;
    }
    
    .container {
        max-width: 90vw;
        padding: 20px 25px;
        margin: 5px auto;
        box-sizing: border-box;
    }
    
    .heading-container {
        margin-bottom: 10px;
    }
    
    h1 {
        font-size: 2em;
        margin-bottom: 5px;
    }
    
    .value-prop {
        margin-bottom: 15px;
    }
    
    .main-copy {
        font-size: 0.85em;
        margin-bottom: 10px;
    }
    
    .social-proof {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .benefits {
        margin-bottom: 15px;
    }
    
    .benefit-item {
        margin-bottom: 5px;
        font-size: 0.8em;
    }
    
    #waitlist-form {
        margin-bottom: 10px;
    }
    
    #email, button {
        padding: 12px 14px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 768px) and (min-width: 601px) {
    .container {
        max-width: 85vw;
        padding: 30px 35px;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 2.3em;
    }
    
    .main-copy {
        font-size: 0.95em;
    }
    
    .benefit-item {
        font-size: 0.9em;
    }
    
    #email, button {
        padding: 15px 16px;
        font-size: 0.95em;
        box-sizing: border-box;
    }
}

/* Large devices (desktops, 769px and up) */
@media (min-width: 769px) {
    .container {
        max-width: 420px;
        padding: 40px 35px;
        box-sizing: border-box;
    }
    
    /* Ensure desktop styles are preserved */
    h1 {
        font-size: 2.5em;
    }
    
    .main-copy {
        font-size: 0.95em;
    }
    
    .benefit-item {
        font-size: 0.9em;
    }
}

/* Height-based media queries for better mobile experience */
@media (max-height: 700px) and (max-width: 600px) {
    .container {
        padding: 20px 15px;
        margin: 5px auto;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    .value-prop {
        margin-bottom: 12px;
    }
    
    .social-proof {
        margin-bottom: 12px;
        padding: 10px;
    }
    
    .benefits {
        margin-bottom: 15px;
    }
    
    .benefit-item {
        margin-bottom: 6px;
        font-size: 0.8em;
    }
    
    #waitlist-form {
        margin-bottom: 10px;
    }
    
    #email, button {
        padding: 12px 14px;
        margin-bottom: 8px;
        box-sizing: border-box;
    }
}

/* Zoom support and better viewport handling */
@media screen and (max-width: 100vw) {
    body {
        min-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        max-width: min(95vw, 420px);
        width: 100%;
        margin: 20px auto;
        box-sizing: border-box;
    }
}

/* Ensure proper alignment at different zoom levels */
@media screen and (min-resolution: 1.5dppx) {
    .container {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Fix for very small viewports */
@media screen and (max-width: 320px) {
    body {
        padding: 5px;
    }
    
    .container {
        max-width: 100vw;
        padding: 15px 10px;
        margin: 5px auto;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    .main-copy {
        font-size: 0.8em;
    }
    
    .benefit-item {
        font-size: 0.75em;
    }
    
    #email, button {
        padding: 12px 10px;
        font-size: 0.9em;
    }
}

/* Additional zoom level support */
@media screen and (max-width: 800px) {
    body {
        min-width: 100vw;
        width: 100vw;
    }
    
    .container {
        max-width: min(95vw, 420px);
        width: 100%;
        margin: 20px auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .container {
        transform: translateZ(0);
        backface-visibility: hidden;
        will-change: transform;
    }
}

/* Ensure proper scaling on all devices */
@media screen and (max-width: 1200px) {
    body {
        min-width: 100vw;
        width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        max-width: min(95vw, 420px);
        width: 100%;
        margin: 20px auto;
        box-sizing: border-box;
    }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    button:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(40, 121, 254, 0.3);
    }
    
    button:active {
        transform: scale(0.98);
    }
    
    #email:focus {
        transform: none;
    }
}