:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --brand:#2563eb;
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius:18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
}
a{ text-decoration:none; color:inherit; }
.container{ max-width: 1100px; margin: 0 auto; padding: 20px; }
.muted{ color: var(--muted); }

.nav{
  position: sticky; top:0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(246,248,251,.8);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight: 800; }
.brand .logo{
  width:34px; height:34px; display:grid; place-items:center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.navActions{ display:flex; align-items:center; gap:14px; }
.link{ color: var(--brand); font-weight: 650; }
.lang{ display:flex; align-items:center; gap:8px; }
.pill{
  padding: 6px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.pill.active{
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 6px 18px rgba(37,99,235,.15);
}

.hero{ margin-top: 18px; }
.heroCard{
  background: linear-gradient(180deg, #fff, #f9fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.heroLogo{
  display:inline-flex;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(37,99,235,.08);
  color: var(--brand);
  font-weight: 900;
  letter-spacing:.3px;
  margin-bottom: 10px;
}
.sectionTitle{ margin: 22px 0 12px; font-size: 18px; }

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .grid{ grid-template-columns: 1fr;} }

.toolCard{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.toolCard:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
}
.toolIcon{
  width: 56px; height:56px;
  border-radius: 16px;
  background: rgba(37,99,235,.08);
  display:grid; place-items:center;
  font-size: 24px;
  margin-bottom: 10px;
}
.toolTitle{ font-weight: 850; margin-bottom: 6px; }
.toolTagline{ font-size: 13px; line-height: 1.4; }

.toolHero{ margin-top: 18px; }
.toolHeader{ display:flex; align-items:center; gap:14px; padding: 14px 0; }
.toolBigIcon{
  width: 58px; height:58px;
  border-radius: 18px;
  background: rgba(37,99,235,.08);
  display:grid; place-items:center;
  font-size: 22px;
}
.panel{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.label{ font-weight: 750; display:block; margin-bottom: 8px; }
.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.btn{
  margin-top: 12px;
  padding: 12px 14px;
  border:0;
  border-radius: 14px;
  background: var(--brand);
  color:#fff;
  font-weight: 800;
  cursor:pointer;
}
.btn.outline{
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(37,99,235,.35);
}
.btn.small{ padding: 9px 10px; border-radius: 12px; font-weight: 800; margin-top: 0; }
.preview iframe{
  width: 100%;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.resultBox{
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}
.resultActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 12px;
  align-items:center;
}
.fileRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fileRow:last-child{ border-bottom:0; }
.fileRow.active{
  background: rgba(37,99,235,.06);
  border-radius: 12px;
  padding: 10px;
}
.fileRow.active .fileName{ color: var(--brand); }
.fileName{ font-weight:700; color: var(--text); }
.fileSize{ font-size:12px; margin-inline-start:6px; }
.fileBtns{ display:flex; gap:8px; }

.ok{
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.err{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.backRow{ margin: 16px 0 30px; }
.footer{
  border-top: 1px solid var(--line);
  padding: 18px;
  text-align:center;
  background: rgba(255,255,255,.6);
}
