:root {
  --surface: rgba(255,255,255,.9);
  --line: #dbe3f0;
  --line-strong: #c8d5ea;
  --text: #162033;
  --muted: #60708f;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #e8f0ff;
  --shadow: 0 18px 60px rgba(17,24,39,.08);
  --radius-xl: 28px;
  --container: 1180px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #edf3ff 0%, transparent 30%),
    radial-gradient(circle at top right, #eef8ff 0%, transparent 26%),
    linear-gradient(180deg, #f9fbff 0%, #f5f7fb 100%);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 28px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); background: rgba(255,255,255,.72); border-bottom: 1px solid rgba(219,227,240,.7); }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.05rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display:grid; place-items:center; background: linear-gradient(135deg, #2563eb, #60a5fa); color:#fff; box-shadow: 0 12px 26px rgba(37,99,235,.28); }
.nav { display:flex; gap:10px; flex-wrap:wrap; }
.nav a { padding:10px 14px; border-radius:12px; color:var(--muted); font-weight:600; }
.nav a:hover { background:#eef4ff; color:var(--text); }

.section { padding: 46px 0; }
.section-head { max-width: 780px; margin-bottom: 22px; }
.section-kicker { display:inline-block; margin-bottom:12px; padding:7px 12px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-size:13px; font-weight:700; }
.section-head h2, .section h2 { margin:0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height:1.05; letter-spacing:-.03em; }
.section-head p { margin:0; color:var(--muted); font-size:1.03rem; }

.hero { padding: 52px 0 28px; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:center; }
.hero-copy h1 { margin:0 0 16px; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height:.95; letter-spacing:-.05em; max-width:10ch; }
.hero-copy p { margin:0 0 24px; color:var(--muted); font-size:1.08rem; max-width:56ch; }
.quick-links { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.pill-link { padding:12px 16px; border:1px solid var(--line); background:rgba(255,255,255,.75); border-radius:999px; box-shadow:var(--shadow); font-weight:700; }
.hero-meta { display:flex; gap:18px; flex-wrap:wrap; color:var(--muted); font-size:.95rem; }

.hero-card, .panel, .tool-card, .category-card, .mini-card, .step-card, .faq-card, .related-link {
  border: 1px solid rgba(219,227,240,.9);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 24px;
}
.hero-card, .panel, .category-card, .mini-card, .step-card, .faq-card { padding: 22px; }

.drop-zone {
  min-height:250px; padding:28px; display:grid; place-items:center; text-align:center;
  border:2px dashed var(--line-strong); background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius:24px; cursor:pointer;
}
.drop-zone--active { border-color:var(--primary); }
.drop-zone__icon { width:68px; height:68px; margin:0 auto 16px; border-radius:22px; display:grid; place-items:center; background: linear-gradient(135deg, #2563eb, #60a5fa); color:#fff; font-size:30px; font-weight:800; }
.drop-zone h3 { margin:0 0 8px; font-size:1.45rem; }
.drop-zone p, .drop-zone small { color:var(--muted); }
.drop-zone small { display:block; margin-top:12px; }

.primary-btn, .secondary-btn {
  display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:0 18px; border-radius:14px; font-weight:800; font-size:.98rem; cursor:pointer;
}
.primary-btn { border:0; background: linear-gradient(135deg, var(--primary), #4f8cff); color:#fff; box-shadow: 0 16px 28px rgba(37,99,235,.25); }
.secondary-btn { border:1px solid var(--line); background:#fff; color:var(--text); }

.tool-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.tool-card { display:flex; gap:14px; padding:18px; }
.tool-card__icon { width:42px; height:42px; flex:0 0 42px; border-radius:14px; display:grid; place-items:center; background:#eef4ff; color:var(--primary); font-weight:800; }
.tool-card h3 { margin:0 0 6px; font-size:1.05rem; }
.tool-card p { margin:0; color:var(--muted); font-size:.95rem; }

.category-grid, .steps, .faq-grid, .related-links { display:grid; gap:16px; }
.category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.category-links { display:grid; gap:10px; }
.category-links a { color:var(--muted); font-weight:600; }
.category-links a:hover { color:var(--primary); }

.steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
.step-number { width:40px; height:40px; display:grid; place-items:center; border-radius:14px; background:var(--primary-soft); color:var(--primary); font-weight:800; margin-bottom:14px; }

.breadcrumbs { padding-top: 22px; color: var(--muted); font-size: .95rem; }
.breadcrumbs a:hover { color: var(--primary); }

.tool-header { max-width:760px; }
.tool-header h1 { margin:10px 0 12px; font-size: clamp(2.2rem,4vw,3.4rem); line-height:.98; letter-spacing:-.04em; }
.tool-header p { margin:0; color:var(--muted); font-size:1.05rem; }

.tool-shell { display:grid; grid-template-columns:.95fr 1.05fr; gap:18px; margin-top:22px; }
.panel h3 { margin:0 0 12px; font-size:1.08rem; }
.panel-note { color:var(--muted); font-size:.95rem; }
.control-group { display:grid; gap:12px; margin-top:18px; }
.field-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.field { display:grid; gap:8px; }
.field label { font-size:.92rem; font-weight:700; }
.field input[type="number"], .field input[type="range"] { width:100%; }
.field input[type="number"] { min-height:46px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:#fff; font:inherit; }

.result-card { display:grid; gap:18px; }
.result-media { overflow:hidden; border-radius:20px; border:1px solid var(--line); background:linear-gradient(180deg, #fafcff, #f2f6fc); min-height:260px; display:grid; place-items:center; }
.result-media img { width:100%; height:100%; object-fit:contain; }
.result-meta h4 { margin:0 0 6px; font-size:1.1rem; }
.result-meta p, .mini-card p, .mini-card li, .faq-card p { color:var(--muted); }
.result-actions { display:flex; gap:12px; flex-wrap:wrap; }

.info-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:16px; }
.list-clean { margin:0; padding-left:18px; }
.faq-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.related-links { grid-template-columns:repeat(4,minmax(0,1fr)); }
.related-link { padding:16px 18px; font-weight:700; }
.related-link:hover { color:var(--primary); }

.site-footer { margin-top:36px; border-top:1px solid rgba(219,227,240,.9); background:rgba(255,255,255,.65); backdrop-filter:blur(12px); }
.footer-inner { padding:26px 0 44px; display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-brand { font-size:1.05rem; font-weight:800; margin-bottom:8px; }
.footer-copy { margin:0; color:var(--muted); }
.footer-links { display:flex; gap:16px; flex-wrap:wrap; }
.footer-links a { color:var(--muted); font-weight:600; }

@media (max-width: 1024px) {
  .hero-grid, .tool-shell, .info-grid { grid-template-columns:1fr; }
  .tool-grid, .category-grid, .steps, .faq-grid, .related-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .header-inner { min-height:auto; padding:14px 0; flex-direction:column; align-items:flex-start; }
  .hero-copy h1 { max-width:none; }
  .tool-grid, .category-grid, .steps, .faq-grid, .related-links, .field-row { grid-template-columns:1fr; }
}


/* Convert hub upload hero */
.upload-hero{
  text-align:center;
  padding:40px 20px;
  background:#f7f9fc;
  border-radius:12px;
  margin:20px 0;
}

.convert-options{
  margin-top:20px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

.format-btn{
  background:#2563eb;
  color:white;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
}

.format-btn:hover{
  background:#1d4ed8;
}


@media (min-width: 721px) {
  .tool-grid[style*="repeat(2"] {
    max-width: 900px;
  }
}

/* --- UI improvements --- */

.hero {
  padding-top:40px;
  padding-bottom:30px;
}

.tool-shell {
  margin-top:10px;
}

.panel {
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  border-radius:12px;
}

.drop-zone {
  border:2px dashed #cbd5e1;
  border-radius:12px;
  padding:40px 20px;
  text-align:center;
  transition:all .2s ease;
  cursor:pointer;
  background:#fafafa;
}

.drop-zone:hover {
  border-color:#2563eb;
  background:#f8fbff;
  transform:translateY(-1px);
}

.drop-zone.drag-over {
  border-color:#2563eb;
  background:#eef5ff;
  box-shadow:0 0 0 3px rgba(37,99,235,0.15);
}

.primary-btn {
  font-size:16px;
  padding:12px 20px;
  border-radius:10px;
}

.result-card {
  box-shadow:0 10px 30px rgba(0,0,0,0.06);
  border-radius:12px;
}

.related-links {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.related-link {
  padding:10px 14px;
  background:#f3f4f6;
  border-radius:8px;
  text-decoration:none;
}


/* Audit-driven polish updates */
body{
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero{
  padding-top: 28px !important;
  padding-bottom: 18px !important;
}

.tool-header{
  margin-bottom: 12px;
}

.drop-zone{
  border: 2.5px dashed #93c5fd !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  min-height: 280px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  transition: all .18s ease;
}

.drop-zone:hover{
  border-color: #2563eb !important;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(37,99,235,0.10);
}

.drop-zone--active,
.drop-zone.drag-over{
  border-color: #2563eb !important;
  background: linear-gradient(180deg, #f8fbff 0%, #eaf3ff 100%) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.14);
}

.drop-zone__icon{
  width: 76px !important;
  height: 76px !important;
  font-size: 32px !important;
  box-shadow: 0 12px 30px rgba(37,99,235,0.20);
}

.primary-btn{
  min-height: 56px !important;
  padding: 0 22px !important;
  font-size: 1rem !important;
}

.result-card{
  box-shadow: 0 16px 42px rgba(0,0,0,0.08);
}

.result-meta h4{
  font-size: 1.15rem !important;
}

.result-actions .primary-btn{
  min-width: 220px;
}

.trust-strip{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.trust-pill{
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid #dbe3f0;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
  color: #60708f;
  font-weight: 600;
  text-align:center;
}

.faq-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.faq-card{
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.90);
  border: 1px solid #dbe3f0;
  box-shadow: 0 14px 34px rgba(0,0,0,0.05);
}

.faq-card h3{
  margin-top: 0;
  margin-bottom: 8px;
}

@media (max-width: 720px){
  .trust-strip,
  .faq-grid{
    grid-template-columns: 1fr;
  }
  .drop-zone{
    min-height: 240px !important;
  }
  .result-actions .primary-btn{
    min-width: 100%;
  }
}


/* --- UX improvements from audit --- */

body{
background: linear-gradient(180deg,#f8fafc 0%,#ffffff 100%);
}

/* reduce space before tool */
.hero{
padding-top:28px !important;
padding-bottom:14px !important;
}

/* larger upload zone */
.drop-zone{
min-height:300px !important;
border:3px dashed #93c5fd !important;
background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
box-shadow:0 12px 30px rgba(0,0,0,0.05);
transition:all .2s ease;
}

.drop-zone:hover{
border-color:#2563eb !important;
background:#eef6ff;
transform:translateY(-1px);
}

/* drag highlight */
.drop-zone.drag-over{
border-color:#2563eb !important;
box-shadow:0 0 0 4px rgba(37,99,235,0.15);
}

/* bigger icon */
.drop-zone__icon{
width:80px !important;
height:80px !important;
font-size:34px !important;
}

/* stronger result card */
.result-card{
box-shadow:0 18px 44px rgba(0,0,0,0.08);
}

/* big download button */
.result-actions .primary-btn{
min-width:220px;
min-height:56px;
font-size:16px;
}

/* trust strip */
.trust-strip{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:12px;
margin-top:20px;
}

.trust-pill{
padding:14px 16px;
border-radius:14px;
background:#ffffff;
border:1px solid #e5eaf3;
box-shadow:0 10px 22px rgba(0,0,0,0.04);
font-weight:600;
color:#60708f;
text-align:center;
}

/* FAQ grid */
.faq-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:16px;
}

.faq-card{
padding:20px;
border-radius:20px;
background:#ffffff;
border:1px solid #e5eaf3;
box-shadow:0 12px 28px rgba(0,0,0,0.05);
}

@media (max-width:720px){
.trust-strip,
.faq-grid{
grid-template-columns:1fr;
}
.drop-zone{
min-height:240px !important;
}
}


/* --- Instant SaaS-style result state --- */
.result-card{
  position: relative;
  padding: 18px;
  border: 1px solid #dbe3f0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.result-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #0f8a4b;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.result-status-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
}

.result-media{
  min-height: 300px !important;
  border-radius: 18px !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(219,227,240,0.9);
}

.result-preview-wrap{
  display: grid;
  gap: 14px;
}

.result-meta{
  display: grid;
  gap: 6px;
}

.result-label{
  color: #60708f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.result-actions{
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px !important;
  margin-top: 6px;
}

.result-actions .primary-btn{
  width: 100%;
  min-height: 62px !important;
  font-size: 1.02rem !important;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(37,99,235,0.22);
}

.result-actions .secondary-btn{
  width: 100%;
  min-height: 52px;
}

.empty-result-state{
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #d6dfed;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 24px;
}

.empty-result-state h4{
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.empty-result-state p{
  margin: 0;
  color: #60708f;
  max-width: 34ch;
}

.result-file-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dbe3f0;
}

.result-file-main{
  min-width: 0;
}

.result-file-name{
  margin: 0 0 4px;
  font-weight: 800;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.result-file-meta{
  margin: 0;
  color: #60708f;
  font-size: 0.92rem;
}

@media (max-width: 720px){
  .result-media,
  .empty-result-state{
    min-height: 240px !important;
  }
}


/* --- Premium drag-and-drop polish --- */
.drop-zone{
  position: relative;
  overflow: hidden;
}

.drop-zone::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at center, rgba(37,99,235,0.10) 0%, rgba(37,99,235,0.03) 25%, transparent 55%);
  opacity:0;
  transform: scale(.9);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events:none;
}

.drop-zone::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
  pointer-events:none;
}

.drop-zone:hover::before{
  opacity:1;
  transform: scale(1);
}

.drop-zone.drag-over,
.drop-zone--active{
  transform: translateY(-2px) scale(1.01) !important;
  border-color:#2563eb !important;
  background: linear-gradient(180deg, #fdfefe 0%, #ecf5ff 100%) !important;
  box-shadow:
    0 0 0 4px rgba(37,99,235,0.14),
    0 24px 50px rgba(37,99,235,0.14) !important;
}

.drop-zone.drag-over::before,
.drop-zone--active::before{
  opacity:1;
  transform: scale(1.08);
}

.drop-zone__inner{
  position: relative;
  z-index: 1;
}

.drop-zone__icon{
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.drop-zone:hover .drop-zone__icon{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 34px rgba(37,99,235,0.24);
}

.drop-zone.drag-over .drop-zone__icon,
.drop-zone--active .drop-zone__icon{
  transform: scale(1.08);
  box-shadow: 0 20px 38px rgba(37,99,235,0.30);
}

.drop-zone__helper{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.85);
  border:1px solid #dbe3f0;
  color:#60708f;
  font-size:.9rem;
  font-weight:700;
}

.drop-zone.drag-over .drop-zone__helper,
.drop-zone--active .drop-zone__helper{
  background:#ffffff;
  color:#2563eb;
  border-color:#bfdbfe;
}

.drop-zone__pulse{
  position:absolute;
  width:18px;
  height:18px;
  border-radius:999px;
  background:rgba(37,99,235,0.18);
  top:22px;
  right:22px;
  pointer-events:none;
}

.drop-zone__pulse::before,
.drop-zone__pulse::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border:1px solid rgba(37,99,235,0.24);
  animation: pixlyPulse 2s infinite;
}

.drop-zone__pulse::after{
  animation-delay: 1s;
}

@keyframes pixlyPulse{
  0%{ transform:scale(1); opacity:1; }
  100%{ transform:scale(2.8); opacity:0; }
}

.drop-zone.drag-over .drop-zone__pulse,
.drop-zone--active .drop-zone__pulse{
  background:rgba(34,197,94,0.22);
}

.drop-zone.drag-over .drop-zone__pulse::before,
.drop-zone.drag-over .drop-zone__pulse::after,
.drop-zone--active .drop-zone__pulse::before,
.drop-zone--active .drop-zone__pulse::after{
  border-color: rgba(34,197,94,0.30);
}

@media (prefers-reduced-motion: reduce){
  .drop-zone,
  .drop-zone::before,
  .drop-zone__icon{
    transition:none !important;
  }
  .drop-zone__pulse::before,
  .drop-zone__pulse::after{
    animation:none !important;
  }
}
