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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    text-align: center;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: #6d28d9;
    font-weight: 900;
}

.promo {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #4b5563;
}

/* Upload Section */
.upload-container {
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.upload-box {
    width: 100%;
    aspect-ratio: 16/9;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-box:hover {
    border-color: #6d28d9;
    background-color: #f5f3ff;
}

.upload-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

#file-input {
    display: none;
}

.upload-box img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    object-fit: contain;
}

/* Button Styles */
.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background-color: #6d28d9;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    min-width: 200px;
}

.cta-button:hover:not(.disabled) {
    background-color: #5b21b6;
}

.cta-button.disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Examples Section */
.examples-section {
    margin: 4rem auto;
    text-align: center;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.masonry-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: #f3f4f6;
    padding: 2rem;
    margin-top: 1rem;
}

.disclaimer {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: left;
}

.disclaimer p {
    margin-bottom: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        width: 80%;
    }
    
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    animation: modalFadeIn 0.3s ease;
}

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

.modal h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #6d28d9;
}

.modal p {
    margin-bottom: 1.2rem;
    color: #4b5563;
    font-size: 1.05rem;
}

.modal .notice {
    color: #6b7280;
    font-style: italic;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.8rem 0;
    color: #4b5563;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

#email-input {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.8rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#email-input:focus {
    outline: none;
    border-color: #6d28d9;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.cancel-button {
    padding: 0.9rem 1.5rem;
    border: 1px solid #d1d5db;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    width: 40%;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background-color: #f3f4f6;
}

.submit-button {
    padding: 0.9rem 1.5rem;
    background-color: #6d28d9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 60%;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.submit-button:hover {
    background-color: #5b21b6;
    transform: translateY(-2px);
}

/* Success Page Specific Styles */
.spacer {
    height: 80px; /* Adjust this value to control how low the button appears */
}

/* You can also add specific styling for the success page button if needed */
.hero .cta-button {
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
}
