:root {
  --bg: #090b16;
  --panel: #121628;
  --panel-soft: #171c31;
  --text: #f6f7fb;
  --muted: #9aa3bd;
  --line: rgba(255,255,255,.10);
  --accent: #8b5cf6;
  --accent2: #ec4899;
  --success: #57d38c;
  --danger: #ff6b7a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0,0,0,.35);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 50% -10%, rgba(139,92,246,.25), transparent 31rem), var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.page-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 19px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg, var(--accent), var(--accent2)); box-shadow: 0 8px 24px rgba(139,92,246,.34); }
.brand-mark svg { width: 20px; height: 20px; }
.top-note { color: var(--muted); font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.hero { min-height: 650px; padding: 96px 0 72px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow, .kicker { color: #cbbdff; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 860px; margin: 16px 0 22px; font-size: clamp(44px, 7vw, 76px); line-height: 1.05; letter-spacing: -.055em; }
h1 span { background: linear-gradient(100deg, #c6b8ff, #ff91c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.75; margin: 0 0 34px; }
.url-card { width: min(840px, 100%); background: rgba(18,22,40,.84); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.input-wrap { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 16px; }
.input-wrap:focus-within { border-color: rgba(176,144,255,.72); box-shadow: 0 0 0 3px rgba(139,92,246,.12); }
.link-icon { display: grid; place-items: center; color: #aab2c8; }
#instagram-url { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: white; font-size: 16px; }
#instagram-url::placeholder { color: #747d98; }
.paste-button { border: 0; background: #242a43; color: #dce2f5; border-radius: 11px; padding: 10px 12px; font-weight: 700; }
.paste-button:hover { background: #303754; }
.primary-button { border: 0; min-width: 154px; border-radius: 16px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: white; font-weight: 800; box-shadow: 0 10px 28px rgba(139,92,246,.25); }
.primary-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.status { min-height: 28px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.status.error { color: var(--danger); }
.status.ok { color: var(--success); }
.trust-row { margin-top: 20px; display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; color: #8f98b2; font-size: 13px; }
.trust-row b { color: var(--success); }
.hidden { display: none !important; }
.results, .howto { padding: 76px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-heading.compact { margin-bottom: 26px; }
h2 { margin: 7px 0 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.result-author { color: var(--muted); margin: 0 0 28px; }
.count-chip { background: #202641; border: 1px solid var(--line); color: #c8d0e8; border-radius: 999px; padding: 8px 12px; font-size: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.media-card { overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 22px; }
.media-preview { aspect-ratio: 4 / 5; background: #070910; position: relative; overflow: hidden; display: grid; place-items: center; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-type { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; background: rgba(8,10,20,.78); backdrop-filter: blur(8px); }
.play-badge { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(9,11,22,.7); border: 1px solid rgba(255,255,255,.25); }
.media-body { padding: 16px; }
.media-meta { min-height: 20px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.download-button { width: 100%; min-height: 48px; border-radius: 13px; display: flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; color: white; font-weight: 800; background: #252d4b; border: 1px solid rgba(255,255,255,.08); }
.download-button:hover { background: #303a60; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018)); }
.step-card > span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; margin-bottom: 38px; background: #262e4f; color: #d8dfff; font-weight: 800; }
.step-card h3 { font-size: 21px; margin: 0 0 9px; }
.step-card p { color: var(--muted); line-height: 1.65; margin: 0; }
.notice-card { margin: 18px 0 72px; display: flex; gap: 18px; padding: 24px; border: 1px solid rgba(255,255,255,.10); border-radius: 22px; background: #101427; }
.notice-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #242b49; color: #cbd3eb; font-weight: 900; }
.notice-card h2 { font-size: 18px; margin: 4px 0 7px; }
.notice-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
footer { min-height: 86px; padding: 22px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: center; color: #76809a; font-size: 12px; }
footer span:first-child { color: #dce2f1; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .page-shell { width: min(100% - 20px, 1160px); }
  .topbar { height: 66px; }
  .top-note { display: none; }
  .hero { padding: 70px 0 56px; min-height: 0; }
  h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-copy { font-size: 15px; }
  .url-card { grid-template-columns: 1fr; padding: 9px; border-radius: 20px; }
  .input-wrap { min-height: 58px; }
  .primary-button { min-height: 56px; }
  .steps { grid-template-columns: 1fr; }
  .step-card > span { margin-bottom: 24px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .results, .howto { padding: 56px 0; }
  .notice-card { margin-bottom: 48px; }
  footer { align-items: flex-start; flex-direction: column; }
}

.preview-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #15182b, #0b0d18);
  color: #a8afc7;
  font-weight: 800;
  letter-spacing: .14em;
}
