/* ============================================
   PDFFlow - Global Stylesheet
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --card: #16161f;
  --border: #2a2a38;
  --accent: #ff5c35;
  --accent2: #ff8c6b;
  --accent3: #ffb347;
  --text: #f0eff8;
  --text2: #9998b0;
  --text3: #6665808;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(255,92,53,0.12);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.2; }

/* ---- ADSENSE SLOTS ---- */
.ad-slot {
  width: 100%;
  min-height: 90px;
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin: 24px 0;
  overflow: hidden;
}
.ad-slot ins { display: block; width: 100%; }

/* ---- NAVIGATION ---- */
nav {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 24px;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: var(--bg3);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent2) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  color: var(--text2);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: block;
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--white); background: var(--bg3); }
.mobile-menu.open { display: flex; }

/* ---- HERO ---- */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(255,92,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,92,53,0.12);
  border: 1px solid rgba(255,92,53,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent2); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,92,53,0.4); }
.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* ---- CARDS ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(255,92,53,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px;
  background: rgba(255,92,53,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--white); margin-bottom: 8px; }
.card p { color: var(--text2); font-size: 14px; }

/* ---- GRID ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.section-sub { color: var(--text2); font-size: 17px; max-width: 540px; margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* ---- TOOL PAGE ---- */
.tool-hero { padding: 64px 24px 48px; }
.tool-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: rgba(255,92,53,0.04); }
.upload-icon { font-size: 48px; margin-bottom: 16px; }
.upload-zone h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.upload-zone p { color: var(--text2); font-size: 14px; }
.upload-zone input[type=file] { display: none; }
.tool-options { margin: 28px 0; }
.tool-options label { display: block; color: var(--text2); font-size: 13px; margin-bottom: 6px; font-weight: 500; }
.tool-options input, .tool-options select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}
.tool-options input:focus, .tool-options select:focus { border-color: var(--accent); }
.progress-bar { width: 100%; height: 6px; background: var(--bg3); border-radius: 6px; overflow: hidden; margin: 20px 0; display: none; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent3)); border-radius: 6px; transition: width 0.3s; }
.file-list { margin-top: 20px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
}
.file-item .file-name { flex: 1; color: var(--text); }
.file-item .file-size { color: var(--text2); font-size: 12px; }
.file-item .remove-btn { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 18px; transition: var(--transition); }
.file-item .remove-btn:hover { color: var(--accent); }

/* ---- BLOG ---- */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,92,53,0.3); }
.blog-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--border);
}
.blog-body { padding: 20px; }
.blog-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 { font-size: 16px; color: var(--white); line-height: 1.4; margin-bottom: 8px; }
.blog-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12px; color: var(--text2); }

/* ---- ARTICLE ---- */
.article-header { padding: 64px 24px 48px; max-width: 800px; margin: 0 auto; }
.article-body { max-width: 800px; margin: 0 auto; padding: 0 24px 64px; }
.article-body h2 { font-size: 26px; color: var(--white); margin: 40px 0 16px; }
.article-body h3 { font-size: 20px; color: var(--white); margin: 28px 0 12px; }
.article-body p { color: var(--text2); margin-bottom: 20px; line-height: 1.8; }
.article-body ul, .article-body ol { color: var(--text2); padding-left: 28px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  color: var(--text);
  font-style: italic;
}
.article-body .highlight-box {
  background: rgba(255,92,53,0.08);
  border: 1px solid rgba(255,92,53,0.2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand h3 { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand h3 span { color: var(--accent); }
.footer-brand p { color: var(--text2); font-size: 14px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text2); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text2); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text2); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-green { background: rgba(52,211,153,0.12); color: #34d399; }
.badge-orange { background: rgba(255,92,53,0.12); color: var(--accent); }
.badge-blue { background: rgba(99,179,237,0.12); color: #63b3ed; }

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  font-weight: 500;
  background: var(--card);
  transition: var(--transition);
  font-size: 15px;
}
.faq-q:hover { color: var(--accent); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.35s ease; color: var(--text2); font-size: 14px; line-height: 1.7; background: var(--bg2); }
.faq-a.open { max-height: 300px; padding: 16px 20px; }
.faq-icon { font-size: 20px; transition: transform 0.3s; }
.faq-icon.rotate { transform: rotate(45deg); }

/* ---- BREADCRUMB ---- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text2); }

/* ---- CONTACT FORM ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text2); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,92,53,0.12); }
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---- STATS ---- */
.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-num { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--accent); display: block; }
.stat-label { color: var(--text2); font-size: 14px; margin-top: 4px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 20px 56px; }
  .tool-box { padding: 24px 20px; }
  .article-header, .article-body { padding-left: 20px; padding-right: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
