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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #D97A5A;
    color: white;
}

.btn-primary:hover {
    background-color: #c66a48;
    transform: translateY(-1px);
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0;
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.hero-title em {
    font-style: normal;
    color: #1a1a1a;
    position: relative;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Waitlist section */
.waitlist-section {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 32px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.waitlist-form {
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.email-input {
    width: 100%;
    max-width: 300px;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: #D97A5A;
}

.email-input::placeholder {
    color: #999999;
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.footer-links {
    text-align: center;
    font-size: 14px;
}

.footer-link {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #D97A5A;
}

.separator {
    margin: 0 12px;
    color: #cccccc;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero {
        margin-bottom: 80px;
    }
    
    .hero-title {
        font-size: clamp(36px, 10vw, 64px);
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .waitlist-title {
        font-size: 28px;
    }
    
    .main {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .form-group {
        width: 100%;
    }
    
    .email-input {
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.email-input:focus {
    outline: 2px solid #D97A5A;
    outline-offset: 2px;
}

/* Animation for form submission */
.waitlist-form.submitted {
    opacity: 0.7;
    pointer-events: none;
}

.waitlist-form.submitted .btn {
    background-color: #28a745;
}

.waitlist-form.submitted .btn::after {
    content: " ✓";
}

/* Animated word block */
.animated-words-container {
    display: inline-block;
    line-height: 1.4em;
    height: 1.4em; /* Set height to one word */
    overflow: hidden;
    text-align: left;
    padding-left: 14px;
    padding-right: 14px;
}

.animated-words-container-inner {
  animation: scroll-text 5s ease-in-out 1 forwards; /* Play animation once and stop on ending frame */
}

.animated-words-container-inner span {
  display: block; /* Stack words vertically */
}

@keyframes scroll-text {
  0% { transform: translateY(-4.2em); }
  33% { transform: translateY(-2.8em); } /* Move to the second word */
  67% { transform: translateY(-1.4em); } /* Move to the third word */
  100% { transform: translateY(0); } /* Move to the fourth word */
}