/* Hey비서 — 공통 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #EFF6FF;
  --accent: #63BDEE;
  --accent-dark: #3A9FD4;
  --cta: #2B7FFF;
  --cta-dark: #1A4C99;
  --bg: #FFFFFF;
  --bg-gray: #F8FAFC;
  --bg-blue: #EFF6FF;
  --text: #111827;
  --text-mid: #4B5563;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow: 0 4px 24px rgba(37,99,235,0.10);
  --shadow-lg: 0 8px 40px rgba(37,99,235,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}

/* ── 네비게이션 (3열 그리드: 로고|링크|버튼) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
}

/* 로고: HB 그라데이션 */
.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-logo-hb {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #2B7FFF, #1A4C99);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-sub {
  color: #1A4C99;
  font-size: 14px;
  font-weight: 700;
}

/* 메뉴 중앙 */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
  justify-content: center;
}
.nav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--bg-blue);
}

/* 우측 버튼 */
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.nav-cta-btn {
  background: #2B7FFF;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta-btn:hover {
  background: #1A4C99;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(43,127,255,0.35);
}

/* 햄버거 (모바일) */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 5px 0;
  border-radius: 2px; transition: all 0.3s;
}

/* ── 페이지 최상단 패딩 ── */
.page-top { padding-top: 68px; }

/* ── 섹션 공통 ── */
section { padding: 80px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-block;
  background: var(--bg-blue); color: var(--primary);
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; line-height: 1.25;
  letter-spacing: -0.5px; margin-bottom: 16px;
}
.section-title em { color: var(--primary); font-style: normal; }

.section-desc {
  font-size: 17px; color: var(--text-mid); max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,127,255,0.35); }
.btn-accent { background: var(--cta); color: #fff; }
.btn-accent:hover { background: var(--cta-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,127,255,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--bg-blue); }
.btn-lg { padding: 18px 36px; font-size: 18px; border-radius: 12px; }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 8px; }

/* ── 카드 ── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── 그리드 ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── 배지 ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
}
.badge-accent { background: var(--cta); }
.badge-green { background: #10B981; }

/* ── 히어로 공통 ── */
.page-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, var(--primary) 100%);
  color: #fff; padding: 100px 0 80px;
}
.page-hero .section-label { background: rgba(255,255,255,0.2); color: #fff; }
.page-hero .section-title { color: #fff; }
.page-hero .section-desc { color: rgba(255,255,255,0.85); max-width: 700px; }

/* ── 아이콘 래퍼 ── */
.icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-blue); display: flex;
  align-items: center; justify-content: center; font-size: 24px;
  margin-bottom: 20px;
}
.icon-wrap-accent { background: #EFF9FF; }

/* ── 구분선 ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── 통계 숫자 ── */
.stat-number { font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-mid); margin-top: 4px; font-weight: 500; }

/* ── 별점 ── */
.stars { color: #FBBF24; font-size: 18px; letter-spacing: 2px; }

/* ── 폼 ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }

/* ── 요금제 카드 ── */
.pricing-card {
  background: #fff; border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all 0.3s;
}
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(145deg, #fff 0%, var(--bg-blue) 100%);
  position: relative;
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--cta); color: #fff;
  font-size: 12px; font-weight: 800; padding: 4px 16px;
  border-radius: 100px; white-space: nowrap;
}
.pricing-name { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.pricing-price { font-size: 38px; font-weight: 900; color: var(--primary); line-height: 1; margin: 20px 0 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-mid); }
.pricing-desc { font-size: 14px; color: var(--text-mid); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; padding: 8px 0; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #F3F4F6; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: #10B981; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── 푸터 ── */
.footer {
  background: #111827; color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-logo-wrap { margin-bottom: 12px; }
.footer-logo-hb {
  font-size: 24px; font-weight: 900;
  background: linear-gradient(90deg, #2B7FFF, #63BDEE);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-logo-sub { color: #fff; font-size: 14px; font-weight: 700; margin-left: 6px; }
.footer-desc { font-size: 14px; line-height: 1.8; margin-bottom: 32px; max-width: 320px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* ── 모바일 ── */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px; gap: 4px; z-index: 99;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; width: 100%; }
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn-lg { padding: 16px 28px; font-size: 16px; }
  .page-hero { padding: 80px 0 60px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── 유틸 ── */
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-40{margin-top:40px}.mt-48{margin-top:48px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-48{margin-bottom:48px}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.gap-12{gap:12px}.gap-16{gap:16px}.gap-24{gap:24px}
.highlight{color:var(--primary)}.bg-gray{background:var(--bg-gray)}.bg-blue{background:var(--bg-blue)}
.bg-primary{background:linear-gradient(135deg,var(--primary) 0%,var(--primary-dark) 100%)}

/* ── 애니메이션 ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeInUp 0.6s ease both; }
.fade-in-2 { animation: fadeInUp 0.6s 0.15s ease both; }
.fade-in-3 { animation: fadeInUp 0.6s 0.3s ease both; }
