/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #FAF8F5;
    --charcoal: #2C2C2C;
    --sage-green: #9CAF88;
    --sage-green-hover: #8BA075;
    --charcoal-light: #5A5A5A;
    --border-color: #E8E5E0;
    --success-green: #7A9B6E;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

/* Logo */
.logo-container {
    margin-bottom: 6rem;
}

.logo-main {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.logo-sub {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--charcoal-light);
    text-transform: lowercase;
    margin-top: 0.5rem;
}

/* Hero Content */
.hero-content {
    margin-bottom: 4rem;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-subheading {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 300;
    color: var(--charcoal-light);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    margin-bottom: 6rem;
}

.waitlist-form {
    max-width: 480px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

#email-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    color: var(--charcoal);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease, color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

#email-input::placeholder {
    color: var(--charcoal-light);
    opacity: 0.6;
}

#email-input:focus {
    border-color: var(--sage-green);
    color: var(--charcoal);
}

#email-input:invalid:not(:placeholder-shown) {
    border-color: #D4A574;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--cream);
    background-color: var(--sage-green);
    border: 1px solid var(--sage-green);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    -webkit-appearance: none;
    appearance: none;
}

.submit-btn:hover {
    background-color: var(--sage-green-hover);
    border-color: var(--sage-green-hover);
}

.submit-btn:active {
    transform: translateY(1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--charcoal-light);
    font-weight: 300;
    margin-top: 0.5rem;
}

.form-message {
    margin-top: 1rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    color: var(--success-green);
}

.form-message.error {
    color: #D4A574;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.instagram-link {
    color: var(--charcoal-light);
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.instagram-link:hover {
    color: var(--sage-green);
    transform: translateY(-2px);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--charcoal-light);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 6rem 2rem;
    }

    .input-group {
        flex-direction: row;
    }

    #email-input {
        flex: 1;
    }

    .submit-btn {
        width: auto;
        min-width: 180px;
    }

    .footer {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 3rem 1rem;
    }

    .logo-container {
        margin-bottom: 4rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .form-container {
        margin-bottom: 4rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
