:root{
  /* Reference-style: clean, airy, premium */
  --bg: #ffffff;
  --text: #0b0c0f;
  --muted: rgba(11,12,15,.62);
  --muted2: rgba(11,12,15,.46);

  --line: rgba(11,12,15,.08);
  --line2: rgba(11,12,15,.12);

  --radius: 18px;
  --radius2: 14px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --focus: 0 0 0 4px rgba(11,12,15,.10);

  --shadow: 0 1px 0 rgba(11,12,15,.06);
  --shadow-soft: 0 10px 30px rgba(11,12,15,.06);
  --ring: 0 0 0 1px rgba(11,12,15,.06);

  /* subtle purple accent (only for small badges) */
  --accent: #7C3AED;
  --accent-bg: rgba(124,58,237,.10);
  --accent-line: rgba(124,58,237,.22);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: GmarketSans, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color:var(--text);
  line-height:1.55;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* overall page rhythm */
main.container{padding-bottom: 28px}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(6px); }
  to{ opacity:1; transform: translateY(0); }
}

/* sheen removed for a clean document feel */

.skip{
  position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip:focus{
  left:16px;top:16px;width:auto;height:auto;z-index:999;
  background:#fff;color:#000;padding:10px 12px;border-radius:10px;
}

.container{width:min(1080px, calc(100% - 40px)); margin:0 auto;}

/* slightly narrower content like the reference */
@media (min-width: 960px){
  .container{ width: min(980px, calc(100% - 48px)); }
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(11,12,15,.08);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:16px;}

.brand{display:flex; align-items:center; gap:12px; min-width: 260px;}
.brand__mark{
  width:34px;height:34px;border-radius:12px;
  background: #0b0c0f;
  box-shadow: none;
}
.brand__title{font-weight:700; letter-spacing:-0.02em; font-size:14px;}
.brand__subtitle{color:var(--muted2); font-size:12px; margin-top:1px;}

/* Ensure SVG/icon inherits currentColor nicely on light background */
svg{display:block}

.topbar__meta{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.pill{
  border: 1px solid var(--accent-line);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  background: var(--accent-bg);
  font-weight: 600;
}

/* other pills become neutral */
.topbar__meta .pill:nth-child(n+2){
  border-color: var(--line);
  color: rgba(11,12,15,.64);
  background: rgba(11,12,15,.03);
  font-weight: 600;
}

.hero{
  display:flex;
  flex-direction: column;
  align-items:center;
  text-align:center;
  gap: 12px;
  padding: 54px 0 28px;
}
.hero__content{max-width: 860px; animation: fadeUp .5s var(--ease) both;}
.hero h1{margin:0 0 8px; font-size:40px; letter-spacing:-0.05em; line-height:1.12;}
.hero__desc{margin:0 auto; color: var(--muted); max-width: 70ch;}
.hero__stats{ margin-top: 18px; }

.hero__stats{
  width: min(720px, 100%);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  align-self:center;
}
.stat{
  border:1px solid rgba(11,12,15,.08);
  border-radius: 16px;
  background: #fff;
  padding:14px;
  box-shadow: none;
}
.stat__label{font-size:12px; color:var(--muted)}
.stat__value{font-size:14px; font-weight:600; margin-top:4px}

.card{
  position:relative;
  border: 1px solid rgba(11,12,15,.07);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 20px auto 30px;
  overflow:hidden;
  animation: fadeUp .5s var(--ease) both;
}

/* Section separation inside card */
.card__header{
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(11,12,15,.06);
}
/* remove decorative lighting */
.card::before{ content:none; }
.card__header h2{margin:0 0 6px; font-size:16px; letter-spacing:-0.02em;}
.muted{color:var(--muted)}

.dropzone{
  position:relative;
  border: 1px solid rgba(11,12,15,.10);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  cursor:pointer;
  box-shadow: var(--ring);
  transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  outline:none;
}
.dropzone:hover{border-color: rgba(11,12,15,.16); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(11,12,15,.08), 0 10px 28px rgba(11,12,15,.06)}
.dropzone:active{transform: translateY(0px) scale(.995)}
.dropzone:focus{box-shadow: var(--focus)}
.dropzone.dragover{border-color: rgba(124,58,237,.28); background: rgba(124,58,237,.05)}
.dropzone input[type=file]{
  position:absolute; inset:0; opacity:0; cursor:pointer;
}
.dropzone__inner{display:flex; align-items:center; gap:12px; padding: 10px;}
.dropzone__icon{color: rgba(11,12,15,.88)}
.dropzone__title{font-weight:600; letter-spacing:-0.01em}
.dropzone__hint{font-size:12px; color:var(--muted); margin-top:2px}

.fileinfo{margin-top:14px; display:grid; gap:8px;}
.fileinfo__row{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:11px 12px; border:1px solid rgba(11,12,15,.08); border-radius: 16px; background: #fff; box-shadow: var(--ring); transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease)}
.fileinfo__row:hover{ transform: translateY(-1px); border-color: rgba(11,12,15,.14); box-shadow: 0 0 0 1px rgba(11,12,15,.08); }
.fileinfo__label{font-size:12px; color:var(--muted)}
.fileinfo__value{font-size:13px; color: rgba(11,12,15,.86); text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 70%}

.divider{height:1px; background: rgba(11,12,15,.06); margin:18px 0;}

.mode{display:flex; gap:14px; flex-wrap:wrap;}
.radio{display:flex; align-items:center; gap:10px; border:1px solid rgba(11,12,15,.08); border-radius:999px; padding:10px 12px; background: #fff; transition: transform .18s var(--ease), border-color .18s var(--ease)}
.radio:hover{ transform: translateY(-1px); border-color: rgba(11,12,15,.16); }
.radio input{accent-color:#111}

.panel{margin-top:16px;}

/* visual section blocks */
.panel{
  padding-top: 2px;
}

.mode{
  padding-top: 2px;
}

/* make dividers feel like real section separators */
.divider{
  position:relative;
}
.divider::after{
  content:"";
  position:absolute;
  left:0;
  top:-10px;
  width:100%;
  height:10px;
  background: linear-gradient(to bottom, rgba(11,12,15,.02), transparent);
  opacity:.6;
  pointer-events:none;
}
.grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px;}
.field label{display:block; font-size:12px; color: var(--muted); margin-bottom:6px;}
.field input{
  width:100%;
  border:1px solid rgba(11,12,15,.10);
  border-radius: 16px;
  padding:12px 12px;
  background: #fff;
  color: var(--text);
  outline:none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.field input:hover{ border-color: rgba(11,12,15,.18); }
.field input:focus{box-shadow: var(--focus); border-color: rgba(11,12,15,.22); transform: translateY(-1px)}

.actions{display:flex; justify-content:flex-end; margin-top:12px; gap:10px;}
.btn{
  border:1px solid rgba(11,12,15,.10);
  background: #fff;
  color: var(--text);
  padding: 11px 14px;
  border-radius: 16px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:-0.01em;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(11,12,15,.18); }
.btn:active{ transform: translateY(0) scale(.99); }
.btn:focus{box-shadow: var(--focus)}
.btn--primary{
  background: #0b0c0f;
  color:#fff;
  border-color: rgba(11,12,15,.70);
  box-shadow: 0 10px 26px rgba(11,12,15,.14);
}

.multiHeader{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.ranges{display:grid; gap:10px; margin-top:10px;}
.rangeRow{display:grid; grid-template-columns: 1fr 1fr auto; gap:10px; align-items:end; border:1px solid rgba(11,12,15,.10); border-radius: 18px; padding:12px; background: #fff; box-shadow: var(--ring); transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease)}
.rangeRow:hover{ transform: translateY(-1px); border-color: rgba(11,12,15,.14); box-shadow: 0 0 0 1px rgba(11,12,15,.08), 0 10px 24px rgba(11,12,15,.06); }
.rangeRow .btn{padding:10px 12px}

.progressRow{display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 4px 0 10px;}
.progressLabel{font-size:12px; color: var(--muted)}
.progressText{font-size:12px; color: rgba(11,12,15,.75)}
.progress{height:10px; background: rgba(11,12,15,.05); border-radius: 999px; overflow:hidden; border:1px solid rgba(11,12,15,.08)}
.progress__bar{height:100%; background: linear-gradient(90deg, rgba(11,12,15,.95), rgba(11,12,15,.55)); width:0%; transition: width .35s var(--ease)}

.result{margin-top:12px}
.notice{
  border:1px solid rgba(11,12,15,.10);
  border-radius: 16px;
  padding:12px;
  background: #fff;
  color: rgba(11,12,15,.84);
  box-shadow: none;
  animation: fadeUp .4s var(--ease) both;
}
.notice strong{color:#000}
.notice--error{border-color: rgba(11,12,15,.18); background: rgba(11,12,15,.03)}
.notice a{color:#000}

.links{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}

.footer{margin: 18px 0 30px;}
.footer__inner{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--line); padding-top:14px; color: rgba(11,12,15,.66)}

code{background: rgba(11,12,15,.05); padding:2px 6px; border-radius: 8px; border:1px solid var(--line); color: rgba(11,12,15,.90)}

@media (max-width: 900px){
  .hero__stats{width:100%}
  .hero h1{font-size:32px}
}
@media (max-width: 680px){
  .grid{grid-template-columns:1fr}
  .rangeRow{grid-template-columns: 1fr; align-items:stretch}
  .actions{justify-content:stretch}
  .actions .btn{flex:1}
  .topbar__inner{padding:14px 0}
}
