/* Global Styles */
:root {
    --primary-color: #4F46E5;
    --text-color: #1F2937;
    --border-color: #E5E7EB;
    --background-color: #F9FAFB;
    --success-color: #16a34a;
    --error-color: #ef4444;
    --section-spacing: 4rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem;
}

/* Header */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2.5rem;
}

/* Upload Section */
.upload-section {
    margin-bottom: var(--section-spacing);
}

.upload-box {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #F8FAFC;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.upload-text strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.upload-text span {
    color: #6B7280;
}

.upload-limits {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #9CA3AF;
}

.hidden {
    display: none !important;
}

/* Progress Bar */
.upload-progress {
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress {
    background: var(--primary-color);
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}

.status-text {
    text-align: center;
    color: #6B7280;
    margin: 0;
}

/* Analysis Section */
#analysis-section,
#preview-section,
#success-section,
#error-section {
    max-width: 600px;
    margin: 3rem auto;
}

.analysis-card,
.preview-card,
.success-card,
.error-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.analysis-card h3,
.preview-card h3,
.success-card h3,
.error-card h3 {
    margin: 0 0 1.5rem;
    color: var(--text-color);
}

#analysis-details {
    margin-bottom: 2rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Conversion Info */
.conversion-info,
.preview-info {
    margin: 15px 0;
    padding: 12px 16px;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border: 1px solid #28a745;
    border-radius: 8px;
    text-align: center;
}

.conversion-text,
.preview-text {
    margin: 0;
    color: #155724;
    font-size: 14px;
    line-height: 1.4;
}

/* Buttons */
.button, .btn {
    display: inline-block;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px -2px rgb(79 70 229 / 0.3);
    transform: translateY(0);
    text-align: center;
    min-width: 250px;
}

.button, .btn-primary {
    background: var(--primary-color);
}

.button:hover, .btn-primary:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgb(79 70 229 / 0.4);
}

.button:disabled, .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-secondary, .btn-secondary {
    background: #6B7280;
    color: white;
    box-shadow: 0 4px 12px -2px rgb(107 114 128 / 0.3);
}

.button-secondary:hover, .btn-secondary:hover {
    background: #4B5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgb(107 114 128 / 0.4);
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.button-group .button {
    width: 280px;
    height: 56px;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Features Section */
.features-section {
    margin: var(--section-spacing) 0;
    position: relative;
}

.features-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.features-section .subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #818CF8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.1);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #818CF8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6B7280;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Trust Section */
.trust-section {
    margin: var(--section-spacing) 0;
    position: relative;
}

.trust-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.trust-section .subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.trust-card {
    text-align: left;
    padding: 2.5rem;
    background: white;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #818CF8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.1);
    border-color: transparent;
}

.trust-card:hover::before {
    opacity: 1;
}

.trust-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-card .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #818CF8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.trust-card p {
    color: #6B7280;
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0;
}

/* Navigation */
.nav-header {
    background: var(--primary-color);
    padding: 1rem 0;
    margin-bottom: 2.5rem;
}

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

.nav-logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.9;
}

/* Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-section {
    margin-bottom: 2.5rem;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

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

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

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    color: #6B7280;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Content Section Styles */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.content-section p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4B5563;
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-section li {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #4B5563;
}

.content-section strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
    }
    
    .container {
        padding: 2rem;
    }
    
    .features-grid,
    .trust-grid {
        gap: 2rem;
    }
    
    .feature-card,
    .trust-card {
        padding: 2rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
}
