/* Navigation Menu */
.screen-nav {
    position: absolute;
    top: 2rem;
    left: 3rem;
    z-index: 20;
    display: flex;
    gap: 1rem;
}

.screen-nav a {
    color: #1F2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    background: transparent;
    border: 1px solid #1F2937;
    transition: all 0.3s ease;
}

.screen-nav a:hover {
    color: #FFFFFF;
    background: #1F2937;
    transform: translateY(-2px);
}

.screen-nav a.active {
    color: #FFFFFF;
    background: #3B82F6;
    /* Accent Palette: Electric Blue */
    border-color: #3B82F6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* Moments Section */
.moments-section {
    width: 100%;
    background-color: #F4F4F4;
    /* Match the bottom color of the hero gradient */
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

.moments-container {
    max-width: 1080px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moments-headline {
    font-size: 56px;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #111111;
    margin: 0 0 2.5rem 0;
}

.moments-content {
    max-width: 640px;
    margin: 0 auto;
}

.moments-content p {
    font-size: 19px;
    color: #374151;
    line-height: 1.65;
    margin: 0 0 2rem 0;
    font-weight: 400;
}

.moments-content p:last-child {
    margin-bottom: 4rem;
}

.moments-divider {
    width: 60px;
    height: 1px;
    background-color: #E5E7EB;
    margin: 0 auto;
}

/* Animations */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease-in-out, transform 300ms ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-inline {
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.fade-inline.visible {
    opacity: 1;
}

.fade-inline.delay-100 {
    transition-delay: 100ms;
}

.fade-inline.delay-250 {
    transition-delay: 250ms;
}

.fade-on-scroll.delay-100 {
    transition-delay: 100ms;
}

/* Artifact Section */
.artifact-section {
    width: 100%;
    background-color: #F4F4F4;
    /* Keep consistency */
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

.artifact-container {
    max-width: 1080px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artifact-headline {
    font-size: 56px;
    font-weight: 400;
    /* Regular weight */
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin: 0 0 2rem 0;
}

.artifact-paragraph {
    max-width: 640px;
    font-size: 19px;
    color: #374151;
    line-height: 1.65;
    margin: 0 auto 4rem auto;
    font-weight: 400;
}

.artifact-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artifact-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Slight softening for the image */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
    margin-bottom: 2rem;
}

.artifact-support {
    font-size: 14px;
    color: #64748B;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.fade-inline.delay-200 {
    transition-delay: 200ms;
}

.fade-inline.delay-350 {
    transition-delay: 350ms;
}

/* Process Section */
.process-section {
    width: 100%;
    background-color: #F4F4F4;
    /* Keep consistency */
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

.process-container {
    max-width: 1080px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-headline {
    font-size: 56px;
    font-weight: 400;
    /* Regular weight */
    color: #0F172A;
    margin: 0 0 6rem 0;
    /* Large space between headline and steps */
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
    /* Generous horizontal spacing */
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-divider {
    width: 1px;
    height: 100px;
    /* Adjust height as needed */
    background-color: #E5E7EB;
    margin-top: 1rem;
}

.step-number {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    /* +120 */
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 22px;
    font-weight: 500;
    /* Medium weight */
    color: #111827;
    margin: 0 0 1rem 0;
}

.step-body {
    font-size: 18px;
    line-height: 1.6;
    color: #4B5563;
    max-width: 280px;
    margin: 0;
}

/* Base Section */
.base-section {
    width: 100%;
    background-color: #F4F4F4 !important;
    /* Keep continuity */
    padding: 120px 0;
    display: flex;
    justify-content: center;
}

.base-container {
    max-width: 1080px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Center items vertically */
    gap: 4rem;
    /* Generous gap between columns */
}

.base-column-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.base-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Slight softening for the image */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

.base-column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.base-headline {
    font-size: 56px;
    font-weight: 400;
    /* Regular weight */
    color: #0F172A;
    margin: 0 0 1.5rem 0;
}

.base-paragraph {
    font-size: 19px;
    line-height: 1.65;
    color: #374151;
    max-width: 520px;
    margin: 0 0 1.5rem 0;
}

.base-support {
    font-size: 16px;
    color: #6B7280;
    margin: 0;
}

/* CTA Section */
.cta-section {
    width: 100%;
    background-color: #F4F4F4;
    /* Pure White */
    padding: 160px 0;
    /* Very generous padding */
    display: flex;
    justify-content: center;
}

.cta-container {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-headline {
    font-size: 56px;
    font-weight: 400;
    /* Regular weight */
    color: #0F172A;
    line-height: 1.1;
    /* Tight line height */
    margin: 0;
}

.cta-paragraph {
    font-size: 19px;
    line-height: 1.6;
    color: #4B5563;
    max-width: 600px;
    margin: 24px 0 0 0;
}

.cta-button {
    margin-top: 40px;
    background-color: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    /* Subtle radius */
    padding: 16px 48px;
    /* Generous horizontal padding */
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    /* Medium weight */
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 200ms ease;
    /* Smooth, no bounce/glow */
}

.cta-button:hover {
    background-color: #1F2937;
    /* Shifts slightly lighter */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .moments-section {
        padding: 80px 0;
    }

    .moments-headline {
        font-size: 40px;
        margin: 0 0 2rem 0;
    }

    .moments-content p {
        font-size: 17px;
        margin: 0 0 1.5rem 0;
    }

    .artifact-section {
        padding: 80px 0;
    }

    .artifact-headline {
        font-size: 40px;
        margin: 0 0 1.5rem 0;
    }

    .artifact-paragraph {
        font-size: 17px;
        margin-bottom: 3rem;
    }

    .process-section {
        padding: 80px 0;
    }

    .process-headline {
        font-size: 40px;
        margin: 0 0 4rem 0;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .step-divider {
        display: none;
        /* Hide dividers on mobile */
    }

    .base-section {
        padding: 80px 0;
    }

    .base-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .base-column-right {
        align-items: center;
    }

    .base-headline {
        font-size: 40px;
        margin: 0 0 1.5rem 0;
    }

    .base-paragraph {
        font-size: 17px;
    }

    .cta-section {
        padding: 100px 0;
    }

    .cta-headline {
        font-size: 40px;
    }

    .cta-paragraph {
        font-size: 17px;
    }

    /* Create Page Mobile Nav */
    .create-nav {
        left: 1.5rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .create-logo {
        width: 100px;
    }

    .create-title {
        font-size: 32px;
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .moment-cards {
        flex-direction: column;
    }
}

/* --- Create Overlay Page --- */
#create-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 100;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease-out;
    display: flex;
    justify-content: center;
}

#create-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.create-nav {
    position: absolute;
    top: 2rem;
    left: 3rem;
    right: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-logo {
    width: 120px;
    height: auto;
}

.step-indicator {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.create-container {
    max-width: 820px;
    width: 100%;
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
}

.create-title {
    font-size: 48px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 4rem 0;
    text-align: left;
    letter-spacing: -0.02em;
}

.create-section {
    margin-bottom: 4rem;
    transition: opacity 300ms ease;
}

.create-section.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.section-headline {
    font-size: 24px;
    font-weight: 400;
    color: #111111;
    margin: 0 0 1.5rem 0;
}

.section-headline-small {
    font-size: 18px;
    font-weight: 500;
    color: #111111;
    margin: 0 0 1.5rem 0;
}

/* Section A: Upload */
.upload-dropzone {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #FAFAFA;
    transition: all 200ms ease;
}

.upload-dropzone:hover {
    border-color: #D1D5DB;
    background-color: #F3F4F6;
}

.upload-dropzone.has-files {
    border-color: #111111;
    background-color: #FFFFFF;
}

.upload-primary {
    font-size: 18px;
    color: #374151;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.upload-link {
    color: #3B82F6;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.upload-secondary {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0;
}

.upload-previews {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.preview-img {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Section B: Moment Cards */
.moment-cards {
    display: flex;
    gap: 1.5rem;
}

.moment-card {
    flex: 1;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: all 200ms ease;
    position: relative;
    overflow: hidden;
}

.moment-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color 200ms ease;
}

.moment-card:hover {
    border-color: #D1D5DB;
    background-color: #FAFAFA;
}

.moment-card.selected {
    border-color: #111111;
}

.moment-card.selected::after {
    background-color: #3B82F6;
}

.card-label {
    font-size: 16px;
    font-weight: 500;
    color: #111111;
}

/* Section C: Textarea */
#story-textarea {
    width: 100%;
    height: 120px;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    color: #111111;
    resize: vertical;
    outline: none;
    transition: border-color 200ms ease;
}

#story-textarea:focus {
    border-color: #111111;
}

#story-textarea::placeholder {
    color: #9CA3AF;
    font-style: italic;
}

/* Bottom Button */
#create-continue-btn {
    background-color: #111111;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
    align-self: flex-start;
}

#create-continue-btn:hover:not(:disabled) {
    background-color: #374151;
}

#create-continue-btn:disabled {
    background-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}