/**
 * HCompany 공통 상단 헤더 — 모든 랜딩 페이지 단일 소스 (#0B1220 · #3B82F6)
 */
:root {
  --hc-header-bg: rgba(11, 18, 32, 0.96);
  --hc-header-border: rgba(148, 163, 184, 0.12);
  --hc-accent: #3b82f6;
  --hc-accent-hover: #2563eb;
  --hc-text: #f8fafc;
  --hc-muted: #94a3b8;
  --hc-soft: #e2e8f0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--hc-header-bg);
  border-bottom: 1px solid var(--hc-header-border);
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  padding-top: max(0px, env(safe-area-inset-top, 0px));
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  color: var(--hc-text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-header .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hc-accent);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  font-weight: 900;
  color: #fff;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1;
  justify-content: flex-end;
}

.site-header .nav-link {
  color: var(--hc-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
}

.site-header .nav-link:hover {
  color: var(--hc-text);
  background: rgba(255, 255, 255, 0.06);
}

.site-header .nav-link-quiet {
  font-size: 13px;
  font-weight: 600;
}

.site-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.site-header .btn:active {
  transform: scale(0.98);
}

.site-header .btn-primary {
  background: var(--hc-accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.site-header .btn-primary:hover {
  background: var(--hc-accent-hover);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.42);
}

.site-header .btn-secondary {
  background: transparent;
  color: var(--hc-soft);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-weight: 700;
}

.site-header .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 고정 헤더 높이만큼 본문 시작 위치 보정 */
body.marketing-with-header.page-legal main {
  padding-top: calc(76px + 28px + env(safe-area-inset-top, 0px));
}

body.marketing-with-header .pricing-main {
  padding-top: calc(76px + 32px + env(safe-area-inset-top, 0px)) !important;
}

@media (max-width: 640px) {
  .site-header .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .site-header .logo {
    font-size: 17px;
    flex-shrink: 0;
  }
  .site-header .logo-mark {
    width: 36px;
    height: 36px;
  }
  .site-header .nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 4px 0 8px;
    margin: 0 -4px;
    scrollbar-width: none;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 12px,
      #000 calc(100% - 12px),
      transparent 100%
    );
  }
  .site-header .nav::-webkit-scrollbar {
    display: none;
  }
  .site-header .nav-link {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
  .site-header .nav .btn {
    flex-shrink: 0;
    min-height: 44px;
  }
  body.marketing-with-header.page-legal main {
    padding-top: calc(76px + 20px + env(safe-area-inset-top, 0px));
  }
}
