/* style.css */
:root {
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899; /* Pink */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 16px;
    --font: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; transition: background 0.3s, color 0.3s, border-color 0.3s; }

body { font-family: var(--font); background-color: var(--bg-body); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }

/* Background Mesh */
.bg-mesh {
    position: absolute; top: 0; left: 0; width: 100%; height: 600px;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
    z-index: -1; pointer-events: none;
}

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; max-width: 1200px; margin: 0 auto; }
.brand { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
#theme-btn { background: transparent; border: 1px solid var(--border); color: var(--text-main); padding: 0.5rem 1rem; border-radius: 50px; cursor: pointer; }

/* Hero & Tool */
.hero { text-align: center; padding: 4rem 1rem; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem auto; }

.tool-card { background: var(--bg-card); max-width: 700px; margin: 0 auto; border-radius: var(--radius); padding: 3rem; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: center; }

/* Drag & Drop */
.dropzone { border: 2px dashed var(--border); border-radius: 12px; padding: 3rem; cursor: pointer; transition: 0.2s; background: rgba(99, 102, 241, 0.02); }
.dropzone:hover, .dropzone.active { border-color: var(--primary); background: rgba(99, 102, 241, 0.05); }
.icon-box { font-size: 4rem; margin-bottom: 1rem; display: block; }

/* Progress & Results */
.process-view, .result-view { display: none; }
.progress-bar { width: 100%; height: 6px; background: var(--border); border-radius: 10px; overflow: hidden; margin-top: 1rem; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.4s ease; }
.result-stats { display: flex; justify-content: space-around; background: var(--bg-body); padding: 1.5rem; border-radius: 12px; margin: 2rem 0; }
.stat-item span { display: block; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-item strong { display: block; font-size: 1.5rem; margin-top: 5px; }
.stat-item.saved strong { color: #10b981; }

.btn-primary { background: linear-gradient(135deg, var(--primary), #4f46e5); color: white; padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none; font-weight: 600; display: inline-block; border: none; cursor: pointer; width: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px var(--primary-glow); }

/* Content Sections */
.container { max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem; }
.content-block { margin-bottom: 4rem; }
.content-block h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-card { padding: 2rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem; overflow: hidden; }
.faq-question { padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-answer { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-muted); display: none; }
.faq-item.active .faq-answer { display: block; }

/* Blog Grid */
.blog-header { text-align: center; padding: 4rem 1rem 2rem 1rem; background: radial-gradient(circle at 50% 0%, var(--primary-glow), transparent 40%); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform 0.3s; display: flex; flex-direction: column; height: 100%; }
.article-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.article-thumb { height: 200px; width: 100%; background: linear-gradient(135deg, var(--bg-body), var(--border)); }
.article-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.article-title { font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.3; }
.article-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.read-link { color: var(--primary); font-weight: 700; text-decoration: none; margin-top: auto; }

/* Prose (Legal/Articles) */
.prose { max-width: 800px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; padding: 2rem 1rem; }
.prose h1, .prose h2, .prose h3 { color: var(--text-main); margin-top: 2rem; margin-bottom: 1rem; }
.prose ul { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.prose p { margin-bottom: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-input, .form-textarea { width: 100%; padding: 1rem; border: 1px solid var(--border); background: var(--bg-body); color: var(--text-main); border-radius: 8px; font-family: var(--font); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 1rem; text-align: center; margin-top: 4rem; color: var(--text-muted); }
footer a { color: var(--text-main); margin: 0 10px; text-decoration: none; font-size: 0.9rem; }
