:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 64px; gap: 16px; flex-wrap: wrap; padding: 8px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
  font-size: 1.2rem; color: var(--text); text-decoration: none !important;
}
.brand-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #059669);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800;
}
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; text-decoration: none; transition: 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: var(--primary-soft);
}

/* Hero */
.hero { text-align: center; padding: 44px 0 28px; }
.privacy-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; color: #0f172a; }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* Tool Workspace */
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 32px;
}
.dropzone {
  border: 2px dashed #93c5fd; background: #f8fbff;
  border-radius: 12px; padding: 42px 20px; text-align: center;
  cursor: pointer; transition: 0.2s;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary); background: var(--primary-soft);
}
.dropzone-icon { font-size: 2.4rem; margin-bottom: 8px; }
.dropzone h3 { font-size: 1.15rem; margin-bottom: 4px; }
.dropzone p { font-size: 0.88rem; color: var(--text-muted); }

.controls-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
}
.field label {
  display: block; font-size: 0.84rem; font-weight: 700; color: #334155; margin-bottom: 6px;
}
.input, select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1;
  border-radius: 9px; font-size: 0.92rem; background: #fff; color: var(--text);
}
.input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 9px; font-size: 0.93rem; font-weight: 700;
  cursor: pointer; border: none; transition: 0.18s; text-decoration: none !important;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(0.95); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid #cbd5e1; }
.btn-outline:hover { background: var(--surface-alt); }

/* Result List */
.results-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.result-item {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 16px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: 10px;
}
.result-meta { display: flex; align-items: center; gap: 12px; }
.result-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.badge-saved {
  background: var(--green-soft); color: var(--green); font-size: 0.78rem;
  font-weight: 700; padding: 2px 8px; border-radius: 999px;
}

/* Native Sponsor / Ad Slot */
.sponsor-card {
  background: linear-gradient(90deg, #eff6ff 0%, #ecfdf5 100%);
  border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 16px 20px; margin: 28px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
}
.sponsor-tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: #dbeafe; color: #1e40af; padding: 2px 7px; border-radius: 4px; font-weight: 700;
}

/* Rich SEO Content Articles */
.content-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 28px;
}
.content-section h2 { font-size: 1.45rem; margin-bottom: 14px; color: #0f172a; }
.content-section h3 { font-size: 1.12rem; margin: 20px 0 8px; color: #1e293b; }
.content-section p, .content-section li { color: var(--text-muted); margin-bottom: 10px; font-size: 0.96rem; }
.content-section ul, .content-section ol { padding-left: 22px; margin-bottom: 14px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.spec-table th, .spec-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.spec-table th { background: var(--surface-alt); font-weight: 700; }

.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: #0f172a; margin-bottom: 6px; font-size: 1rem; }
.faq-a { color: var(--text-muted); font-size: 0.93rem; }

/* Preset Pills */
.preset-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.preset-btn {
  padding: 5px 11px; border-radius: 7px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid #cbd5e1; background: #fff; cursor: pointer; color: #334155;
}
.preset-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: #fff;
  padding: 36px 0; margin-top: 48px; color: var(--text-muted); font-size: 0.88rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.65rem; }
  .tool-card, .content-section { padding: 20px; }
}
