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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.hero {
    max-width: 700px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 35px;
}

.mode-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 200px;
    text-align: center;
}

.btn.primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.how-it-works {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.how-it-works h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.how-it-works p {
    font-size: 1rem;
    line-height: 2;
    opacity: 0.95;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    scroll-margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.description {
    color: #666;
    font-size: 0.95rem;
}

.free-note {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 12px;
    padding: 10px 15px;
    background: #f0f4ff;
    border-radius: 8px;
    display: inline-block;
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

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

.field-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: -4px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.result-section {
    text-align: left;
}

.result-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary h3 {
    color: #667eea;
    font-size: 1rem;
    margin-bottom: 12px;
}

.summary ul {
    list-style: none;
}

.summary li {
    padding: 6px 0;
    color: #555;
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.summary li:last-child {
    border-bottom: none;
}

.summary li strong {
    color: #333;
}

.prompt-container {
    margin-bottom: 20px;
}

.prompt-container label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

#prompt-output {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 2px solid #667eea;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
    background: #fafafa;
    color: #333;
}

.copy-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: background 0.2s, transform 0.2s;
}

.copy-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.copy-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 20px;
}

.back-link {
    display: block;
    text-align: center;
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    padding: 15px;
    margin-top: 20px;
    border: 2px solid #667eea;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.back-link:hover {
    background: #667eea;
    color: white;
}

.error-box {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.error-box h3 {
    color: #dc3545;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.error-box p {
    color: #721c24;
    font-size: 0.95rem;
}

.success-section {
    text-align: center;
}

.success-message {
    background: #f0fff4;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.success-message h2 {
    color: #28a745;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #155724;
    font-size: 0.95rem;
}

.download-btn {
    display: block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-decoration: none;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.files-preview {
    text-align: left;
    margin-top: 25px;
}

.files-preview h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
}

.file-item {
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.file-header:hover {
    background: #e9ecef;
}

.file-name {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: #667eea;
}

.toggle-icon {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: bold;
}

.file-content {
    border-top: 1px solid #dee2e6;
    background: #1e1e1e;
    padding: 15px;
    max-height: 300px;
    overflow: auto;
}

.file-content pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.custom-page {
    margin-top: 40px;
}

.custom-page header {
    margin-bottom: 25px;
}

.custom-page .intro {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
}

.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.price-box .price {
    font-size: 1.3rem;
    margin: 0;
}

.price-box .price strong {
    font-size: 1.6rem;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h2 {
    color: #333;
    font-size: 1.15rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.feature-list,
.style-list,
.requirements-list {
    list-style: none;
    padding: 0;
}

.feature-list li,
.requirements-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: #555;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child,
.requirements-list li:last-child {
    border-bottom: none;
}

.feature-list li::before,
.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.style-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
}

.style-list li strong {
    color: #667eea;
}

.order-section {
    background: #f0f4ff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
}

.order-section h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.order-section p {
    color: #555;
    margin-bottom: 20px;
}

.email-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.site-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.site-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
    text-decoration: underline;
}

.privacy-content {
    line-height: 1.8;
}

.privacy-content p {
    color: #555;
    margin-bottom: 18px;
}

.privacy-content a {
    color: #667eea;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .hero {
        padding: 40px 15px;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-tagline {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .mode-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 35px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .how-it-works {
        padding: 20px;
    }
    
    .how-it-works h2 {
        font-size: 1.1rem;
    }
    
    .how-it-works p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .container {
        padding: 20px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 12px;
    }
    
    .submit-btn {
        padding: 18px 24px;
    }
    
    #prompt-output {
        font-size: 0.8rem;
    }
    
    .download-btn {
        padding: 16px 24px;
        font-size: 1.1rem;
    }
    
    .file-content pre {
        font-size: 0.75rem;
    }
}
