@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    --bg-page: #FFFFFF;
    --bg-surface: #FDFBF7; /* Very subtle warm cream for cards */
    --bg-alt: #F3F4F6;
    
    --text-main: #1C1917; /* Deep ink */
    --text-muted: #57534E;
    
    --brand-primary: #064E3B; /* Deep Emerald */
    --brand-light: #D1FAE5;
    
    --accent-orange: #EA580C;
    --accent-orange-light: #FFEDD5;
    
    --accent-blue: #0369A1;
    --accent-blue-light: #E0F2FE;
    
    --border-color: #E7E5E4;
    --border-strong: #D6D3D1;
    
    --radius-soft: 20px;
    --radius-pill: 100px;
    
    --shadow-sm: 0 2px 4px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 10px 30px rgba(28, 25, 23, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
}

/* Typography Overrides */
h1, h2, h3, .logo-text, .hero-title em, .seo-title em {
    font-family: 'Playfair Display', serif;
}

h1, h2, h3 {
    color: var(--text-main);
}

/* ======== NAVBAR ======== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent-orange);
    font-size: 1.4rem;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--brand-primary);
    font-weight: 700;
}

.btn-primary-sm {
    background-color: var(--brand-primary);
    color: #FFF;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-sm:hover {
    background-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 78, 59, 0.2);
}

/* ======== HERO ======== */
.hero-section {
    max-width: 900px;
    margin: 6rem auto 4rem;
    text-align: center;
    padding: 0 2rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-surface);
    padding: 0.4rem 1.2rem 0.4rem 0.4rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.badge-new {
    background: var(--accent-orange);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title em {
    color: var(--brand-primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Top Ad Unit */
.ad-placement {
    max-width: 728px;
    height: 90px;
    margin: 2rem auto 4rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg-page);
    padding: 0 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ======== WORKSPACE ======== */
.main-workspace {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.tool-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.switcher-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switcher-btn:hover {
    border-color: var(--brand-primary);
    color: var(--text-main);
}

.switcher-btn.active {
    background: var(--brand-primary);
    color: #FFF;
    border-color: var(--brand-primary);
    box-shadow: 0 8px 20px rgba(6, 78, 59, 0.2);
}

.workspace-container {
    background: var(--bg-page);
}

.tool-panel {
    display: none;
}
.tool-panel.active-panel {
    display: block;
}

.panel-layout {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Sidebar Info */
.tool-sidebar {
    width: 35%;
    background: var(--bg-surface);
    padding: 4rem 3rem;
    border-right: 1px solid var(--border-color);
}

.sidebar-pdf { background: #FFFBFB; }
.sidebar-vid { background: #F8FAFC; }

.sidebar-icon {
    width: 60px;
    height: 60px;
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.sidebar-pdf .sidebar-icon { color: var(--accent-orange); }
.sidebar-vid .sidebar-icon { color: var(--brand-primary); }

.tool-sidebar h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sidebar-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 500;
}

.benefits-list i {
    color: var(--brand-primary);
}
.sidebar-pdf .benefits-list i { color: var(--accent-orange); }

/* Action Area */
.tool-action {
    width: 65%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FFF;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-soft);
    padding: 6rem 2rem;
    text-align: center;
    cursor: pointer;
    background: var(--bg-page);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent-blue-light);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.drop-pdf::before { background: var(--accent-orange-light); }
.drop-vid::before { background: var(--brand-light); }

.drop-zone > * { position: relative; z-index: 1; }

.drop-zone:hover {
    border-style: solid;
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.drop-pdf:hover { border-color: var(--accent-orange); }
.drop-vid:hover { border-color: var(--brand-primary); }

.drop-zone:hover::before { opacity: 0.8; }

.drop-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.drop-zone:hover .drop-icon { color: var(--accent-blue); transform: scale(1.1) translateY(-5px); }
.drop-pdf:hover .drop-icon { color: var(--accent-orange); transform: scale(1.1) translateY(-5px); }
.drop-vid:hover .drop-icon { color: var(--brand-primary); transform: scale(1.1) translateY(-5px); }

.drop-zone h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.drop-zone p {
    color: var(--text-muted);
}

/* Process Section */
.process-section {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-details i {
    font-size: 1.5rem;
    color: var(--text-main);
}

.file-size {
    font-size: 0.85rem;
    background: var(--bg-surface);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

/* Settings */
.setting-group { margin-bottom: 2rem; background: var(--bg-surface); padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border-color); }
.setting-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.setting-value { color: var(--accent-blue); font-weight: 700; }

input[type=range] {
    width: 100%;
    accent-color: var(--accent-blue);
    height: 6px;
    border-radius: 3px;
}

/* Buttons */
.btn-action {
    width: 100%;
    padding: 1.25rem;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: var(--accent-blue);
    color: #FFF;
}

.btn-pdf { background: var(--accent-orange); }
.btn-vid { background: var(--brand-primary); }

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Results */
.result-section {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.success-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 2rem;
}
.banner-pdf { background: var(--accent-orange-light); color: var(--accent-orange); }
.banner-vid { background: var(--brand-light); color: var(--brand-primary); }

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.metric-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.metric-card.highlight {
    background: var(--bg-surface);
    border-color: var(--accent-blue);
}

.metric-card span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-card strong {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
}
.metric-card.highlight strong { color: var(--accent-blue); }

.btn-download {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--accent-blue);
    color: #FFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-reset {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid var(--border-strong);
    background: transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.btn-reset:hover {
    background: var(--bg-surface);
    color: var(--text-main);
}

/* Progress */
.progress-wrapper { margin-bottom: 2rem; }
.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}
.fill-vid { background: var(--brand-primary); }
.progress-status {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ======== PREMIUM SEO SECTION ======== */
.premium-seo-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 8rem 2rem;
}

.seo-container {
    max-width: 1100px;
    margin: 0 auto;
}

.seo-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.seo-title em {
    color: var(--brand-primary);
}

.seo-lead {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 5rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.feature-box h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ======== TOOLS DIRECTORY GRID (Homepage Hub) ======== */
.tools-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 1rem 0 4rem;
}

.tool-dir-card {
    background: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.tool-dir-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.09);
    text-decoration: none;
    color: var(--text-main);
}

.card-img:hover { border-color: var(--accent-blue); }
.card-pdf:hover { border-color: var(--accent-orange); }
.card-vid:hover { border-color: var(--brand-primary); }

.tool-dir-icon {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.card-img .tool-dir-icon { color: var(--accent-blue); background: #EBF4FF; }
.card-pdf .tool-dir-icon { color: var(--accent-orange); background: #FEF3E2; }
.card-vid .tool-dir-icon { color: var(--brand-primary); background: #E8F8EF; }

.tool-dir-card:hover .tool-dir-icon { transform: scale(1.12) translateY(-4px); }
.card-img:hover .tool-dir-icon { box-shadow: 0 12px 24px rgba(74,144,226,0.25); }
.card-pdf:hover .tool-dir-icon { box-shadow: 0 12px 24px rgba(243,156,18,0.25); }
.card-vid:hover .tool-dir-icon { box-shadow: 0 12px 24px rgba(39,174,96,0.25); }

.tool-dir-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.tool-dir-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .tools-directory-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ======== MODERN FOOTER ======== */
.modern-footer {
    background: var(--text-main);
    color: #FFF;
    padding: 6rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .brand-logo { color: #FFF; }
.footer-brand .logo-text { color: #FFF; }
.footer-brand p {
    color: #A8A29E;
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links-col h4, .footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #D6D3D1;
}

.footer-links-col a, .footer-col a {
    display: block;
    color: #A8A29E;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.footer-links-col a:hover, .footer-col a:hover { color: #FFF; }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #44403C;
    text-align: center;
    color: #A8A29E;
    font-size: 0.9rem;
}

/* ======== TEXT PAGES (About, Privacy, Terms, Article) ======== */
.text-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.text-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.text-page p, .text-page ul, .text-page ol {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-page ul {
    padding-left: 2rem;
}

/* ======== BLOG HUB ======== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    overflow: hidden;
    background: #FFF;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.blog-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-orange);
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.blog-title:hover {
    color: var(--brand-primary);
}

.blog-excerpt {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

/* ======== RESPONSIVE MOBILE FIXES ======== */
@media(max-width: 900px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-links { gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
    .nav-cta { display: none; }
    
    .hero-section { margin: 3rem auto 2rem; padding: 0 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    
    .tool-switcher { flex-wrap: wrap; }
    .switcher-btn { padding: 0.8rem 1.5rem; flex: 1; justify-content: center; }
    
    .panel-layout { flex-direction: column; border-radius: 12px; }
    .tool-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 2rem 1.5rem; }
    .tool-action { width: 100%; padding: 2rem 1.5rem; }
    
    .drop-zone { padding: 3rem 1.5rem; }
    .drop-icon { font-size: 3rem; }
    
    .premium-seo-section { padding: 4rem 1.5rem; }
    .seo-title { font-size: 2.5rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .modern-footer { padding: 4rem 1.5rem 1.5rem; }
    
    .text-page { padding: 3rem 1.5rem; }
    .text-page h1 { font-size: 2.5rem; }
}

@media(max-width: 600px) {
    .metrics-grid { grid-template-columns: 1fr; gap: 1rem; }
    .file-item { flex-direction: column; gap: 1rem; text-align: center; }
    .file-details { justify-content: center; flex-direction: column; gap: 0.5rem; }
    .setting-group { padding: 1rem; }
    .blog-grid { grid-template-columns: 1fr; }
}