/* Core Structural Tokens & Contrast Optimization (2026 SaaS Paradigm) */
:root {
    --bg-main: #0B0E14;
    --bento-bg: rgba(20, 25, 35, 0.4);
    --doc-bg: #111827; 
    --bento-border: rgba(255, 255, 255, 0.08);
    --bento-border-highlight: rgba(255, 255, 255, 0.15);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --accent-color: #3B82F6;
    --gradient-accent: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-hover: linear-gradient(135deg, #4F8FF7 0%, #9D75F7 100%);
    --radius: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dark-bento-theme {
    font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-primary);
    line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #FFFFFF; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }
.flex-col { display: flex; flex-direction: column; }
.h-full { height: 100%; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Icons & Typography Utils */
.material-symbols-rounded { vertical-align: middle; font-size: 1.2em; }
.icon-blue { color: var(--accent-color); }
.icon-white { color: #FFFFFF !important; }
.text-gradient { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Background Depth */
.bg-orb { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; opacity: 0.12; pointer-events: none; }
.orb-1 { width: 600px; height: 600px; background: #3B82F6; top: -10%; left: -10%; }
.orb-2 { width: 500px; height: 500px; background: #8B5CF6; bottom: -10%; right: -10%; }

/* Drag Overlay */
.global-drag-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(59,130,246,0.95) 0%, rgba(139,92,246,0.95) 100%);
    backdrop-filter: blur(20px); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white;
}
.global-drag-overlay .material-symbols-rounded { font-size: 100px; margin-bottom: 20px; }
.global-drag-overlay h2 { font-size: 3rem; font-family: 'Space Grotesk', sans-serif; text-align: center; }

/* Header & Nav */
.glass-header { position: sticky; top: 0; z-index: 100; background: rgba(11,14,20,0.6); backdrop-filter: blur(25px); border-bottom: 1px solid var(--bento-border); }
.nav-container { max-width: 1300px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.5px; font-family: 'Space Grotesk', sans-serif; }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a { font-weight: 500; color: var(--text-secondary); transition: var(--transition); font-size: 0.95rem; }
.desktop-nav a:hover { color: var(--text-primary); }

/* Hamburger Menu */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.mobile-menu-btn { width: 25px; height: 2px; background: var(--text-primary); transition: var(--transition); }
.mobile-menu { display: none; flex-direction: column; background: var(--bg-main); padding: 1rem 2rem; border-bottom: 1px solid var(--bento-border); position: absolute; top: 100%; left: 0; width: 100%; z-index: 99; }
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-primary); font-weight: 500; }

/* Layout Structure */
.container { max-width: 1300px; margin: 0 auto; padding: 2rem; width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.hero { text-align: center; padding: 2rem 0; }
.hero h1 { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 0.5rem; }
.hero p { font-size: 1.2rem; color: var(--text-secondary); }

/* Bento Box & Tool Area */
.tool-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.5rem; }
.bento-box {
    background: var(--bento-bg); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--bento-border); border-top: 1px solid var(--bento-border-highlight);
    border-radius: var(--radius); padding: 2rem; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Controls */
.settings-panel h3 { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.control-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.control-group label { font-size: 0.95rem; font-weight: 600; }
input[type="range"] { width: 100%; padding: 10px 0; accent-color: var(--accent-color); cursor: pointer; }
.setting-hint { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; background: rgba(59, 130, 246, 0.08); padding: 12px; border-radius: 12px; border-left: 3px solid var(--accent-color); }

.modern-select {
    appearance: none; -webkit-appearance: none; padding: 10px 36px 10px 14px; border-radius: 10px; background-color: rgba(0,0,0,0.4); color: var(--text-primary); border: 1px solid var(--bento-border); font-family: inherit; font-size: 0.9rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f0f2f5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.modern-select:focus { outline: none; border-color: var(--accent-color); }
.modern-select option { background-color: var(--bg-main); color: var(--text-primary); }
.full-width { width: 100%; }

/* Workspace Flow Mechanics */
.workspace-panel { min-height: 400px; display: flex; flex-direction: column; padding: 1.5rem; }
.drop-zone { border-radius: 16px; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0,0,0,0.2); border: 2px dashed rgba(255,255,255,0.15); transition: var(--transition); cursor: pointer; text-align: center; }
.drop-zone:hover { background: rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.3); }
.drop-icon { font-size: 56px !important; color: var(--text-secondary); margin-bottom: 10px; transition: var(--transition); }
.drop-zone:hover .drop-icon { color: var(--text-primary); transform: translateY(-5px); }
.drop-zone p { font-size: 1.5rem; font-weight: 600; margin-bottom: 5px; }
.drop-zone span { color: var(--text-secondary); font-size: 0.95rem; }

/* Processing List Engine */
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--bento-border); }
.file-list { flex: 1; max-height: 350px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 5px; }
.file-list::-webkit-scrollbar { width: 6px; }
.file-list::-webkit-scrollbar-thumb { background: var(--bento-border-highlight); border-radius: 3px; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,0.25); border: 1px solid var(--bento-border); border-radius: 12px; padding: 10px 14px; transition: var(--transition); }
.file-item:hover { background: rgba(0,0,0,0.4); border-color: var(--bento-border-highlight); }
.file-info { display: flex; align-items: center; gap: 12px; flex: 1; overflow: hidden; }
.file-icon { color: var(--accent-color); font-size: 24px; }
.file-name { font-weight: 500; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.file-meta { font-size: 0.8rem; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; }
.status-badge { padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-badge.ready { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-badge.converting { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-badge.done { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-badge.failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.file-actions { display: flex; align-items: center; gap: 8px; }
.action-toolbar { display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); padding: 14px; border-radius: 16px; margin-top: 1rem; border: 1px solid var(--bento-border); }

/* Buttons */
.btn { padding: 12px 20px; border-radius: 12px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-family: inherit; }
.gradient-btn { background: var(--gradient-accent); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.gradient-btn:hover { background: var(--gradient-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); }
.secondary-btn { background: rgba(255,255,255,0.04); border: 1px solid var(--bento-border); color: var(--text-primary); }
.secondary-btn:hover { background: rgba(255,255,255,0.08); }
.text-btn { background: transparent; color: var(--text-secondary); }
.text-btn:hover { color: #ef4444; }
.small { padding: 8px 14px; font-size: 0.85rem; }
.icon-btn { padding: 8px; border-radius: 10px; background: rgba(255,255,255,0.04); color: var(--text-primary); border: 1px solid var(--bento-border); cursor: pointer; transition: var(--transition); }
.icon-btn:hover { background: var(--accent-color); color: white; border-color: var(--accent-color); }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn.remove:hover { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: transparent; }

/* Full-Width Content Layout (Sidebar Removed) */
.main-content-stream { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; }

/* Structural Content Styling Overrides (High-Contrast Layering) */
.doc-box { background-color: var(--doc-bg) !important; padding: 2.5rem !important; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.doc-box h2 { font-size: 1.8rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.doc-box p { color: #D1D5DB; font-size: 1.05rem; margin-bottom: 1.2rem; line-height: 1.7; }

/* SEO Featured Image */
.seo-featured-image { width: 100%; height: auto; border-radius: 16px; margin-bottom: 1.8rem; object-fit: cover; border: 1px solid var(--bento-border); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* Specific Content Blocks */
.sticky-toc-container { padding: 1.5rem !important; }
.toc-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.toc-links a { font-size: 0.95rem; font-weight: 500; color: #9CA3AF; transition: var(--transition); }
.toc-links a:hover { color: var(--accent-color); text-decoration: underline; }

.trust-grid { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1rem; }
.trust-item { display: flex; align-items: center; gap: 10px; color: #E5E7EB; font-size: 1rem; }

.step-list { margin-left: 1.2rem; margin-bottom: 1.5rem; }
.step-list li { color: #D1D5DB; font-size: 1.05rem; margin-bottom: 0.6rem; padding-left: 0.5rem; }
.step-list strong { color: #FFFFFF; }

.table-container { overflow-x: auto; }
.modern-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.95rem; background: rgba(0,0,0,0.2); border-radius: 12px; overflow: hidden; }
.modern-table th, .modern-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--bento-border); }
.modern-table th { background: rgba(255,255,255,0.03); color: #FFFFFF; font-weight: 600; }
.modern-table td { color: #D1D5DB; }

.use-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.uc-card { background: rgba(0,0,0,0.2); border: 1px solid var(--bento-border); padding: 1.5rem; border-radius: 12px; }
.uc-card h5 { font-size: 1.1rem; margin-bottom: 0.8rem; color: #FFFFFF; font-family: 'Space Grotesk', sans-serif; }
.uc-card p { font-size: 0.95rem; margin-bottom: 0; color: #9CA3AF; line-height: 1.5; }

.related-tools-grid { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.related-link { padding: 12px 20px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 10px; color: #60a5fa; font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.related-link:hover { background: rgba(59, 130, 246, 0.2); color: #ffffff; }

/* FAQ Accordion */
.accordion-item { border-bottom: 1px solid var(--bento-border); }
.accordion-header { width: 100%; padding: 1.2rem 0; background: none; border: none; text-align: left; color: #FFFFFF; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Space Grotesk', sans-serif; transition: var(--transition); }
.accordion-header:hover { color: var(--accent-color); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.25s ease-out; color: #9CA3AF; }
.accordion-content p { padding-bottom: 1.2rem; font-size: 1rem; line-height: 1.6; margin: 0; }
.accordion-item.active .toggle-icon { transform: rotate(45deg); color: var(--accent-color); }

/* Ads (2 Static + 1 Mobile Sticky) */
.ad-slot { min-height: 120px; border: 1px dashed var(--bento-border); background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; position: relative; border-radius: 12px; width: 100%; }
.ad-label { position: absolute; top: 8px; left: 12px; font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

.mobile-sticky-ad { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: #000; z-index: 998; border-top: 1px solid var(--bento-border); align-items: center; justify-content: center; }

/* Footer & Cookie */
footer { border-top: 1px solid var(--bento-border); padding: 3rem 2rem; background: rgba(0,0,0,0.6); text-align: center; margin-top: 4rem; font-size: 0.95rem; color: var(--text-secondary); }
.footer-content { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Menu override */
    .desktop-nav { display: none; }
    .hamburger { display: flex; }
    
    /* Layout */
    .tool-grid { grid-template-columns: 1fr; }
    .use-case-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .bento-box { padding: 1.2rem; }
    .doc-box { padding: 1.5rem !important; }
    
    /* File rows */
    .file-item { flex-direction: column; align-items: flex-start; gap: 10px; }
    .file-actions { width: 100%; justify-content: space-between; }
    .action-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    
    /* Mobile Sticky Ad Logic */
    .mobile-sticky-ad { display: flex; }
    body.dark-bento-theme { padding-bottom: 60px; /* Space for sticky ad */ }
}