@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #1a3fc7;
  --primary-dark: #0f2a8c;
  --dark: #1a1a2e;
  --text: #222;
  --text-light: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-gray: #f5f6f8;
  --bg-blue: #2644d4;
  --border: #e8e8e8;
  --orange: #f0913a;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.header {
  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: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark);
}

nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1.5px solid var(--dark);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: var(--dark);
  color: white;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--dark);
  color: white;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  border: none;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--primary-dark); }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: white;
  color: var(--dark);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--orange);
  color: white;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-orange:hover { background: #e07e28; transform: translateY(-1px); }

/* ===== PAGE HERO (sub pages) ===== */
.page-hero {
  padding-top: 72px;
  background: var(--bg);
  overflow: hidden;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.page-hero-buttons {
  display: flex;
  gap: 16px;
}

.page-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-illust {
  width: 280px;
  height: 220px;
  position: relative;
}

/* ===== TABS ===== */
.tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.tab {
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover { color: var(--text); }
.tab.active {
  color: var(--dark);
  font-weight: 700;
  border-bottom-color: var(--dark);
}

/* ===== SECTION CONTAINER ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: default;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.icon-blue { background: #dbe4ff; color: var(--primary); }
.icon-purple { background: #e8dff5; color: #7c3aed; }
.icon-orange { background: #fde8d0; color: var(--orange); }
.icon-green { background: #d1fae5; color: #059669; }
.icon-pink { background: #fce7f3; color: #db2777; }
.icon-yellow { background: #fef3c7; color: #d97706; }
.icon-red { background: #fee2e2; color: #dc2626; }
.icon-teal { background: #ccfbf1; color: #0d9488; }

.service-card-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-card-content p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.service-card-content .badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e8eaf0;
  color: var(--text-muted);
  margin-left: 6px;
}

.pay-logos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pay-logo {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
}

/* ===== PRICING TABLE ===== */
.pricing-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.pricing-box {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.pricing-box.premium {
  border-color: var(--orange);
  position: relative;
}

.pricing-box .plan-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.pricing-box.premium .plan-label {
  color: var(--orange);
}

.pricing-box .plan-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.pricing-row:last-child { border: none; }

.pricing-row .label { color: var(--text); font-weight: 500; }
.pricing-row .value { color: var(--text); font-weight: 600; }

.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 48px;
}

/* Fee table */
.fee-table {
  width: 100%;
  margin-bottom: 16px;
}

.fee-table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  padding: 12px 0;
  border-bottom: 2px solid var(--dark);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.fee-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: var(--text);
}

.fee-table-row .label { font-weight: 500; }
.fee-table-row .value { font-weight: 500; }

/* Settlement table */
.settlement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.settlement-list {
  width: 100%;
}

.settlement-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.settlement-row .label { color: var(--text); font-weight: 500; }
.settlement-row .value { color: var(--text-light); }

.settlement-calendar {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 24px;
}

.settlement-calendar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 12px;
  margin-bottom: 12px;
}

.calendar-day-label {
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px;
}

.calendar-day {
  padding: 6px;
  border-radius: 6px;
  color: var(--text);
}

.calendar-day.highlight {
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.calendar-day.empty { color: transparent; }

.calendar-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--bg-blue);
  padding: 80px 40px;
  text-align: center;
}

.cta-section h2 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.4;
}

.cta-section p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a.bold { font-weight: 700; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}

.footer-info {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
  z-index: 50;
}
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.scroll-top svg { width: 20px; height: 20px; color: var(--text); }

/* ===== FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-visual { display: none; }
  .page-hero h1 { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid.cols-3 { grid-template-columns: 1fr; }
  .pricing-container { grid-template-columns: 1fr; }
  .fee-table-header, .fee-table-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .settlement-grid { grid-template-columns: 1fr; }
  .tabs { gap: 20px; }
  .cta-section h2 { font-size: 24px; }
}

/* ===== 모바일 햄버거 메뉴 ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 20px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: flex !important; }
.mobile-nav a {
  display: block;
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: #1a3fc7; }
.mobile-nav .btn-outline-mob {
  display: block;
  margin-top: 12px;
  padding: 13px 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  border: none;
  border-bottom: none;
  background: #f5f6f8;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-inner { padding: 0 16px; }
  header nav { display: none; }
}

