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

html, body {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: "barlow", sans-serif;
    background: #fff;
    color: #000;
}

/* Full-viewport container — clips the logo at the bottom edge */
.page {
    position: relative;
    height: 100vh;
    height: 100dvh; /* mobile: excludes browser chrome so bottom:0 is truly visible */
    overflow: hidden;
    background: #fff;
}

/* Content sits above the logo */
main {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16vh;
}

h1 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 7px;
    margin-bottom: -100px;
    position: relative;
    z-index: 3;
    text-align: center;
    width: 520px;
    max-width: 90vw;
}

/* Form wrapper */
.form-wrapper {
    display: flex;
    flex-direction: column;
    width: 520px;
    max-width: 90vw;
}

/* Input + button side by side, button overlaps input right edge */
.signup-form {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.signup-form input {
    flex: 1;
    height: 64px;
    border: 3px solid #000;
    border-radius: 50px;
    padding: 0 28px;
    font-family: "barlow", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    outline: none;
    background: #fff;
    min-width: 0;
}

.signup-form input::placeholder {
    font-weight: 100;
    color: #555;
}

/* Button + privacy link stacked, joined to input */
.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin-left: -3px;
}

#submitBtn {
    height: 64px;
    padding: 0 36px;
    background: #000;
    color: #fff;
    border: 3px solid #000;
    border-radius: 50px;
    font-family: "barlow", sans-serif;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

@keyframes btn-press {
    0%   { transform: scale(1); }
    40%  { transform: scale(0.93); }
    100% { transform: scale(1); }
}

#submitBtn.pressed {
    animation: btn-press 0.18s ease forwards;
    pointer-events: none;
}

/* Privacy Policy — no underline, centered under Submit, blue on hover */
.privacy-link {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}

.privacy-link:hover {
    color: #0066cc;
}

/* =====================
   INTRO ANIMATION
   Step 1 (0.15s): Eyes rise up from below — 0.7s
   Step 2 (0.85s): PROUDLY blasts from left, AVERAGE from right — 0.7s
   Words are independent of the eyes container so they truly come from the sides
   ===================== */

@keyframes eyes-rise {
    from { transform: translate3d(0, 110%, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

@keyframes word-left {
    0%   { transform: translate3d(-100vw, 0, 0); opacity: 0; }
    15%  { opacity: 1; }
    88%  { transform: translate3d(10px, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes word-right {
    0%   { transform: translate3d(100vw, 0, 0);  opacity: 0; }
    15%  { opacity: 1; }
    88%  { transform: translate3d(-10px, 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* Eyes only — centered by offsetting left by half the SVG width */
.logo-bottom {
    position: absolute;
    bottom: 0;
    left: calc(50% - 13vw);
    width: 26vw;
    z-index: 4;
    will-change: transform;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    animation: eyes-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.logo-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

/* PROUDLY + AVERAGE — absolutely positioned, flanking the eyes */
.logo-word {
    position: absolute;
    bottom: 1vw;
    z-index: 4;
    pointer-events: none;
    will-change: transform;
    font-family: "barlow", sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 3.4vw;
    color: #000;
    line-height: 1;
    white-space: nowrap;
}

/* Fires after eyes finish: delay = eyes-delay(0.15s) + eyes-duration(0.7s) = 0.85s */
.logo-word-left {
    right: calc(50% + 13vw + 2vw);
    animation: word-left  0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

.logo-word-right {
    left: calc(50% + 13vw + 2vw);
    animation: word-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

/* Easter egg — hidden behind the eyes, no visual hint */
.easter-egg {
    position: absolute;
    bottom: 12vw;
    left: 50%;
    transform: translateX(-50%);
    font-family: "barlow", sans-serif;
    font-size: 13px;
    font-weight: 500;
    font-style: italic;
    color: #222;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.easter-egg.visible {
    opacity: 1;
}

.easter-egg strong {
    font-weight: 800;
    font-style: normal;
}

/* Mobile */
@media (max-width: 600px) {
    main {
        padding-top: 18vh;
    }

    h1 {
        font-size: 14px;
        width: 90vw;
        margin-bottom: -85px;
    }

    .signup-form input {
        height: 54px;
        font-size: 16px;
        padding: 0 20px;
    }

    #submitBtn {
        height: 54px;
        font-size: 17px;
        padding: 0 24px;
    }

    .privacy-link {
        margin-top: 2px;
    }

    .logo-bottom {
        left: calc(50% - 21vw);
        width: 42vw;
        bottom: env(safe-area-inset-bottom, 0px);
    }

    .logo-word {
        font-size: 5.5vw;
    }

    .logo-word-left {
        right: calc(50% + 21vw + 2vw);
    }

    .logo-word-right {
        left: calc(50% + 21vw + 2vw - 3px);
    }
}
