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

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

:root {
  --blue-50:  #F4F8FF;
  --blue-100: #E8F3FF;
  --blue-200: #C9E0FF;
  --blue-500: #3182F6;
  --blue-600: #1B64DA;
  --blue-700: #1957C2;

  --gray-50:  #F9FAFB;
  --gray-100: #F2F4F6;
  --gray-200: #E5E8EB;
  --gray-300: #D1D6DB;
  --gray-400: #B0B8C1;
  --gray-500: #8B95A1;
  --gray-600: #6B7684;
  --gray-700: #4E5968;
  --gray-800: #333D4B;
  --gray-900: #191F28;

  --green-50:  #E6F9F2;
  --green-500: #00C896;
  --orange-50: #FFF4E5;
  --orange-500:#FF9500;
  --red-50:    #FEECEC;
  --red-500:   #F04452;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum';
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============ 레이아웃 ============ */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ============ 헤더 ============ */
.gnb {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.gnb-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.gnb-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--gray-900);
}
.gnb-logo svg { height: 26px; width: auto; }
.gnb-menu {
  display: flex; gap: 4px; align-items: center;
}
.gnb-menu a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: var(--gray-700);
  transition: all 0.15s;
}
.gnb-menu a:hover { background: var(--gray-100); color: var(--gray-900); }
.gnb-menu a.active { color: var(--blue-500); }
.gnb-burger {
  display: none; width: 40px; height: 40px;
  border-radius: var(--radius-sm); align-items: center; justify-content: center;
}
.gnb-burger:hover { background: var(--gray-100); }

@media (max-width: 768px) {
  .gnb-menu { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: white; flex-direction: column; padding: 12px; gap: 0;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md);
  }
  .gnb-menu.open { display: flex; }
  .gnb-menu a { padding: 14px 16px; width: 100%; }
  .gnb-burger { display: flex; }
}

/* ============ 히어로 ============ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--gray-50) 100%);
}
.hero-tag {
  display: inline-block; padding: 6px 14px;
  background: var(--blue-100); color: var(--blue-600);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.03em; color: var(--gray-900);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blue-500); }
.hero p {
  font-size: 18px; color: var(--gray-700);
  max-width: 600px; margin: 0 auto 32px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; background: var(--blue-500); color: white;
  border-radius: var(--radius-md); font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(49, 130, 246, 0.25);
  transition: all 0.15s;
}
.hero-cta:hover { background: var(--blue-600); transform: translateY(-1px); }

@media (max-width: 640px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
}

/* ============ 페이지 헤더 (도구 페이지) ============ */
.page-head {
  padding: 56px 0 40px;
  text-align: center;
}
.page-head .badge {
  display: inline-block; padding: 6px 12px;
  background: var(--blue-100); color: var(--blue-600);
  border-radius: 999px; font-size: 12px; font-weight: 600;
  margin-bottom: 16px;
}
.page-head h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gray-900); margin-bottom: 12px;
}
.page-head p {
  font-size: 16px; color: var(--gray-700);
  max-width: 640px; margin: 0 auto;
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 26px; }
  .page-head { padding: 40px 0 28px; }
}

/* ============ 카드 ============ */
.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.card-lg { padding: 36px; }
@media (max-width: 640px) {
  .card { padding: 20px; border-radius: var(--radius-lg); }
  .card-lg { padding: 24px; }
}

.card-title {
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}

/* ============ 폼 ============ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--gray-800); margin-bottom: 8px;
}
.form-help {
  font-size: 13px; color: var(--gray-500); margin-top: 6px;
}
.input, .textarea {
  width: 100%; padding: 16px;
  background: var(--gray-100); border: 2px solid transparent;
  border-radius: var(--radius-md); font-size: 16px; color: var(--gray-900);
  transition: all 0.15s; outline: none;
}
.input:focus, .textarea:focus {
  background: white; border-color: var(--blue-500);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--gray-400); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 24px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--blue-500); color: white;
  box-shadow: 0 2px 8px rgba(49, 130, 246, 0.2);
}
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--gray-100); color: var(--gray-800); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; }

/* ============ 결과 영역 ============ */
.result-section { margin-top: 32px; }
.result-empty {
  text-align: center; padding: 60px 20px;
  color: var(--gray-500); background: var(--gray-50);
  border-radius: var(--radius-lg); border: 1px dashed var(--gray-300);
}
.result-empty svg { margin: 0 auto 16px; opacity: 0.5; }

/* ============ 통계 카드 ============ */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat {
  background: var(--gray-50); padding: 20px;
  border-radius: var(--radius-md);
}
.stat-label { font-size: 13px; color: var(--gray-600); margin-bottom: 6px; }
.stat-value { font-size: 24px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; }
.stat-value.blue { color: var(--blue-500); }
.stat-value.green { color: var(--green-500); }
.stat-value.orange { color: var(--orange-500); }
.stat-sub { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

/* ============ 테이블 ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td {
  padding: 14px 16px; text-align: left;
  font-size: 14px; border-bottom: 1px solid var(--gray-100);
}
.table th {
  background: var(--gray-50); font-weight: 600; color: var(--gray-700);
  font-size: 13px; white-space: nowrap;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table .kw { font-weight: 600; color: var(--gray-900); }

/* ============ 배지 ============ */
.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge.green { background: var(--green-50); color: var(--green-500); }
.badge.orange { background: var(--orange-50); color: var(--orange-500); }
.badge.red { background: var(--red-50); color: var(--red-500); }
.badge.blue { background: var(--blue-100); color: var(--blue-600); }
.badge.gray { background: var(--gray-100); color: var(--gray-600); }

/* ============ 인덱스 - 기능 그리드 ============ */
.feature-section { padding: 80px 0; }
.section-title {
  font-size: 32px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--gray-900); text-align: center; margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--gray-700);
  text-align: center; margin-bottom: 48px;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: white; padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.feature-card .icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: var(--blue-100); color: var(--blue-500);
}
.feature-card.c-green .icon-box { background: var(--green-50); color: var(--green-500); }
.feature-card.c-orange .icon-box { background: var(--orange-50); color: var(--orange-500); }
.feature-card.c-red .icon-box { background: var(--red-50); color: var(--red-500); }
.feature-card h3 {
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 14px; color: var(--gray-600); line-height: 1.55;
  flex: 1; margin-bottom: 16px;
}
.feature-card .arrow {
  font-size: 14px; font-weight: 600; color: var(--blue-500);
  display: flex; align-items: center; gap: 4px;
}

/* ============ Why Us 섹션 ============ */
.why-section { padding: 80px 0; background: white; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.why-item { text-align: center; }
.why-item .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.why-item h4 {
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 8px;
}
.why-item p {
  font-size: 14px; color: var(--gray-600); line-height: 1.6;
}

/* ============ FAQ ============ */
.faq-section { padding: 80px 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); overflow: hidden;
}
.faq-q {
  padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-weight: 600;
  font-size: 15px; color: var(--gray-900);
}
.faq-q .chev { transition: transform 0.2s; color: var(--gray-400); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.25s, padding 0.25s;
  color: var(--gray-700); font-size: 14px; line-height: 1.7;
}
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 500px; }

/* ============ Tips / 가이드 ============ */
.guide-section { margin-top: 48px; }
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 24px;
}
.guide-item {
  background: white; padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.guide-item .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-500); color: white;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.guide-item h4 {
  font-size: 15px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 6px;
}
.guide-item p {
  font-size: 13px; color: var(--gray-600); line-height: 1.6;
}

/* ============ 관련 도구 ============ */
.related-tools {
  margin-top: 60px; padding: 32px;
  background: var(--blue-50); border-radius: var(--radius-xl);
}
.related-tools h3 {
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 20px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: white;
  border-radius: var(--radius-md); transition: all 0.15s;
  font-size: 14px; font-weight: 600; color: var(--gray-800);
}
.related-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.related-item .ri-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--blue-100); color: var(--blue-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============ 푸터 ============ */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 48px 0 32px; margin-top: 80px;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 40px;
  justify-content: space-between; padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-800);
}
.footer-brand { max-width: 320px; }
.footer-brand .logo {
  font-size: 18px; font-weight: 700; color: white;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.6; }

.footer-links {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 32px;
}
.footer-col h5 {
  font-size: 13px; font-weight: 700; color: white;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--gray-400);
  padding: 4px 0; transition: color 0.15s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  padding-top: 24px; font-size: 13px; color: var(--gray-500);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ============ 알림 박스 ============ */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.alert-error { background: var(--red-50); color: var(--red-500); }
.alert-info { background: var(--blue-50); color: var(--blue-600); }
.alert-warn { background: var(--orange-50); color: var(--orange-500); }

/* ============ 차트 / 막대 ============ */
.bar-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
}
.bar-row:last-child { border-bottom: none; }
.bar-label {
  flex: 0 0 130px; font-weight: 600; font-size: 14px;
  color: var(--gray-900); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  flex: 1; height: 28px; background: var(--gray-100);
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
}
.bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
  border-radius: var(--radius-sm); transition: width 0.6s ease-out;
}
.bar-value {
  flex: 0 0 90px; text-align: right; font-weight: 700;
  font-size: 14px; color: var(--gray-700);
  font-variant-numeric: tabular-nums;
}

/* ============ 분할 막대 (PC vs Mobile) ============ */
.split-bar {
  display: flex; height: 32px; border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.split-bar > div {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
  transition: flex 0.6s;
}
.split-bar .pc-part { background: var(--blue-500); }
.split-bar .mo-part { background: var(--green-500); }

/* ============ 토글 버튼 그룹 ============ */
.toggle-group {
  display: inline-flex; background: var(--gray-100);
  border-radius: var(--radius-md); padding: 4px; gap: 2px;
}
.toggle-group button {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--gray-600);
  transition: all 0.15s;
}
.toggle-group button.on {
  background: white; color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}

/* ============ 유틸 ============ */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============ 정적 페이지 (about, privacy 등) ============ */
.prose { max-width: 720px; margin: 0 auto; padding: 40px 20px 60px; }
.prose h1 { font-size: 32px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.prose h2 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; letter-spacing: -0.02em; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.prose p { font-size: 15px; line-height: 1.75; color: var(--gray-700); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 12px; }
.prose li { font-size: 15px; line-height: 1.75; color: var(--gray-700); margin-bottom: 4px; }
.prose strong { color: var(--gray-900); font-weight: 700; }
.prose .meta { color: var(--gray-500); font-size: 14px; margin-bottom: 32px; }
