/* =========================================================
   pdftowordconverter.online — Global Stylesheet
   Clean Professional SaaS · Indigo / Slate · Inter + Manrope
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-muted: #eef1f7;
  --surface: #ffffff;
  --border: #e4e7ee;
  --border-strong: #cfd4de;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --primary-700: #3730a3;
  --primary-soft: #eef2ff;
  --accent: #06b6d4;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container: 1180px;
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--text-muted); margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* =================== HEADER =================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; color: var(--text);
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem;
  box-shadow: var(--shadow-sm);
}
.brand-tld { color: var(--text-soft); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: .94rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff !important;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
  transition: transform .15s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 70, 229, .45); color:#fff !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--text); }

/* =================== HERO =================== */
.hero {
  position: relative;
  padding: 64px 0 48px;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(79,70,229,.10), transparent 60%),
    radial-gradient(700px 340px at -10% 0%, rgba(6,182,212,.08), transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary-700);
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid #dde3ff;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero h1 span.grad {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .96rem; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .35);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); color:#fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

.hero-trust {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px;
  color: var(--text-soft); font-size: .85rem;
}
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust svg { width: 16px; height: 16px; stroke: var(--success); }

/* =================== CONVERTER CARD =================== */
.converter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.converter-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg, rgba(79,70,229,.4), rgba(6,182,212,.25));
  z-index: -1; filter: blur(16px); opacity: .35;
}
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 38px 20px;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  display: grid; place-items: center; margin: 0 auto 14px; color: #fff;
}
.dropzone-icon svg { width: 28px; height: 28px; }
.dropzone h3 { margin-bottom: 6px; font-size: 1.1rem; }
.dropzone small { color: var(--text-soft); font-size: .85rem; }
.dropzone .browse-link { color: var(--primary); font-weight: 600; }

.converter-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 18px;
}
.option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff;
  font-size: .88rem; color: var(--text-muted); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.option:hover { border-color: var(--primary); }
.option input { accent-color: var(--primary); }

.file-list {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: #fff;
}
.file-item .file-icon {
  width: 36px; height: 36px; border-radius: 8px; background: #fee2e2;
  color: #b91c1c; display: grid; place-items: center; font-weight: 700; font-size: .7rem;
}
.file-item .file-meta { flex: 1; min-width: 0; }
.file-item .file-name { font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .file-size { font-size: .78rem; color: var(--text-soft); }
.file-item .file-status { font-size: .8rem; font-weight: 600; }
.file-item .file-status.pending { color: var(--text-soft); }
.file-item .file-status.processing { color: var(--warn); }
.file-item .file-status.done { color: var(--success); }
.file-item .file-status.error { color: var(--danger); }
.file-item .file-remove { background: none; border: 0; color: var(--text-soft); cursor: pointer; padding: 4px; }
.file-item .file-remove:hover { color: var(--danger); }

.progress {
  margin-top: 18px; height: 6px; border-radius: 999px;
  background: var(--bg-muted); overflow: hidden; display: none;
}
.progress.is-active { display: block; }
.progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .25s ease;
}

.convert-actions {
  display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap;
}

.notice { font-size: .78rem; color: var(--text-soft); margin-top: 14px; text-align: center; }

/* =================== SECTIONS =================== */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: #d6dbe6; box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; margin: 0; }

/* niches/grid links */
.bg-soft { background: var(--bg-soft); }
.niches {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.niche-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  font-size: .92rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.niche-card:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary-700); box-shadow: var(--shadow-sm); }
.niche-card .arrow { color: var(--text-soft); transition: transform .2s, color .2s; }
.niche-card:hover .arrow { transform: translateX(3px); color: var(--primary); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; position: relative; }
.step .num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary); color: #fff; font-weight: 700;
  display: grid; place-items: center; margin-bottom: 14px;
  font-family: var(--font-display);
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; margin: 0; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; transition: border-color .2s;
}
.faq details[open] { border-color: var(--primary); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; font-size: .94rem; }

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: #fff;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 220px at 80% 20%, rgba(6,182,212,.35), transparent 60%);
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #c7d2fe; max-width: 600px; margin: 0 auto 24px; }
.cta-strip .btn-primary { background: #fff; color: var(--primary-700); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta-strip .btn-primary:hover { background: #f1f5ff; color: var(--primary-700); }

/* =================== FOOTER =================== */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  padding: 56px 0 28px; margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: .9rem; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 14px; font-family: var(--font-sans); font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #cbd5e1; font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid #1e293b;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #64748b; font-size: .82rem;
}

/* =================== NICHE PAGE =================== */
.niche-hero {
  padding: 56px 0 32px;
  background:
    radial-gradient(700px 320px at 90% -10%, rgba(79,70,229,.10), transparent 60%);
}
.niche-hero .crumbs {
  font-size: .82rem; color: var(--text-soft); margin-bottom: 18px;
}
.niche-hero .crumbs a { color: var(--text-soft); }
.niche-hero .crumbs a:hover { color: var(--primary); }
.niche-hero h1 { max-width: 820px; }
.niche-hero p.lead { max-width: 760px; font-size: 1.05rem; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.bullets { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--text); }
.bullets li svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--success); margin-top: 2px; }
.bullets li b { color: var(--text); font-weight: 600; }

.callout {
  background: var(--primary-soft);
  border: 1px solid #dde3ff;
  padding: 20px 22px; border-radius: 14px;
  color: var(--primary-700);
  font-size: .94rem;
}
.callout b { color: var(--primary-700); }

.kw-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.kw-pill {
  background: #fff; border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; color: var(--text-muted);
}

/* =================== UTIL =================== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.muted { color: var(--text-soft); }

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .niches { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 16px 24px; border-bottom: 1px solid var(--border);
    gap: 14px;
  }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 32px; }
  .features { grid-template-columns: 1fr; }
  .niches { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .converter-options { grid-template-columns: 1fr; }
  .cta-strip { padding: 36px 22px; }
}
