/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #fefffe 0%, #f8faf7 100%);
    color: #3a3f47;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color system matching iOS app */
:root {
    --brand-primary: #8b9d81;
    --brand-secondary: #6b7c62;
    --text-primary: #3a3f47;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --background-primary: #ffffff;
    --background-secondary: #f7fafc;
    --accent: #9f7aea;
    --success: #68d391;
    --shadow: rgba(0, 0, 0, 0.05);
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.hero-title .accent {
    color: var(--brand-primary);
    font-weight: 400;
    position: relative;
}

.hero-title .accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 2px;
    opacity: 0.6;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* Waitlist form */
.waitlist-form {
    margin-bottom: 2rem;
}

.form {
    width: 100%;
}

.input-group {
    display: flex;
    gap: 0;
    background: var(--background-primary);
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid rgba(139, 157, 129, 0.1);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 12px 40px rgba(139, 157, 129, 0.15);
    border-color: var(--brand-primary);
}

.email-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
}

.email-input::placeholder {
    color: var(--text-tertiary);
}

.submit-button {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(139, 157, 129, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, var(--success), #48bb78);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(104, 211, 145, 0.2);
    animation: slideIn 0.5s ease;
}

.success-message.hidden {
    display: none;
}

.coming-soon {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Visual hint */
.visual-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
}

.plant-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-emoji {
    font-size: 10rem;
    animation: gentleGrow 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 32px rgba(139, 157, 129, 0.3));
    transform-origin: bottom center;
}

.growth-particles {
    position: absolute;
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--brand-primary), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 40%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    right: 25%;
    animation-delay: 1.2s;
}

.particle:nth-child(3) {
    bottom: 35%;
    left: 30%;
    animation-delay: 2.4s;
}

.particle:nth-child(4) {
    top: 45%;
    right: 20%;
    animation-delay: 3.6s;
}

.particle:nth-child(5) {
    bottom: 40%;
    right: 35%;
    animation-delay: 4.8s;
}

/* Animations */
@keyframes gentleGrow {
    0%, 100% {
        transform: scale(1) rotate(-2deg);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
    }
    75% {
        transform: scale(1.02) rotate(-1deg);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 0.8;
        transform: translateY(-30px) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translateY(-60px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.5);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .visual-hint {
        order: 0;
        height: 200px;
    }
    
    .plant-emoji {
        font-size: 6rem;
    }
    
    .growth-particles {
        width: 200px;
        height: 200px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .email-input, .submit-button {
        padding: 1rem 1.5rem;
    }
    
    .hero {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .visual-hint {
        height: 150px;
    }
    
    .plant-emoji {
        font-size: 5rem;
    }
    
    .growth-particles {
        width: 150px;
        height: 150px;
    }
}