/* 주소닷컴 main.css
   폰트 스케일 3단계로 통일
   sm: 13px  (보조 텍스트 — 태그·캡션·딤)
   md: 15px  (본문 — 설명·목록·FAQ 답)
   lg: 17px  (강조 — 제목·요약·버튼)
*/

:root {
  --bg:     #111318;
  --bg2:    #191c24;
  --bg3:    #21252f;
  --line:   #2a2f3d;
  --dim:    #454d62;
  --sub:    #7b8499;
  --body:   #b2bace;
  --head:   #e2e8f4;
  --white:  #f0f4fc;
  --accent: #5b8dee;
  --acc2:   #3a6fd8;
  --adim:   rgba(91,141,238,.1);
  --green:  #34c97a;
  --red:    #e05252;
  --max:    1120px;

  --fs-sm: 14px;
  --fs-md: 15px;
  --fs-lg: 17px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--bg); color: var(--body); line-height: 1.75; font-size: var(--fs-md); }
img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); }

.sr   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 6px; font-size: var(--fs-sm); }
.skip:focus { left: 12px; z-index: 9999; }
.wrap  { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-n{ max-width: 760px;       margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ── */
.site-header  { position: sticky; top: 0; z-index: 200; background: rgba(17,19,24,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 60px; gap: 32px; }

.brand    { display: flex; align-items: baseline; gap: 2px; text-decoration: none; }
.brand-kr { font-size: 21px; font-weight: 900; color: var(--white); letter-spacing: -1px; }
.brand-en { font-size: 20px; font-weight: 900; font-style: italic; font-family: Georgia, serif; color: var(--accent); letter-spacing: 1px; position: relative; }
.brand-en::after { content: ''; position: absolute; bottom: 1px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px; }

/* ── 햄버거 메뉴 ── */
.gnb-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--head); margin-left: auto; }
.gnb-toggle svg { width: 22px; height: 22px; }
.gnb { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gnb a { font-size: var(--fs-md); color: var(--sub); padding: 6px 13px; border-radius: 6px; }
.gnb a:hover, .gnb a.on { color: var(--head); background: var(--bg3); }

/* ── 히어로 ── */
.hero        { padding: 80px 0 64px; text-align: center; }
.hero-center { max-width: 700px; margin: 0 auto; }
.hero h1     { font-size: 46px; font-weight: 900; color: var(--white); letter-spacing: -2px; line-height: 1.2; margin-bottom: 20px; word-break: keep-all; }
.hero h1 em  { font-style: normal; font-weight: 900; color: #5b8dee; }
.hero-desc   { font-size: var(--fs-lg); color: var(--sub); line-height: 1.85; margin-bottom: 36px; word-break: keep-all; }

/* 버튼 래퍼 — 주변 꾸미기 */
.btn-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 4px;
}
.btn-wrap::before,
.btn-wrap::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 16px;
  pointer-events: none;
}
.btn-wrap::before {
  width: calc(100% + 20px); height: calc(100% + 20px);
  border: 1px solid rgba(91,141,238,.25);
}
.btn-wrap::after {
  width: calc(100% + 40px); height: calc(100% + 40px);
  border: 1px solid rgba(91,141,238,.1);
}

.btn-main {
  display: inline-block;
  font-size: var(--fs-lg); font-weight: 800;
  background-color: var(--red);
  background-image: none;
  color: #fff;
  padding: 17px 44px;
  border-radius: 10px;
  letter-spacing: -.3px;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.btn-main:hover { background-color: var(--red); background-image: none; color: #fff; }

/* stat-bar */
.stat-bar      { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; margin-top: 48px; padding: 24px 32px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.stat-bar-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 28px; }
.stat-bar-val  { font-size: 24px; font-weight: 900; color: var(--head); letter-spacing: -1px; }
.stat-bar-lbl  { font-size: var(--fs-sm); color: var(--dim); white-space: nowrap; }
.stat-bar-div  { width: 1px; height: 40px; background: var(--line); flex-shrink: 0; }

/* ── 섹션 ── */
.sec      { padding: 56px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-hd   { margin-bottom: 32px; }
.sec-hd h2{ font-size: 28px; font-weight: 900; color: var(--white); letter-spacing: -1px; margin-bottom: 10px; }
.sec-hd p { font-size: var(--fs-lg); color: var(--sub); }

/* ── 카테고리 그리드 ── */
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.cat-card { background: var(--bg2); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.cat-card:hover { background: var(--bg3); }
.cat-ico  { width: 38px; height: 38px; background: var(--adim); border-radius: 8px; display: grid; place-items: center; margin-bottom: 4px; }
.cat-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-nm   { font-size: var(--fs-lg); font-weight: 700; color: var(--head); }
.cat-cnt  { font-size: var(--fs-sm); color: var(--dim); }
.cat-tg   { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tg       { font-size: var(--fs-sm); color: var(--dim); background: var(--bg3); border-radius: 4px; padding: 2px 7px; }

/* ── 특징 카드 ── */
.feat-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feat-card    { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 28px 22px; }
.feat-n       { font-size: var(--fs-sm); font-weight: 800; letter-spacing: 1px; color: var(--accent); margin-bottom: 14px; }
.feat-card h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--head); margin-bottom: 10px; }
.feat-card p  { font-size: var(--fs-md); color: var(--sub); line-height: 1.78; }

/* ── About ── */
.about-grid    { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 24px; }
.about-card    { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; }
.about-card h3 { font-size: var(--fs-lg); font-weight: 800; color: var(--accent); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.about-card p  { font-size: var(--fs-md); color: var(--body); line-height: 1.8; }
.about-card p + p { margin-top: 10px; }

/* ── 가이드 ── */
.guide    { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 30px; border-left: 4px solid var(--accent); }
.guide h3 { font-size: var(--fs-lg); font-weight: 800; color: var(--head); margin-bottom: 22px; }
.steps    { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 14px; font-size: var(--fs-md); color: var(--body); line-height: 1.75; }
.steps li::before { content: attr(data-n); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--adim); border: 1px solid var(--accent); font-size: var(--fs-sm); font-weight: 800; color: var(--accent); display: grid; place-items: center; margin-top: 2px; }

/* ── 이미지 블록 ── */
.img-block     { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 24px 0; }
.img-block img { width: 100%; }
.img-cap       { font-size: var(--fs-sm); color: var(--dim); padding: 9px 14px; background: var(--bg2); text-align: center; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { padding: 18px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-lg); font-weight: 700; color: var(--head); gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; font-size: 20px; color: var(--dim); line-height: 1; }
.faq-item[open] summary::after { content: '−'; color: var(--accent); }
.faq-a { padding-bottom: 18px; font-size: var(--fs-md); color: var(--body); line-height: 1.8; }
.faq-a p + p { margin-top: 10px; }

/* ── 페이지 히어로 ── */
.page-hero    { padding: 44px 0 34px; border-bottom: 1px solid var(--line); }
.breadcrumb   { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--dim); margin-bottom: 14px; }
.breadcrumb a { color: var(--accent); }
.page-hero h1 { font-size: 34px; font-weight: 900; color: var(--white); letter-spacing: -1px; margin-bottom: 10px; }
.page-hero p  { font-size: var(--fs-lg); color: var(--sub); max-width: 58ch; line-height: 1.78; }
.cat-tabs     { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.cat-tabs a   { font-size: var(--fs-md); padding: 7px 15px; border: 1px solid var(--line); border-radius: 20px; color: var(--sub); }
.cat-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.cat-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 사이트 목록 ── */
.site-item { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.site-item:first-child { border-top: 1px solid var(--line); }
.s-rank { font-size: var(--fs-sm); color: var(--dim); text-align: center; padding-top: 4px; font-weight: 700; }
.s-name { font-size: var(--fs-lg); font-weight: 700; color: var(--head); margin-bottom: 4px; }
.s-url  { display: inline-block; font-size: var(--fs-sm); color: var(--accent); margin-bottom: 6px; text-decoration: none; }
.s-url:hover { text-decoration: underline; color: var(--head); }
.s-desc { font-size: var(--fs-md); color: var(--sub); line-height: 1.68; }
.chips  { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip   { font-size: var(--fs-sm); padding: 2px 8px; background: var(--bg3); color: var(--body); border-radius: 4px; border: 1px solid var(--line); }
.chip.ok{ background: rgba(52,201,122,.07); color: var(--green); border-color: rgba(52,201,122,.2); }


/* ── 관련 링크 ── */
.related   { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.related a { font-size: var(--fs-md); color: var(--sub); border: 1px solid var(--line); border-radius: 6px; padding: 6px 14px; }
.related a:hover { color: var(--accent); border-color: var(--accent); }

/* ── 푸터 ── */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 56px; }
.foot-top    { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; flex-wrap: wrap; }
.foot-nav    { display: flex; gap: 4px; margin-left: auto; }
.foot-nav a  { font-size: var(--fs-md); color: var(--dim); padding: 4px 12px; border-right: 1px solid var(--line); }
.foot-nav a:last-child { border-right: none; }
.foot-nav a:hover { color: var(--sub); }
.foot-cats   { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 7px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.foot-cats a { font-size: var(--fs-md); color: var(--dim); }
.foot-cats a:hover { color: var(--accent); }
.foot-note   { font-size: var(--fs-md); color: var(--dim); line-height: 1.78; margin-bottom: 8px; }
.foot-copy   { font-size: var(--fs-sm); color: var(--line); }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .hero h1       { font-size: 34px; }
  .cat-grid      { grid-template-columns: repeat(2,1fr); }
  .feat-grid     { grid-template-columns: 1fr 1fr; }
  .about-grid    { grid-template-columns: 1fr; }
  .stat-bar-item { padding: 0 18px; }
  .stat-bar      { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .hero h1       { font-size: 26px; letter-spacing: -1px; }
  .cat-grid      { grid-template-columns: repeat(2,1fr); }
  .feat-grid     { grid-template-columns: 1fr; }
  .site-item     { grid-template-columns: 24px 1fr; }
  .foot-top      { flex-direction: column; align-items: flex-start; }
  .foot-nav      { margin-left: 0; }
  .stat-bar      { flex-direction: column; gap: 14px; padding: 20px; }
  .stat-bar-div  { width: 100%; height: 1px; }
  .stat-bar-item { flex-direction: row; justify-content: space-between; width: 100%; padding: 0; }
  .stat-bar-val  { font-size: 20px; }

  /* 햄버거 메뉴 */
  .gnb-toggle { display: flex; align-items: center; }
  .gnb {
    display: none; margin-left: 0;
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg2); border-bottom: 1px solid var(--line);
    padding: 8px 0; z-index: 199;
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 14px 24px; border-radius: 0; font-size: var(--fs-lg); border-bottom: 1px solid var(--line); }
  .gnb a:last-child { border-bottom: none; }
}

/* ── 블로그 ── */
.blog-list  { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.blog-item  { background: var(--bg2); padding: 24px 28px; }
.blog-item:hover { background: var(--bg3); }
.blog-meta  { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.blog-cat   { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--adim); padding: 2px 10px; border-radius: 99px; }
.blog-date  { font-size: 12px; color: var(--dim); }
.blog-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.blog-title a { color: var(--head); text-decoration: none; }
.blog-title a:hover { color: var(--accent); }
.blog-desc  { font-size: var(--fs-md); color: var(--sub); line-height: 1.7; margin-bottom: 12px; }
.blog-more  { font-size: 13px; color: var(--accent); font-weight: 700; }

/* 상세정보 버튼 */
.detail-btn { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; padding: 3px 10px; text-decoration: none; }
.detail-btn:hover { color: var(--accent); border-color: var(--accent); }