:root {
    --primary-color: #316cf4;
    --secondary-color: #2559d8;
    --success-color: #34C759;
    --error-color: #FF3B30;
    --text-color: #1C1C1E;
    --light-gray: #F2F2F7;
    --border-radius: 12px;
    --gradient-start: #316cf4;
    --gradient-end: #2559d8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.3rem;
    font-weight: bold;
    color: #316cf4;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.home-header h1 {
    padding-top: 5rem;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-button {
    padding: 0.5rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button.active {
    background: var(--primary-color);
    color: white;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-feature-list {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.plan-feature-list h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.plan-feature-list ul {
    list-style: none;
}

.plan-feature-list li {
    margin: 0.5rem 0;
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone.dragover {
    background-color: rgba(49, 108, 244, 0.1);
    border-color: var(--secondary-color);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.button.secondary {
    background-color: var(--light-gray);
    color: var(--text-color);
}

.conversion-status {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f3f3f3;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #316cf4;
    transition: width 0.3s ease;
}

.result, .error {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.result {
    background-color: rgba(52, 199, 89, 0.1);
}

.error {
    background-color: rgba(255, 59, 48, 0.1);
}

.hidden {
    display: none !important;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0 2rem;
    text-align: center;
}

.feature h3 {
    margin-bottom: 0.5rem;
}

.faq {
    margin: 4rem 0;
    text-align: center;
}

.faq h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    text-align: left;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: #8E8E93;
    font-size: 0.9rem;
}

.success-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
}

.success-message h1 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.return-btn {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.return-btn:hover {
    background: #1976D2;
}

.success-message {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.success-message h3 {
    color: #316cf4;
    margin-bottom: 20px;
}

.success-message .button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.success-message .download-btn,
.success-message .select-file-btn {
    min-width: 200px;
}

.download-btn, .download-button {
    background-color: #316cf4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover, .download-button:hover {
    background-color: #2559d8;
}

.download-button.ready {
    background-color: #316cf4;
}

.download-button svg.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.download-button svg.spinner circle {
    stroke-dasharray: 80;
    stroke-dashoffset: 60;
}

.download-button svg.download-icon {
    width: 20px;
    height: 20px;
}

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

#status-text {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #dc3545;
}

.select-file-btn {
    background-color: #316cf4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-file-btn:hover {
    background-color: #2559d8;
}

.file-info {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.credits-section {
    margin-top: 1rem;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.credits-section h2 {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 1.2rem;
}

#credits-status {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.credit-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.credit-option {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 150px;
    transition: transform 0.2s;
}

.credit-option:hover {
    transform: translateY(-2px);
}

.credit-option h3 {
    color: #316cf4;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.credit-option p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.credit-option .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin: 0.5rem 0;
}

.purchase-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.purchase-btn:hover {
    background: #1976D2;
}

.daily-usage {
    text-align: center;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #316cf4;
}

/* Adjust main content padding for fixed header */
main {
    padding-top: 3rem;
}

/* Footer Styles */
.site-footer {
    background-color: #1f2937;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
}

/* Content Pages */
.content-container {
    max-width: 800px;
    margin: 6rem auto 2rem;
    padding: 0 1rem;
}

.about-section,
.privacy-section,
.terms-section,
.contact-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.about-section h1,
.privacy-section h1,
.terms-section h1,
.contact-section h1 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-section h2,
.privacy-section h2,
.terms-section h2,
.contact-section h2 {
    color: #374151;
    margin: 2rem 0 1rem;
}

.about-section p,
.privacy-section p,
.terms-section p,
.contact-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.about-section ul,
.privacy-section ul,
.terms-section ul,
.contact-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-section li,
.privacy-section li,
.terms-section li,
.contact-section li {
    color: #4b5563;
    margin-bottom: 0.5rem;
}

/* Contact Page Specific */
.contact-info {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .content-container {
        margin-top: 8rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
