* {
    background-color: black;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    margin: 0;
}

.nav {
    background-color: #171717;
    border: #494949 solid 0.5px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 64px;
    width: 70vw;
    margin: auto;
    margin-top: 25px;
}


.logo-link {
    min-width: 96px;
    width: 96px;
    height: 32px;
    display: block;
    background-color: transparent;
}

.logo {
    background-color: #171717;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav ul {
    padding: 0;
    color: rgb(255, 255, 255, 0.5);
    display: flex;
    list-style: none;
    font-family: 'Afacad', sans-serif;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    background-color: transparent;
}

.nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
    transition: color 0.3s ease;
}

.nav a.active {
    color: white;
    cursor: pointer;
}

.nav li {
    background-color: transparent;
}

.nav a:not(.active):hover {
    color: #32FAC1;
    cursor: pointer;
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin: 104px auto;
    padding-bottom: 0;
    gap: 32px;
}

h1 {
    font-family: 'Balthazar', serif;
    font-weight: 400;
    font-size: 56px;
    margin-bottom: 0;
    width: 65vw;
    text-align: center;
}

.rest {
    background: linear-gradient(90deg, #ffffff 60%, #999999 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.journal {
    background: linear-gradient(90deg, #1E9472 0%, #32FAC1 40%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-container p {
    font-family: 'Afacad', sans-serif;
    font-size: 22px;
    text-align: center;
    width: 50vw;
    font-weight: 100;
    margin: 0;
}

.coming {
    color: #32FAC1;
}

.waitlist-form {
    position: relative;
}

.waitlist-form input {
    border: 0.5px solid #494949;
    width: 400px;
    padding: 12px 52px;
    border-radius: 8px;
    background-color: #171717;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
}

.waitlist-form input:focus {
    outline: none;
    border-color: #32FAC1;
    color: #32FAC1;
}

.waitlist-form input:-webkit-autofill,
.waitlist-form input:-webkit-autofill:hover,
.waitlist-form input:-webkit-autofill:focus,
.waitlist-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #171717 inset !important;
    -webkit-text-fill-color: #32FAC1 !important;
    border-color: #32FAC1;
    transition: background-color 5000s ease-in-out 0s;
}

.waitlist-form input:not(:placeholder-shown) {
    border-color: #32FAC1;
    color: #32FAC1;
}


.email-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
    background-color: transparent;
    opacity: 50%;
}

.waitlist-form input:focus+.email-icon,
.waitlist-form input:focus~.email-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.waitlist-form:has(input:focus) .email-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.waitlist-form:has(input:not(:placeholder-shown)) .email-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.main-container button {
    width: 160px;
    padding: 8px 24px;
    font-size: 16px;
    background-color: #32FAC1;
    border: none;
    border-radius: 6px;
    font-family: 'Afacad', sans-serif;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #32FAC1;
    background-color: #32FAC1;
    color: #000000;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.main-container button:hover {
    background-color: #000000;
    color: #32FAC1;
    cursor: pointer;
}


.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 152px;
}

.footer-container.compact {
    margin-top: 80px;
}

.footer-container p {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.5;
}

.sm-icons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.sm-icons img {
    height: 20px;
    width: 20px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.sm-icons img:hover {
    opacity: 1;
    cursor: pointer;
}

.sm-icons .x {
    height: 17px;
    width: 17px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#loadingMsg {
    color: #32FAC1;
    margin-top: 12px;
    display: none;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

#successMsg {
    color: #32FAC1;
    margin-top: 12px;
    display: none;
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    text-align: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background-color: transparent;
}

.hamburger span {
    background-color: white;
    height: 3px;
    width: 100%;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .nav {
        width: 90vw;
        justify-content: space-between;
        position: relative;
    }

    .nav .nav-links {
        display: none;
        /* Hide menu links by default */
        flex-direction: column;
        background-color: #171717;
        position: absolute;
        top: 64px;
        /* below nav bar */
        right: 0;
        width: 100%;
        padding: 16px 0;
        gap: 16px;
        border: 1px solid #494949;
        border-radius: 16px;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
    }

    .nav .nav-links.show {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        padding: 16px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-link {
        margin-left: 0;
    }

    h1 {
        font-size: 36px;
        width: 90vw;
        max-width: 400px;
        text-align: center;
        line-height: 1.3;
        margin-top: 0;
    }

    .main-container p {
        font-size: 14px;
        width: 80vw;
        max-width: 400px;
        line-height: 1.6;
    }

    .waitlist-form input {
        width: 80vw;
        max-width: 300px;
        padding: 12px 48px;
        font-size: 14px;
    }

    .email-icon {
        left: 12px;
        width: 20px;
        height: 20px;
    }

    .main-container {
        margin: 80px auto;
        gap: 24px;
    }

    .footer-container {
        margin-top: 72px;
    }
}