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

body {
    font-family: 'Menlo', monospace;
    background: #E8EAEC;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    padding-top: 60px;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 12rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Main Title */
.main-title {
    font-family: 'Menlo', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 96px;
    line-height: 1.2;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title .asterisk {
    color: #EA580C;
    font-size: 1em; /* Matches parent font size */
    line-height: inherit;
    vertical-align: middle;
    margin-left: 0.02em; /* Proportional spacing */
}

/* Tagline */
.tagline {
    font-family: 'Menlo', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #6B7280;
    margin-bottom: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Container */
.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 376px;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    width: 100%;
}

/* Input Container */
.input-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.label-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.email-label {
    font-family: 'Menlo', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6B7280;
    display: flex;
    align-items: center;
}

/* Input Wrapper */
.input-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14.5px 16px;
    width: 100%;
    height: 48px;
    background: #E8EAEC;
    box-shadow: inset 6px 6px 12px #C5C8CA, inset -6px -6px 12px #FFFFFF;
    border-radius: 12px;
    border: none;
    transition: box-shadow 0.4s linear;
}

.input-wrapper:focus-within {
    box-shadow: inset 4px 4px 8px #C5C8CA, inset -4px -4px 8px #FFFFFF;
}

.email-input {
    width: 100%;
    height: 19px;
    font-family: 'Menlo', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #374151;
    background: transparent;
    border: none;
    outline: none;
}

.email-input::placeholder {
    color: #9CA3AF;
}

/* Submit Button */
.submit-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 6px;
    width: 100%;
    height: 48px;
    background: #E8EAEC;
    box-shadow: 6px 6px 12px #C5C8CA, -6px -6px 12px #FFFFFF;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    box-shadow: 4px 4px 8px #C5C8CA, -4px -4px 8px #FFFFFF;
    transform: translateY(1px);
}

.submit-button:active {
    box-shadow: inset 2px 2px 4px #C5C8CA, inset -2px -2px 4px #FFFFFF;
    transform: translateY(2px);
}

.button-text {
    font-family: 'Menlo', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #EA580C;
    text-align: center;
}

.button-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Message Styles */
.message {
    font-family: 'Menlo', monospace;
    font-size: 14px;
    line-height: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    margin-top: 16px;
}

.message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.message.hidden {
    display: none;
}

/* Info Section */
.info-section {
    margin-top: 60px;
    max-width: 600px;
}

.info-text {
    font-family: 'Menlo', monospace;
    font-size: 16px;
    line-height: 24px;
    color: #6B7280;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 64px;
    }
    
    .tagline {
        font-size: 24px; /* Slightly smaller to prevent wrapping */
        line-height: 1.3;
        max-width: 90%;
        margin: 0 auto 60px auto;
    }
    
    .form-container {
        max-width: 320px;
    }
    
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .main-title {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .tagline {
        font-size: 16px; /* Even smaller for mobile */
        line-height: 1.4;
        max-width: 95%;
        margin: 0 auto 40px auto;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .form-container {
        max-width: 280px;
    }
    
    .info-section {
        margin-top: 40px;
    }
    
    .info-text {
        font-size: 14px;
        line-height: 20px;
    }
    
    .read-more-section {
        margin-top: 30px;
    }
    
}

/* Read More Section */
.read-more-section {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.read-more-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.read-more-button:hover {
    transform: translateY(-2px);
}

.read-more-text {
    font-family: 'Menlo', monospace;
    font-size: 16px;
    line-height: 24px;
    color: #6B7280;
    margin: 0;
}

.arrow-down {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Story Section */
.story-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.6s ease-in-out;
    margin-top: 40px;
    /* Add space for natural scrolling discovery */
    min-height: 100vh;
}

.story-section.expanded {
    max-height: 2000px; /* Increased for more content space */
    padding: 0 0 120px 0; /* More generous padding top and bottom */
}

.story-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.story-paragraph {
    font-family: 'Menlo', monospace;
    font-size: 16px;
    line-height: 28px;
    color: #6B7280;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-bullets {
    font-family: 'Menlo', monospace;
    font-size: 16px;
    line-height: 28px;
    color: #6B7280;
    margin-bottom: 36px;
    padding-left: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.story-bullet {
    margin-bottom: 16px;
    position: relative;
    padding-left: 24px;
}

.story-bullet::before {
    content: '•';
    color: #EA580C;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.story-section.expanded .story-paragraph,
.story-section.expanded .story-bullets {
    opacity: 1;
    transform: translateY(0);
}

.story-section.expanded .story-paragraph:nth-child(1) {
    transition-delay: 0.1s;
}

.story-section.expanded .story-bullets:nth-child(2) {
    transition-delay: 0.2s;
}

.story-section.expanded .story-paragraph:nth-child(3) {
    transition-delay: 0.3s;
}

.story-section.expanded .story-paragraph:nth-child(4) {
    transition-delay: 0.4s;
}

/* Hide Read More when story is expanded */
.read-more-section.hidden {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Story section responsive styles - proper CSS cascade */
@media (max-width: 768px) {
    .story-content {
        max-width: 90%;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .story-content {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .story-paragraph {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 36px;
    }
    
    .story-bullets {
        font-size: 14px;
        line-height: 24px;
    }
}

