/* ============================================================
   YN 웹사이트 SEO — Premium Dark Theme
   ============================================================ */
:root {
  --bg: #07090f;
  --bg-soft: #0c0f18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --text-sub: #a3abc2;
  --text-dim: #8590ad;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #22d3ee;
  --pink: #ec4899;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.18));
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(139, 92, 246, 0.4); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ---------- 배경 오브 ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; opacity: 0.9; will-change: transform; }
.orb-1 { width: 900px; height: 900px; background: radial-gradient(circle, rgba(99,102,241,0.20) 0%, transparent 62%); top: -320px; left: -280px; animation: drift 22s ease-in-out infinite alternate; }
.orb-2 { width: 800px; height: 800px; background: radial-gradient(circle, rgba(168,85,247,0.17) 0%, transparent 62%); top: 26%; right: -320px; animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 720px; height: 720px; background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 62%); bottom: -280px; left: 24%; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* ---------- 스크롤 진행바 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); z-index: 1000; border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

/* ---------- 헤더 ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--grad); border-radius: 11px; font-size: 15px; font-weight: 900; color: #fff;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}
.logo-text em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 2px; }
.nav-link {
  padding: 8px 11px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--text-sub); white-space: nowrap; transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
/* "무료 도구" 고스트 버튼은 상단 nav의 'SEO 도구'·CTA와 중복 → 헤더 공간 확보 위해 숨김(하단 CTA/nav로 접근) */
.header-actions .btn-ghost { display: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 언어 선택 ---------- */
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text-sub); font-size: 13.5px; font-weight: 600;
  white-space: nowrap; transition: 0.2s;
}
.lang-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.lang-caret { font-size: 10px; opacity: 0.7; }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 950;
  min-width: 172px; list-style: none; padding: 6px; margin: 0;
  border-radius: 13px; background: rgba(10, 13, 21, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.lang-list[hidden] { display: none; }
.lang-list li {
  padding: 9px 12px; border-radius: 9px; font-size: 13.5px;
  color: var(--text-sub); cursor: pointer; transition: 0.15s; white-space: nowrap;
}
.lang-list li:hover { background: var(--surface-2); color: var(--text); }
.lang-list li.active { background: var(--grad-soft); color: #d8caff; }
@media (max-width: 860px) {
  .lang-btn #langCur { display: none; }
  .lang-btn { padding: 8px 10px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; font-weight: 600; font-size: 15px;
  padding: 12px 24px; transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(139, 92, 246, 0.55); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost { background: transparent; color: var(--text-sub); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-white { background: #fff; color: #1a1040; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16.5px; border-radius: 14px; }
.btn-xs { padding: 5px 12px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 히어로 ---------- */
.hero { padding: 160px 0 60px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, 0.35); color: #c4b5fd;
  margin-bottom: 28px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
}
.hero-title {
  font-size: clamp(38px, 6.2vw, 68px); font-weight: 900; line-height: 1.18;
  letter-spacing: -0.035em; margin-bottom: 24px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(15.5px, 2vw, 18.5px); color: var(--text-sub); margin-bottom: 40px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: 36px;
  margin-top: 64px; flex-wrap: wrap;
}
.stat-num { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 13.5px; color: var(--text-dim); margin-top: 2px; }
.stat-divider { width: 1px; height: 42px; background: var(--border); }

/* ---------- 히어로 데모 ---------- */
.hero-demo { margin-top: 72px; perspective: 1200px; }
.demo-window {
  max-width: 860px; margin: 0 auto; border-radius: var(--radius-lg);
  background: rgba(14, 17, 27, 0.85); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 90px rgba(99, 102, 241, 0.18);
  overflow: hidden; text-align: left;
  transform: rotateX(4deg); transition: transform 0.5s;
}
.demo-window:hover { transform: rotateX(0deg); }
.demo-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.demo-title { margin-left: 10px; font-size: 12.5px; color: var(--text-dim); }
.demo-body { padding: 26px 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.demo-model { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.model-chip {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-size: 11px; font-weight: 800; color: #fff;
}
.model-chip.gpt { background: #10a37f; } .model-chip.gem { background: #4285f4; } .model-chip.cld { background: #d97757; }
.demo-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.demo-fill {
  height: 100%; width: 0; border-radius: 6px; background: var(--grad);
  animation: fillbar 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d);
}
@keyframes fillbar { to { width: var(--w); } }
.demo-score { margin-top: 9px; font-size: 12px; color: var(--text-dim); }
.demo-result {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-radius: 13px; font-size: 14.5px;
  background: rgba(52, 211, 153, 0.09); border: 1px solid rgba(52, 211, 153, 0.28); color: #a7f3d0;
}
.demo-result-icon { color: var(--green); font-size: 17px; }

/* ---------- 신뢰 배너 ---------- */
.trust { padding: 64px 0 20px; text-align: center; }
.trust-label { font-size: 13px; color: var(--text-dim); letter-spacing: 0.06em; margin-bottom: 20px; }
.trust-logos { display: flex; justify-content: center; gap: 14px 38px; flex-wrap: wrap; }
.trust-logos span { font-size: 16px; font-weight: 700; color: var(--text-dim); opacity: 0.75; transition: 0.25s; }
.trust-logos span:hover { color: var(--text); opacity: 1; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-badge {
  display: inline-block; padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd;
  margin-bottom: 18px;
}
.section-title { font-size: clamp(28px, 4.4vw, 44px); font-weight: 850; line-height: 1.25; letter-spacing: -0.03em; }
.section-sub { margin-top: 16px; font-size: 16.5px; color: var(--text-sub); }

/* ---------- 리빌 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 비교 ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.compare-card {
  padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface);
}
.compare-card.good {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.07));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.13);
}
.compare-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 13px; border-radius: 100px; margin-bottom: 18px;
}
.compare-card.bad .compare-tag { background: rgba(248, 113, 113, 0.13); color: var(--red); }
.compare-card.good .compare-tag { background: var(--grad); color: #fff; }
.compare-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.compare-card ul { list-style: none; display: grid; gap: 13px; }
.compare-card li { display: flex; gap: 11px; font-size: 15px; color: var(--text-sub); line-height: 1.55; }
.compare-card .x { color: var(--red); font-weight: 700; }
.compare-card .o { color: var(--green); font-weight: 700; }

/* ---------- 기능 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(500px circle at 50% 0%, rgba(139, 92, 246, 0.14), transparent 60%);
  transition: opacity 0.35s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, 0.45); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  display: grid; place-items: center; width: 54px; height: 54px; font-size: 25px;
  border-radius: 15px; background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18.5px; font-weight: 750; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14.5px; color: var(--text-sub); }

/* ---------- 무료 도구 ---------- */
.tools-panel {
  border-radius: var(--radius-lg); background: rgba(12, 15, 24, 0.9);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); overflow: hidden;
}
.tool-tabs {
  display: flex; gap: 4px; padding: 12px; overflow-x: auto;
  background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tab {
  padding: 11px 20px; border-radius: 11px; border: 0; background: transparent;
  font-size: 14.5px; font-weight: 600; color: var(--text-sub);
  transition: 0.2s; white-space: nowrap;
}
.tool-tab:hover { color: var(--text); background: var(--surface-2); }
.tool-tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35); }
.tool-body { display: none; padding: 34px; }
.tool-body.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { display: block; margin-bottom: 16px; }
.field-label { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--text-sub); margin-bottom: 7px; }
.field-label small { font-weight: 400; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%; padding: 12px 15px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border);
  color: var(--text); font-size: 14.5px; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.len-badge { font-size: 12px; font-weight: 700; color: var(--text-dim); padding: 2px 9px; border-radius: 100px; background: var(--surface-2); }
.len-badge.ok { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.len-badge.warn { color: var(--yellow); background: rgba(251, 191, 36, 0.12); }
.len-badge.bad { color: var(--red); background: rgba(248, 113, 113, 0.12); }

/* 점수 링 */
.score-ring-wrap { position: relative; width: 168px; margin: 0 auto 26px; }
.score-ring { width: 168px; height: 168px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-val {
  fill: none; stroke: #8b5cf6; stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s;
}
.score-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-num { font-size: 42px; font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.score-cap { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; font-weight: 600; }
.check-list { list-style: none; display: grid; gap: 9px; max-height: 340px; overflow-y: auto; padding-right: 6px; }
.check-list::-webkit-scrollbar { width: 5px; }
.check-list::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
.check-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: 11px; font-size: 13.5px; line-height: 1.5;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-sub);
}
.check-list li.pass { border-color: rgba(52, 211, 153, 0.3); }
.check-list li.pass::before { content: "✓"; color: var(--green); font-weight: 800; }
.check-list li.warn { border-color: rgba(251, 191, 36, 0.3); }
.check-list li.warn::before { content: "!"; color: var(--yellow); font-weight: 800; }
.check-list li.fail { border-color: rgba(248, 113, 113, 0.3); }
.check-list li.fail::before { content: "✕"; color: var(--red); font-weight: 800; }
.check-hint { justify-content: center; text-align: center; color: var(--text-dim) !important; padding: 28px 14px !important; }

/* 키워드 밀도 */
.density-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.density-tab {
  padding: 8px 16px; border-radius: 100px; border: 1px solid var(--border);
  background: transparent; color: var(--text-sub); font-size: 13px; font-weight: 600; transition: 0.2s;
}
.density-tab.active { background: var(--grad-soft); border-color: rgba(139, 92, 246, 0.45); color: #d8caff; }
.density-row { display: grid; grid-template-columns: minmax(0,1.2fr) 2fr auto auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.density-word { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.density-bar { height: 7px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.density-bar > div { height: 100%; border-radius: 5px; background: var(--grad); transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.density-count { color: var(--text-dim); font-size: 12.5px; white-space: nowrap; }
.density-pct { font-weight: 700; color: #c4b5fd; font-size: 12.5px; white-space: nowrap; }

/* 코드 블록 */
.code-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-sub); }
.code-block {
  background: #0a0d15; border: 1px solid var(--border); border-radius: 13px;
  padding: 18px; font-size: 12.5px; line-height: 1.7; overflow-x: auto;
  color: #9fb3d9; font-family: "JetBrains Mono", Consolas, monospace;
  max-height: 420px; white-space: pre-wrap; word-break: break-all;
}

/* SERP */
.serp-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 10px; }
.serp-card {
  background: #fff; border-radius: 13px; padding: 18px 20px;
  font-family: arial, sans-serif;
}
.serp-card.mobile { max-width: 400px; }
.serp-url { font-size: 12.5px; color: #202124; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-title { font-size: 19px; color: #1a0dab; line-height: 1.3; margin-bottom: 4px; cursor: pointer; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.serp-title:hover { text-decoration: underline; }
.serp-card.mobile .serp-title { font-size: 16px; -webkit-line-clamp: 2; }
.serp-desc { font-size: 13.5px; color: #4d5156; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serp-tips { display: grid; gap: 8px; margin-top: 6px; }
.serp-tip { font-size: 12.5px; padding: 9px 13px; border-radius: 10px; line-height: 1.5; }
.serp-tip.ok { background: rgba(52, 211, 153, 0.1); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, 0.25); }
.serp-tip.warn { background: rgba(251, 191, 36, 0.09); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.25); }

/* 카운터 */
.counter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 22px; }
.counter-card {
  padding: 18px 12px; text-align: center; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border);
}
.counter-num { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.counter-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.counter-note { padding: 18px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }
.counter-note strong { display: block; margin-bottom: 13px; font-size: 13px; color: var(--text-sub); }
.platform-bars { display: grid; gap: 11px; }
.platform-bar { display: grid; grid-template-columns: 92px 1fr 64px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--text-sub); }
.platform-bar em { font-style: normal; color: var(--text-dim); text-align: right; }
.pbar { height: 7px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.pfill { height: 100%; width: 0; border-radius: 5px; background: var(--grad); transition: width 0.5s ease, background 0.3s; }
.pfill.done { background: var(--green); }

/* ---------- 워크플로우 ---------- */
.workflow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.workflow-step {
  padding: 30px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.workflow-step:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.45); }
.step-num {
  font-size: 14px; font-weight: 800; letter-spacing: 0.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.workflow-step h3 { font-size: 17.5px; font-weight: 750; margin-bottom: 9px; }
.workflow-step p { font-size: 13.5px; color: var(--text-sub); }
.workflow-connector { align-self: center; width: 26px; height: 2px; background: linear-gradient(90deg, rgba(139,92,246,.6), rgba(236,72,153,.6)); border-radius: 2px; }

/* ---------- 후기 ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  padding: 30px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.3s, border-color 0.3s;
}
.testi-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.4); }
.testi-stars { color: var(--yellow); letter-spacing: 3px; font-size: 15px; }
.testi-card p { font-size: 14.5px; color: var(--text-sub); flex: 1; }
.testi-author { display: flex; align-items: center; gap: 13px; }
.testi-avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); font-weight: 800; font-size: 15px; color: #fff;
}
.testi-author strong { display: block; font-size: 14.5px; }
.testi-author span { font-size: 12.5px; color: var(--text-dim); }

/* ---------- 요금제 ---------- */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 30px; }
.billing-label { font-size: 14.5px; font-weight: 600; color: var(--text-dim); transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.billing-label.active { color: var(--text); }
.save-badge { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: rgba(52, 211, 153, 0.14); color: var(--green); }
.toggle {
  width: 52px; height: 28px; border-radius: 100px; border: 1px solid var(--border-strong);
  background: var(--surface-2); position: relative; transition: background 0.25s;
}
.toggle[aria-checked="true"] { background: var(--grad); border-color: transparent; }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.toggle[aria-checked="true"] .toggle-knob { transform: translateX(24px); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  padding: 32px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.price-card.featured {
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.08));
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.16);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px; border-radius: 100px; font-size: 12px; font-weight: 700;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
  white-space: nowrap;
}
.price-card h3 { font-size: 19px; font-weight: 800; }
.price-desc { font-size: 13px; color: var(--text-dim); margin: 6px 0 22px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; min-height: 46px; }
.price-num { font-size: 34px; font-weight: 850; letter-spacing: -0.03em; }
.price-num.custom { font-size: 25px; }
.price-per { font-size: 14px; color: var(--text-dim); }
.price-features { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; flex: 1; }
.price-features li { font-size: 13.5px; color: var(--text-sub); }
.price-features li.dim { color: var(--text-dim); opacity: 0.65; }

/* ---------- AI 크레딧 애드온 ---------- */
.addon-box {
  margin-top: 44px; padding: 40px 42px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(217, 119, 87, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(217, 119, 87, 0.3);
}
.addon-badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em;
  background: rgba(217, 119, 87, 0.14); border: 1px solid rgba(217, 119, 87, 0.35); color: #f0b9a4;
  margin-bottom: 14px;
}
.addon-head h3 { font-size: clamp(19px, 2.6vw, 25px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.addon-head p { font-size: 14px; color: var(--text-sub); max-width: 760px; margin-bottom: 28px; }
.addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.addon-card {
  position: relative; padding: 24px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.25s, border-color 0.25s;
}
.addon-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.addon-card.featured { border-color: rgba(139, 92, 246, 0.55); background: rgba(99, 102, 241, 0.08); }
.addon-card.byok { border-style: dashed; border-color: rgba(52, 211, 153, 0.4); }
.addon-popular {
  position: absolute; top: -11px; left: 18px; padding: 3px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; background: var(--grad); color: #fff;
}
.addon-card h4 { font-size: 15px; font-weight: 750; }
.addon-price { font-size: 26px; font-weight: 850; letter-spacing: -0.02em; }
.addon-unit { font-size: 12px; font-weight: 700; color: #c4b5fd; }
.addon-card.byok .addon-unit { color: var(--green); }
.addon-card p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; flex: 1; margin: 6px 0 12px; }

@media (max-width: 1024px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .addon-grid { grid-template-columns: 1fr; } .addon-box { padding: 28px 22px; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 13px; }
.faq-item {
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); overflow: hidden; transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(139, 92, 246, 0.4); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 15.5px; font-weight: 650; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 9px; background: var(--surface-2); font-weight: 500; font-size: 17px;
  transition: transform 0.3s, background 0.3s; color: var(--text-sub);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-body { padding: 0 24px 22px; font-size: 14.5px; color: var(--text-sub); line-height: 1.75; }

/* ---------- 최종 CTA ---------- */
.final-cta { padding-bottom: 130px; }
.cta-box {
  text-align: center; padding: 72px 40px; border-radius: 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
  box-shadow: 0 30px 90px rgba(124, 58, 237, 0.35);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 20% -10%, rgba(255, 255, 255, 0.22), transparent 55%);
}
.cta-box h2 { position: relative; font-size: clamp(26px, 4vw, 40px); font-weight: 850; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-box p { position: relative; font-size: 16.5px; color: rgba(255, 255, 255, 0.85); margin-bottom: 34px; }
.cta-box .hero-cta { position: relative; }

/* ---------- 푸터 ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; background: rgba(10, 12, 19, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); line-height: 1.7; }
.footer-col h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 16px; color: var(--text-sub); letter-spacing: 0.03em; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}

/* ---------- 백투탑 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 800;
  width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--border-strong);
  background: rgba(14, 17, 27, 0.9); backdrop-filter: blur(10px); color: var(--text);
  font-size: 18px; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--grad); border-color: transparent; }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .feature-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: 1fr 1fr; }
  .workflow-connector { display: none; }
  .demo-body { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 1080px) {
  /* 좁은 화면: 탭 8개 + 액션 버튼이 가로로 다 안 들어가므로 햄버거 메뉴로 전환 */
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 890;
    flex-direction: column; gap: 4px; padding: 16px 20px 22px;
    background: rgba(7, 9, 15, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.open { transform: none; }
  .nav-link { padding: 13px 16px; font-size: 16px; }
  .menu-toggle { display: flex; }
}
@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .feature-grid, .testi-grid, .pricing-grid, .workflow-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-box { padding: 52px 24px; }
}

/* ---------- 세그먼트 컨트롤 ---------- */
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.seg-btn {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border);
  background: transparent; color: var(--text-sub); font-size: 14px; font-weight: 600;
  transition: 0.2s;
}
.seg-btn:hover { color: var(--text); border-color: var(--border-strong); }
.seg-btn.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}
.tool-note {
  font-size: 13px; color: var(--text-dim); line-height: 1.65;
  padding: 13px 16px; border-radius: 11px; margin-bottom: 20px; margin-top: 4px;
  background: var(--surface); border: 1px solid var(--border);
}
.tool-note strong { color: var(--text-sub); }
.tool-note code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ---------- 엔진 바 (GEO) ---------- */
.engine-bars { display: grid; gap: 12px; margin-bottom: 22px; padding: 16px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.engine-row { display: grid; grid-template-columns: 190px 1fr 44px; gap: 12px; align-items: center; font-size: 12.5px; color: var(--text-sub); }
.engine-row em { font-style: normal; font-weight: 700; color: #c4b5fd; text-align: right; }
.engine-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 키워드 추천 ---------- */
.kw-out { display: grid; gap: 20px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.kw-out::-webkit-scrollbar { width: 5px; }
.kw-out::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
.kw-group-title {
  font-size: 13px; font-weight: 700; color: var(--text-sub);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.kw-group-title .kw-intent {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, 0.3); color: #c4b5fd;
}
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px; border-radius: 100px; font-size: 13px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-sub);
  cursor: pointer; transition: 0.2s; user-select: none;
}
.chip:hover { border-color: rgba(139, 92, 246, 0.5); color: var(--text); transform: translateY(-1px); }
.chip.copied { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.4); color: #a7f3d0; }
.title-suggest { display: grid; gap: 8px; }
.title-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 11px; font-size: 13.5px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-sub);
  transition: border-color 0.2s;
}
.title-row:hover { border-color: rgba(139, 92, 246, 0.4); }
.title-row .btn-xs { flex-shrink: 0; }

/* ---------- 아웃라인 ---------- */
.outline-box {
  border-radius: 13px; background: var(--surface); border: 1px solid var(--border);
  padding: 20px; font-size: 14px; max-height: 520px; overflow-y: auto;
}
.outline-box::-webkit-scrollbar { width: 5px; }
.outline-box::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }
.ol-h1 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.ol-alt { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.ol-block { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); margin-bottom: 10px; }
.ol-block h5 { font-size: 14px; font-weight: 700; color: #c4b5fd; margin-bottom: 5px; }
.ol-block p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.ol-tip {
  margin-top: 14px; padding: 13px 15px; border-radius: 11px; font-size: 12.5px; line-height: 1.65;
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.25); color: #a5f3fc;
}

/* ---------- 플랫폼 전략 섹션 ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 40px; }
.platform-card {
  padding: 32px 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s;
}
.platform-card:hover { transform: translateY(-6px); }
.platform-card.naver:hover { border-color: rgba(3, 199, 90, 0.5); }
.platform-card.tistory:hover { border-color: rgba(255, 138, 61, 0.5); }
.platform-card.wp:hover { border-color: rgba(33, 117, 155, 0.6); }
.platform-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.platform-logo {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  font-size: 21px; font-weight: 900; color: #fff;
}
.platform-logo.n { background: #03c75a; }
.platform-logo.t { background: linear-gradient(135deg, #ff8a3d, #eb531f); }
.platform-logo.w { background: #21759b; }
.platform-head h3 { font-size: 18px; font-weight: 800; }
.platform-engine { font-size: 12px; color: var(--text-dim); }
.platform-card ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.platform-card li { font-size: 13.5px; color: var(--text-sub); padding-left: 20px; position: relative; line-height: 1.55; }
.platform-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.platform-card.naver li::before { color: #03c75a; }
.platform-card.tistory li::before { color: #ff8a3d; }
.platform-card.wp li::before { color: #4ea8d2; }

.geo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 44px 46px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 70px rgba(34, 211, 238, 0.08);
}
.geo-banner-text { max-width: 640px; }
.geo-banner h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 850; letter-spacing: -0.02em; margin: 14px 0 12px; }
.geo-banner p { font-size: 14.5px; color: var(--text-sub); margin-bottom: 20px; }
.geo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.geo-chip {
  padding: 6px 14px; border-radius: 100px; font-size: 12.5px; font-weight: 650;
  background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); color: #a5f3fc;
}
.geo-banner > .btn { flex-shrink: 0; }

@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: 1fr; }
  .geo-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .engine-row { grid-template-columns: 1fr; gap: 5px; }
  .engine-row em { text-align: left; }
  .seg-btn { flex: 1; padding: 10px 12px; font-size: 13px; }
}

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 요금제 연간/월간 비교 ---------- */
.price-compare { margin: -14px 0 20px; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.price-compare s { opacity: 0.75; }
.price-compare em { font-style: normal; color: var(--green); font-weight: 700; }

/* ---------- 사전 등록 모달 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(4, 6, 12, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; max-width: 480px; width: 100%;
  background: rgba(14, 17, 27, 0.98); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow), 0 0 80px rgba(99, 102, 241, 0.2);
  padding: 40px 36px; text-align: center;
  animation: modalin 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalin { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 10px; border: 1px solid var(--border); background: transparent;
  color: var(--text-sub); font-size: 14px; transition: 0.2s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-icon { font-size: 40px; margin-bottom: 14px; }
.modal h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.modal p { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin-bottom: 26px; }
.modal-actions { display: grid; gap: 10px; }

/* ---------- FAQ 각주 ---------- */
.faq-note { margin-top: 18px; font-size: 12px; color: var(--text-dim); line-height: 1.6; }

/* ---------- 법적 문서 페이지 ---------- */
.legal { padding: 90px 24px 100px; }
.legal-back { display: inline-block; font-size: 14px; color: var(--text-sub); margin-bottom: 32px; transition: color 0.2s; }
.legal-back:hover { color: var(--text); }
.legal h1 { font-size: 32px; font-weight: 850; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-date { font-size: 13px; color: var(--text-dim); margin-bottom: 40px; }
.legal h2 { font-size: 18px; font-weight: 750; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal p { font-size: 14.5px; color: var(--text-sub); line-height: 1.85; }
.legal a { color: #a5b4fc; text-decoration: underline; }
.legal strong { color: var(--text); }

/* ---------- 초소형 화면 헤더 ---------- */
@media (max-width: 560px) {
  .header-actions .btn-primary { display: none; }
  .logo-text { font-size: 16px; }
}

/* ---------- SVG 아이콘 ---------- */
.ico { width: 16px; height: 16px; flex-shrink: 0; }
.ico-lg { width: 24px; height: 24px; }
.ico-xl { width: 40px; height: 40px; stroke-width: 1.6; }
.tool-tab { display: inline-flex; align-items: center; gap: 8px; }
.tool-tab .ico { opacity: 0.85; }
.feature-icon .ico-lg { color: #c4b5fd; }
.lang-btn .ico { width: 15px; height: 15px; }
.modal-icon { display: grid; place-items: center; margin-bottom: 16px; }
.modal-icon .ico-xl { color: #c4b5fd; }

/* ---------- 세그 컬러 점 ---------- */
.seg-btn { display: inline-flex; align-items: center; gap: 8px; }
.seg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #888); flex-shrink: 0; box-shadow: 0 0 8px var(--c, transparent); }

/* ---------- 언어 코드 배지 ---------- */
.lang-list li { display: flex; align-items: center; gap: 10px; }
.lang-code {
  display: inline-grid; place-items: center; min-width: 28px; padding: 2px 5px;
  border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em;
  background: var(--surface-2); color: var(--text-dim);
}
.lang-list li.active .lang-code { background: var(--grad); color: #fff; }

/* ---------- 분석 결과 요약 바 ---------- */
.result-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.result-bar[hidden] { display: none; }
.result-sums { display: flex; gap: 14px; flex-wrap: wrap; }
.rsum { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-sub); }
.rsum i { width: 8px; height: 8px; border-radius: 50%; }
.rsum em { font-style: normal; font-weight: 800; }
.rsum.pass i { background: var(--green); } .rsum.pass em { color: var(--green); }
.rsum.warn i { background: var(--yellow); } .rsum.warn em { color: var(--yellow); }
.rsum.fail i { background: var(--red); } .rsum.fail em { color: var(--red); }

/* ---------- 광고 슬롯 ---------- */
/* 중요: 애드센스는 display:none(폭 0)인 요소에는 광고를 채우지 않는다.
   따라서 슬롯은 기본 표시해야 채워지고, 빈 박스 방지는
   '애드센스가 채우지 못한(data-ad-status="unfilled") 슬롯만 사후 숨김'으로 처리한다. */
.ad-slot { display: block; margin: 72px auto; text-align: center; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase;
}
/* block 이어야 내부 <ins style="display:block">가 부모 폭을 가짐(flex면 빈 ins가 0폭으로 줄어 애드센스가 못 채움) */
.ad-inner { min-height: 90px; }

/* ---------- 제휴 파트너 ---------- */
.aff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aff-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.aff-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.45); }
.aff-thumb {
  display: grid; place-items: center; height: 120px; border-radius: 14px;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  color: var(--text-dim); font-size: 13px; margin-bottom: 6px;
}
.aff-card h3 { font-size: 17px; font-weight: 750; }
.aff-card p { font-size: 13.5px; color: var(--text-sub); flex: 1; }
.aff-cta { font-size: 13.5px; font-weight: 700; color: #a5b4fc; }
.aff-disclosure { margin-top: 22px; font-size: 12px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 860px) { .aff-grid { grid-template-columns: 1fr; } }

/* ---------- 휴먼 터치: 템플릿 리듬 변주 ---------- */
/* 섹션 제목 강조: 무지개 그라디언트 → 마커펜 하이라이트 (히어로는 그라디언트 유지) */
.section-title .gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  position: relative;
  z-index: 0;
}
.section-title .gradient-text::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px; bottom: 8%;
  height: 34%;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.45), rgba(236, 72, 153, 0.38));
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-10deg) rotate(-0.4deg);
}
/* 섹션 배지 톤다운: 알약 박스 → 작은 오버라인 텍스트 */
.section-badge {
  background: none;
  border: 0;
  padding: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 0;
}
/* 리듬 변주: 두 개 섹션은 좌측 정렬 (전부 가운데 정렬인 템플릿 느낌 제거) */
#compare .section-head,
#platforms .section-head {
  text-align: left;
  margin-left: 0;
  max-width: 640px;
}
/* 후기 카드 미세 변주 */
.testi-grid .testi-card:nth-child(2) { transform: translateY(14px); }
.testi-grid .testi-card:nth-child(2):hover { transform: translateY(9px); }
@media (max-width: 1024px) {
  .testi-grid .testi-card:nth-child(2) { transform: none; }
}
.footer-bottom .ver { opacity: 0.65; font-size: 12px; }

/* ---------- 초보자·시니어 접근성 ---------- */
/* 3단계 가이드 */
.easy-guide {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 20px 26px; margin-bottom: 18px; border-radius: var(--radius-lg);
  background: rgba(99, 102, 241, 0.07); border: 1px solid rgba(99, 102, 241, 0.25);
}
.easy-title { font-size: 15.5px; font-weight: 750; white-space: nowrap; }
.easy-steps { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.easy-steps li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-sub); }
.easy-steps b {
  display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px;
}
@media (max-width: 860px) {
  .easy-guide { flex-direction: column; align-items: flex-start; gap: 14px; }
  .easy-steps { flex-direction: column; gap: 10px; }
}

/* 예시로 해보기 버튼 */
.btn-sample {
  width: 100%; margin-top: 9px; padding: 11px; border-radius: 11px;
  background: transparent; border: 1px dashed var(--border-strong);
  color: var(--text-sub); font-size: 13.5px; font-weight: 600; transition: 0.2s;
}
.btn-sample:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.55); background: var(--surface); }

/* 큰 글씨 토글 */
.text-size-btn {
  padding: 7px 11px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text-sub); font-size: 13.5px; font-weight: 700;
  transition: 0.2s; line-height: 1;
}
.text-size-btn sup { font-size: 9px; }
.text-size-btn:hover { color: var(--text); background: var(--surface-2); }
.text-size-btn.on { background: var(--grad); color: #fff; border-color: transparent; }
html.big-text body { zoom: 1.15; }

/* 키보드 포커스 가시성 */
:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
@media (max-width: 860px) { .text-size-btn { padding: 7px 9px; } }

/* ---------- 제목 비교 도구 ---------- */
.tc-out { display: grid; gap: 12px; max-height: 520px; overflow-y: auto; padding-right: 6px; }
.tc-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border);
}
.tc-row.best { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.06); }
.tc-rank {
  flex-shrink: 0; display: grid; place-items: center; min-width: 38px; padding: 4px 6px;
  border-radius: 9px; font-size: 12px; font-weight: 800;
  background: var(--surface-2); color: var(--text-sub);
}
.tc-row.best .tc-rank { background: var(--green); color: #052e22; }
.tc-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.tc-title { font-size: 14px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.tc-chip { padding: 2px 9px; border-radius: 100px; font-size: 11px; font-weight: 650; }
.tc-chip.good { background: rgba(52, 211, 153, 0.12); color: #a7f3d0; }
.tc-chip.bad { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.tc-score { flex-shrink: 0; font-size: 22px; font-weight: 850; color: #c4b5fd; }
.tc-row.best .tc-score { color: var(--green); }

/* 히스토리 변화 칩 */
.rsum.delta { padding: 3px 10px; border-radius: 100px; background: var(--surface-2); font-weight: 700; }
.rsum.delta.up { color: var(--green); background: rgba(52, 211, 153, 0.12); }
.rsum.delta.down { color: var(--red); background: rgba(248, 113, 113, 0.12); }

/* ---------- 제휴 파트너 배너 ---------- */
.pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pb-card {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--c, var(--border-strong));
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
  min-height: 74px;
}
.pb-card:hover {
  transform: translateY(-4px);
  border-color: var(--c);
  background: var(--surface-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.pb-logo {
  position: relative; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 22%, transparent);
}
.pb-logo b { font-size: 17px; font-weight: 800; color: var(--c); }
.pb-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: rgba(255,255,255,0.06); }
.pb-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pb-body b { font-size: 14.5px; font-weight: 750; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-body small { font-size: 12px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-go { flex-shrink: 0; font-size: 20px; color: var(--text-dim); transition: transform 0.2s, color 0.2s; }
.pb-card:hover .pb-go { transform: translateX(3px); color: var(--c); }
@media (max-width: 1024px) { .pb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pb-grid { grid-template-columns: 1fr; } }

/* 제휴 근접 고지 */
.aff-notice { margin: -34px 0 22px; font-size: 12.5px; color: var(--text-sub); }
#compare .section-head + .aff-notice { margin-top: 0; }

/* ---------- 출시 예정 배지 (정직한 기능 표기) ---------- */
.soon-badge {
  display: inline-block; vertical-align: middle;
  margin-left: 8px; padding: 3px 9px;
  border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(251, 191, 36, 0.14); color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.35);
  white-space: nowrap;
}
.section-title .soon-badge { font-size: 13px; vertical-align: middle; }
.feature-card h3 .soon-badge { font-size: 10.5px; }
.demo-soon {
  font-weight: 700; font-size: 11px; color: var(--yellow);
  padding: 2px 8px; border-radius: 100px;
  background: rgba(251, 191, 36, 0.15); border: 1px solid rgba(251, 191, 36, 0.3);
  margin-left: 4px;
}
/* '출시 예정' 기능 카드는 살짝 눌러 실제 도구와 구분 */
.feature-card:has(.soon-badge) { opacity: 0.82; }
.feature-card:has(.soon-badge):hover { opacity: 1; }
.stat-num.stat-free { font-size: 30px; }

/* 출시예정 배지 위치 보정 (i18n 바인딩 요소 밖 형제) */
.feature-card { position: relative; }
.card-soon { position: absolute; top: 18px; right: 18px; margin-left: 0; z-index: 2; }
.section-head { position: relative; }
.title-soon { vertical-align: middle; }

/* ---------- 히어로 빠른 제목 점검 위젯 ---------- */
.hero-tool {
  max-width: 620px; margin: 0 auto; text-align: left;
  padding: 26px 28px; border-radius: var(--radius-lg);
  background: rgba(14, 17, 27, 0.88); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 80px rgba(99, 102, 241, 0.15);
}
.ht-head { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }
.ht-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; flex-shrink: 0; }
.ht-input-row { display: flex; gap: 12px; align-items: stretch; }
.ht-input-row input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ht-input-row input::placeholder { color: var(--text-dim); }
.ht-input-row input:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.ht-score {
  flex-shrink: 0; width: 66px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  font-size: 25px; font-weight: 850; line-height: 1;
}
.ht-score span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ht-meter { height: 7px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 14px 0; }
.ht-meter-fill { height: 100%; width: 0; border-radius: 5px; background: var(--grad); transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s; }
.ht-meter-fill.good { background: var(--green); }
.ht-meter-fill.mid { background: var(--yellow); }
.ht-meter-fill.low { background: var(--red); }
.ht-tips { list-style: none; display: grid; gap: 7px; margin: 0 0 18px; padding: 0; min-height: 22px; }
.ht-tips li { font-size: 13px; padding-left: 22px; position: relative; color: var(--text-sub); line-height: 1.5; }
.ht-hint { color: var(--text-dim) !important; padding-left: 0 !important; }
.ht-good::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.ht-bad::before { content: "→"; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }
@media (max-width: 560px) { .hero-tool { padding: 20px; } .ht-input-row input { font-size: 14px; } }

/* ---------- 계열사 프로모 슬라이더 ---------- */
.promo { position: relative; max-width: 1180px; margin: 88px auto 0; padding: 0 24px; }
.promo-viewport { overflow: hidden; border-radius: 16px; }
.promo-track { display: flex; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.promo-slide {
  flex: 0 0 100%; display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; min-height: 82px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, var(--g1, #6366f1), var(--g2, #a855f7));
}
.promo-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.18); }
.promo-icon svg { width: 24px; height: 24px; }
.promo-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.promo-eyebrow { font-size: 11px; opacity: 0.85; letter-spacing: 0.08em; text-transform: uppercase; }
.promo-name { font-size: 17px; font-weight: 800; }
.promo-desc { font-size: 13px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-cta { flex-shrink: 0; font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0.95; }
.promo-arrow {
  position: absolute; top: calc(50% + 4px); transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, 0.28); color: #fff; font-size: 20px; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.promo-arrow:hover { background: rgba(0, 0, 0, 0.45); }
.promo-arrow.prev { left: 30px; }
.promo-arrow.next { right: 30px; }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 9px; }
.promo-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.promo-dot.active { background: var(--primary-2); transform: scale(1.3); }
.promo:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; border-radius: 18px; }
/* 프로모가 헤더 아래 상단 공간을 담당 → 히어로 상단 여백 축소 */
.hero { padding-top: 44px; }
@media (max-width: 720px) {
  .promo { margin-top: 84px; }
  .promo-arrow { display: none; }
  .promo-slide { flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
  .promo-cta { width: 100%; }
}

/* ---------- SNS·유튜브 섹션 ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.social-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: transform 0.25s, border-color 0.25s;
}
.social-card:hover { transform: translateY(-4px); }
.social-card.yt:hover { border-color: rgba(255, 0, 0, 0.5); }
.social-card.ig:hover { border-color: rgba(225, 48, 108, 0.55); }
.social-card.tt:hover { border-color: rgba(34, 211, 238, 0.5); }
.social-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; }
.social-card.yt .social-icon { background: #ff0000; }
.social-card.ig .social-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-card.tt .social-icon { background: #000; border: 1px solid var(--border-strong); }
.social-icon svg { width: 24px; height: 24px; }
.social-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.social-info b { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-info small { font-size: 12.5px; color: var(--text-sub); }
.social-btn { flex-shrink: 0; padding: 7px 15px; border-radius: 100px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--text); transition: background 0.25s, color 0.25s; }
.social-card:hover .social-btn { background: var(--grad); color: #fff; }
.social-thanks { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-sub); }
@media (max-width: 860px) { .social-grid { grid-template-columns: 1fr; } }
