* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

.hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 500;
}

.description {
    font-size: 1rem;
    color: #718096;
}

.main-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.main-form h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 15px;
}

.form-description {
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}

.form-group input[type="url"],
.form-group textarea,
.contact-fields input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input[type="url"]:focus,
.form-group textarea:focus,
.contact-fields input:focus {
    outline: none;
    border-color: #3182ce;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-fields {
    display: grid;
    gap: 12px;
}

.contact-fields input {
    margin: 0;
}

.file-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: border-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: #cbd5e0;
}

.file-upload-area.dragover {
    border-color: #3182ce;
    background-color: #ebf8ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.upload-placeholder p {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.upload-text {
    color: #718096;
    font-size: 14px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f7fafc;
    border-radius: 6px;
}

.remove-btn {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-text {
    font-size: 14px;
    color: #718096;
    margin-top: 8px;
}

.file-help {
    margin-top: 15px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 6px;
    border-left: 4px solid #3182ce;
}

.file-help p {
    margin-bottom: 5px;
    font-size: 14px;
    color: #4a5568;
}

.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #2c5aa0 0%, #2a4a80 100%);
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.how-it-works {
    margin-bottom: 50px;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.step p {
    color: #4a5568;
    line-height: 1.6;
}

.test-container {
    margin: 30px 0;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.test-label {
    margin: 0 0 15px 0;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

.test-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.test-button:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    color: #718096;
}

.footer p {
    margin-bottom: 10px;
}

.affiliate-disclosure {
    font-size: 0.9rem;
    font-style: italic;
    color: #9ca3af;
}

.social-sharing {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 40px;
}

.share-text {
    margin: 0 0 20px 0;
    color: #64748b;
    font-weight: 500;
    font-size: 1rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.social-btn.twitter {
    background: #1da1f2;
    color: white;
}

.social-btn.facebook {
    background: #4267b2;
    color: white;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.email {
    background: #34495e;
    color: white;
}

.social-btn svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-form {
        padding: 25px;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .social-btn {
        width: 200px;
        justify-content: center;
    }
}