/* ── 2dw tech — 공통 스타일 ── */

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

:root {
  --bg: #ffffff;
  --bg-tag: #f1f5f9;
  --nav-border: #e2e8f0;
  --footer-bg: #0f172a;
  --text-main: #111827;
  --text-sub: #6b7280;
  --accent: #2563eb;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

body {
  font-family: 'Pretendard', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s;
}
nav.scrolled {
  border-bottom-color: var(--nav-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo .logo-main { font-size: 24px; font-weight: 800; color: #1a2236; letter-spacing: -0.8px; }
.nav-logo .logo-sub  { font-size: 24px; font-weight: 500; color: #9ca3af; letter-spacing: -0.5px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-right a:hover  { color: var(--text-main); background: var(--bg-tag); }
.nav-right a.active { color: var(--accent); font-weight: 600; }
.nav-right .nav-icon {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
  background: none;
  border: none;
}
.nav-right .nav-icon:hover { background: var(--bg-tag); color: var(--text-main); }

/* ── PAGE HEADER ── */
.page-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px 0;
}
.page-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.page-subtitle {
  font-size: 18px;
  color: var(--text-sub);
  margin: 0;
}

/* ── METRICS ── */
.metrics-grid {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 0 16px;
  display: grid;
  gap: 16px;
}
.metric-card {
  padding: 16px;
  border: 1px solid var(--nav-border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s;
}
.metric-card:hover { box-shadow: var(--shadow-hover); }
.metric-cat   { font-size: 11px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-sub); margin-bottom: 6px; }
.metric-value { font-size: 24px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 4px; color: var(--text-main); }
.metric-label { font-size: 12px; color: var(--text-sub); line-height: 1.5; }

/* ── FILTER ── */
.filter-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 8px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Pretendard', sans-serif;
  background: var(--bg-tag);
  color: var(--text-sub);
  transition: background 0.15s, color 0.15s;
}
.filter-btn.active { background: var(--accent); color: #fff; }
.filter-btn:hover:not(.active) { background: #e2e8f0; color: var(--text-main); }

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: #94a3b8;
  padding: 56px 40px 32px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand-text { font-size: 18px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.footer-tagline    { font-size: 14px; color: #64748b; margin-bottom: 24px; line-height: 1.6; }
.footer-contact a  { display: block; font-size: 13px; color: #64748b; text-decoration: none; margin-bottom: 6px; transition: color 0.15s; }
.footer-contact a:hover { color: #94a3b8; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: #475569; margin-bottom: 16px; }
.footer-col a  { display: block; font-size: 14px; color: #64748b; text-decoration: none; margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: #94a3b8; }
.footer-bottom { max-width: 860px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; }
.footer-copy   { font-size: 12px; color: #334155; }
.footer-icons  { display: flex; gap: 16px; }
.footer-icons a { color: #475569; transition: color 0.15s; text-decoration: none; }
.footer-icons a:hover { color: #94a3b8; }

/* ── CHATBOT 키컬러 override (#7C3AED / #8B5CF6 → #2563eb) ── */
#cw-fab { background: #2563eb !important; }
#cw-fab:hover { box-shadow: 0 10px 32px rgba(37,99,235,.55) !important; }
#cw-greeting-label { color: #2563eb !important; }
#cw-window .cw-avatar { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
#cw-messages .cw-bot-icon { background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; }
#cw-messages .cw-msg-row.user .cw-bubble { background: #2563eb !important; }
#cw-messages .cw-chip { border-color: #2563eb !important; color: #1e40af !important; background: #dbeafe !important; }
#cw-messages .cw-chip:hover { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
#cw-messages .cw-anchor-btn { color: #2563eb !important; border-color: #bfdbfe !important; }
#cw-messages .cw-anchor-btn:hover { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
#cw-messages .cw-retry-btn { color: #2563eb !important; border-color: #bfdbfe !important; }
#cw-messages .cw-retry-btn:hover { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }
#cw-window .cw-input-box:focus-within { border-color: #2563eb !important; }
#cw-send { background: #2563eb !important; }

