@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #ffffff;
  --bg2:      #f7f7f5;
  --bg3:      #f0f0ec;
  --border:   #e8e8e4;
  --border2:  #d8d8d2;
  --text1:    #111110;
  --text2:    #525250;
  --text3:    #a0a09a;
  --accent:   #5b5bd6;
  --accent-light: #ededfc;
  --radius:   10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow:   0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: var(--bg); color: var(--text1);
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; color: var(--text1); letter-spacing: -0.03em; }
.nav-logo-icon { width: 28px; height: 28px; border-radius: 8px; background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d96ff, #c77dff, #ff6b6b); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 13px; color: var(--text2); padding: 6px 12px; border-radius: 8px; transition: all 0.15s; }
.nav-links a:hover { background: var(--bg2); color: var(--text1); }
.nav-links a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }

/* ── LAYOUT ── */
.container { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 740px; margin: 0 auto; padding: 0 28px; }
.page-header { padding: 44px 0 28px; }
.page-title { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 6px; }
.page-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ── CARD ── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.card-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 16px; }

/* ── COLOR PICKER ── */
.color-picker-wrap { display: flex; align-items: center; gap: 14px; }
.color-picker-swatch {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  border: 1px solid var(--border2); cursor: pointer;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.color-picker-swatch input[type=color] {
  position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px);
  border: none; outline: none; cursor: pointer; padding: 0;
}

/* ── INPUTS ── */
.form-input, .form-select {
  padding: 9px 13px; border: 1px solid var(--border2); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; outline: none;
  background: var(--bg); color: var(--text1); transition: border-color 0.15s; width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,91,214,0.1); }
.form-input.mono { font-family: 'Courier New', monospace; font-size: 13px; }
.form-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin-bottom: 5px; display: block; }
.form-group { display: flex; flex-direction: column; }

/* ── COPY BUTTON ── */
.copy-btn {
  background: var(--bg2); border: 1px solid var(--border2); color: var(--text2);
  border-radius: 7px; padding: 6px 13px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap;
}
.copy-btn:hover { background: var(--bg3); border-color: var(--border2); }
.copy-btn.copied { background: #e8f8ef; border-color: #6ee7b7; color: #065f46; }
.copy-row { display: flex; align-items: center; gap: 8px; }
.copy-row .form-input { flex: 1; }

/* ── COLOR SWATCH ── */
.swatch { width: 100%; border-radius: var(--radius-lg); position: relative; overflow: hidden; cursor: pointer; }
.swatch-label { font-size: 11px; font-weight: 700; margin-top: 7px; text-align: center; color: var(--text2); }
.swatch-code { font-size: 11px; color: var(--text3); text-align: center; font-family: monospace; }
.swatch:hover .swatch-overlay { opacity: 1; }
.swatch-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.15s; font-size: 18px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.15s; border: 1px solid var(--border2); background: var(--bg2); color: var(--text2); }
.btn:hover { background: var(--bg3); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #4a4ac0; border-color: #4a4ac0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── RANGE SLIDER ── */
.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--accent); height: 4px; }
.range-val { font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; color: var(--text1); font-variant-numeric: tabular-nums; }

/* ── TOOL GRID (hub) ── */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: block; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; background: var(--bg); }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.tool-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 13px; }
.tool-card-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 5px; }
.tool-card-desc { font-size: 12px; color: var(--text2); line-height: 1.6; }
.tool-card-arrow { font-size: 12px; color: var(--accent); margin-top: 13px; display: block; font-weight: 600; }

/* ── BLOG LIST ── */
.blog-list { display: flex; flex-direction: column; gap: 10px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; transition: border-color 0.15s; }
.blog-card:hover { border-color: var(--accent); }
.blog-card-title { font-size: 14px; font-weight: 700; color: var(--text1); margin-bottom: 3px; }
.blog-card-desc { font-size: 12px; color: var(--text2); }
.blog-arrow { font-size: 14px; color: var(--text3); flex-shrink: 0; margin-left: 16px; }

/* ── AD ── */
.ad-slot { background: var(--bg2); border: 1px dashed var(--border2); border-radius: var(--radius); padding: 14px; text-align: center; margin: 24px 0; }
.ad-slot p { font-size: 11px; color: var(--text3); }

/* ── RELATED ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.related-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 15px; display: block; transition: border-color 0.15s; }
.related-card:hover { border-color: var(--accent); }
.related-card-name { font-size: 13px; font-weight: 700; color: var(--text1); margin-bottom: 2px; }
.related-card-desc { font-size: 11px; color: var(--text2); }
.related-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 12px; }

/* ── FOOTER ── */
.footer { border-top: 1px solid var(--border); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; margin-top: 64px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text3); }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── ARTICLE ── */
.article h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.article h3 { font-size: 16px; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.article p { font-size: 15px; line-height: 1.9; color: var(--text2); margin-bottom: 1rem; }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article li { font-size: 15px; line-height: 1.9; color: var(--text2); margin-bottom: 5px; }
.article strong { color: var(--text1); font-weight: 700; }
.article .tip-box { background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 18px; margin: 1.5rem 0; }
.article .tip-box p { color: #3a3a9e; margin: 0; font-size: 14px; }
.article .toc { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 2rem; }
.article .toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text3); margin-bottom: 10px; }
.article .toc a { display: block; font-size: 14px; color: var(--accent); margin-bottom: 4px; }
.article .toc a:hover { text-decoration: underline; }

/* ── CTA BOX ── */
.cta-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; background: var(--bg2); margin: 2rem 0; }
.cta-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.cta-box p { font-size: 13px; color: var(--text2); margin-bottom: 16px; }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-accent { background: var(--accent-light); color: var(--accent); }

/* ── DIVIDER ── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .container, .container-sm { padding: 0 16px; }
  .nav { padding: 0 16px; }
  .page-title { font-size: 24px; }
}
@media (max-width: 480px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
}
