/* IMGDB 첫 화면 디자인 — Minimal Modern Dark (2026-10-29)
   다크 한 가지. 포인트 컬러는 퍼플 하나, 그라데이션 · 글로우 · 장식 없음. 전환은 150~200ms. */

:root {
  --bg: #0d0d0f;
  --surface: #18181b;
  --surface-hover: #1f1f23;
  --border: #27272a;
  --border-hover: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --accent: #8b5cf6;
  --accent-hover: #9d74f7;
  --accent-soft: rgba(139, 92, 246, .12);
  --success: #4ade80;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, .1);
  --notice: #fbbf24;
  --notice-soft: rgba(251, 191, 36, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: 160ms ease;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 "Pretendard Variable", Pretendard, Inter, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* 배경 — 그리드 + 은은한 글로우 두 겹. 콘텐츠 뒤(z-index:-1, body 배경은 캔버스로 올라가 그 위에 깔린다).
   fixed · blur · 애니메이션 없이 정적 그라데이션만 — 스크롤 중 다시 그리지 않는다. 위쪽(업로드 칸 주변)에만. */
body::before, body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
}
/* 1) 미세한 그리드 — 업로드 칸 쪽 가운데가 가장 또렷하고 바깥 · 아래로 사라진다 */
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, rgba(0, 0, 0, .5) 45%, transparent 75%);
}
/* 2) 글로우 — 업로드 칸 뒤 퍼플, 양옆 위 인디고, 맨 위 아주 옅은 빛. 넓고 약하게 */
body::after {
  background:
    radial-gradient(ellipse 65% 50% at 50% 46%, rgba(139, 92, 246, .32), transparent 72%),
    radial-gradient(ellipse 45% 40% at 22% 18%, rgba(99, 102, 241, .18), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 14%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%);
}
@media (max-width: 480px) {
  body::before, body::after { height: 900px; }
  body::before { background-size: 32px 32px; }
  body::after {
    background:
      radial-gradient(ellipse 100% 40% at 50% 44%, rgba(139, 92, 246, .32), transparent 72%),
      radial-gradient(ellipse 80% 28% at 15% 12%, rgba(99, 102, 241, .16), transparent 70%),
      radial-gradient(ellipse 100% 22% at 50% 0%, rgba(255, 255, 255, .05), transparent 70%);
  }
}

:lang(ja), :lang(zh) { word-break: normal; line-break: strict; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
svg { flex: none; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.site-head { border-bottom: 1px solid rgba(39, 39, 42, .7); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--accent); }
.brand-mark svg { width: 16px; height: 16px; }
.brand b { font-size: 1rem; font-weight: 700; letter-spacing: .02em; }
.brand-sub { color: var(--subtle); font-size: .875rem; }
.lang { position: relative; font-size: .8125rem; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  transition: color var(--ease), border-color var(--ease);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--border-hover); color: var(--text); }
.lang summary svg { width: 15px; height: 15px; }
.lang summary svg:last-child { width: 13px; height: 13px; transition: transform var(--ease); }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  list-style: none;
}
.lang ul a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; transition: color var(--ease), background-color var(--ease); }
.lang ul a:hover { background: var(--surface-hover); color: var(--text); }
.lang ul a[aria-current] { color: var(--text); background: var(--accent-soft); }

/* 제목 */
.hero { padding: 72px 0 36px; text-align: center; }
.pill { display: inline-block; margin-bottom: 20px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.15; font-weight: 700; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { max-width: 520px; margin: 16px auto 0; color: var(--muted); font-size: 1.0625rem; }

/* 안내 띠 (삭제 완료 등) */
.notice {
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 11px 16px;
  border: 1px solid rgba(251, 191, 36, .25);
  border-radius: var(--radius-sm);
  background: var(--notice-soft);
  color: var(--notice);
  font-size: .9375rem;
  font-weight: 500;
  text-align: center;
}

/* 업로드 칸 */
.uploader { max-width: 720px; margin: 0 auto; }
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 40px 24px;
  border: 1px dashed var(--border-hover);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease);
}
.drop:hover, .drop:focus-visible { border-color: #52525b; background: var(--surface-hover); outline: none; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop.is-busy { cursor: progress; }
.drop-idle, .drop-busy, .drop-title, .drop-hint, .drop-name, .drop-pct { display: block; }
.drop-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--muted); transition: color var(--ease), border-color var(--ease); }
.drop:hover .drop-icon, .drop.is-over .drop-icon { color: var(--accent); border-color: var(--border-hover); }
.drop-icon svg { width: 22px; height: 22px; }
.drop-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.drop-or { display: block; margin: 6px 0 18px; color: var(--subtle); font-size: .875rem; }
.drop-hint { margin-top: 20px; color: var(--subtle); font-size: .8125rem; }
.drop-busy { width: 100%; max-width: 360px; }
.drop-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 16px 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.drop progress::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.drop progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width .2s; }
.drop progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.drop-pct { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }

/* 업로드 결과 — 미리보기 + 주소 복사 */
.result { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.result-preview { display: grid; place-items: center; padding: 20px; border-bottom: 1px solid var(--border); background: var(--bg); }
.result-preview img { display: block; max-height: 380px; width: auto; border-radius: 8px; }
.result-body { padding: 20px; }
.result-label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; }
.result-label svg { width: 18px; height: 18px; color: var(--success); }
.copy { display: flex; gap: 8px; }
.copy input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: .9375rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: border-color var(--ease);
}
.copy input:focus { border-color: var(--accent); outline: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.error {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, .25);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: .9375rem;
  font-weight: 500;
  text-align: center;
}

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .8125rem; }
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips svg { width: 14px; height: 14px; color: var(--subtle); }

/* 단추 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn-primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: transparent; background: var(--surface-hover); color: var(--text); }
.btn-lg { height: 46px; padding: 0 22px; }

/* 본문 구역 */
.section { margin-top: 112px; }
.section-head { margin-bottom: 28px; }
.section-head .eyebrow { display: block; margin-bottom: 8px; color: var(--accent); font-size: .8125rem; font-weight: 500; }
.section-head h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; }

.card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color var(--ease); }
.card:hover { border-color: var(--border-hover); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.feature h3 { margin: 18px 0 6px; font-size: 1rem; font-weight: 600; }
.feature p { color: var(--muted); font-size: .9375rem; }
.ic { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--accent); }
.ic svg { width: 18px; height: 18px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 14px; color: var(--accent); font: 500 .8125rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.steps h3 { margin-bottom: 6px; font-size: 1rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .9375rem; }
.steps b, .checks b, .faq b { color: var(--text); font-weight: 600; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.split h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 1rem; font-weight: 600; }
.checks { padding: 0; list-style: none; color: var(--muted); font-size: .9375rem; }
.checks li { position: relative; padding-left: 18px; }
.checks li + li { margin-top: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--subtle); }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; font-weight: 500; cursor: pointer; list-style: none; transition: color var(--ease); }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; color: var(--subtle); transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 2px 18px; color: var(--muted); }

.links { padding: 0; list-style: none; border-top: 1px solid var(--border); }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--border); color: var(--muted); text-decoration: none; transition: color var(--ease); }
.links a:hover { color: var(--text); }
.links svg { width: 16px; height: 16px; color: var(--subtle); }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 112px; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.cta h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.cta p { margin-top: 4px; color: var(--muted); }

/* 꼬리 */
.site-foot { margin-top: 96px; border-top: 1px solid var(--border); color: var(--subtle); font-size: .8125rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-foot a { text-decoration: none; transition: color var(--ease); }
.site-foot a:hover { color: var(--text); }

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .hero { padding: 48px 0 28px; }
  .drop { min-height: 280px; }
  .section, .cta { margin-top: 80px; }
  .cta { padding: 24px; }
  .copy { flex-wrap: wrap; }
  .copy .btn { flex: 1; }
}
