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

body {
    background-color: #E9E9D8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 16px 32px;
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px;
    margin-bottom: 20px;
}

.logo {
    width: 105px;
    height: auto;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.flower {
    width: 26px;
    height: auto;
    animation: spin 8s linear infinite;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.flower:hover {
    transform: scale(1.05);
    animation: none;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0;
}

.content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 80px;
}

.graphic-container {
    position: relative;
}

.main-graphic {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.waitlist-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-bottom: 10px;
    padding: 0;
    display: block;
    width: fit-content;
    margin: 0 auto;
    position: relative;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.waitlist-button:hover {
    transform: scale(1.05);
}

.waitlist-button:active {
    transform: scale(0.95);
}

.button-img {
    width: 190px;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

@keyframes peek {
    0%, 100% {
        transform: translateX(-50%) translateY(calc(100% - 8px)) rotate(0deg) scale(1);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    15% {
        transform: translateX(-52%) translateY(calc(100% - 14px)) rotate(-2deg) scale(1.02);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    25% {
        transform: translateX(-48%) translateY(calc(100% - 16px)) rotate(1.5deg) scale(1.01);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    40% {
        transform: translateX(-50%) translateY(calc(100% - 10px)) rotate(0deg) scale(0.99);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Pause for a moment */
    45%, 100% {
        transform: translateX(-50%) translateY(calc(100% - 8px)) rotate(0deg) scale(1);
    }
}

@keyframes slideUp {
    0% {
        transform: translateX(-50%) translateY(calc(100% - 8px)) rotate(0deg) scale(1);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
    }
}

@keyframes slideDown {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
    }
    100% {
        transform: translateX(-50%) translateY(calc(100% - 8px)) rotate(0deg) scale(1);
    }
}

.signup-sheet {
    position: fixed;
    bottom: 16px;
    left: 50%;
    width: 380px;
    border-radius: 38px;
    padding: 20px;
    z-index: 1000;
    background-image: url('cardboard-texture.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.12),
                0px 2px 8px rgba(0, 0, 0, 0.08);
    animation: peek 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 1s;
    transition: all 0.3s ease;
    transform-origin: bottom center;
    cursor: pointer;
    transform: translateX(-50%) translateY(calc(100% - 8px));
    will-change: transform;
    pointer-events: auto;
    z-index: 1000;
    display: block;
    visibility: visible;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.signup-sheet.active {
    animation: none;
    transform: translateX(-50%) translateY(0);
    cursor: default;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.16),
                0px 4px 16px rgba(0, 0, 0, 0.12);
    pointer-events: auto;
    visibility: visible;
}

.signup-sheet.sliding-down {
    animation: none;
    transform: translateX(-50%) translateY(calc(100% - 8px));
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.12),
                0px 2px 8px rgba(0, 0, 0, 0.08);
}

.signup-sheet::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 6px;
    background-color: #FCFCE9;
    border-radius: 3px;
    z-index: 10;
    opacity: 1;
    pointer-events: none;
}

.signup-content {
    margin: 0 auto;
    padding: 12px 16px;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.email-input {
    background: #FCFCE9;
    border: none;
    border-radius: 20px;
    padding: 16px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #8F7550;
    width: 100%;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.email-input::placeholder {
    color: #8F7550;
    font-weight: 600;
    opacity: 1;
}

.submit-button {
    background: linear-gradient(to bottom, #4C4A4F, #323235);
    color: #E9E9D8;
    border: none;
    border-radius: 100px;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0em;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0px 3.6px 3.6px rgba(0, 0, 0, 0.25);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(to bottom, #6F6D70, #272727);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.submit-button:hover {
    transform: scale(1.02);
}

.submit-button:active {
    transform: scale(0.98);
}

.context-menu {
    position: fixed;
    background-color: #FCFCE9;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-width: 240px;
    padding: 8px 0;
}

.context-menu.active {
    opacity: 1;
    transform: translateY(0);
}

.menu-item-container {
    position: relative;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-item:hover {
    transform: scale(1.02);
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-icon {
    width: 22px;
    height: 22px;
    margin-right: 16px;
    object-fit: contain;
}

.menu-item span {
    color: #373737;
    font-size: 17px;
    font-weight: 600;
}

.dotted-line {
    height: 1.5px;
    background-image: linear-gradient(to right, #D9D9CE 8px, transparent 8px);
    background-size: 16px 1.5px;
    background-repeat: repeat-x;
    margin: 0 16px;
}

.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCFCE9;
    color: #373737;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 52px;
}

.toast .checkmark {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-20px);
}

/* Desktop Styles */
@media (min-width: 769px) {
    .container {
        padding: 16px 80px;
        max-width: 1200px;
    }
    
    .logo {
        width: clamp(80px, 15vw, 110px);
    }
    
    .flower {
        width: clamp(20px, 5vw, 26px);
    }
    
    .main-graphic {
        max-width: 300px;
        margin-top: 20px;
    }
    
    .button-img {
        width: 200px;
        margin-top: 80px;
    }

    .signup-content {
        max-width: 400px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 16px 24px;
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .waitlist-button {
        transform: translateY(78px);
    }

    .waitlist-button:hover {
        transform: translateY(78px) scale(1.05);
    }

    .waitlist-button:active {
        transform: translateY(78px) scale(0.95);
    }

    .main-graphic {
        margin-top: -80px;
    }

    .signup-sheet {
        width: calc(100% - 48px);
        max-height: calc(100vh - 32px);
    }

    .signup-sheet.active {
        max-height: calc(100vh - 32px);
    }
} 