/* Core Setup and Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --success: #059669;
    --success-light: #d1fae5;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #475569;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-blue: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mb-4 { margin-bottom: 24px; }

/* Navbar */
.nav-wrapper { position: fixed; top: 20px; width: 100%; z-index: 1000; display: flex; justify-content: center; padding: 0 20px; }
.pill-nav { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 12px 24px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); width: 100%; max-width: 1000px; border: 1px solid rgba(226, 232, 240, 0.8); }
.brand-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; text-decoration: none; color: var(--text-dark); }
.logo-circle { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; }
.brand-logo span { color: var(--primary); }
.main-menu { display: flex; gap: 28px; }
.main-menu a { text-decoration: none; color: var(--text-gray); font-weight: 500; font-size: 14px; transition: 0.2s; }
.main-menu a:hover { color: var(--primary); }
.btn-primary-small { background: var(--text-dark); color: white; padding: 10px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; }
.btn-primary-small:hover { background: var(--primary); }

/* Hero */
.hero { padding: 160px 0 60px; text-align: center; background: radial-gradient(circle at 50% -20%, #dbeafe 0%, #f8fafc 60%); }
.hero-title { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.gradient-text { background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 18px; color: var(--text-gray); max-width: 600px; margin: 0 auto; }

/* Workspace App Box */
.app-section { padding: 20px 0 80px; }
.app-box { background: var(--bg-white); border-radius: 20px; box-shadow: var(--shadow-card); border: 1px solid var(--border); padding: 40px; }

/* Sleek Blue Mode Switcher */
.sleek-mode-container { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 30px; }
.mode-label { font-weight: 700; color: var(--text-dark); font-size: 15px; }
.mode-switcher-compact { display: flex; background: var(--primary-light); padding: 6px; border-radius: 50px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.compact-mode-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; background: transparent; color: var(--text-gray); font-weight: 600; font-size: 14px; border-radius: 40px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.compact-mode-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow-blue); transform: scale(1.02); }
.compact-mode-btn:not(.active):hover { color: var(--primary); background: rgba(255,255,255,0.5); }

/* VIBRANT Upload Zone */
.upload-zone { border: 2px dashed #93c5fd; border-radius: 20px; padding: 70px 20px; text-align: center; background: var(--primary-light); cursor: pointer; transition: all 0.3s ease; }
.upload-zone:hover { border-color: var(--primary); background: #dbeafe; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1); }
.icon-cloud { margin-bottom: 20px; display: inline-block; background: white; padding: 16px; border-radius: 50%; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1); }
.upload-zone h2 { font-size: 22px; margin-bottom: 8px; color: var(--text-dark); font-weight: 700;}
.upload-zone p { color: var(--text-gray); margin-bottom: 20px; font-size: 15px;}
#uploadInput { display: none; }
.btn-browse { background: var(--primary); color: white; border: none; padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); }
.btn-browse:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-blue); }

/* Config Zone */
.file-info-bar { display: flex; justify-content: space-between; background: var(--primary-light); padding: 16px 20px; border-radius: 10px; margin-bottom: 30px; border: 1px solid #bfdbfe; }
.label { color: var(--text-gray); font-size: 14px; margin-right: 8px; }
.badge-blue { background: #dbeafe; color: var(--primary-hover); padding: 4px 8px; border-radius: 6px; font-size: 14px; font-weight: 700;}

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.settings-panel { border: 1px solid var(--border); border-radius: 12px; }
.panel-header { background: #f8fafc; padding: 14px 20px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; border-radius: 12px 12px 0 0; }
.step-dot { background: var(--primary); color: white; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: bold; }
.panel-body { padding: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--text-dark); }
.form-control, .form-control-sm { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: white; outline: none; transition: 0.2s; }
.form-control:focus, .form-control-sm:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.value-tag { float: right; background: var(--primary-light); color: var(--primary); padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700;}
.range-slider { width: 100%; margin-top: 10px; }
.mt-2 { margin-top: 10px; } .mt-4 { margin-top: 20px; }
.text-muted { opacity: 0.6; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; color: var(--text-dark); }
.flex-column-gap { display: flex; flex-direction: column; gap: 12px; }

.dimensions-box { margin-top: 12px; background: #f8fafc; padding: 16px; border-radius: 8px; border: 1px solid var(--border); transition: 0.3s; }
.disabled-box { opacity: 0.4; pointer-events: none; }
.dim-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-process { width: 100%; background: var(--text-dark); color: white; border: none; padding: 16px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-process:hover { background: var(--primary); box-shadow: var(--shadow-blue);}

/* Results */
.success-alert { display: flex; align-items: center; gap: 16px; background: var(--success-light); border: 1px solid #6ee7b7; padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; }
.alert-icon { background: var(--success); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; }
.alert-text h3 { color: #065f46; margin-bottom: 2px; font-size: 18px;}
.alert-text p { color: #047857; margin: 0; font-size: 14px;}
.text-highlight { background: var(--success); color: white; padding: 2px 6px; border-radius: 4px; font-weight: 600; }

.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.preview-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: white; display: flex; flex-direction: column; }
.card-success { border-color: #6ee7b7; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05); }
.card-title { padding: 12px; font-weight: 600; font-size: 14px; text-align: center; border-bottom: 1px solid var(--border); background: #f8fafc; }
.text-success { color: #059669; }

.image-container { padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 200px; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAOklEQVQYV2NkYGAwYkAD////Z4QxkBX8x6kiVjFWEyGKYDShy2MUwGkix2MUIGji2HKEbMTI6cEwBwCAvAsE3c9M6wAAAABJRU5ErkJggg=='); }
.image-container img { max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-sm); background: white; }
.card-footer { padding: 12px 16px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); font-size: 14px; background: #f8fafc; }

.final-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 20px; }
.btn-secondary { background: white; border: 1px solid var(--border); padding: 14px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.2s;}
.btn-secondary:hover { background: #f1f5f9; }
.btn-download { background: var(--success); color: white; text-align: center; text-decoration: none; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: 0.3s; }
.btn-download:hover { background: #059669; }

/* Generic Sections */
.section-title { font-size: 32px; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.5px; }
.section-subtitle { color: var(--text-gray); font-size: 16px; margin-bottom: 40px; }

/* Visual Proof Grid */
.comparison-section { padding: 60px 0; background: white; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.compare-card img { width: 100%; display: block; }
.compare-badge { position: absolute; bottom: 16px; left: 16px; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; backdrop-filter: blur(5px); }
.badge-dark { background: rgba(15, 23, 42, 0.85); color: white; }
.badge-green { background: rgba(16, 185, 129, 0.9); color: white; }

/* SPLIT LAYOUT ARTICLE */
.features-guide-section { padding: 80px 0; background: var(--bg-light); }
.feature-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-tag { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; margin-bottom: 16px; }
.feature-text h3 { font-size: 28px; margin-bottom: 16px; color: var(--text-dark); }
.feature-text p { color: var(--text-gray); font-size: 16px; margin-bottom: 20px; }
.clean-list { list-style: none; color: var(--text-gray); }
.clean-list li { position: relative; padding-left: 24px; margin-bottom: 12px; font-size: 15px; }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }

.feature-image { flex: 1; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
.feature-image img { width: 100%; display: block; object-fit: cover; }

/* Format Cards Guide */
.format-guide-section { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 60px; }
.format-cards-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.format-card { background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.format-icon { display: inline-block; background: var(--primary-light); color: var(--primary); font-weight: 800; padding: 8px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.format-card h4 { font-size: 18px; margin-bottom: 12px; }
.format-card p { color: var(--text-gray); font-size: 14px; margin: 0; }

/* FAQ */
.faq-section { padding: 80px 0; background: white; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.faq-item { background: var(--bg-light); padding: 24px; border-radius: 12px; border: 1px solid var(--border); }
.faq-item h4 { font-size: 16px; margin-bottom: 12px; color: var(--text-dark); }
.faq-item p { color: var(--text-gray); font-size: 14px; margin: 0; }

/* Footer */
.main-footer { background: #0f172a; color: white; padding: 60px 0 20px; font-size: 14px; }
.footer-layout { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; border-bottom: 1px solid #334155; padding-bottom: 40px; margin-bottom: 20px; }
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.footer-logo span { color: #3b82f6; }
.brand-col p { color: #94a3b8; max-width: 280px; }
.footer-col h4 { margin-bottom: 16px; color: white; font-size: 15px; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { text-align: center; color: #64748b; }

/* Mobile (Fully Optimized for Phones) */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .pill-nav { padding: 12px 16px; border-radius: 12px; }
    .main-menu { display: none; }
    .btn-primary-small { padding: 8px 16px; font-size: 13px; }
    
    .hero { padding: 120px 0 40px; }
    .hero-title { font-size: 32px; margin-bottom: 12px; }
    .hero-desc { font-size: 15px; padding: 0 10px; }
    
    .app-box { padding: 20px 16px; border-radius: 16px; }
    
    .sleek-mode-container { flex-direction: column; gap: 12px; }
    .mode-switcher-compact { width: 100%; display: flex; flex-direction: column; background: transparent; padding: 0; box-shadow: none; gap: 8px; }
    .compact-mode-btn { width: 100%; justify-content: center; background: var(--primary-light); padding: 14px 20px; border-radius: 12px; }
    
    .upload-zone { padding: 40px 16px; }
    .upload-zone h2 { font-size: 18px; }
    
    .file-info-bar { flex-direction: column; gap: 12px; text-align: center; padding: 12px; }
    .badge-blue { margin-top: 4px; display: inline-block; }
    
    .settings-grid, .preview-grid, .final-actions, .comparison-grid, .format-cards-grid, .faq-grid, .footer-layout { grid-template-columns: 1fr; gap: 16px; }
    
    .panel-body { padding: 16px; }
    .dim-inputs { grid-template-columns: 1fr; }
    
    .final-actions { display: flex; flex-direction: column-reverse; }
    .btn-secondary, .btn-download, .btn-process { width: 100%; padding: 14px; }
    
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 24px; text-align: center; margin-bottom: 60px; }
    .feature-text h3 { font-size: 24px; }
    .clean-list li { text-align: left; }
    
    .section-title { font-size: 26px; margin-bottom: 8px; }
    .section-subtitle { font-size: 15px; margin-bottom: 30px; }
    .faq-section, .comparison-section, .features-guide-section { padding: 40px 0; }
    
    .footer-layout { gap: 30px; text-align: center; }
    .brand-col p { margin: 0 auto; }
}