/* Font Faces */
@font-face {
    font-family: 'Neue Haas Display';
    src: url('Assets/Fonts/NeueHaasDisplayRoman.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('Assets/Fonts/NeueHaasDisplayMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* CSS Variables - Design System */
:root {
    /* Typography Scale (px) */
    --font-display: 48px;
    --font-h1: 36px;
    --font-h2: 28px;
    --font-h3: 22px;
    --font-body: 16px;
    --font-small: 14px;
    --font-micro: 12px;

    /* Line Heights */
    --lh-display: 100%;
    --lh-h1: 105%;
    --lh-h2: 110%;
    --lh-h3: 115%;
    --lh-body: 130%;
    --lh-small: 125%;
    --lh-micro: 120%;

    /* Spacing Scale (px) */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;

    /* Font Weights */
    --weight-roman: 400;
    --weight-medium: 500;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    background: #000000;
}

body {
    font-family: 'Neue Haas Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: var(--weight-roman);
    background: #0f0f0f;
    color: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}


/* Ticker at top of page */
.ticker-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    background: #FFFFFF;
    padding: 12px 0;
    position: relative;
    left: 0;
    right: 0;
    z-index: 2;
}

.ticker {
    display: flex;
    width: 100%;
}

.ticker-content {
    display: flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    font-size: 16px;
    font-weight: var(--weight-medium);
    color: #000000;
    padding: 0 32px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.container {
    width: 100%;
    max-width: 100%;
}

.content {
    background: transparent;
    box-shadow: none;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

.cta-button {
    background: #00ff77;
    border: none;
    border-radius: 10px;
    font-family: 'Neue Haas Display', sans-serif;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.main-heading,
.secondary-heading {
    font-weight: var(--weight-medium);
    color: #FFFFFF;
    text-align: left;
}

.subheading {
    font-weight: var(--weight-medium);
    color: #FFFFFF;
    opacity: 0.8;
    text-align: left;
}

.email-section {
    display: flex;
    align-items: center;
}

.badges-section {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.badge {
    flex: 1;
    width: 100%;
    height: auto;
}

/* Accordion Section */
.accordion-section {
    background: #00ff77;
    width: 100%;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 1);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: var(--weight-medium);
    color: #000000;
    user-select: none;
}

/* Remove bottom padding when accordion is open */
.accordion-item:has(.accordion-content.active) .accordion-header {
    padding-bottom: 0;
}

.accordion-icon {
    line-height: 1;
    font-weight: var(--weight-medium);
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-content p {
    margin: 0;
    font-weight: var(--weight-roman);
    color: #000000;
    line-height: 1.5;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: auto;
    opacity: 1;
}

.footer-social {
    display: flex;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(0, 255, 119, 0.1);
    color: #00ff77;
    transform: translateY(-2px);
}

.social-link svg {
    display: block;
}

/* Hidden class for loader */
.hidden {
    display: none;
}

/* Message styles */
.message {
    font-weight: var(--weight-medium);
    text-align: center;
    border-radius: 8px;
}

.message.success {
    color: #00ff77;
    background: rgba(0, 255, 119, 0.1);
}

.message.error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* Mobile-only styles */
@media (max-width: 640px) {
    .content {
        padding-top: var(--space-32);
        padding-left: var(--space-24);
        padding-right: var(--space-24);
        max-width: 402px;
    }

    .content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        height: 648px;
        background-image: url('Assets/background.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        opacity: 0.8;
        z-index: -1;
    }

    .wordmark {
        width: 100px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 96px;
        display: block;
    }

    /* Glass pill (Wabi style) */
    .waitlist-pill {
        /* Announcement pill root styles */
        --glass-width: auto;
        --glass-height: 32px;
        --glass-surface-padding-inline: 24px;
        --glass-content-padding-inline: 0;
        --glass-border-width: clamp(1px, .0625em, 4px);
        --glass-shadow-cutoff-fix: 2em;
        --glass-shadow-offset-top: calc(var(--glass-shadow-cutoff-fix) - .5em);
        --glass-shadow-offset-left: calc(var(--glass-shadow-cutoff-fix) - .875em);
        --glass-text-color: #323232;
        --glass-font-size: 12px;
        --glass-font-weight: 500;
        --glass-letter-spacing: -.12px;
        --glass-content-blend-mode: normal;
        --glass-content-text-shadow: 0 .05em .05em rgba(0,0,0,0.05);
        --glass-content-shine-display: none;
        --glass-surface-background: linear-gradient(-75deg, rgba(255,255,255,0.05), rgba(255,255,255,0.2), rgba(255,255,255,0.05));
        --glass-surface-shadow: inset 0 .125em .125em rgba(0,0,0,0.02), inset 0 -.125em .125em rgba(255,255,255,0.5), 0 .25em .125em -.125em rgba(0,0,0,0.1), 0 0 .1em .25em inset rgba(255,255,255,0.2), 0 0 0 0 #fff;
        --glass-shadow-background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.05));

        margin-top: var(--space-96);
        margin-left: 0;
        margin-right: auto;
        width: fit-content;
        z-index: 2;
        isolation: isolate;
        pointer-events: none;
        background: transparent;
        border-radius: 999vw;
        display: inline-flex;
        position: relative;
    }

    .waitlist-pill-shadow {
        top: calc(0% - var(--glass-shadow-cutoff-fix) / 2);
        left: calc(0% - var(--glass-shadow-cutoff-fix) / 2);
        width: calc(100% + var(--glass-shadow-cutoff-fix));
        height: calc(100% + var(--glass-shadow-cutoff-fix));
        filter: blur(clamp(2px, 0.125em, 12px));
        pointer-events: none;
        position: absolute;
        overflow: visible;
    }

    .waitlist-pill-shadow::after {
        content: "";
        width: calc(100% - var(--glass-shadow-cutoff-fix) - .25em);
        height: calc(100% - var(--glass-shadow-cutoff-fix) - .25em);
        right: 0;
        bottom: 0;
        top: calc(var(--glass-shadow-cutoff-fix) - .875em);
        left: var(--glass-shadow-offset-left);
        box-sizing: border-box;
        background: var(--glass-shadow-background);
        opacity: 1;
        border-radius: 999vw;
        padding: 0.125em;
        position: absolute;
        -webkit-mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
        mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
    }

    .waitlist-pill-morph {
        position: relative;
        pointer-events: auto;
        background: var(--glass-surface-background);
        border-radius: 999vw;
        border: none;
        box-shadow: var(--glass-surface-shadow);
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: var(--glass-height);
        padding-inline: var(--glass-surface-padding-inline);
        z-index: 2;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }

    .waitlist-pill-morph::after {
        content: "";
        z-index: 1;
        width: calc(100% + var(--glass-border-width));
        height: calc(100% + var(--glass-border-width));
        right: 0;
        bottom: 0;
        top: calc(0% - var(--glass-border-width) / 2);
        left: calc(0% - var(--glass-border-width) / 2);
        padding: var(--glass-border-width);
        box-sizing: border-box;
        background: conic-gradient(from -75deg at 50% 50%, rgba(0,0,0,0.5), transparent 5% 40%, rgba(0,0,0,0.5) 50%, transparent 60% 95%, rgba(0,0,0,0.5)),
                    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.5));
        box-shadow: inset 0 0 0 calc(var(--glass-border-width) / 2) rgba(255,255,255,0.5);
        border-radius: 999vw;
        position: absolute;
        -webkit-mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
        mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
    }

    .waitlist-pill-content {
        z-index: 2;
        width: 100%;
        height: 100%;
        padding-inline: var(--glass-content-padding-inline);
        color: var(--glass-text-color);
        font-size: var(--glass-font-size);
        font-weight: var(--glass-font-weight);
        letter-spacing: var(--glass-letter-spacing);
        mix-blend-mode: var(--glass-content-blend-mode);
        text-shadow: var(--glass-content-text-shadow);
        user-select: none;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: var(--space-8);
        justify-content: center;
        line-height: 1;
        position: relative;
        pointer-events: none;
    }

    .main-heading {
        margin-top: var(--space-32);
        font-size: var(--font-h1);
        line-height: var(--lh-h1);
    }

    .subheading {
        margin-top: var(--space-32);
        font-size: var(--font-body);
        line-height: var(--lh-body);
    }

    .email-section {
        margin-top: var(--space-32);
        gap: var(--space-8);
    }

    .email-input-wrapper {
        flex: 1;
        z-index: 2;
        isolation: isolate;
        pointer-events: none;
        background: transparent;
        border-radius: 10px;
        display: inline-flex;
        position: relative;
    }

    .email-input-shadow {
        top: calc(0% - 1em);
        left: calc(0% - 1em);
        width: calc(100% + 2em);
        height: calc(100% + 2em);
        filter: blur(4px);
        pointer-events: none;
        position: absolute;
        overflow: visible;
        z-index: 0;
    }

    .email-input-shadow::after {
        content: "";
        width: calc(100% - 2em - 0.25em);
        height: calc(100% - 2em - 0.25em);
        right: 0;
        bottom: 0;
        top: 0.75em;
        left: 0.75em;
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
        opacity: 1;
        border-radius: 10px;
        padding: 0.125em;
        position: absolute;
        -webkit-mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px / 100% 100% content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
        mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px / 100% 100% content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
    }

    .email-input-morph {
        position: relative;
        width: 100%;
        pointer-events: auto;
        background: linear-gradient(-75deg, rgba(255,255,255,0.08), rgba(255,255,255,0.15), rgba(255,255,255,0.08));
        border-radius: 10px;
        border: none;
        box-shadow: inset 0 1px 1px rgba(255,255,255,0.25),
                    inset 0 -1px 1px rgba(0,0,0,0.5),
                    0 4px 8px rgba(0,0,0,0.6),
                    0 0 0 1px inset rgba(255,255,255,0.1);
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-12);
        z-index: 2;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .email-input-morph::after {
        content: "";
        z-index: 1;
        width: calc(100% + 1px);
        height: calc(100% + 1px);
        right: 0;
        bottom: 0;
        top: calc(0% - 0.5px);
        left: calc(0% - 0.5px);
        padding: 1px;
        box-sizing: border-box;
        background: conic-gradient(from -75deg at 50% 50%, rgba(255,255,255,0.15), transparent 5% 40%, rgba(255,255,255,0.15) 50%, transparent 60% 95%, rgba(255,255,255,0.15)),
                    linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1));
        box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12);
        border-radius: 10px;
        position: absolute;
        -webkit-mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px / 100% 100% content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
        mask: linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px / 100% 100% content-box exclude, linear-gradient(rgb(0, 0, 0) 0px, rgb(0, 0, 0) 0px) 0px 0px;
    }

    .email-input {
        background: transparent;
        border: none;
        outline: none;
        width: 100%;
        font-family: 'Neue Haas Display', sans-serif;
        font-size: var(--font-body);
        font-weight: 500;
        color: #FFFFFF;
        text-align: center;
        z-index: 2;
        position: relative;
    }

    .email-input::placeholder {
        color: rgba(255, 255, 255, 0.5);
        font-family: 'Neue Haas Display', sans-serif;
        font-weight: 500;
    }

    .cta-button {
        padding: var(--space-12);
        font-size: var(--font-body);
        height: 50px;
    }

    .badges-section {
        margin-top: var(--space-32);
        gap: var(--space-24);
    }

    .secondary-heading {
        margin-top: var(--space-48);
        font-size: var(--font-h1);
        line-height: var(--lh-h1);
    }

    .waitlist-text {
        font-size: var(--font-micro);
        font-weight: var(--weight-medium);
        color: #FFFFFF;
        letter-spacing: 1%;
    }

    .dot-container {
        position: relative;
        width: 12px;
        height: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dot-back {
        position: absolute;
        width: 12px;
        height: 12px;
        background: #00ff77;
        border-radius: 50%;
        opacity: 0.5;
    }

    .dot-front {
        position: absolute;
        width: 4px;
        height: 4px;
        background: #00ff77;
        border-radius: 50%;
        opacity: 1;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.5;
            transform: scale(0.8);
        }
    }

    /* Accordion Section - Mobile sizing */
    .accordion-section {
        border-radius: 24px;
        padding: 12px;
    }

    .accordion-header {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 16px;
    }

    .accordion-icon {
        font-size: 24px;
    }

    .accordion-content.active {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .accordion-content p {
        font-size: 16px;
    }

    /* Footer - Mobile sizing */
    .footer {
        padding: 32px 0;
    }

    .footer-logo {
        width: 80px;
    }

    .footer-social {
        gap: 16px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    /* Message - Mobile sizing */
    .message {
        margin-top: 16px;
        font-size: var(--font-body);
        padding: 12px;
    }
}

/* Desktop styles - make background full width only */
@media (min-width: 641px) {
    .content {
        padding-top: var(--space-32);
        padding-left: var(--space-24);
        padding-right: var(--space-24);
        max-width: 402px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }

    .content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        width: 100vw;
        height: 648px;
        background-image: url('Assets/background.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        opacity: 0.8;
        z-index: -1;
    }

    .wordmark {
        width: 100px;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 96px;
        display: block;
    }

    .main-heading {
        margin-top: var(--space-32);
        font-size: var(--font-h1);
        line-height: var(--lh-h1);
    }

    .subheading {
        margin-top: var(--space-32);
        font-size: var(--font-body);
        line-height: var(--lh-body);
    }

    .email-section {
        margin-top: var(--space-32);
        gap: var(--space-8);
    }

    .cta-button {
        padding: var(--space-12);
        font-size: var(--font-body);
        height: 50px;
    }

    .badges-section {
        margin-top: var(--space-32);
        gap: var(--space-24);
    }

    .secondary-heading {
        margin-top: var(--space-48);
        font-size: var(--font-h1);
        line-height: var(--lh-h1);
    }

    .accordion-section {
        border-radius: 24px;
        padding: 12px;
    }

    .accordion-header {
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 16px;
    }

    .accordion-icon {
        font-size: 24px;
    }

    .accordion-content.active {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .accordion-content p {
        font-size: 16px;
    }

    .footer {
        padding: 32px 0;
    }

    .footer-logo {
        width: 80px;
    }

    .footer-social {
        gap: 16px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .message {
        margin-top: 16px;
        font-size: var(--font-body);
        padding: 12px;
    }
}
